This incident crossed five layers of a modern AI stack, and each layer needs its own control:
1. Source (laptop, IDE, CI): the coding agent, its SKILLs and MCPs, and the local tokens it can read. Optimus Labs maps and governs this layer, stopping credentials from leaving in commits or prompts.
2. Code host: GitHub push protection blocks commits that contain known secret formats before they land. It is free on public repositories (off by default) and sold as GitHub Secret Protection, part of GitHub Advanced Security, for private and internal repositories.
3. Data platform: Hugging Face Enterprise Nightwatch watches Hub activity in real time and flags or revokes a stolen token used from an unfamiliar location or mass-cloning private repos.
4. Inference provider: retention and capture settings, including Zero Data Retention controls and whether test captures are stored.
5. Detection: canary keys, as Dragos used, catch stolen secrets when an attacker tests them against live services.
Where the platform tools stop. Both GitHub and Hugging Face now sell a fix at their own door. Nightwatch sees a stolen token being used on Hugging Face; GitHub blocks a known secret at push time. Neither sees the coding agent on the developer's laptop that read the token, nor a secret pasted into an inference prompt or written in a format the scanner misses. Platform controls belong in your stack, but they do not replace source-side governance of the agents themselves.