We audited our own "proof" tool and found we could forge the proof. Here's what we fixed
A few weeks ago we shared okproof, a merge check that stays red until every acceptance criterion is proven by a test. The whole point of the tool is trust in that "proven" verdict, so we asked the obvious question: can s
A few weeks ago we shared okproof, a merge check that stays red until every acceptance criterion is proven by a test. The whole point of the tool is trust in that "proven" verdict, so we asked the obvious question: can someone make it say "proven" when it isn't?
We ran a structured, source-only review of our own code, using AI agents as reviewers, with a separate agent re-checking every finding before we believed it. It was partial coverage on purpose and nothing was run against real targets. It still found real problems. Here are the ones that mattered.
The ones that hurt
1. Forged evidence. okproof lets a verifier run (or a diff check) lift a criterion to a higher evidence level. Those results are stored as small JSON files. A pull request could commit a two-line file and claim the highest level without any verifier ever running. Now a file counts only if the CI job that reads it is the one that produced it (it carries that run's id), and the guard flags any such file, or a changed quarantine list, committed in a pull request.
2. A git option hidden in a field. A findings file could set a "revision" to something like --output=..., which git treated as an option and used to write a file. It needed no special permission. Revisions are now checked, resolved to a commit id first, and passed after --end-of-options.
3. Symlinks. A committed symlink pointing outside the repo could be followed when we read a file, or overwritten when we wrote a ledger. We now refuse links and check the file we actually opened, not the path we looked at a moment earlier.
4. Parsers that a pull request could stall. Two of our own parsers did quadratic work on crafted input (one regex, one entity decoder), so a hostile PR could slow a CI job to a crawl. Both are linear now, with tests that fail if that regresses.
5. A model told what to believe. The optional browser verifier fed page text to a model. Hidden text on the page under test could talk it into "the criterion holds". Page and criterion text are now fenced as untrusted data, and a "holds" verdict needs at least one assertion that actually passed.
6. Fork pull requests. In the default setup the PR's own code runs in the same job that has the write token. For forks there is now an optional split: tests run with read-only permissions, and a separate job reads only the results and runs the gate.
The part we didn't expect
The fixes themselves needed fixing. After we opened the pull request, two automated review bots found more than a dozen further valid issues in our fixes. Some examples:
- a check that read the working tree instead of git, so it flagged files the job had just written itself;
- git quoting non-ASCII folder names, so a changed quarantine list in
packages/café/would have gone unreported; - an assertion with an empty string that always passes and could "back" a conclusion.
We also committed a folder of scratch build output by accident and had to pull it back out. Our own test-tampering guard flagged our own tests. None of that is flattering, and all of it is why we wanted the checks to be automatic.
What is still open
We'd rather list it than hide it:
- the local browser debugging port used by the verifier is unauthenticated, so any local process can attach;
- a reviewer's override label isn't bound to a specific commit, because GitHub gives no push time an author can't forge;
- a click or redirect that leaves the app is stopped on the next action, not before the request goes out;
- there is still only one maintainer.
The full list, with the reasoning for each, is in the repo: security audit notes.
What we'd like from you
As far as we know, none of this was exploited, and the project is too young to have many users. But "as far as we know" is exactly why we'd like someone outside the project to read the security-sensitive parts and break them. If you do, please open an issue, or use the security policy in the repo for anything that should stay private until it's fixed.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.