A security audit that remembers what it checked
We built a small controller that saves investigations, checks source revisions, and keeps unproved vulnerabilities unresolved.
An agent can spot a suspicious line. What makes its conclusion worth handing to the engineer who must fix it?
A suspicious line of code is the start of an audit. The useful result is a claim another engineer can check: who can do what, which boundary fails, and what evidence supports it. We built a small harness to keep those claims attached to the work that produced them.
What the harness does
Think of a lab notebook with a queue. The investigator gets a narrow question. The notebook records the source revision, the answer, the evidence, and the next person who checks it. If the investigation stops, the notebook survives.
scope + source hashes
-> map the application
-> investigate each declared boundary
-> ask a fresh verifier to disprove each candidate
-> report evidence, gaps, and next checks
SQLite keeps the state between steps.Cloudflare's released security-audit skill gave us a concrete starting point. We pinned it, retained its license, and added a separate Python and SQLite controller for our source reviews. The upstream skill and our controller have separate report contracts. Installing one does not mean the other workflow has been completed.
A small example
Imagine an invoice API. Alice owns invoice A. Bob owns invoice B. The question is whether Alice can read B by changing the invoice ID. Reading a database query is only one step. We also need to trace the caller, authentication, owner checks, middleware, and the response.
A hunter might suspect the handler fetches any invoice ID. A fresh verifier then looks for the strongest reason that claim is wrong. Perhaps middleware already restricts the query to the current customer. That evidence rejects the theory. If the decisive behavior needs a running service, the result stays unresolved until a safe test can establish it.
A complete runtime finding would need a test with dummy Alice and Bob against unchanged source, an independent repeat, and a proposed fix. The regression should fail before that fix and pass after it. A real customer's invoice is never needed.
What we actually ran
We ran a bounded source review of our Metrics Worker: three declared checks, six completed controller tasks, and two candidates independently retained as needing validation. No runtime vulnerability was confirmed. The private report records the missing evidence and the controls the reviewers found. Those counts describe that run, not the security of the whole product.
We also inspected 88 workspace folders and the Edible Factor fleet to distinguish applications from prototypes, archives, and duplicate worktrees. Small skill entrypoints now exist in 23 canonical repositories. That is an installation count. It is not 23 completed audits.
The first version has a deliberate limit
Our controller executes no application code. It rejects a confirmed verdict because we have not built its sandbox and execution-evidence adapter. Every v1 report says incomplete_runtime_validation, even when the source-review queue is empty. Otherwise a neat report could hide unfinished work.
The code still enforces useful gates. Scoped files are hashed. A change to a scoped source file blocks task completion. Claims and retries persist in SQLite. Each claim gets an attempt token, so a late worker cannot finish a replacement task. The hunter cannot take its own validation task. Reports include exclusions and remaining work.
These are controller checks, not isolation. The lead owns the database; source-reading workers must not receive its write capability. A different actor name does not create a security boundary. Fresh sessions also share a model's habits, so we record what ran without claiming cross-model validation.
Where this fits in an audit
For our software-audit service, this gives an engineer a repeatable starting point and a record of what still needs evidence. It does not replace deployment review, backup restoration, dependency checks, or a human deciding which fixes to ship. An application with no reported findings has not been proved secure.
Edible Factor makes the next scope clear: map its clients to the backend decisions that enforce tenant and role boundaries. Separate repositories are an organizational detail; the request path is what matters. That mapping must be explicit before we claim a fleet audit.
The next implementation step is a contained execution adapter: no external network, a clean environment, read-only source and tools, scratch-only writes, resource limits, and safe evidence collection.
Sources
- Cloudflare's released skill: https://github.com/cloudflare/security-audit-skill
- Cloudflare's harness article: https://blog.cloudflare.com/build-your-own-vulnerability-harness/