Who it is forA security-minded developer who is about to share or publish an agent configuration and wants it checked first.
The problemAgent configuration files mix prompts, hooks, MCP settings, and permissions, and it is easy to leave a secret or an overly broad permission in place.
The outcomeA scan report that lists findings across prompts, hooks, MCP config, permissions, secrets, and agent files.
What you need first
- Node.js 18 or newer
- Git on PATH
- Claude Code 2.1 or newer for plugin setup
- Access to github.com and npm to fetch the official ECC packages
Steps
- Open a terminal in the project folder that holds your agent files.
- Run
npx ecc-agentshieldto start a scan of the current folder. (inferred, check the README) - Read each finding and note the file it points to.
- Remove or rotate any exposed secret, and tighten any permission the report flags.
- Rerun the scan until the findings you accept are the only ones left.
Prompt for your agent
Using the ecc-agentshield package from the ECC project, scan <project-path> for issues in prompts, hooks, MCP config, permissions, secrets, and agent files. Return a list of findings with file paths and confirm that no secret values appear in your output.
Caveat. The README lists what AgentShield scans but does not say it fixes findings, so you still need to review and change the files yourself.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for affaan-m/ECC and "Scan agent prompts, hooks, and permissions for security issues"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer