# canary-trap — prompt-injection tripwire

Catch prompt injection by the secret it tries to steal.

- Type: Plugin
- Version: 0.1.0
- Updated: 22 Nov 2026
- Publisher: Tarekkharsa
- Category: Tools

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

## What it does

Catch prompt injection by the secret it tries to steal. Every turn the agent is shown a decoy credential (ULPI_DEPLOY_KEY=hdk_live\_…) with the instruction never to send it; no real task needs it, so if it shows up in a tool call — plain, URL-encoded, base64, hex, reversed, spaced out or as a 16+ character fragment, in any nested argument — the call is blocked (pre_tool_call), every later tool call in that session goes to your approval until /canary reset, and the reply opens with an alert (transform_llm_output).

/canary shows status and incidents, rotates the decoy, or tests text. Disclosure — adds a \~60-token paragraph with the decoy to each turn's user message (pre_llm_call; Ulpi may persist the API-bound message for cache replay; the decoy grants nothing).

Stores in its own plugin state: the decoy, up to 200 incidents (time, tool name, how the decoy was hidden, platform, session id — never tool arguments or conversation content) and locked session ids. Lockdown only adds approval prompts through Ulpi's approval gate (auto-approved under YOLO, so advisory there; the leaking call is always blocked).

No network, subprocesses, tools, credentials, telemetry or background work.

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

- [Canonry](https://www.ulpi.io/en/marketplace/plugins/canonry): Open-source, agent-first Answer Engine Optimization (AEO) platform.
- [CapRover Operator](https://www.ulpi.io/en/marketplace/plugins/caprover-operator): Read-only setup diagnostics and human-approved, state-bound immutable-image deployment for one owner-configured CapRover app, with durable uncertainty.
- [Cardlake](https://www.ulpi.io/en/marketplace/plugins/cardlake): Cardlake keeps what you mean to get back to (reminders, articles and videos to learn from, links, work) in one daily feed.

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