injection-shield
PLUGINInjection-Shield — defends Ulpi agents against prompt-injection attacks via tool outputs and untrusted content.
by MOTHR · v0.9.1
What it does
Injection-Shield — defends Ulpi agents against prompt-injection attacks via tool outputs and untrusted content. Validates LLM responses, audits risky tool calls.
Modes: audit / enforcement. Disclosure — injection-shield sees every tool call and tool result, MCP tool descriptions, each user prompt with its conversation history, and every model reply.
It adds a firewall instruction block to each prompt as hook context. It installs no cron or launchd jobs.
Disclosure — privacy-shield sees every user message, outgoing LLM request and assistant reply. Its llm_request middleware rewrites the user messages in each cloud request (current prompt, earlier turns and injected context; Ollama is exempt) to replace detected personal data with tokens, and its transform_llm_output hook puts the real values back into replies on whitelisted channels (telegram, desktop, cli, kanban by default; cron only when you opt in) and always into subagent results returned to the parent agent, which then reach the model unmasked as tool output.
How to set it up
In enforcement mode it can block tool calls and replace suspicious tool results or model output (the default is audit mode, which only logs); with set it also blocks terminal, write_file and execute_code calls whose findings reach that severity while in audit mode.
enforce_min_severityWhen you set and, it sends alert summaries (violation types, counts and time, no matched text) to with your own bot token.
INJECTION_SHIELD_TELEGRAM_CHAT_IDINJECTION_SHIELD_TELEGRAM_BOT_TOKENapi.telegram.orgIts dashboard/Desktop controls pane saves settings into under.
config.yamlplugins.entries.injection-shield
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve