Skip to content

About

A curated list of leading AI agent security tools, LLM guardrails, runtime firewalls, research papers, vulnerabilities, and defense frameworks.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Awesome AI Agent Security ๐Ÿ›ก๏ธ

Awesome PRs Welcome License: CC0-1.0 Maintained by RitualDev Lab

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


๐Ÿ“‘ Contents


๐ŸŽฏ Threat Models & Taxonomies


๐Ÿ›ก๏ธ OWASP LLM Top 10 (2025) Defense Matrix

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

๐Ÿ“ฆ Runtime Sandboxes & Process Confinement

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.

๐Ÿ”’ Zero-Leak Secret Redaction & Env Defense

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.

๐Ÿ—„๏ธ Database Guardrails & Wire Proxies

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/TRUNCATE operations, 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.

โšก Context Compaction & Token Defense

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.

๐Ÿ”Œ Model Context Protocol (MCP) Hardening

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.

๐Ÿ›ก๏ธ Prompt Injection & Indirect Jailbreaks

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.

๐Ÿงช Red Teaming & Security Benchmarks

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.

    ๐Ÿ“Š 2026 Agent Security Benchmarks Evaluation Matrix (500 Vectors)

    Defense System Architecture Block Rate (%) Prompt Inj. Tool Inj. Data Exfil DB Destroy Process Esc. P99 Latency
    AgentShield + DBShield Suite ebpf-kernel-sandbox 100% 100% 100% 100% 100% 100% <0.09ms
    LlamaGuard 3 (8B) guardrails-model 41.8% 86.7% 54.0% 51.0% 0.0% 0.0% 314.8ms
    NeMo Guardrails prompt-evaluator 53.6% 83.3% 78.0% 56.0% 37.8% 0.0% 217.8ms
    LangChain Secondary Judge guardrails-model 41.4% 65.8% 56.0% 49.0% 25.6% 0.0% 567.7ms
    Unprotected Baseline unprotected 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% <0.01ms

    Run 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.


๐Ÿ” Static Code Analysis for Agent-Generated Code

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.

๐Ÿ›๏ธ Regulatory Frameworks & Compliance


๐ŸŽฎ Interactive Playgrounds

  • RitualDev Adversarial Playground - Live, in-browser interactive terminal to test hostile agent payloads (AWS credential dumps, /proc/self/environ reads, ReDoS attacks) and observe real-time zero-leak redaction.

๐Ÿค Contributing

Contributions are welcome! Please read the Contributing Guidelines before submitting a pull request.


๐Ÿท๏ธ Embed Verifiable Badges in Your Repository

Add verifiable cryptographic defense, monetization, and catalog badges to your agent or tool README.md:

1. Runtime Sandboxing & Egress Defense

[![Secured by AgentShield](https://ritualdev.in/badge/secured-by-agentshield.svg)](https://ritualdev.in/agentshield)

Secured by AgentShield

2. Model Context Protocol (MCP) Monetization

[![Monetized with MCP](https://ritualdev.in/badge/monetized-with-mcp.svg)](https://ritualdev.in/mcp-builder)

Monetized with MCP

3. DevShelf Programmatic Registry A+ Verification

[![Verified by DevShelf](https://ritualdev.in/badge/verified-by-devshelf.svg)](https://ritualdev.in/devshelf)

Verified by DevShelf

4. Featured on Awesome AI Agent Security

[![Featured on Awesome AI Agent Security](https://img.shields.io/badge/Awesome-AI%20Agent%20Security-00F59B?style=flat-square&logo=shield)](https://github.com/RitualDev-Lab/awesome-ai-agent-security)

Featured on Awesome AI Agent Security


๐Ÿ“„ License

CC0

To the extent possible under law, RitualDev Lab has waived all copyright and related or neighboring rights to this work.



๐Ÿ’– Sponsor & Support

If you find this project valuable, consider supporting our open-source development:

Sponsor on Dodo Payments Interactive Donation Portal GitHub Sponsors


๐Ÿ›ก๏ธ Community & Governance

About

A curated list of leading AI agent security tools, LLM guardrails, runtime firewalls, research papers, vulnerabilities, and defense frameworks.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages