DontFeedTheAI: Local Anonymization Proxy for AI-Assisted Pentesting
Open-source proxy strips IPs, credentials, and hostnames before requests reach Claude or OpenAI, using a local Ollama model plus regex fallback.
Security researcher zeroc00I has released DontFeedTheAI, a transparent proxy that intercepts every request bound for an LLM API, replaces sensitive pentest data with surrogates, and restores the originals in the response. The tool runs entirely on the operator's machine — nothing sensitive leaves the boundary.
Two-layer detection pipeline
The proxy chains a local Ollama model with a regex layer. The LLM catches hostnames, organization names, and credentials embedded in prose; the regex layer catches IP addresses, hashes, tokens, and API keys. Both detectors execute locally, so raw client infrastructure data never crosses the network to Anthropic, OpenAI, or OpenRouter.
Each engagement gets its own vault, so surrogate mappings stay isolated between assessments. The architecture is documented in docs/architecture.md.
Deployment: VPS or fully local
A single wizard.py script handles the entire setup. For team or persistent engagements the wizard provisions a VPS, opens an SSH tunnel, and launches Claude Code with the proxy active:
git clone https://github.com/zeroc00I/DontFeedTheAI
cd DontFeedTheAI
python3 wizard.pyFor a purely local workflow the same script creates a virtual environment, starts the proxy and Ollama in Docker, and sets the required environment variables:
python3 wizard.py setup
python3 wizard.py docker up
export ANTHROPIC_BASE_URL=http://localhost:8080
export ENGAGEMENT_ID=my-engagement
claudeThe proxy speaks the OpenAI-compatible API, so it works with Claude Code, the OpenAI SDK, OpenRouter, Requesty, and any other client that targets that interface. Provider-specific notes live in docs/providers.md.
Verifying coverage
Three built-in tools let operators audit and improve detection without guessing.
Visual audit dashboard
Running python3 wizard.py tunnel --audit opens a browser page that shows every ORIGINAL → SURROGATE mapping logged during the session, filterable by entity type (DOMAIN, CREDENTIAL, TOKEN, HASH, etc.) with per-request timing. The dashboard is a debug tool — it exposes the full lookup table, so it only runs behind the SSH tunnel.
Integration test suite
python3 wizard.py test --integration runs 53 fixtures through the complete pipeline (LLM + regex) and asserts zero leaks. Without the flag the LLM is mocked and only the regex layer is validated, which is faster but not a substitute for the full run.
Regex improvement loop
python3 wizard.py improve --cycles 3 executes the regex layer against all fixtures, reports leaks and false positives, and prints the exact strings that slipped through. The contribution cycle: add a fixture for a real tool output, run the loop, add a regex pattern for each leak, repeat. The two commands complement each other — improve tightens the regex floor quickly; test --integration confirms the full pipeline holds.
Threat model and limitations
The project's threat model explicitly states what the proxy protects against and what it does not. It does not protect against leaks inside the LLM provider's infrastructure once surrogates arrive, nor against side channels such as timing or token-length analysis. The author, a practicing pentester, notes that the goal is to make the architecture available so the community can expand effectiveness without sending data to yet another third-party anonymization API.
Sources
Related news
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.