promptfoo red teaming for AI agents and RAG

Using promptfoo to test agents, MCP servers, coding agents and retrieval-augmented applications for authorization failures, injection through tools and documents, and memory attacks.

Red teaming LLM agents with promptfoo

Planning a promptfoo red team for a tool-using agent: privilege escalation, tool and API manipulation, multi-stage attack chains, and combining end-to-end, component and trace-based tests.

Security testing MCP servers with promptfoo

Testing Model Context Protocol servers and the agents that call them: trusted-client testing, tool poisoning across multiple servers, direct MCP testing and running these checks in CI.

Red teaming RAG applications with promptfoo

Testing retrieval-augmented chatbots and search assistants for prompt and context injection, data exfiltration, fabricated citations and context overflow, end to end or component by component.

Testing RAG document poisoning with promptfoo

Using promptfoo redteam poison to create poisoned documents, adding them to a test knowledge base and checking whether the application follows them, plus the data that leaves for hosted generation.

Testing indirect prompt injection with promptfoo

Checking whether text from documents, emails, web pages or profile fields can take over an LLM application: choosing the injected variable, realistic payload placement and what a pass looks like.

Testing agent memory poisoning with promptfoo

Checking whether a stateful agent can be taught harmful instructions that persist into later sessions, how the memory poisoning plugin structures the test and what the agent needs to expose.

Red teaming coding agents with promptfoo

Testing coding agents for repository prompt injection, secret leaks, sandbox escapes and CI exfiltration with promptfoo coding agent plugins, and using traces and file hashes as evidence.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.