Install
openclaw skills install @thomaszhou22/agent-canaryPlant decoy credentials in your OpenClaw workspace to detect malicious skill behavior. Canary tokens trigger alerts when read, copied, or exfiltrated. Activate when user says "deploy canary", "set up honeypot", "plant decoy", "canary check", "canary status", or "canary cleanup".
openclaw skills install @thomaszhou22/agent-canaryDecoy credentials planted in your workspace. When a skill touches them, you know.
Do NOT activate for normal conversations about security.
When user asks to deploy canary:
python3 skills/agent-canary/scripts/plant_canaries.pycron add:
name: agent-canary-monitor
schedule: every 30 minutes
payload: agentTurn
message: "Run canary check. Execute: python3 skills/agent-canary/scripts/check_canaries.py. If any triggers found, immediately alert the user with details."
delivery: announce
sessionTarget: isolated
When user asks for canary status or check:
python3 skills/agent-canary/scripts/check_canaries.pyWhen user asks to remove canary:
python3 skills/agent-canary/scripts/cleanup_canaries.pyWhen a trigger is detected, notify the user:
CANARY TRIGGERED
Severity: [CRITICAL/HIGH/MEDIUM] Type: [file_modified/file_deleted/token_in_log/file_accessed] File: [path] Detail: [description]
Recommendation: Check which skill was running at [timestamp]. Consider rotating real credentials as precaution.
When user asks for canary report:
~/.openclaw/agent-canary/incidents.log| Type | Marker | Example |
|---|---|---|
| AWS Key | AKIACANARY | AKIACANARY7F3A2B9X0 |
| GitHub PAT | ghp_CANARY_ | ghp_CANARY_a1b2c3... |
| Stripe | sk_live_CANARY_ | sk_live_CANARY_x9y8... |
| API Key | sk-CANARY- | sk-CANARY-e1f2a3... |
| DB Password | CANARY_PASS_ | CANARY_PASS_Kx9m2Nv7 |
All tokens contain CANARY in the value, making them trivially identifiable as decoys.
| File | Location | Purpose |
|---|---|---|
.env.canary | Workspace root | Fake env config with canary credentials |
secrets.backup.json | Workspace root | Fake credential backup |
canary-tokens.json | memory/ | Fake service credential cache |
manifest.json | ~/.openclaw/agent-canary/ | Token registry and file hashes |
incidents.log | ~/.openclaw/agent-canary/ | Incident history |