sashankh/dsh-taintguard

sashankh★ 0TypeScript最后同步: 2026-08-16

在 GitHub 打开

Indirect prompt-injection guard for DeepSeek Harness: taints tool output by origin, gates privileged calls that follow untrusted content, and refuses credentials heading off the machine.

README 摘要

dsh-taintguard Indirect prompt-injection guard for DeepSeek Harness. An agent that browses the web or reads a repository puts third-party text into the same channel that carries its operator's instructions. A model has no reliable way to tell them apart, so a page, a README, or an MCP tool result can ask the agent to run a command or post a file somewhere. This plugin does not try to make the model immune to that. It narrows what the retrieved text can reach: it marks the agent once a tool result arrives from an untrusted source, gates the privileged calls that follow, and refuses outright when credential material appears in an argument heading off the machine. Measured, not asserted Run against AgentDojo v1.2.1 — the benchmark CaMeL and Fides both report on. Full method, caveats, and reproduction in eval/ ; no API key required. Measurement Result Attack payloads caught by the content detector 35 / 355 — 9.9% Benign environment strings falsely flagged 0 / 345 — 0.00% Attack payloads arriving through an observed reader tool 355 / 355 — 100% Consequential calls gated once origin tainting is on 80 / 82 — 97.6% Two conclusions, both uncomfortable, both worth stating plainly: The patter…

在 GitHub 查看完整 README →
Agent/智能体agent-securityai-securitydeepseek-harnessdshdsh-pluginguardrailsprompt-injectionagent

分类