README.md

July 8, 2026 Ā· View on GitHub

Awesome LLM Agent Security

Angryyyy

Awesome GitHub stars

A curated list of resources about LLM agent security, vulnerabilities, attacks, and their applications in cybersecurity.

šŸ“š Contents

šŸ” ResearchšŸŽÆ Threat ModelšŸ› ļø Build AgentšŸ“Š ResultsšŸ’¼ Solutions
Papers & PublicationsThreats & VulnerabilitiesDevelopment Guides for cybersecuritySuccessful casesTools Overview

šŸ”° Fundamentals

Basic Concepts

LLM Agent - is an intelligent system used by a large language model to perform tasks.

Note

MultiAgent: When there is an ensemble of many agents that perform one large task - this is called a multi-agent system. It is based on a large language model that is responsible for task planning and decision making.


Memory

Memory in autonomous agents can be categorized into two main types:

• Short-Term Memory: This refers to the agent's ability to utilize in-context learning, where it retains information temporarily during a single interaction. This is often limited by the model's context window, which restricts the amount of information it can process at once.

• Long-Term Memory: This allows the agent to store and recall information over extended periods. Long-term memory is typically managed through external vector stores, enabling the agent to retrieve relevant information quickly. This capability is crucial for tasks that require knowledge accumulation and recall over time.

Memory plays a vital role in how agents learn from past experiences, refine their actions, and improve their performance in future tasks.


Planning

Planning involves the agent's ability to break down complex tasks into manageable subgoals. This process can be enhanced through various techniques:

Task Decomposition: The agent can decompose a large task into smaller, more manageable steps. Techniques like Chain of Thought (CoT) prompting encourage the model to think step-by-step, making it easier to tackle complex problems.

Self-Reflection: Agents can evaluate their past actions, learn from mistakes, and refine their strategies. This iterative process helps improve decision-making and planning over time.

External Planning Tools: Some agents may utilize classical planning methods, such as the Planning Domain Definition Language (PDDL), to generate structured plans based on predefined domains.

Effective planning is essential for agents to navigate complex tasks and adapt to changing circumstances.


Action

Action refers to the execution of tasks based on the agent's planning and memory. This involves:

Tool Use: Agents can interact with external APIs and tools to gather information, execute code, or perform specific functions that extend their capabilities beyond what is encoded in their model weights.

ReAct Framework: This framework integrates reasoning and action, allowing agents to generate reasoning traces alongside their actions. This helps in understanding the rationale behind decisions and improving future actions.

Dynamic Interaction: Agents can adapt their actions based on real-time observations and feedback from their environment, allowing for more responsive and intelligent behavior.

LLM Agent module with methods of their application

šŸ”„ Framework Comparison

šŸ”„ Framework Comparison

FrameworkKey FeaturesFocus AreaLicenseLanguage SupportDistributed Systems
LangChain• Chain-based architecture
• Memory management
• Tool integration
General purpose LLM appsMITPython, JavaScriptLimited
AutoGPT• Autonomous goal pursuit
• Long-term memory
• Self-prompting
Autonomous agentsMITPythonNo
AgentGPT- Web-based interface
- Task decomposition
- Visual workflow
Task automationMITTypeScriptYes
BabyAGI- Task prioritization
- Simple architecture
- Learning focus
Research & EducationMITPythonNo
Lyzr- Enterprise security
- Scalable architecture
- Pre-built agents
Enterprise solutionsCommercialPythonYes
CrewAI- Multi-agent collaboration
- Role-based agents
- Team coordination
Complex workflowsApache 2.0PythonYes

Key Differences:

CategoryFeaturesExamples/Details
Architecture Focus• Task-oriented
• Chain-based
• Multi-agent
• Enterprise-grade
• BabyAGI, AgentGPT
• LangChain
• CrewAI
• Lyzr
Use Case Optimization• Research & Experimentation
• Enterprise Applications
• Personal Automation
• Educational Purposes
• Academic projects
• Business solutions
• Individual tools
• Learning platforms
Development Approach• Low-code solutions
• Programming-intensive
• Visual builders
• API-first design
• No-code platforms
• Custom development
• Drag-and-drop interfaces
• API integration
Deployment Options• Cloud-native
• Self-hosted
• Hybrid deployment
• Edge computing support
• Cloud platforms
• On-premise solutions
• Mixed environments
• Edge devices
Integration Capabilities• API connectivity
• Database support
• Third-party tools
• Custom extensions
• REST/GraphQL APIs
• Various DB systems
• External services
• Custom plugins

šŸ¤– LLM Agents in Cybersecurity

Agent Core Properties

Essential ComponentsDescription
Role DefinitionSpecific security function and responsibilities
Goal SettingClear security objectives and success criteria
BackstoryDetailed capabilities and operational context
Tools AccessIntegration with security tools and APIs
Key CapabilitiesDescription
Task InheritanceAbility to receive and delegate security tasks
Boundary ManagementOperating within defined security constraints
Tool UtilizationLeveraging security tools and APIs effectively
Collaborative AssessmentEvaluating and coordinating with other agents

Security Applications & Benefits

CategoryFeatures
Threat Detection & Response• Real-time monitoring and alert triage
• Automated incident response workflows
Security Operations• 24/7 autonomous security monitoring
• Automated routine security tasks
CategoryFeatures
Vulnerability Management• Continuous security assessment
• Automated vulnerability scanning
Incident Investigation• Automated evidence collection
• Timeline reconstruction

Advantages in Security Context

CategoryCapabilities
Enhanced Efficiency• Continuous operation without fatigue
• Rapid processing of security data
Improved Accuracy• Reduced human error
• Standardized analysis methods
CategoryCapabilities
Scalability• Handling multiple tasks simultaneously
• Easy deployment across systems
Advanced Capabilities• Complex pattern recognition
• Real-time threat analysis

Creation Methods

MethodDescription
Human-designedAgents with specific security roles
Auto-generatedAgents created by LLMs for specialized tasks
HybridApproaches combining human expertise and AI capabilities

Security Landscape

šŸ”’ OWASP Top 10 for AI Agents (Non official)

CategoryRiskDescription
AAC-01Authorization & Control HijackingUnauthorized control of agent actions
ACS-02Critical Systems InteractionUnsafe interaction with critical systems
AGI-03Goal & Instruction ManipulationMalicious modification of agent objectives
AHE-04Hallucination ExploitationExploitation of agent's false assumptions
AIC-05Impact Chain & Blast RadiusCascading effects of agent actions
AMC-06Memory & Context ManipulationTampering with agent's memory systems
AOR-07Orchestration ExploitationMulti-agent system vulnerabilities
ARE-08Resource ExhaustionDoS and resource depletion attacks
ASC-09Supply Chain AttacksCompromised dependencies and components
AKP-10Knowledge Base PoisoningContamination of agent's knowledge base

LLM Agent module with methods of their application

Practice Labs & Applications

ProjectTypeFeaturesPurpose
Damn Vulnerable LLM AgentEducational Lab- ReAct agent testing
- Prompt injection scenarios
- SQL injection practice
Learning prompt & ReAct injection techniques
MedusaTesting Platform- Agent vulnerability testing
- Security assessment
- Attack simulation
Practical security testing
PromptTraceTraining Platform- 10 attack labs
- 15-level CTF (The Gauntlet)
- Context Trace prompt stack visibility
Free hands-on AI security training aligned with OWASP Top 10 for LLMs

šŸ“š Research & Publications

Academic Papers

TitleAuthorsYearKey Findings
Internal Safety Collapse in Frontier LLMsWu et al.2026- Novel failure: task completion overrides safety
- Agents generate exploits/toxins autonomously
- Jailbreaks any frontier LLM in pass@3
- Code
Security Concerns with AI AgentsVPNRanks2024- 52.5% data leakage predicted by 2025
- Market growth to $7.41B
- PII exposure risks
Key Challenges in AI Agent SecurityTal Eliyahu2024- Confidentiality risks
- Integrity concerns
- Availability threats
Beyond RCE: Autonomous Code ExecutionSecurity Runners2024- Code execution risks
- Agent autonomy threats
- Security implications
Exploiting Huggingface's AssistantsLasso Security2023- Data extraction vulnerabilities
- Assistant exploitation
- Security measures

Security Tools & Frameworks

ProjectTypeDescriptionFeatures
HackSynthFrameworkAI security testing framework- Vulnerability assessment
- Attack simulation
- Security validation
OsintAGIToolOSINT automation framework- Intelligence gathering
- Data analysis
- Automated research
Agent-SmithSecurity ToolAgent security testing- Behavior analysis
- Vulnerability detection
- Security assessment
AI-OPSPlatformSecurity operations for AI- Threat detection
- Response automation
- Security monitoring
DarkmoonPlatformAutonomous AI pentest platform & MCP host- Per-tech offensive sub-agents
- Active Directory & Kubernetes
- Evidence trail per finding
- Orchestrates 80+ offensive tools
PentAGISecurity ToolAutomated penetration testing- Autonomous AI agents
- Professional security tools
- Comprehensive monitoring
TenuoAuthorization FrameworkCapability-based authorization for AI agents- Cryptographic warrants with task-scoped TTLs
- Offline verification
- Proof-of-possession binding
- LangChain/LangGraph/MCP integrations
APortRuntime Policy & VerificationRuntime policy and verification layer for AI agents and MCP-connected tools- Guardrails around tool use
- Policy enforcement
- Auditable runtime verification
Agent Threat Rules (ATR)Detection StandardOpen-source AI agent security detection rules- 108 detection rules for MCP/agent threats
- 62.7% MCP recall, 99.7% precision. 96.9% SKILL.md recall. Shipped in Cisco AI Defense
- OWASP Agentic Top 10 full coverage
- npm install & one-command scan
Viridis MCPMCP ServicesAristotle-verified attribution-enforcement MCP services for AI agents- /v1/injection/detect (T-IB-02)
- /v1/canon/scan (T-IB-05)
- /v1/maxwell/challenge (T-IB-09)
- Free tier, 7/7 corpus theorems formally proven in Lean 4 by Aristotle (Harmonic)

| Agent Memory Guard | Security Library | OWASP ASI06 memory poisoning defense for AI agents | - Memory integrity validation
- Poisoned memory detection
- LangChain/LlamaIndex middleware
- Audit logging & tenant isolation |

Benchmarks & Evaluations

ProjectFocusMetricsKey Features
Agent-AttackAttack TestingSecurity vulnerabilities- Attack vectors
- Defense evaluation
- Risk assessment
Auto-Pen-BenchPenetration TestingSecurity benchmarks- Automated testing
- Performance metrics
- Security scoring
ASBSecurity BenchmarkAgent security- Security metrics
- Performance analysis
- Vulnerability testing
LLM-Agent-BenchmarkComprehensiveAgent evaluation- Security testing
- Performance metrics
- Benchmark collection

Security Projects & Implementations

ProjectTypePurposeFeatures
Multi-Agent-SecOpsSecurity OperationsLLM-based security- Threat detection
- Response automation
- Security monitoring
Cyber-Security-LLM-AgentsSecurity FrameworkAgent-based security- Security automation
- Threat analysis
- Response coordination
Ridge SecurityPlatformAI security solution- Vulnerability assessment
- Security testing
- Risk management

Technical Presentations & Whitepapers

TitleOrganizationYearKey Topics
The Double AI AgentBlack Hat EU2024- Agent manipulation techniques
- Double agent scenarios
- Defense strategies
Mind the Data GapBlack Hat EU2024- Privacy in AI agents
- Multi-agent systems
- Security controls
Agentic AI: New FrontierAI Security Union2024- Security implications
- Future trends
- Risk analysis
Agent Security AnalysisarXiv2023- Security frameworks
- Vulnerability assessment
- Protection measures
Agent Behavior StudyarXiv2023- Behavioral analysis
- Attack patterns
- Security recommendations

Community Resources

That is AGI