# Agent Manifest Hardening: Least-Privilege Lint and Policies

> Lint an agent manifest for least privilege, fix wildcards and unused grants, then generate and test an allow/ask/deny tool-call policy per risk level.

Agent Manifest Hardening: Least-Privilege Lint and Policies is a paid AI agent skill on Agensi by José Miguel Gómez, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [José Miguel Gómez](https://www.agensi.io/creators/jose-miguel-gomez)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-manifest-hardening-least-privilege-lint-and-policies
- Tags: security

## What it does

- Scans your agent settings for broad permissions that give away too much access
- Suggests narrow fixes for risky settings to keep your files and data safe
- Sets a safety level based on the cost of a mistake and the data the agent can reach
- Creates a policy that automatically blocks dangerous commands or private web addresses
- Tests the new rules against tricky inputs like system paths and hidden commands

## Who it's for

- **Founders building AI tools for clients:** Ensure your custom AI assistants can only touch the data and files you allow, protecting your customers. Try: "Review the permissions for my new customer support agent."
- **IT Managers and Security Officers:** Verify that internal AI agents follow the principle of least privilege before they go live. Try: "Check this agent manifest for security risks."
- **Freelance AI Developers:** Give your clients peace of mind by providing a verified security policy for the agents you build. Try: "Harden the permissions for this tool-calling agent."

## About this skill

When you build an AI agent, you give it tools to read files, visit websites, or run commands. If those permissions are too broad, the agent might accidentally delete important files or access private data. This skill helps you lock down those permissions so the agent only does exactly what it needs to do. It checks your agent's settings for "wildcards" and broad access that could be dangerous.

**How it works**

1. Provide the file that lists your agent's permissions and tools.
2. Review the list of security risks the skill finds, like access to system folders or internal networks.
3. Answer questions about how much data the agent can reach to set a risk level from low to critical.
4. Review the new, tighter policy and see the results of tests that try to "trick" the agent into breaking the rules.

**What you get:** A hardened permission file and a safety policy that decides when a tool call is allowed, blocked, or needs a human to say yes.

## Requires

- Python

## Known limitations

This does not create a sandbox. It cannot see if a permitted file link points to a secret file elsewhere. You must provide the manifest file path.

## Technical details

This skill uses Python scripts to lint JSON manifests against rules AM001-AM009. It maps external formats to a standard manifest schema and generates a runtime policy based on templates for low, medium, high, and critical risk levels. It includes a policy_check utility to validate tool calls against allow/ask/deny logic. All processing is local and does not use external APIs or network calls.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Agent Manifest Hardening: Least-Privilege Lint and Policies skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What kind of security risks does this skill help me find?

This skill scans your agent permissions for risks like broad access to folders or internal networks. It helps you shrink those permissions down to the bare minimum so your agent cannot accidentally delete files or access private data it does not need.

### What do I need to provide to get started?

You only need to provide a manifest file in JSON format that lists your agent's tools and permissions. The skill uses Python to run its checks, but it does not require any external accounts or internet access to work.

### What files or reports will I get at the end?

You will receive a hardened permission file and a runtime policy that tells your agent when to allow a tool call, when to block it, and when to ask you for permission. You also get a report showing the risks found and the results of tests that tried to trick the new rules.

### Are there any types of security threats this skill cannot stop?

While it creates strict rules for tool calls, it is not a full sandbox. It cannot resolve things like symlinks or verify what happens inside a permitted call, and it will never widen your permissions just to make a test pass.

### How do I tell my agent to start the hardening process?

You can simply tell your agent to lock down its permissions using this skill. It will then walk you through providing your manifest file, answering risk level questions, and reviewing the new security policy.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
