A curated list of awesome frameworks, runtime sandboxes, zero-leak redactors, prompt injection defenses, database guardrails, and compliance benchmarks for Autonomous AI Coding Agents (Claude Code, Cursor, Windsurf, Devin, OpenHands, Aider, LangGraph, CrewAI).
Online Playground โข Documentation โข Trust Center โข Contributing
- Threat Models & Taxonomies
- OWASP LLM Top 10 (2025) Defense Matrix
- Runtime Sandboxes & Process Confinement
- Zero-Leak Secret Redaction & Env Defense
- Database Guardrails & Wire Proxies
- Context Compaction & Token Defense
- Model Context Protocol (MCP) Hardening
- Prompt Injection & Indirect Jailbreaks
- Red Teaming & Security Benchmarks
- Static Code Analysis for Agent-Generated Code
- Regulatory Frameworks & Compliance
- Interactive Playgrounds
- OWASP Top 10 for Large Language Models (2025) - Core classification including LLM01: Prompt Injection, LLM02: Sensitive Information Disclosure, and LLM06: Excessive Agency.
- MITRE ATLASโข (Adversarial Threat Landscape for AI Systems) - Comprehensive matrix mapping real-world adversarial tactics targeting AI-enabled systems.
- NIST AI Risk Management Framework (AI 100-1) - Guidance on managing cybersecurity risks in autonomous decision loops.
- CWE-77 / CWE-78 (Improper Neutralization of Special Elements used in a Command) - Critical root cause when agents generate raw shell instructions (
eval,sh -c).
Structured mapping of every OWASP Top 10 for LLM Applications (2025) risk category to concrete autonomous coding agent attack vectors and runtime controls:
| OWASP ID | Risk Category | Autonomous Agent Attack Vector | Runtime Defense Pattern | Reference Open-Source Tooling |
|---|---|---|---|---|
| LLM01 | Prompt Injection | Indirect tool-poisoning inside third-party MCP descriptions or repo files hijacking agent shell execution | Ephemeral MCP schema sanitization, Unicode smuggling stripping & strict command AST validation | SkillPrism, AgentShield |
| LLM02 | Sensitive Information Disclosure | Agents dumping .env, /proc/self/environ, SSH keys, or PII into LLM context & PR diffs |
Dual-pass zero-leak regex + Shannon entropy redaction & volatile surrogate masking | AgentShield, Gitleaks |
| LLM03 | Supply Chain | Unverified unsigned native binaries, unpinned CI actions, or tampered MCP packages | SHA-pinned workflows, SLSA provenance, CycloneDX SBOMs & unsigned binary policy gates | DevShelf, OpenSSF Scorecard |
| LLM04 | Data and Model Poisoning | Poisoned RAG documents, corrupted synthetic fixtures, or tainted local embeddings | Air-gapped deterministic evaluation benchmarks & immutable hash-chained audit ledgers | AgentShield, MockForge |
| LLM05 | Improper Output Handling | Unsanitized LLM-generated SQL DDL/DML or shell commands executed directly against host/DB | PostgreSQL Extended Query wire proxy (P/B/E) AST inspection & parameterized dry-run sandboxes |
DBShield, SQLFluff |
| LLM06 | Excessive Agency | Unconstrained DROP TABLE, bulk DELETE, curl | bash, or unauthorized cloud metadata access |
OS kernel sandboxing (Landlock/bwrap/Seatbelt), IMDS blocking & ChatOps 2-person approvals |
AgentShield, DBShield |
| LLM07 | System Prompt Leakage | Adversary extracting system guardrails, hidden tool policies, or internal credentials | Output secret redaction, strict role boundary enforcement & zero-secret prompt hygiene | AgentShield, PromptShield |
| LLM08 | Vector and Embedding Weaknesses | Cross-tenant retrieval leakage or adversarial context stuffing in vector indexes | Tenant-scoped session isolation, JIT progressive tool loading & schema compaction | SkillPrism |
| LLM09 | Misinformation | Hallucinated security claims, fabricated query plans, or unverified compliance assertions | Real EXPLAIN cost gates, pre-image state checksums & reproducible CI benchmark suites |
DBShield |
| LLM10 | Unbounded Consumption | Recursive MCP tool loops burning 100k+ tokens or full-table sequential scans locking prod DBs | Dynamic context window budgeting, JIT semantic receipts, SQL cost gates & statement timeouts | SkillPrism, DBShield |
Tools providing kernel-level process isolation, syscall filtering, and filesystem boundaries for autonomous coding agents.
- AgentShield - Enterprise-grade zero-leak secret defense, Landlock/seccomp kernel sandbox, and pseudo-terminal emulator for autonomous AI coding agents.
- gVisor - Application kernel written in Go that implements a substantial portion of the Linux system call surface for secure container isolation.
- Firecracker - Minimalist, secure MicroVM hypervisor written in Rust for serverless and agent confinement.
- nsjail - Light-weight process isolation tool using Linux namespaces, cgroups, and seccomp-bpf.
- Bubblewrap - Unprivileged sandboxing tool for Linux utilizing user namespaces to restrict directory hierarchies.
- E2B - Cloud sandboxing platform built for running untrusted AI-generated code in isolated environments.
Engines preventing agents from reading /proc/self/environ, executing echo $SECRET, or exfiltrating credentials across LLM boundaries.
- AgentShield Secret Redactor - High-performance dual-pass zero-leak redactor featuring linear-time token verification, environment variable spoofing, and HMAC-SHA256 audit ledgers.
- Detect-Secrets - An enterprise-friendly tool for finding and preventing secrets in codebases using entropy heuristics.
- TruffleHog - High-speed git secret scanner with 800+ detector types and credential live-verification.
- Gitleaks - Fast, lightweight tool for detecting hardcoded secrets like passwords, API keys, and tokens in repositories.
Proxy layers that inspect, validate, and intercept autonomous agent SQL queries before they touch production data.
- DBShield - Air-gapped database wire proxy that intercepts unindexed queries, blocks destructive
DROP/TRUNCATEoperations, and orchestrates two-man rule Slack approvals. - SQLFluff - Dialect-flexible SQL linter and AST security parser validating agent-generated database queries.
- Prisma Pulse Guard - Safe database interaction wrappers with row-level permission constraints.
Engines that compress agent context to prevent context-stuffing denial-of-service and minimize prompt exposure.
- SkillPrism - JIT progressive skill disclosure and context compaction engine, cutting agent context token overhead by up to 96.7% while preserving instruction fidelity.
- LLMLingua - Microsoft's prompt compression toolkit using small language models to remove redundant prompt tokens.
- Selective-Context - Context reduction method based on self-information evaluation.
Securing Anthropic's Model Context Protocol (MCP) tool servers and client transports.
- MCPBuilderKit - Production scaffolding and testing toolkit for Model Context Protocol servers with schema validation and authentication gates.
- MCP Official SDK - Official TypeScript and Python SDKs for Model Context Protocol.
- MCP Security Guidelines - Architectural specifications for server-client isolation and authorization scopes.
Gateways and guardrails detecting hostile instructions in user prompts and untrusted web inputs.
- NeMo Guardrails - NVIDIA's open-source toolkit for adding programmable guardrails to LLM conversational systems.
- Llama Guard 3 - Meta's fine-tuned model for input/output safety classification.
- Rebuff - Multi-layer prompt injection defense incorporating heuristic filtering, LLM detection, and vector canary tokens.
- Lakera Guard - Low-latency API layer defending against prompt injection and jailbreaks.
Frameworks and standardized empirical harnesses for adversarial testing of autonomous agents.
-
Agent Security Benchmarks (ASB) - Open-source, reproducible 500-vector evaluation suite assessing prompt injection (120), tool injection (100), data exfiltration (100), database destruction (90), and process/kernel escape (90) against agent firewalls and guardrails.
Defense System Architecture Block Rate (%) Prompt Inj. Tool Inj. Data Exfil DB Destroy Process Esc. P99 Latency AgentShield + DBShield Suite ebpf-kernel-sandbox100% 100% 100% 100% 100% 100% <0.09msLlamaGuard 3 (8B) guardrails-model41.8% 86.7% 54.0% 51.0% 0.0% 0.0% 314.8msNeMo Guardrails prompt-evaluator53.6% 83.3% 78.0% 56.0% 37.8% 0.0% 217.8msLangChain Secondary Judge guardrails-model41.4% 65.8% 56.0% 49.0% 25.6% 0.0% 567.7msUnprotected Baseline unprotected0.0% 0.0% 0.0% 0.0% 0.0% 0.0% <0.01msRun the suite yourself:
git clone https://github.com/RitualDev-Lab/awesome-ai-agent-security.git cd awesome-ai-agent-security/benchmarks npm test npx tsx src/cli.ts
-
AgentBench - Multi-dimensional benchmark evaluating LLMs as autonomous agents across operating system, database, and web environments.
-
HarmBench - Standardized evaluation framework for automated red teaming of large language models.
-
Garak - LLM vulnerability scanner checking for hallucinations, data leaks, prompt injection, and misinformation.
-
PyRIT - Python Risk Identification Tool for generative AI by Microsoft.
AST-level analyzers tailored for identifying insecure patterns in code generated by autonomous agents.
- WebSecAuditor - AST taint analysis and automated GitHub PR security gate detecting SQL injections, SSRF, and prototype pollution in agent pull requests.
- Semgrep - Fast, lightweight static analysis tool for finding bugs and enforcing code standards.
- Bandit - Security linter for Python code.
- India DPDP Act 2023 Compliance Controls - Data fiduciary obligations, consent architectures, and cross-border transfer boundaries for AI agents.
- EU AI Act (Regulation 2024/1689) - Risk classification hierarchy for high-risk and general-purpose AI models.
- SOC 2 Type II AI Controls - Trust services criteria mapped to automated agent execution logs and audit ledgers.
- RitualDev Adversarial Playground - Live, in-browser interactive terminal to test hostile agent payloads (AWS credential dumps,
/proc/self/environreads, ReDoS attacks) and observe real-time zero-leak redaction.
Contributions are welcome! Please read the Contributing Guidelines before submitting a pull request.
Add verifiable cryptographic defense, monetization, and catalog badges to your agent or tool README.md:
[](https://ritualdev.in/agentshield)[](https://ritualdev.in/mcp-builder)[](https://ritualdev.in/devshelf)[](https://github.com/RitualDev-Lab/awesome-ai-agent-security)To the extent possible under law, RitualDev Lab has waived all copyright and related or neighboring rights to this work.
If you find this project valuable, consider supporting our open-source development:
