Works with the AI Agents you already use
agentguard security
Zero-trust security auditor for AI agents that detects secret leaks, blocks dangerous shell commands, and generates policies.
$5
agentguard security
Example session with this skill installed
Run a security audit on the current directory and generate a security policy for Claude Code to ensure SOC2 compliance.
- Read your context and instructions
- Compiled the agentguard security
I have completed the security audit of the repository and generated the requested compliance artifacts.
Security Audit & Policy Generation Results
Audit Summary
| Severity | Category | Finding | File Path |
|---|---|---|---|
| CRITICAL | Secret Leak | Hardcoded Anthropic API Key | .env.backup |
| HIGH | Dangerous Cmd | curl | bash detected in setup script | scripts/install.sh |
| MEDIUM | Injection | Stealth unicode chars in README | README.md |
Generated Security Policy (security_policy.md)
# AgentGuard Security Policy: Claude Code
## Zero-Trust Constraints
- **Identity:** All actions must originate from Process PID 48292.
- **Command Whitelist:** `ls`, `cat`, `grep`, `git status`, `npm test`.
- **Banned Patterns:** `rm -rf`, `mkfs`, `nc -e`, `> /dev/sd*`.
## Compliance Mapping
- **SOC2 CC6.1:** Requirement for logical access restricted via vaulting.
- **OWASP Agentic Top 10:** Protection against prompt injection (LLM01).
## Human-In-The-Loop (HITL) Requirements
All `npm install` and `git push` actions require explicit user confirmation via the `ag wrap --hitl` shim.
Next steps
- Delete the plaintext API key found in
.env.backupand move it to your secure environment vault. - Review the flagged
curl | bashinscripts/install.shto ensure it points to a trusted, checksum-verified source. - Run
python3 scripts/verify.pyto confirm the shell shim is correctly intercepting Claude Code commands.
Connects securely to your tools. The creator never sees your data.
About this skill
AI coding agents often operate with excessive permissions, creating risks of accidental deletions, credential theft, or prompt injection. AgentGuard provides a zero-trust security kernel to audit your repository, harden agent workflows, and enforce strict execution policies.
What it does
- Static Security Auditing scans project directories for exposed API keys, database URIs, and AWS credentials.
- Destructive Command Detection flags dangerous shell patterns like recursive deletions, unverified remote scripts, and reverse shells.
- Sleeper Injection Analysis identifies system boundary spoofing and hidden unicode triggers in markdown or memory files.
- Policy Generation creates framework-specific security profiles and
security_policy.mdfiles mapped to SOC2 and ISO 27001. - Runtime Verification inspects active sessions to confirm shell shim interception and Human-in-the-Loop gate enforcement.
How it works
- Run
python3 scripts/audit.py .to perform a comprehensive security scan of your current project. - Use
python3 scripts/policy_gen.py --agent <type>to generate a tailored whitelist and security profile for your specific editor or CLI. - Execute
python3 scripts/verify.pyto check the status of taint tracking, background daemons, and shell shims. - Apply remediation steps by moving plaintext keys to vaulted environments or wrapping high-impact commands in interactive gates.
Frameworks & tools
This skill supports Claude Code, Cursor, Antigravity, OpenAI Codex, and Cline. It leverages Python-based auditing scripts and integrates with SOC2, ISO 27001, and OWASP Agentic Top 10 compliance standards.
Why this beats prompting it yourself
Generic prompts often miss stealthy threats like zero-width unicode characters or complex shell escapes. This skill uses dedicated scripts and a banned patterns catalog to provide systematic coverage that prompt-based instructions cannot match.
Use cases
- Audit a repository before allowing an autonomous agent to perform refactoring.
- Generate compliant security policies for enterprise SOC2 Type II environments.
- Prevent agents from executing accidental
rm -rfor unauthorized disk writes. - Harden agents against prompt injection attacks in multi-agent systems.
Known limitations
Requires Python 3 to run auditing and generation scripts. Detection is focused on shell-based and secret-leak vectors rather than application-layer logic flaws.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 17 days ago
- Software
Git
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.