OpenCode: AI coding agent probed financial firm and found decoy API key in under 6 minutes
Severity: medium · Patch status: no-fix-needed · Since 2026-11-24
On 16 Nov 2026, an attacker in Bucharest used the open-source OpenCode AI coding agent, Chrome 157 and macOS curl/8.7.1 to probe an unnamed financial services firm. Starting at 04:24:57 ET, the agent tried the front page, spoofed an Android browser, requested API definitions, followed a link in API docs and tested a planted decoy key plus fabricated and missing keys. Jesta detected the agent, contained it in a fake environment and no real data was stolen. The intruder gave up after 5m44s. Jesta says blocklists would not have stopped the activity and urges behavioral detection of mixed browser, curl and API-document access.
What to do
- Do not rely on IP or domain blocklists; alert on rapid mixed browser, curl and API-document access from one source.
- Require authentication for API definitions and documentation, and avoid exposing readable specs publicly.
- Deploy decoy keys, endpoints and canary tokens to detect credential probing.
- Rate-limit and challenge automated clients, and correlate desktop/mobile user-agent spoofing from the same address.
- Review API logs for sequential key tests and link-following from documentation.
- Treat AI coding agents as potential offensive tooling in threat models and detection engineering.
Sources
All live incidents on Threat Watch