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:
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
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:
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.