A key’s day

Part 4, Agents · Step 8: Detect

Keys in AI agents and AI training data

TruffleHog finds the copies. That afternoon, Nadia on the security team connects TruffleHog to the company’s GitHub and Slack. Its first scan flags the pushed .mcp.json and the channel post. She then scans the agent folders on Sam’s laptop and the new public repository on Sam’s GitHub account. The prompt in the web AI chat sits on another company’s service, outside the scan.

Why it matters. One finding ties every copy to the same key, so the team fixes the key once.

See it in the lesson Part 4 recap

What the research found: Hugging Face training data, 2026

TruffleHog scanned 7.6 petabytes of public AI training data on Hugging Face and found 221,303 keys and passwords that still worked, spread across 6,003 datasets.

What a scan can and can’t see

Sources

Keep going

More topics