MirLabs / The blog / Security / AI

A crash-test report that proves it was not edited

A PDF can be edited in two minutes. CrashMire reports and attestations are signed with Ed25519, with a published public key and a page where anyone can check them.

· Cyril Delage · 4 min read · Lire en français

A wax seal stamped on paper
Photo: mk. s on Unsplash

An AI agent crash-test report gets passed around. It goes from the technical lead to management. Then to purchasing, a customer, an insurer, sometimes a partner who wants to know whether the agent about to be plugged into their data is sound.

At every step, it is a PDF. And a PDF can be edited in two minutes. A "critical" line that becomes "low". A date moved forward three months. Another agent's results table pasted in place of the right one. To the eye, nothing shows.

A crash test exists to say what held and what gave way. If a PDF editor is enough to rewrite the answer, the report no longer proves anything. So I had every CrashMire report and attestation signed.

What exactly is signed

The signature relies on Ed25519, a modern signature algorithm, with the libsodium library built into PHP. The server keeps a private key. The public key is published.

What the key signs is not a black box. It is a short text, line by line, that anyone can rebuild. Here is the format, as written in the code:

CrashMire signature v1
id: sig-<16 hexadecimal characters>
kind: report | attestation
subject: <report reference or attestation code>
sha256: <SHA-256 fingerprint of the exact PDF file, or of the attestation content>
signed_at: <UTC date, YYYY-MM-DDTHH:MM:SSZ>
method: <CrashMire method version>
key: <key identifier>

The line that matters is sha256. It is the file's fingerprint: change a single byte of the PDF, and the fingerprint has nothing in common anymore. Since that fingerprint is in the signed text, you cannot change the report without breaking the signature. And you cannot redo the signature without the private key.

The method line matters too. A crash test is a measurement made with a given version of the method, on given scenarios, at a given date. The signed report keeps that version with it, for good.

Every PDF has its own number

One detail makes all the difference. Each PDF sent or downloaded gets its own signature number, of the form sig-…. That number is printed in the document, in an "Electronic signature" box and in the footer. Only then is the exact file hashed, signed and entered in the register.

The result: the printed number designates that file, byte for byte. Not "a report roughly like this one". That file.

For an attestation, the content is what gets signed: its code, the fingerprint of the tested state, the facts and dates, frozen when it is created. Its signature block is shown on its page. A withdrawn attestation is never signed again. And if the content no longer matches what was signed, the check says so.

Checking, without trusting me

There are two ways to check a document.

The verification page, at crashmire.com/en/verify. You drop the PDF, paste the signature block, or open the link /en/verify/sig-…. The answer fits in three words: valid, not valid or unknown. With the reason and what was signed. For example: "This file is not the one that was signed under this number: it was changed, or it is another document." The dropped file is read in memory to compute its fingerprint, then forgotten.

Without going through my site at all. The public key is served as plain text at a stable address, /signing-key.txt, with the exact format of the signed text. Any Ed25519 tool will do. In PHP, the check fits in one line:

sodium_crypto_sign_verify_detached($signature, $signedText, $publicKey);

That is what makes the system solid. A verification page that only I control would be "take my word for it". With the public key published, nobody needs to believe me. The calculation is enough.

Why it is solid

  • The private key never touches the code repository. It is read from the server's environment. The command that generates it writes it only into output redirected to the server's configuration file: it is never shown on screen. It only shows the public key.
  • No key, no false promise. With no key configured, everything keeps working, and both reports and attestations say plainly "not signed".
  • A signature is never quietly redone. If an attestation's content no longer matches what was signed, it is not re-signed: the check answers "not valid".
  • The register keeps nothing about the tested agent. Only the number, the fingerprint, the date, the method version and the reference. It is kept so that a signature stays verifiable even after the crash test's material is deleted.
  • The verification page is protected: token-protected form, files of 20 MB at most, number of checks limited per address and per hour.
  • Everything is tested: signature of every PDF delivered, an edited attestation that fails, the published public key, a key generator that leaks nothing.

One clarification, because it matters. The signature proves one thing: the document comes from CrashMire and has not been changed since. It says nothing more than the document. A signed report remains a measurement, on those scenarios, those models, at that date. It is not a promise about the agent's future.

AI agents need proof, not screenshots

AI agents are being given the right to refund, change a customer record, write in the company's name. An agent without safeguards, pushed by someone patient, can give way on all of that. Nobody is ready to find out in production.

The crash test is there to find out before. But its result is only worth something if it cannot be doctored along the way. A screenshot of a table proves nothing. A signed report, with a public key anyone can use, does.

Your turn

Start by seeing what a crash test catches. On the CrashMire demo, each message goes to two Léa: the one whose rules live only in the prompt, and the one that went through the crash test, with locks in code. Try to make them give in.

And if someone ever hands you a CrashMire report or attestation, do not take it on trust: drop it on the verification page.

A project like this one?AI integration, a site to make readable by assistants, security: let's talk.
Contact me

Read next