Publisher: Palo Alto Networks
Date: May 2025
Focus: Security risks in AI agentic systems
Context: Based on test deployments using CrewAI and AutoGen
1. Background: What Are Agentic AI Applications?
Agentic applications use LLM-powered agents that:
- Autonomously plan, reason, and act using external tools (e.g., APIs, databases, code).
- Orchestrate workflows across multiple agents to solve complex tasks.
- Rely on LLM instructions (“prompts”) as a kind of behavioral source code.
Key Risk Amplifier: These agents blend LLM vulnerabilities (e.g., prompt injection) with traditional software flaws (e.g., RCE, SQL injection), creating an expanded attack surface.
2. Key Threats in Agentic Systems
| Threat | Description | Common Vectors |
|---|---|---|
| Prompt Injection | Malicious inputs alter agent behavior | Hidden instructions, tool misuse |
| Tool Misuse | Exploiting tools to trigger unintended actions | Weak input validation |
| Intent Breaking | Manipulating the agent’s goals | Goal redefinition via prompts |
| Identity Spoofing | Impersonating agents or users | Credential theft, misconfigured auth |
| RCE (Remote Code Execution) | Executing arbitrary code | Unsafe code interpreter tools |
| Agent Communication Poisoning | Corrupting inter-agent messages | Delegated prompts |
| Resource Overload | Denial-of-Service via resource exhaustion | Looping prompts, data bloat |
3. Realistic Attack Simulations
Palo Alto simulated 9 attack scenarios using identical apps built in CrewAI and AutoGen:
1. Identifying Agents
Extracts agent names and roles via delegation or prompt manipulation.
2. Instruction Extraction
Leaks system prompts defining agent behavior, rules, and goals.
3. Tool Schema Leakage
Reveals tool names, input types, and purposes—enabling tool misuse.
4. Internal Network Access (SSRF)
Misuses web reader tool to fetch resources from internal IPs.
5. Sensitive File Exfiltration
Reads credentials mounted in containers via code interpreter.
6. Metadata Service Exploitation
Accesses cloud instance metadata to extract service account tokens.
7. SQL Injection
Exploits unsafe database queries to dump transaction records.
8. Broken Object Level Authorization (BOLA)
Accesses data from other users via insecure tool input (e.g., ID-based queries).
9. Indirect Prompt Injection via Web Content
Leverages malicious website content to force agents to leak conversation history.
Note: All attacks assume no prior session memory and rely on prompt-based or tool-based exploitation.
4. Core Mitigation Strategies
| Layer | Mitigation |
|---|---|
| Prompt Layer | Hardcode agent responsibilities; disallow self-disclosure or coworker info |
| Content Layer | Use filters to detect prompt injection, malicious content, and abuse patterns |
| Tool Layer | Sanitize inputs; validate types and formats; block special characters |
| Code Execution | Enforce container sandboxing, syscall restrictions, network egress controls |
| Authentication & Secrets | Use secret managers, DLP, and audit logs to detect credential misuse |
| Monitoring | Layered detection using tools like Prisma AIRS and Unit 42 Assessments |
5. Deployment Best Practices
- Avoid over-permissive prompts.
- Use guardrails for tool invocation.
- Regularly scan and fuzz tools for vulnerabilities.
- Adopt Zero Trust principles for agents — least privilege, restricted networking.
- Monitor agent-agent communication for poisoning patterns.
6. Conclusions
- Agentic systems dramatically increase the attack surface due to autonomous behavior and external tool integration.
- The vulnerabilities are framework-agnostic — rooted in bad practices, not in CrewAI or AutoGen.
- A defense-in-depth approach is critical, combining hardened prompts, tool validation, runtime filtering, and secure code execution environments.
- Use advanced runtime tools like Palo Alto Prisma AIRS for proactive detection and inline mitigation.
Leave a Reply