We audited our own notary

A product that sells proof has to survive the question it asks of everyone else: can you show it? So in September I stopped adding features and went through Wisec the way I would want a customer's auditor to go through their pipeline. Every handler, every signed request, every claim on the website, checked against the code rather than against memory.

It was the densest month since the start. October was quieter on the product side: it went into sales material and conversations, and I would rather say so than stretch a release list. Here is what came out of the two months.

A signature that proved the wrong thing

This is the one that matters, so it goes first.

When the Wisec agent submits a build, it signs a canonical description of it: commit, branch, author, dependencies, scanner findings, timestamp. The API checked that signature against the canonical string as it was sent, then stored the other fields, which it read separately from the same request.

That proves that the caller held a valid signature for some event. It does not prove that the signature covers the record we keep. Concretely, anyone holding a trusted agent key could run one honest build, keep its signed pair, and submit it again with the commit, the branch, the findings and the dependencies rewritten. The forged build would have been stored as valid, anchored, attested and printed on a certificate.

Exploiting it required a signing key the organisation itself trusts. That does not make it minor. It is exactly the case a notary exists for: a notary has to hold up against the very party it certifies, or it is only recording what that party chooses to say.

The fix: the server now rebuilds the canonical form from the fields it is about to store, and verifies the signature against that. The string the client sent is kept only to explain a mismatch in the logs. Rebuilding it surfaced a second defect: the link to the previous build was part of what the agent signed, but missing from what the server verified, so the chain link was signed and then ignored. Both sides now come from one function, and a test round-trips a real build through JSON to make sure a legitimate build is never rejected along the way.

Two related fixes the same week. The agent's signed read requests carried a timestamp that the API included in the signature and then never checked, so one request seen in a CI log stayed valid forever. They now expire after five minutes. And the gate request is now bound to the project and commit it asks about. Before, one captured signature could read the gate of every project in the organisation.

Controls that existed and no longer applied

Most of the other findings followed the same pattern, which is worth naming because it is easy to miss in any system: a control that is in the code, passes its tests, and silently stopped doing its job when something around it changed.

  • Logout revoked a token on the server that handled it. Since the API runs on several replicas, the token stayed valid on the others. Revocations now go through a shared store.
  • Rate limits were counted per replica, so the real limit was a multiple of the configured one. Same fix.
  • The client address was never the client's. Every request reached the API with the load balancer's address, so every per-IP limit was one global bucket shared by all customers. The load balancer now forwards the real address, and the API logs a warning if it ever stops doing so.
  • Admin-only screens were admin-only in the interface. A sweep of all 87 API handlers found the isolation between organisations clean, but twelve routes behind admin screens did not check the role themselves, including the registration of a trusted signing key. Hiding a button is not authorization.
  • A password reset changed the password and nothing else. A stolen session stayed valid. It now revokes every session of the account.

One more from early September, found by checking rather than reading: a background save was erasing the anchoring reference of builds whose analysis outlived their IPFS anchoring. For two months, the certificate and bundle buttons silently disappeared on exactly the larger projects. The save is fixed, a reconciliation job repairs any anchoring a crash interrupts, and a metric now counts incomplete builds. That metric was itself pinned at zero by a column-naming bug when it first shipped. An alert that is green by construction is worse than no alert, so that has a test too.

Less of your data leaves the CI

While checking the website against the code, I found a sentence that was false: "Wisec never sees your code." The agent forwarded the gitleaks report as produced, and a gitleaks finding contains the detected excerpt by construction. So the platform did receive secret values. For a trust product, that is the worst kind of false claim, even when nobody intended it.

The sentence is gone, and the reason for it too. Since agent v1.2.0, gitleaks runs in redacted mode and the agent drops the secret, the matched text, the source line and the commit author's details from each finding before signing. SARIF reports from other scanners lose their code snippets the same way. Nothing on the platform used those fields: findings are identified by rule and file. They were pure liability.

This could only be fixed in the agent, because the report is part of what is signed: the server has to store it as received. Builds from older agents keep their excerpts until retention removes them, and the documents we send to security teams say so, with the version number.

Same logic for the build provenance: it carried the author's email, while it is anchored publicly and kept on storage nobody can delete for three years. It no longer does. The email stays cryptographically committed through the hash of the signed build, without being written in clear in a document that could never honour an erasure request. Provenance documents anchored before the fix keep it until their retention expires.

Provenance about the right thing

Build provenance moved from SLSA v0.2 to SLSA v1, and the change is not cosmetic. The old document named the source commit as its subject. SLSA defines the subject as the artifact the build produced. Now, when the agent runs after your build, it hashes the binary you ship and that hash becomes the subject. Since agent v1.3.0, the container images you push can be declared too, by digest. A build that declares neither still falls back to the commit, and the documentation says how to bind the artifact.

The document also stopped claiming things we cannot know. It used to state a build start and end time, both read from the agent's clock before the build ran. It now states none; Rekor's timestamp dates the attestation.

And one wording correction, everywhere it appeared: the attestation is not "verifiable without trusting Wisec". A third party can check by themselves, with standard tools and without an account, that it is intact, when it was logged and which artifact it covers. Its content remains a statement Wisec signs. In SLSA terms that is Build Level 1, not Level 2. A supply chain vendor overstating its own level would be a bad joke.

A score that stopped punishing you for looking

The security score was measured on 93 real builds and replaced. The old formula ranked volume above severity: one remote code execution scored 85, six style findings scored 82. It saturated, so 28 of the 93 builds sat at zero and fixing 19 of 21 findings moved nothing. And it scored activity: a night commit or a deleted file cost points.

The new one scores weaknesses only, lets the worst severity set the range, and counts one advisory once, however many scanners report it. That last part matters more than it sounds: the same log4j flaw is GHSA-65fg-84f6-3jq3 for one tool and CVE-2022-23305 for another, and before this, adding a second scanner lowered your score. Every build now records which version of the formula scored it, because scores from different formulas do not compare, and the full formula is published in the documentation.

The bigger shift is underneath. Wisec now records the life of each finding: when it appeared, when it was fixed, whether it came back. "Fixed" is only claimed when the tool that reported the finding ran again and stopped reporting it; otherwise the finding is "no longer observed", because removing a scanner from a pipeline must not look like remediation. Accepting a risk now carries a review date, 90 days by default. Your remediation targets for critical and high findings are yours to set, and every change is written to the audit log with the previous value. A new Exposure page shows all of this, along with which tools actually scanned each project. A count of zero means nothing without saying what was searched for.

Smaller things

  • A read-only API for partners, on the Pro plan. The key is issued by the customer and handed to the partner, so Wisec transmits nothing on its own. It exposes proofs and counts, never findings or personal data.
  • A public status page, hosted away from the platform it monitors, so it does not go down with it. It shows no uptime percentage, because availability is not measured continuously yet.
  • The homepage now leads with the Cyber Resilience Act, and the CRA guide separates what the regulation says from what is still being defined.

What's next

Cross-build component search: when an exploited vulnerability is published, find in one search which projects, branches and shipped versions contain the affected component, and since when, from the notarized SBOM of every build, exported as a dated, signed report. It is the question the CRA's 24-hour notification will ask first. Then SAML, and first design partners.

If you already run scanners in your CI and want to see what their output becomes once it is evidence, I am looking for two or three teams to try it on a real pipeline.

👉 wisec.io - Notarize your first build for free.