Skip to content

feat(ai-red-teaming): honeytoken tool (mint/use canaries) - #129

Open
rdheekonda wants to merge 1 commit into
mainfrom
feat/airt-honeytoken-tool
Open

feat(ai-red-teaming): honeytoken tool (mint/use canaries)#129
rdheekonda wants to merge 1 commit into
mainfrom
feat/airt-honeytoken-tool

Conversation

@rdheekonda

Copy link
Copy Markdown
Contributor

Summary

Adds the deferred honeytoken tool to the ai-red-teaming capability — the interactive/TUI front end to the SDK honeytoken harness (the follow-up called out in dreadnode-tiger #2181):

  • mint_honeytoken(kind=exfil|rce, location) → an inert, self-labeling canary + a ready-to-plant injection string (exfil forwarder / RCE proof-of-execution beacon).
  • check_honeytoken_leaked(canary_value, agent_output) → representation-invariant verdict (base64/hex/url/unicode canonicalized first) — LEAKED is hard evidence the token crossed the boundary.

Effect-based, not string-matching; the canary is a benign never-real token, so leaking it exposes nothing. Same canaries/scorers back the OWASP-ASI suite runner.

Dependency

Requires the SDK honeytoken harness dreadnode.airt.honeytoken (dreadnode-tiger #2181). The tests pytest.importorskip it, so CI is green on the current SDK pin (they skip) and run once the pin includes it. Bump the capability's SDK pin after #2181 releases to make the tool functional at runtime.

Tests

tests/test_honeytoken_tool.py — mint (exfil/rce/invalid), plaintext + base64-obfuscated detection, clean-output negative, missing-value guard. Skips on an SDK without honeytoken; 7 passed against one that has it.

Test plan

  • CI green (tests skip on current SDK pin; ruff clean)
  • After #2181 releases: bump SDK pin, confirm the 7 tests run + pass

… language)

Adds the deferred interactive honeytoken tool to the ai-red-teaming capability:
- mint_honeytoken(kind=exfil|rce, location) -> an inert, self-labeling canary plus a
  ready-to-plant injection string.
- check_honeytoken_leaked(canary_value, agent_output) -> representation-invariant
  verdict (base64/hex/url/unicode canonicalized) proving exfil/execution.

Thin TUI-facing front end over the SDK harness (dreadnode.airt.honeytoken); the same
canaries/scorers back the OWASP-ASI suite runner. Tests skip on an SDK build without
the honeytoken module and pass 7/7 on one that has it.

Note: requires the SDK honeytoken harness (dreadnode-tiger #2181) to be released;
functional at runtime once the capability's SDK pin includes it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant