r/DeepSeekHarness • u/New_Guitar_9121 • 23h ago
My Plugin My local DSH home lab (M3 Ultra + M5 Ultra over Thunderbolt) and the plugin I built so the model can't read my keys
The lab
• Mac Studio, M3 Ultra, 256 GB: runs DeepSeek Harness (web UI on loopback only) and the main model, a DeepSeek V4 Flash build ("Flash2").
• Mac Studio, M5 Ultra, 512 GB: the heavy box, reached over a Thunderbolt cable. It serves DeepSeek V4.1 Flash (MLX) and a Qwen3.8-27B pool that handles about 8 concurrent agents.
• Routing: the lead agent runs on the Flash models, and every subagent is pinned to the Qwen pool. Nothing goes to a cloud model.
Why I built the plugin
Out of the box, DSH's file tools can read any file in every permission mode (~/.ssh, ~/.aws, .env, other agents' transcripts), web_fetch runs without approval,
and the telemetry plugins are mounted by default. On a box full of keys, that wasn't acceptable.
dsh-hardening-kit (MIT, plugin + two CLIs):
• Refuses reads of credential stores and agent transcripts: file tools, shell commands and search
• Asks before a web_fetch whose URL could carry data out
• Strips DSH's telemetry and identity headers; profile rows turn the uploaders off
• Masks secrets in tool results using gitleaks' rules (withheld if the scan times out)
• Fails closed: if the guard can't prove it's active, DSH doesn't start (exit 78)
• harden-check audits your profile in one command; dsh-guarded --sandbox adds an OS sandbox
Result on my setup: zero cloud logs. lsof shows DSH talking only to loopback (the local models and the Mullvad lane).
Honest limits
Without the sandbox, command checks read the command text, so a cleverly built command can slip past. And on macOS the sandbox can't fence the network while you serve a model on 127.0.0.1, which is exactly my setup. Both are in the README's Limits section.
No runtime dependencies. CI runs it against real DSH (latest/next/alpha) every day on macOS and Linux.
https://github.com/abm9111/dsh-hardening-kit
Reports are very welcome (private vulnerability reporting is on).