# injection-guard

Prompt-injection firewall for tool output.

- Type: Plugin
- Version: 0.1.1
- Updated: 22 Nov 2026
- Publisher: moneya
- Category: Tools

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

## What it does

Prompt-injection firewall for tool output. A tool_execution middleware scans results from web, browser, file-reading and mail tools for instructions addressed to the model, redacts the matched spans, strips zero-width and bidi characters, HTML comments carrying instructions, CSS-hidden text and oversized base64 blobs, then wraps what remains in a labelled untrusted- data envelope.

Fully local and deterministic: seven weighted signal families with a default threshold of six, so one strong signal or two medium signals trip it; no network calls, no API calls, and no model in the decision path. Ships a read-only injection_guard_stats tool and a /guard command, and appends one audit line per block carrying signal names and scores only — never the offending text.

Embedded envelope markers are defused before wrapping, so a payload cannot close the untrusted block early. For tools listed in file_reader_tools the destructive family is exempt, because redacting a local migration or deploy script would corrupt it if the model rewrote the file; instruction-override and concealment still fire on reads.

Disclosure — it rewrites tool results before the model reads them, which is the purpose of the plugin and does change the content the model receives; detection is pattern-based, so a novel phrasing that avoids every rule will pass, and the guard covers the tool path only, not text a user pastes into chat.

## Tools it adds

The tools an agent gets once this plugin is installed.

- `injection_guard_stats`

## 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 Tools

- [injection-range — prompt-injection fire drill](https://www.ulpi.io/en/marketplace/plugins/injection-range-prompt-injection-fire-drill): A prompt-injection fire drill for your own agent.
- [Inkly](https://www.ulpi.io/en/marketplace/plugins/inkly): Inkly lets you send, track, and manage documents for eSignature.
- [innernet](https://www.ulpi.io/en/marketplace/plugins/innernet): One memory for every AI tool: load a project's context, answer from what was decided before, save new decisions back, and pick up where the last session left off.

[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)
