{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "affaan-m-ecc--scan-agent-config-with-agentshield",
 "repo": "affaan-m/ECC",
 "repo_url": "https://github.com/affaan-m/ECC",
 "repo_slug": "affaan-m-ecc",
 "title": "Scan agent prompts, hooks, and permissions for security issues",
 "page_title": "How to scan agent prompts, hooks, and permissions for security issues with ECC",
 "summary": "Run AgentShield over an agent setup to check prompts, hooks, MCP config, permissions, and secrets.",
 "who": "A security-minded developer who is about to share or publish an agent configuration and wants it checked first.",
 "problem": "Agent configuration files mix prompts, hooks, MCP settings, and permissions, and it is easy to leave a secret or an overly broad permission in place.",
 "outcome": "A scan report that lists findings across prompts, hooks, MCP config, permissions, secrets, and agent files.",
 "steps": [
  "Open a terminal in the project folder that holds your agent files.",
  "Run `npx ecc-agentshield` to 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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/affaan-m-ecc/scan-agent-config-with-agentshield/",
 "md": "https://dedupedai.com/use-cases/affaan-m-ecc/scan-agent-config-with-agentshield/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/affaan-m-ecc--scan-agent-config-with-agentshield.json",
 "api_version": "v1"
}
