AI Agent Hub
Back to plugins
🧩

dsh-prompt-antivirus

admin-security Updated 2026.08.31

Run the following command in DeepSeek Harness:

dsh plugin install QinpanWan/dsh-prompt-antivirus

Paste the following prompt into your AI chat to install this plugin:

Search for this plugin in the DeepSeek Harness plugin marketplace (source: https://github.com/QinpanWan/dsh-prompt-antivirus), install it, then restart dsh web to activate.

About this plugin

Prompt injection is the core soft spot of LLM agents: the model cannot distinguish instructions from data, so a malicious snippet buried in a web-search result, a file read, or a scheduled-task reminder can quietly alter behaviour, exfiltrate data, or trigger destructive actions. dsh-prompt-antivirus inserts a defence line both before and after data reaches the model, turning that vulnerability from a matter of luck into a matter of strategy.\n\nThe plugin mounts at the profile layer and applies globally to every dsh preset and sub-agent. Four hook-level guardrails intercept direct injection in tool arguments, indirect injection in tool results, untrusted messages about to enter the model context, and outbound streaming text. A canary trap is injected once per session so that if the guard string ever appears in model output the stream is cut immediately. Three operational modes (quarantine, block, monitor) let operators dial in the level of intervention, while high-severity hits on dangerous tools such as send_email, apply_patch, and delete_* are escalated to a human approval gate. The signature library lives on disk and supports runtime hot-learn, export, and import, so a newly discovered attack pattern takes effect without a restart. Every decision is written to a JSONL audit log for post-incident review.\n\nIt is intended for any dsh-based agent that ingests untrusted external content: web search results, file operations, cron-task payloads, third-party API responses, and the like. It does not claim to be a silver bullet. Signature matching reliably catches known phrasings, but adversarial paraphrasing can still slip through. Layered on top of a minimal-privilege tool set and human confirmation for destructive operations, it forms a practical, architecturally sound line of defence against context-virus attacks.

Use Cases

  • Intercept prompt-injection payloads when agents process web-search results or file I/O
  • Trigger quarantine and replacement when cron tasks or external API responses carry attack text
  • Scan high-risk tool parameters before execution and escalate to a human approval gate
  • Detect canary-string leakage in outbound streaming output and abort the stream immediately

Best For

  • Teams building dsh agents that ingest untrusted external content
  • Operators who need a single global security policy spanning every preset and sub-agent
  • Architects focused on narrowing the LLM attack surface with auditable compliance trails