OpenCode breach twist: Turnstile fix PR was merged-candidate but auto-closed by bot citing AI PR flood

evilsocket · x · 2026-10-18

The incident

OpenCode disclosed a large-scale distillation attack on its Console, affecting 1.4% of users — specifically those who had linked external providers. All affected users were notified by email; the company is working with Anthropic, OpenAI, and Google on remediation.

The detail nobody posted

The fix already existed. PR #45919 (filed in August) added a Cloudflare Turnstile challenge to the legacy console auth. A month later, a github-actions bot closed it under an automated PR-cleanup policy citing the high volume of PRs from users and AI agents. Last night's breach came through that very legacy system.

The irony

A bot designed to fight AI-generated PR spam killed the security patch that could have blocked a real attack — automation itself became part of the vulnerability.

Related event: OpenCode hit by "distillation attack", API keys of 1.4% Console users leaked(28 posts)→

Original post →

More from coding & agent

coding & agent channel →