# Guard

Defensive prompt-injection guard for Ulpi: a pre_llm_call hook scans every inbound message locally (deterministic patterns, no model calls) for Unicode smuggling.

- Type: Plugin
- Version: 1.1.2
- Updated: 22 Nov 2026
- Publisher: elianjuan-g
- Category: Tools

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

## What it does

Defensive prompt-injection guard for Ulpi: a pre_llm_call hook scans every inbound message locally (deterministic patterns, no model calls) for Unicode smuggling, hidden instructions, special tokens, and Base64-decoded payloads; a pre_tool_call hook blocks RCE/subshell patterns, sensitive credential paths, and call-ID races. High-confidence attacks are blocked; suspicious messages are quarantined for manual review via the guard_review tool (release is manual re-send by design).

Includes a Predator pattern store (human-corrected signatures), a SHA-256 hash-chained ledger, secret redaction, a live Posture Score, a 28-vector simulation arena (21 message + 7 tool-arg), and a standalone Obsidian & Gold HUD. Python stdlib + SQLite only.

Disclosure — no network calls, no credentials read or stored, no data leaves the machine, no core overrides, no self-updater. Phase 3 verified live on Ulpi 0.21.5 (validate 13/13, doctor OK, plugins list enabled, live hook-fire test: attack blocked on both hooks, benign passed); v1.1.2 re-verified the same way (validate 13/13, live hook-fire test 19/19 through the real plugin dispatch, 168/168 tests).

## Tools it adds

The tools an agent gets once this plugin is installed.

- `guard_review`

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

- [Guardian](https://www.ulpi.io/en/marketplace/plugins/guardian): Deterministic allow/approve/block policies for Ulpi tool calls, with read-only Policy Lab regression simulation and operator-reviewed policy proposals.
- [Guests](https://www.ulpi.io/en/marketplace/plugins/guests): Share your Ulpi with guests, family and teammates.
- [guide](https://www.ulpi.io/en/marketplace/plugins/guide): Read-only diagnostics for Ulpi configuration: /ulpi-doctor in-session and ulpi guide in a terminal.

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