# injection-shield

Injection-Shield — defends Ulpi agents against prompt-injection attacks via tool outputs and untrusted content.

- Type: Plugin
- Version: 0.9.1
- Updated: 22 Nov 2026
- Publisher: MOTHR
- Category: General

[Contact us](https://www.ulpi.io/en/support#contact)

## 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_severity
```

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

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

- [Instant Context Compactor](https://www.ulpi.io/en/marketplace/plugins/instant-context-compactor): Instant context compaction for Ulpi: builds the compaction summary in milliseconds with no LLM call, keeping the exact commands, exit codes, errors and files.
- [Interview Prep Coach](https://www.ulpi.io/en/marketplace/plugins/interview-prep-coach): Prepares the user for their own interview: researches only the people they will meet, from public professional sources; predicts and tiers likely questions.
- [invinoveritas-receipts](https://www.ulpi.io/en/marketplace/plugins/invinoveritas-receipts): Signed, independently checkable receipts for Ulpi approval verdicts and, since 0.2.0, for turns that stop on iteration exhaustion.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
