Skip to content

Local honeytokens: decoy credentials whose use is a near-certain finding #293

Done

Description

@blitzcrieg1

Detect an agent reaching for credentials it should never touch, with near-zero false positives and nothing leaving the machine.

Proposal

An opt-in agentmetry canary command that:

  • Plants decoy credentials the developer chooses to allow: for example a fake profile in ~/.aws/credentials, or a canary line appended to a project's .env. Each value is unique, random, and recognisably fake to a human reader.
  • Adds each decoy value as a DLP rule. The DLP manifest isn't one of the frozen detection files. If the value ever appears in a tool argument or a command, that's a high-confidence finding.
  • Records reads of the decoy file through the existing tool-boundary capture.
  • Lists and removes everything it planted, cleanly.

Constraints

  • Local only. No callback-style canaries that report to an external server; that would break local-first.
  • The trail records the rule ID, never the decoy value, the same as every DLP match.
  • Never overwrites a real credential. It refuses if the target profile or key already exists.
  • Off by default, and documented as something a developer turns on deliberately.

Open question for users

Would you allow decoys on a developer machine, and where: the home directory, the project, or both?

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    dlp-rule
    on Oct 20, 2026
  2. added
    bounty
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bountydlp-ruleenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions