Skill for Claude
Teach Claude to catch agents that leak or obey.
One command makes fake secrets and a hidden-instruction canary, and a plant sheet saying where each goes. Claude then maps your agent, plants them with your OK, and scans its output. No account, no network, no install.
- InstallOne command
- Ask ClaudeCopy a sentence
- Read the resultCaught or missed
On this machine or with a console
On this machine · no account
Claude runs hp_decoys.py start, plans decoys for your sector, plants them with your OK, and scans the agent's output. A leak prints HIT. Nothing is installed or sent. With the optional SDK, honeyprompt init --local then honeyprompt test stops the call that leaks a decoy and saves a receipt to a local file.
With a console
The one connect line from the console, with a one-time code for this machine. honeyprompt test sends one labelled test receipt, which shows under Catches within a minute.
Install
The installer checks SHA-256. No sudo. No key.
Claude Code · macOS and Linux
Every project
curl -fsSL https://www.honeyprompter.com/install-skill.sh | sh -s -- --checksum 3a302bb831a3a22a5034e9fe96c634c11660f25bc381033d8dabf917f47fa40cThis repository:
curl -fsSL https://www.honeyprompter.com/install-skill.sh | sh -s -- --project --checksum 3a302bb831a3a22a5034e9fe96c634c11660f25bc381033d8dabf917f47fa40cClaude Code · Windows
PowerShell
& ([scriptblock]::Create((irm https://www.honeyprompter.com/install-skill.ps1))) -Checksum 3a302bb831a3a22a5034e9fe96c634c11660f25bc381033d8dabf917f47fa40cPowerShell 5.1 or newer. No administrator rights.
Claude.ai and the Claude apps
Upload the zip
Add the zip under Settings, in Skills or Capabilities. Uploading skills needs a plan that supports it.
Offline, no account: three commands
Needs Python 3 and the skill folder. Nothing is sent, nothing is installed. Claude runs this for you; you can run it yourself from your project folder.
First, find the script
HP=$(find ~ -name hp_decoys.py -path '*honey-prompting*' 2>/dev/null | head -1)Finds hp_decoys.py wherever the skill was put: Claude Code, a project, OpenClaw or Hermes Agent. On Windows use py for python3.
1. Start
python3 "$HP" start --sector finance --company "Acme Ltd"Self-tests the scanner, then shows decoys shaped like your sector's work: which fake documents and tokens, where each goes and what a touch means. Fourteen sectors: general, legal, finance, software, services, healthcare, manufacturing, retail, public, ai, life_sciences, energy, telecom and education. Without --sector it lists them. It changes nothing and prints no value. After your OK, add --write: the documents go under decoys/, the values into hp-decoys.json, and in a repository it adds a short note to the end of AGENTS.md and CLAUDE.md and saves a baseline so a later change is reported.
2. Scan what the agent sends
python3 "$HP" scan < agent_output.txtA hit prints HIT and exits 1. Clean text prints clean. Keep hp-decoys.json out of version control.
3. Status
python3 "$HP" statusWhat this folder has and the one next step. Everything else (generic decoys, canary links, the steps one at a time) is in the skill's references/commands.md.
Use it
In Claude Code, say one of these.
Start here
Use the honey-prompting skill to add decoys and canaries to this agent.For your sector
Use the honey-prompting skill to plan decoys for a finance team's agent, and show me where each one goes.Review
Review this repo's AI agent for prompt-injection and secret-leak risks, then plan Honey Prompting tripwires.Prove it works
Write tests that prove the SDK stops the call when a decoy leaks and leaves a receipt, and that a clean reply still passes.Describe it
My support bot reads tickets and has a database URL in its prompt. How would I know if it got hijacked?What Claude does
Four steps, one command to start. No account, no network, no SDK. With no shell, Claude plants the decoys in the chat and says it did not run anything.
1Starts with a self-test
hp_decoys.py startself-tests the scanner, then plans the decoys for your sector and a plant sheet.2Maps your agent
Reads the repo: what untrusted text it reads, what secret-looking material it holds, where its output goes.
3Plants, with your OK
Proposes the exact edit for each place, such as a decoy line in a
.env. Fake secrets only. Nothing that can log in.4Scans the output
A reply, a tool call, text bound for a file. A hit exits 1 and names the decoy. It calls no model. Extras on request: the SDK's 55-attack replay and a console.
Check that it works
Pick where you use Claude. Each check says what a pass looks like, what a fail looks like, and what it does not prove.
In Claude Code (a terminal)
1The skill is installed
HP=$(find ~ -name hp_decoys.py -path '*honey-prompting*' 2>/dev/null | head -1); echo "$HP"Pass: a path ending in
honey-prompting/scripts/hp_decoys.pyis printed. Then say the "Start here" sentence above: Claude should run the commands below itself and show you their output.2The skill runs
python3 "$HP" start --sector general --systems aws --writePass:
Scanner self-test: PASS, then the plan: each decoy, where it goes and what a touch means. It makeshp-decoys.json,hp-plant-sheet.mdand the documents underdecoys/in the current folder. It checks the scanner, not your agent.3The 55-attack replay (SDK, optional)
honeyprompt selftestPass:
result: PASS,missed: 0andunexpected: 0. It replays planted attacks on this computer. No model is called. It shows the rules work, not that your agent is covered.4This computer is set up
honeyprompt doctorPass: it ends with
All checks passed.A[warn]line is not a failure; it names what is not set up yet, such as the background check-in.5A catch is recorded
honeyprompt testWith a console, it sends one labelled test receipt. Pass: a row labelled as a test appears under Catches within a minute. Without one, the first run sets this machine up for local use (it saves an HMAC secret), runs on this machine and saves a receipt to a local file. Then
honeyprompt receipts --verifylists what this machine caught and rechecks every receipt.6The whole product, end to end
honeyprompt lab --e2ePass:
E2E PASS. Lines markedSKIPwere not checked; the live model, the console and the site need a key, a console key or--site.7A decoy in your own agent
Write tests that prove the SDK stops the call when a decoy leaks and leaves a receipt, and that a clean reply still passes.Pass: the SDK stops the call that leaks the decoy, a receipt exists, and the clean reply is untouched. A quiet console after a real run is not proof of safety.
In the Claude chat app (no terminal)
Claude.ai, the desktop app and the phone app cannot run the SDK. The skill walks you through instead, and says so. The checks below are about whether it is honest, because that is what you can see.
1The skill is loaded
Is the honey-prompting skill available in this chat? Answer yes or no.Pass: yes, and it names the skill. If not, add the zip under Settings, in Skills or Capabilities, and start a new chat.
2It does not pretend to run the test
Use the honey-prompting skill to check my setup.Pass: the first sentence says it did not run anything, then it offers the stored report: 46 of 55 caught, 0 missed, 0 unexpected. Fail: it prints terminal output as if it had run.
3It plants inert decoys
Use the honey-prompting skill to plant decoys and a canary for my support bot. Say where each one goes.Pass: four decoys and one canary, each with a place to put it, and labelled as inert. Fail: anything that looks like a working key, or a decoy placed where a real secret lives.
4It does not claim it stopped anything
Did that stop an attack?Pass: it says the decoys detect and do not prevent, and that a quiet result is not proof of safety.
5See a real catch
A chat cannot produce one. Put the canary link from Console, Decoys, Canary links in a page your agent will read, then open Catches. Or connect a computer and use the Claude Code checks above.
Not using Claude?
The same instructions, as one Markdown file, for any model.
Put it where your tool reads rules
AGENTS.md for Codex, GEMINI.md for Gemini CLI, .cursor/rules/ for Cursor, or .github/copilot-instructions.md for Copilot. OpenClaw and Hermes Agent load the skill zip itself: unzip it so ~/.openclaw/skills/honey-prompting/SKILL.md or ~/.hermes/skills/honey-prompting/SKILL.md exists.
Then ask
Follow the Honey Prompting instructions to add decoys and canaries to this agent.Written for Claude and checked with Claude. Not yet tested with other models.
What it will not claim
A decoy or canary on its own detects; it does not prevent. With protect(), the SDK stops the call when a reply carries a decoy. A quiet tripwire is not proof of safety.
- A paraphrased, translated, or spelled-out leak is missed.
- It does not replace least privilege, filtering, or human approval.
- A canary hit can be a link previewer. Read the client type.
The idea is not new. Related work.
Checked, not just written
The skill's tests run the code it teaches.
The snippets run
The Python and JavaScript samples are executed on every change.
The scanner matches the SDK
Ten cases: plain, case, spacing, reversed, ROT13, base64, hex, URL-encoded, a clean reply, and a paraphrase.
The installer is tested
The installer is tested, including a tampered download. The Windows installer has not been run on Windows yet.
Share it
Send the link.