96 breaches, one checklist: making coding agents check for old mistakes
Your AI wrote the login page. Did it also write the GitLab bug? Most breaches are old mistakes made again. I turned 96 of them into a checklist your coding agent can run. In January 2023 security researchers found that
Your AI wrote the login page. Did it also write the GitLab bug?
Most breaches are old mistakes made again. I turned 96 of them into a checklist your coding agent can run.
In January 2023 security researchers found that GitLab's password reset accepted more than one email address. The reset link went to the account's real address, and also to the one the attacker added. In 2022 Optus served customer records from an API where the record ID was all you needed. In 2019 Capital One's server was persuaded to fetch an internal URL, which handed over cloud credentials. In 2025, apps built with AI app builders shipped databases without row-level security, so the public key in the browser could read every row.
None of these needed a new kind of attack. Each one was a known mistake, made again.
That matters more now, because a lot of code is written by agents. They are fast and they are good. They also learn from what is common, and what is common is not always what is safe. A generated login page works. It often has no limit on guesses per account, signs people in by email alone through SSO, or serves an uploaded SVG logo that can run script. Nobody asked for those mistakes. Nobody asked for them not to be there either.
So I wrote down the mistakes.
breach-check
breach-check is an open-source skill for coding agents: Claude Code, OpenAI Codex, Kimi Code and any agent that reads the SKILL.md format. It holds 96 entries drawn from public incidents, research and known failure patterns. Each entry has three parts:
the incident and the year;
the root cause in one line;
what to look for in code.
For example:
GitLab CVE-2023-7028 (2023): the password reset accepted an array of emails and mailed the reset link to an attacker-supplied address as well. Check: every reset, invite, magic-link and email-change flow sends only to the address bound to the account or the token, and request parsing rejects several emails.
You ask your agent, in plain words, "check this repo against past breaches." It maps the project (web pages, API, mobile app, background jobs, AI features, CI), loads only the catalogs that apply, follows the data through the real handlers, and gives each entry one of four verdicts:
- Not affected, with the line of code that shows why;
- Affected, with the file, the steps an attacker would take through your code, and a severity;
- Unclear, with what would settle it, such as a proxy rule or a setting on the server;
- N/A, when that surface doesn't exist.
Before it reports anything as affected, it re-reads that code path. A finding with no concrete path through your code doesn't count.
What it covers
- Sign-in and sessions: the GitLab reset, Host-header reset poisoning, Okta's leaked HAR files, Citrix Bleed, the Storm-0558 signing key, nOAuth, Okta's bcrypt 72-byte bypass, Snowflake and 23andMe credential stuffing, MFA fatigue at Uber, reset-code guessing at Instagram.
- Access control and tenants: Optus, Parler and Peloton's guessable IDs, the Confluence and ScreenConnect setup bypasses, the Next.js middleware bypass, ChaosDB in Azure Cosmos DB, the ChatGPT cache leak, Lovable's missing row-level security, Base44's private-app sign-up, mass assignment.
- Injection and input: MOVEit, Log4Shell, Capital One's SSRF, ProxyLogon, Zip Slip, zip bombs, SVG uploads, Magecart at British Airways, polyfill.io, spreadsheet formula injection.
- Secrets, supply chain and CI: keys committed to code at Toyota and Codecov, passwords in logs, LastPass backups, open databases, Salesloft Drift's stolen integration tokens, SolarWinds, 3CX, xz, the Shai-Hulud npm worm, tj-actions, hallucinated package names.
- AI features: EchoLeak in Microsoft 365 Copilot, Slack AI, the GitHub and Supabase MCP agent flows, the Amazon Q extension prompt, the Replit agent that deleted a production database.
- Mobile: Tea's open Firebase bucket, keys inside app binaries, TikTok's deep link into a WebView, StrandHogg, Dirty Stream, session-replay SDKs recording password fields, Grindr and Strava location leaks, XcodeGhost, FORCEDENTRY.
security-baseline
Breaches tell you how apps get broken. Customers and auditors ask a different question: how do you measure up against the standards? So the repository has a second skill, security-baseline. It screens an app against:
- OWASP ASVS 5.0;
- OWASP MASVS for mobile;
- the 25 MVSP controls;
- NIST SP 800-63B-4 for passwords and sessions;
- the OWASP Top 10 lists for web, APIs and LLM apps.
It also checks the behaviour users expect from a secure app. Press Back after logging out: do you land on a signed-in page from the cache? Do sessions really end on the server? Do idle timeouts hold? Do signed-in pages send Cache-Control: no-store? Are the security headers there? Can another site frame your pages?
It reports what it checked and the evidence for each verdict, and marks anything it couldn't confirm as unverified instead of guessing. It's a screening, not a certificate. It tells you where to look before the customer's security review does.
The two-account test
After I posted about this on LinkedIn, Michael Sosa made a point I agree with: a checklist can flag a missing row-level security policy, but someone still has to read the access paths. The fastest proof is simple. Sign in as a second user and try to read the first user's records.
Both skills now include that check. With the owner's approval of a test instance and test accounts, user B requests user A's records by ID: through the pages, through the API, and through any public database key the front end ships. If B can read or change anything of A's, it's reported as affected, whatever the code review said.
Safe by default
A security review that leaks secrets or breaks production is worse than none. So the skills tell the agent to:
read code by default, and run live tests only after the owner approves the target, the test accounts and what may be written;
never print a secret it finds, and report only the file and line;
never touch production data without a yes;
give fixes as proposals the owner decides on.
Install
In Claude Code:
/plugin marketplace add marirs/breach-check
/plugin install breach-check@breach-check
For any agent that reads skills:
npx skills add marirs/breach-check
Or clone the repository and run ./install.sh claude, codex, kimi or all.
Help it grow
The list is only as good as the incidents in it. If you know a breach whose root cause belongs on the list, open a pull request with one line of cause and one line of what to check. Mark anything the vendor hasn't confirmed as reported.
Old mistakes are the cheapest ones to stop making. Your agent can check for them in minutes, before you ship.
github.com/marirs/breach-check, MIT licensed.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.