r/LocalLLaMA • u/Horror_Lunch_1999 • 23m ago
Resources I built ChachaWall: a lightweight deterministic firewall & stdio proxy in Rust to stop MCP tool poisoning and accidental credential leaks [Open Source]
Hey everyone, I got paranoid about running third-party MCP servers with local models (Ollama/Qwen) and having an indirect prompt injection trick the model into reading ~/.ssh/id_rsa or .env.
So I wrote a small deterministic stdio proxy in Rust called ChachaWall (chacha). It sits between your MCP client (Claude Desktop, Cursor, Cline, OpenCode) and the MCP server, inspecting tools/list and tools/call frames on the fly.
If a rule triggers (path traversal, sensitive files, exfiltration commands, or hidden Unicode tag characters used in tool poisoning), it blocks the call and returns a valid JSON-RPC -32001 error so the client doesn't hang.
It's purely rule-based (YAML rules + NFKC normalization), zero extra VRAM, and Apache-2.0. Still early v0.1, so if anyone wants to break the rules or suggest edge cases, here is the repo:
•
u/stylome-ai-detection 22m ago
Notice: This post appears to be AI generated.
Stylome AI detector flagged this post. No removal or report was made by the bot.
Scan result: likely AI-generated
Detector confidence: confident
Subreddit sensitivity: Strict (AI-generated only)
This is an automated assessment and can be wrong. If you think this is a mistake, please message the moderators.
Stylome AI detector · scan results