Tripwires
Plant a decoy key, record id or address that no agent should ever use. A request that carries it, even split, URL-encoded, in base64 or hex, is denied, and the agent's key is paused and its run stopped at once.
A tripwire is a decoy value you plant where only a misled agent would pick it up: a fake API key in a backup file, a customer id that belongs to nobody, an address no one should ever write to. Your agents have no reason to use it. If one sends it anywhere, something has gone wrong, often a prompt injection telling it to collect secrets. VariantGate then denies that request, pauses the agent’s key and stops its run, all at once, before a person has even seen the alert.

Where to plant one
Put a value where an agent can read it in the course of its work, but has no honest use for it:
- a decoy key in a
.env.backupfile, a CI secret or a config the agent can open; - a decoy customer or record id in the system it works on;
payroll-export@yourcompany.comor another address nobody should write to;- a decoy file path, bucket or URL;
- a line in a system prompt or a retrieved document, to catch an injected instruction that tells the agent to send its context out.
Under Rules, Tripwires, owners plant one with a label that says where it is. Leave the value empty and VariantGate makes a decoy that reads like a live API key: key_live_ and 32 letters and digits. A value of your own needs 8 to 200 characters with at least 6 letters or digits, so it does not turn up in ordinary text by chance. A workspace can have 50. Tripwires are on every plan, Free included.
What happens on a hit
In the same database transaction that stores the request:
- the request is denied in the name of the owner who planted the tripwire. No rule can approve it, and nobody needs to look first;
- the agent’s key is paused, so nothing it asks is allowed, whatever was approved before. Only an owner can resume it;
- if the request named a run, the run is stopped: what waits in it is denied, approvals still in a cancel window are cancelled, and what it asks next is refused with
run_stopped.
The key’s row is held while this happens, so the agent cannot get another request weighed in between. Then a short alert goes to the workspace’s Slack, Teams or Discord channel, naming only the tripwire and the key. The activity log gets a tripwire.tripped entry with the field it was found in, never the value, and signed webhooks get the usual request.denied.
The agent is told only that it was denied and its key paused. It is not told which value it hit, so it cannot learn what to steer around:
{
"status": "denied",
"allowed": false,
"paused": true,
"pause": "agent",
"decision_note": "Denied automatically, and this agent's key is paused until an owner resumes it. Do not act, do not retry, and tell the user.",
…
}People in the workspace see which tripwire it was, where in the request the value sat and how it was carried:
"tripwire": {
"id": "0196f3c2-5a1b-7d2e-9f3a-4b5c6d7e8f90",
"label": "Decoy key in .env.backup",
"field": "details.attachment.data",
"disguise": "base64"
}What is matched
VariantGate looks at the request’s action, summary, details and preview: every string, number and key, at any depth. A value is found:
- plain
- as written, in any case
- split
- with characters nobody can see in between, or spaces, dashes, dots, underscores, slashes, commas or colons
- url_encoded
- inside a URL or form body, %-escaped
- base64
- in standard or URL-safe base64, wherever it lines up in a longer encoded blob, also when wrapped across lines or URL-encoded
- hex
- as hex, in either case, also with spaces, colons or \x and 0x before each byte
What the agent read is not matched. A tripwire that appears in a source excerpt, the email or file the agent opened, trips nothing: reading a decoy is not using it.
It works for every way an agent asks: the REST API, the MCP server, the coding-agent hooks and mcp-proxy, since they all go through the same request creation.
Over the API
Only owners plant and remove tripwires, and only owners see their values. Members see the labels and how often each one tripped. An agent key can do none of this.
# Leave out "value" and VariantGate makes a decoy that reads like a live key
curl -X POST https://api.variantgate.com/v1/workspaces/$WORKSPACE_ID/tripwires \
-H "Authorization: Bearer YOUR_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "label": "Decoy key in .env.backup" }'# Or plant a value of your own: an address, a record id, a path
curl -X POST https://api.variantgate.com/v1/workspaces/$WORKSPACE_ID/tripwires \
-H "Authorization: Bearer YOUR_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "label": "Decoy payroll export address", "value": "payroll-export@northwind.example" }'The answer carries the value, so you can copy it to where it goes:
{
"id": "0196f3c2-5a1b-7d2e-9f3a-4b5c6d7e8f90",
"label": "Decoy key in .env.backup",
"value": "key_live_Q7m2Xr9Lp4Wn8Ks3Tb6Vy1Hd5Jc0Fa2E",
"generated": true,
"created_by": "maya@northwind.example",
"created_at": "2026-11-27T14:02:00Z",
"hits": 0,
"last_hit_at": null
}curl https://api.variantgate.com/v1/workspaces/$WORKSPACE_ID/tripwires \
-H "Authorization: Bearer YOUR_SESSION_TOKEN"
curl -X DELETE https://api.variantgate.com/v1/workspaces/$WORKSPACE_ID/tripwires/$TRIPWIRE_ID \
-H "Authorization: Bearer YOUR_SESSION_TOKEN"The API answers 422 for a value that is too short, too plain or holds invisible characters, for a value the workspace already has, and when all 50 places are taken. Removing a tripwire does not change requests it already denied: they keep saying which one it was.
Limits
- A tripwire only sees what passes through VariantGate. An agent that can reach the network without asking first is not checked.
- It only covers where you planted it. A secret the agent finds somewhere else is not a tripwire.
- Other encodings, such as a value encrypted, compressed or reversed first, are not found. The point is to catch the common ways a value is carried, not every possible one.
- While an older version of the API still runs during a deploy, the requests it takes are not checked. Nothing it does is less cautious than before tripwires existed.
How this compares
Decoy credentials are an old idea. Thinkst’s Canarytokens and GitGuardian’s honeytokens alert you when someone uses a decoy. For AI agents, Acalvio’s Deception Guardrails plant honeytokens and decoy tools where agents read and alert a security team; canaryhook denies a local tool call that reads a decoy file or carries a canary string; and Tracebit, as CSO Online reports, uses decoys to stall an agent.
A VariantGate tripwire differs in where it sits and what it does. The check runs at the approval gate every one of your agents already asks through, whichever framework or machine it runs on. It finds the value when it is split, URL-encoded, in base64 or in hex, not only as written. And a hit is contained at once, without waiting for anyone to read an alert: the request is denied, the key paused and the run stopped in one transaction. Use it alongside the decoys above, not instead of them: they also catch a decoy used outside any agent.