NEW Workflows: agents follow the steps, you sign off. Read more →
Ulpi

injection-shield

PLUGIN

Injection-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

  1. 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_severity
  2. When 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_ID
    INJECTION_SHIELD_TELEGRAM_BOT_TOKEN
    api.telegram.org
  3. Its dashboard/Desktop controls pane saves settings into under.

    config.yaml
    plugins.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

More in General

All listings →