affaan-m/agentshield
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 solves
AgentShield is a security auditor designed to protect AI agent configurations, specifically targeting Claude Code setups. It prevents security breaches by scanning for hardcoded secrets, overly permissive tool permissions, malicious hook injections, and risky Model Context Protocol (MCP) server configurations that could lead to remote code execution (RCE) or data exfiltration.
How it works
The tool scans the .claude/ directory and associated configuration files (such as settings.json and CLAUDE.md) using a library of 102 security rules. It categorizes findings into five areas: secrets detection, permission audits, hook analysis, MCP server security, and agent configuration review. It provides a graded security report (A–F) and can automatically fix safe issues, such as replacing hardcoded secrets with environment variable references.
Who it’s for
It is intended for developers and security engineers who use AI agents (specifically Claude Code) and want to ensure their agentic workflows are secure and free from vulnerabilities before deployment.
Highlights
- Comprehensive Rule Set: Covers 102 rules across secrets, permissions, hooks, MCP servers, and agent prompts.
- Multi-platform Support: Available as a CLI, GitHub Action, and GitHub App.
- Automated Remediation: Includes a
--fixflag to automatically resolve common security issues. - Advanced Analysis: Offers an "Opus 4.6" adversarial analysis mode using Anthropic's models for deeper inspection.
- Supply Chain Verification: Scans MCP package references and queries npm for provenance and maintenance metadata.
Related
- Project
- Project
- Project
- Project
- Dispatch