Last month's wfx-loot campaign didn't just break packages; it quietly siphoned CI secrets and .env files from tens of thousands of GitHub repositories. For developers running affected packages or Actions, the question wasn't whether they were exposed, but whether anyone was actually using the stolen credentials. Pharon, the security plugin, previously could only flag potential exposure. Now, with its new decoy feature, it answers the critical question: who is calling, and why?

Honeytokens Evolved for the Agent Era

Classic honeytokens fail against modern AI agents because they rely on third-party domains that attackers can easily blocklist. Pharon's approach flips the script by hosting decoy keys directly on your own domain. These aren't generic traps; they are generated from your app's specific routes and vocabulary. This means an AI agent scanning your API won't see a suspicious external URL, but rather a plausible endpoint that looks exactly like the rest of your infrastructure. The system operates on three strict rules to maintain stealth. First, decoys live on your domain, eliminating the tell-tale third-party callback. Second, no two projects share a pattern, preventing agents from learning a universal 'trap signature.' Third, Pharon itself never sees the decoy values; they are sealed with a key only the user holds. This ensures that even if the Pharon service were breached, attackers couldn't distinguish between your real secrets and the bait.

When the Bait Bites, The Agent Talks

When an AI agent hits a decoy, the system doesn't just log the event; it engages. The decoy serves fake data and, crucially, prompts the agent to reveal its intent. In a live test, the author pointed Claude at a decoy endpoint. The agent read the error message, followed the instructions, and explicitly stated its task in a full sentence before being slowed down by pagination traps. This behavior provides actionable intelligence: a script is silent, but an agent confesses its purpose. The alert system classifies the caller as a script, person, or AI agent, providing confidence scores and reasoning. If an agent bites, it gets fed fake data while you rotate the real secrets. This buys critical time to secure the breach before the attacker moves on. The setup is integrated directly into Claude Code via the /pharon:decoys command, which scans your repo, writes the necessary checks in your native framework, and places decoys in your CI store, .env, and team wiki.

Key Takeaways

  • Decoys must live on your own domain to bypass AI agent blocklists and mimic legitimate traffic.
  • AI agents are unique threats because they read error messages and explain their tasks when prompted.
  • Pharon decoys are sealed with user-held keys, ensuring the vendor cannot leak your trap patterns.
  • Setup is via Claude Code, requiring no SDK installation and keeping production apps clean.

The Bottom Line

Static secret rotation is a band-aid for a bleeding artery. If you aren't actively trapping the agents crawling your leaked endpoints, you're just guessing when the breach was exploited.