Guard
PLUGINDefensive prompt-injection guard for Ulpi: a pre_llm_call hook scans every inbound message locally (deterministic patterns, no model calls) for Unicode smuggling.
by elianjuan-g · v1.1.2
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