Skip to content

Security model ​

AgentProof is honest about what it does and does not protect. Read this before verifying changes you do not trust.

Local mode is not a sandbox ​

Trusted local execution runs your checks with your privileges. A temporary HOME and an exported checkout reduce accidental mess and some secret leakage, but they do not prevent code from:

  • reading other files your user can read,
  • making network requests,
  • consuming CPU, memory and disk.

For untrusted changes — including agent-authored changes you have not reviewed — run AgentProof inside a disposable, unprivileged environment that you or your CI owner control. Do not expose privileged tokens, production credentials, Docker sockets or valuable host mounts to it.

Threats and boundaries ​

ThreatMitigation or documented boundary
Candidate weakens its own policyApply a policy from a protected base revision with --config.
Candidate changes acceptance testsKeep acceptance tests outside the candidate's control.
Stale test report "passes"The expected JUnit report is removed before the check runs.
Missing or truncated evidenceFail closed with ERROR or UNVERIFIED.
Archive escapePaths and entry types are validated before extraction.
HTML injection in the receiptAll evidence is escaped; a restrictive CSP is applied.
Secret leakageMinimal environment forwarding; review artifacts before sharing.
Forged receiptReceipts are unsigned and editable; treat them accordingly.
Runaway processTimeouts and process-group cancellation (weaker on Windows).
Dangerous CI permissionsSeparate verification and deployment; minimize permissions.

Protected policy and tests ​

If a candidate change can edit the contract or the acceptance tests, it can make the gate pass without doing the work. To raise the bar:

  • Policy: keep agent-proof.json on a protected base branch and apply it with --config. The receipt records the policy's SHA-256 so you can confirm which bytes ran.
  • Tests: keep acceptance tests where the candidate change does not modify them, and point requirements at those tests.

See the CI guide for a concrete GitHub Actions setup.

Provenance and signatures ​

A receipt proves only that the declared checks were run and what they reported. It is unsigned and editable:

  • A plain content hash, if present, is for integrity, not authentication. AgentProof never describes a hash as a signature or an independent attestation.
  • Signed attestations and identity verification are future work, not implemented in this preview.

Evidence honesty ​

AgentProof verifies the declared evidence workflow. It cannot certify that your tests have adequate assertions, or that a command did not fabricate its output. A weak test still produces a passing receipt. Review the policy, the tests and the source together — the receipt tells a reviewer where to look, not that looking is unnecessary.

Reporting a vulnerability ​

See SECURITY.md in the repository for how to report security issues privately.

Developer preview. Receipts are unsigned and prove only the declared checks. Apache-2.0 licensed.