capture0x/redwitness
Security & PrivacyPenetration testingSelf-hosted platform that red-teams LLM chatbots, RAG apps and agents under signed scopes and verified evidence.
What it does
RedWitness is a self-hosted web platform for authorized penetration testing of LLM applications: chatbots, RAG pipelines, agents and MCP servers. It sends adversarial prompts from a versioned test library to a target, then decides whether the response broke a rule and reports only findings that survive replay. Results are mapped to OWASP LLM Top 10, MITRE ATLAS and NIST AI RMF, and can be exported as client PDF/Word reports, technical PDF/CSV or SARIF for CI.
The safety model is the distinguishing part. A scan can only run under a signed, immutable scope (HMAC-SHA256) that fixes the target, allowed attack categories, time window and request budget; a governor enforces those limits on every request with rate limits, a kill switch, a circuit breaker and IP pinning. Verdicts are layered: deterministic rules check tool calls, canaries and Markdown exfiltration first, an LLM judge must quote the reply verbatim, and findings are replayed in fresh conversations before being marked verified (how a scan works).
It suits security teams and consultants who must produce defensible, reproducible assessments, not just a probe count. It is not a quick CLI fuzzer; the comparison table positions it against promptfoo, garak and PyRIT as the audit-oriented web platform (comparison).
Quick start
Prerequisites: Docker with Compose v2, a free port (default 3000), and ideally an API key for a strong judge model.
git clone https://github.com/capture0x/redwitness.git && cd redwitness
./install.sh
The installer checks Docker, writes .env with random secrets and asks for the judge key, UI port, and whether to enable the optional sandbox and browser runners. When it finishes, open the printed address (default http://localhost:3000), sign in as admin and continue from the dashboard.
A Debian package is available from Releases; install it with sudo apt install ./redwitness_*_all.deb and start redwitness.
To try the platform without any API key, run ./install.sh --demo (or docker compose --profile demo up -d on an existing install). The demo starts a deliberately vulnerable fake chatbot and a fake judge; press Try the demo, review the scan, tick the authorization box and sign it. Within about a minute you get verified findings for prompt injection, sensitive data and system prompt leakage (demo steps).
For a first real scan: configure Settings → Judge LLM with a provider and model, then New Test → Quick scan, enter the target URL and credentials, review the plan, sign the scope and start. A Quick scan runs roughly 30 probes of the OWASP kit plus jailbreak techniques; Full scan runs the extended kit with a larger budget.
Usage notes
- Targets: OpenAI chat-completions, Anthropic messages, any JSON chat API over HTTP POST or WebSocket, or a web chat widget driven by the optional headless browser runner. Custom and web targets do not support fake-tool, image or audio cases, and forms or
multipart/form-databodies are not supported. - Judge quality matters: the judge is a separate LLM that must quote the reply; small or local models cause false negatives, and the UI warns when it detects one. Author-reported measurement on 59 hand-labelled examples reached 95% correct verdicts with Claude Sonnet and 85% with Claude Haiku, with no wrong verdict in either case; the authors state the dataset is small and not an independent benchmark (judge accuracy).
- Known limits: the OWASP matrix is evidence mapping, not a compliance certificate; LLM03/LLM04/LLM08 are only partly testable through a black-box API; target credentials are kept in memory and must be re-entered after a restart; advanced modules have been tested against scripted targets and small local models, not strong production models (known limits).
- Deployment: PostgreSQL and the API are not exposed to the host; the UI binds to
127.0.0.1only, so remote access needs a TLS-terminating reverse proxy andREDWITNESS_COOKIE_SECURE=1. RBAC has viewer, operator and admin roles, with scope signing restricted to admins. - Local models: a backend container cannot reach host
localhost; usehttp://host.docker.internal:11434/v1and, on Linux, addextra_hostsfor the gateway (local model setup). - License: AGPL-3.0, so network-hosted modified versions must publish their source.
Operations
Day-to-day commands are Compose-based: docker compose stop/start, docker compose logs -f backend, and git pull && docker compose up -d --build to update. Back up with docker compose exec db pg_dump -U redwitness redwitness > backup.sql. The scope signing keys in .env must be backed up too; losing them means previously signed scopes no longer verify. CI integration uses scoped, expiring API tokens against /api/scan-ci, and an incomplete scan never passes the gate.
HotRepo's take
The project entered HotRepo's new-project Python list on 2026-12-03 with 7 stars added over roughly 3.5 hours, and the recent sampling moved the count from 101 to 108. There is no recorded GitHub all-language daily rank and no discussion thread, so the available signal is a single short growth window rather than a trend.
What is observable in the repository is unusually concrete for a young project: a Docker Compose install path with a demo that needs no API key, a hermetic backend test suite described as about 975 tests, an isolated browser end-to-end run with 298 UI checks, and documented judge-accuracy and known-limits pages. Those are the parts most worth reviewing for a security team evaluating whether the platform's claims about scope enforcement and replay verification hold in practice.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- usestrix/strixAutonomous AI agents that run dynamic penetration tests against code, web apps and APIs, validating findings with proofs-of-concept.
- sresarehumantoo/ARTEX-CCMCP server exposing pentest tooling and engagement tracking to Claude Code for authorized security testing.
- KeygraphHQ/shannonAn autonomous agent that reads your web app's source, then runs real exploits against a staging copy to prove vulnerabilities.
- vxcontrol/pentagiLets security teams run an autonomous, self-hosted multi-agent pentest that drives real tools like nmap and Metasploit against authorized targets.
- Monesgoda/AgntX-HunterAn OpenCode-based framework that coordinates 17 scope-gated offensive-security agents for authorized pentests and bug bounties.