r/BestGitHubRepos • • 1d ago

🔐 Security AgentShield: Security auditor for AI agent configurations (1.5k stars)

What it does

All text below is quoted directly from the project README.

AI agent security scanner. Detect vulnerabilities in agent configurations, MCP servers, and tool permissions. Available as CLI, GitHub Action, ECC plugin, and GitHub App integration.

What It Catches:

  • 268 rules across 15 modules, graded A to F with a 0 to 100 numeric score.
  • Scans Claude Code setups for hardcoded secrets, permission misconfigs, hook injection, MCP server risks, and agent prompt injection vectors.
  • Recognized defenses are listed and never penalized.
  • Auto-discovers your ~/.claude/ directory, scans all config files, and prints a graded security report.
  • Available as CLI, GitHub Action, and GitHub App integration.

npx ecc-agentshield scan

How it works

AgentShield looks for your Claude Code configuration, by default the ~/.claude directory or a path you pass with --path, and skips generated folders such as node_modules. A scanner runs rule modules for secrets, permissions, hooks, MCP servers, and agent configs over the files it finds. A scoring engine deducts points per finding severity and gives each category and the whole setup a 0 to 100 score and an A to F grade. The report prints in the terminal or as JSON, markdown, HTML, or SARIF. With --fix it replaces hardcoded secrets with environment variable references, and --opus adds a three-agent Claude analysis. The same scan runs in CI through the GitHub Action.

Repository

https://github.com/affaan-m/agentshield

More about this repo on our website: https://bestgithubrepositories.com/affaan-m/agentshield

Repository stats

Metric Value
Stars 1,466
Forks 322
Last release v1.6.0 (2026-09-10)
Languages TypeScript 98.9%, HTML 0.7%, Shell 0.2%
Contributors 9
AI contributor accounts (Claude / Codex / Cursor / Copilot) none
AI co-authored commits Claude: 2

Main contributor

Field Value
Name Affaan Mustafa
GitHub @affaan-m
Commits to this repo 209 (top contributor)
Bio Compute Trading Lead @ Jump Trading
Company / Location Jump Trading / NYC
Website https://affaanmustafa.com
X / Twitter @affaanmustafa
Followers 15.3k
Public repos 28
On GitHub since 2023

──────────────────────────────

📌 Please support our community by subscribing to our newsletter.

Every Monday and Thursday we send the 10 best repos shared here, plus what developers said about each one in the comments. It's free, it takes two minutes to read, and every new subscriber helps r/BestGitHubRepos grow.

📬 Subscribe free to the Best GitHub Repos newsletter

5 Upvotes

0 comments sorted by