DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to scan agent prompts, hooks, and permissions for security issues with ECC

Run AgentShield over an agent setup to check prompts, hooks, MCP config, permissions, and secrets.

Short answer: Open a terminal in the project folder that holds your agent files; then run npx ecc-agentshield to start a scan of the current folder; read each finding and note the file it points to. All steps.

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

  1. Open a terminal in the project folder that holds your agent files.
  2. Run npx ecc-agentshield to start a scan of the current folder. (inferred, check the README)
  3. Read each finding and note the file it points to.
  4. Remove or rotate any exposed secret, and tighten any permission the report flags.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer