RedWitness is a self-hosted platform for authorized security testing of LLM applications: chatbots, RAG pipelines, AI agents and MCP servers. It attacks the target the way a real adversary would and reports only what it can prove.
How it works
- Signed authorization scope. Every run is bound to a scope that names the client, the approver, the endpoints, the allowed attack classes and the time window. The scope is cryptographically signed, and nothing outside it is ever sent.
- Attack library. Prompt injection (direct and indirect), jailbreaks, system prompt extraction, sensitive data and secret leakage, tool and function abuse, and unbounded consumption. Multi-turn and adaptive crescendo attacks are written live by an attacker model. You can import your own payloads and personas.
- Proof, not guesses. A judge model decides each case. A violation counts only when it is backed by a verbatim quote from the target's reply. Findings are then replayed to separate stable issues from one-off ones. Canary values and a built-in secret scanner catch leaked keys, tokens and passwords, including leaks the test was not looking for.
- Standards mapping. Every finding maps to the OWASP Top 10 for LLM Applications, MITRE ATLAS and NIST AI RMF, and comes with remediation guidance.
Targets
- OpenAI-compatible and Anthropic APIs
- Custom HTTP and WebSocket endpoints
- Chat widgets on a web page, driven by a sandboxed headless browser (signed-in sessions supported)
- MCP servers: static and dynamic audit for tool poisoning, command injection, path traversal, SSRF and secret exposure
Built for teams and pipelines
- Quick scan for a first look at a new target
- Role-based access and a full audit log
- SARIF export for code scanning
- Signed webhooks for Slack, Teams and Mattermost
- CI scan API with fail-on-severity gates
Install
Runs with Docker Compose or as a Debian package. API keys are never stored, only the name of the environment variable that holds them.
Source and releases: https://github.com/capture0x/redwitness




