← Blog

Turning an exported, verifiable log into evidence for your own assessment (no certification claimed)

Your auditor will ask how you control AI agents. How to turn an agent platform's audit log into evidence an assessor can test: map entries to the Trust Services Criteria, prove the population is complete, pick periods, and keep the chain of custody.

If your company goes through a SOC 2 examination, AI agents will come up. Your assessor will want to know who can start an agent, what it can reach, who approves risky actions and how you would notice if something went wrong. Saying “we have logs” is not an answer. An assessor tests controls by looking at evidence, and a log only counts as evidence if it is complete, accurate and tied to a control you actually operate.

This post is about that translation step: from a platform’s audit log to evidence you can hand over. Two disclaimers up front. We are not auditors, and nothing here replaces your assessor’s judgement. And a vendor’s log never makes you certified or compliant; the controls are yours, and so is the report.

Start from the control, not the log

An audit log is raw material. Evidence is an answer to a specific control. So write the controls first, in your own words, and only then decide which log entries support each one.

The 2017 Trust Services Criteria used for SOC 2 are written broadly. A few of the common criteria map naturally onto agent work:

Criterion (summary) A control you might write for agents Log entries that support it
CC6.1: logical access is restricted Agents run with the access of the person running them; network is limited by an allowlist Sign-ins, sandbox starts with the starting identity, network policy in force
CC6.2 and CC6.3: access is granted, changed and removed with authorization Roles are granted through groups; access requests are approved by someone other than the requester Role and group changes, access requests and who approved them
CC7.2: system components are monitored for anomalies Denied network attempts and blocked tool calls are reviewed Egress denials, policy blocks, DLP hits
CC7.3 and CC7.4: security events are evaluated and responded to An organization-wide stop exists and is used when needed Kill switch use, sandboxes stopped, keys revoked
CC8.1: changes are authorized before they are implemented Changes an agent proposes to production repos need human review Approvals asked for and given, linked to the run

The numbering above is from the criteria; the controls and the mapping are an example. Your assessor may map things differently, and that conversation is worth having before the period starts, not at the end of it.

The three things an assessor checks about a log

When a report or export is used as evidence, assessors generally want comfort on three points before they rely on it.

Completeness. Does the population contain every relevant event in the period, not just the ones someone chose to export? If you hand over 200 approvals, the assessor needs some reason to believe there were not 220.

Accuracy. Is each entry correct? Does “approved by maya at 14:02” reflect what happened?

Integrity since export. Was the file changed between the system producing it and the assessor reading it?

Ordinary logs are weak on all three. Entries can be deleted, edited or simply never written, and a CSV in a shared drive can be edited by anyone with access. This is where a tamper-evident log helps. In a hash-chained log, each entry carries the hash of the one before it, so deleting or editing an entry breaks the chain at that point. A verification over a period is then a direct test of completeness and integrity for that period, which is much easier to defend than “we did not touch it”.

A chain does not prove accuracy by itself. It proves the record was not changed after it was written. Accuracy still rests on the system writing the right thing in the first place, which is why the identity in each entry should come from authentication, not from a field the caller filled in.

Populations and samples

Assessors rarely read every entry. They ask for a population (all approvals in the period, all access changes, all new members) and pick a sample to test. Make that easy:

  1. Export by period and by action type. “Every approval from 1 July to 30 September” is a population. “Everything from last quarter” is a haystack.
  2. Include identifiers you can follow. Each entry should carry the actor, the resource, the outcome and a time. For agent work it helps a lot if sandboxes carry labels that tie them to a ticket or PR, so a sampled entry can be traced to the change it produced.
  3. Keep the verification result with the export. Hand over the entries together with the result of checking the chain over the same range. An export without its check is just a file.
  4. Write down how the population was produced. Which query, which filters, run by whom, on what date. This is the part teams forget, and it is the first thing asked when a number looks off.

Periods and retention

A Type II report covers a period of time, often several months to a year. Two practical consequences:

  • Retention must cover the whole period plus margin. If the platform keeps 90 days of logs and your period is twelve months, you need to export on a schedule and store the exports somewhere you control.
  • Export on a cadence, not at the end. Exporting each month or quarter, verifying, and storing the file with its check result spreads the work and catches gaps while they can still be explained.

Store the exports in a location with its own access control and its own record of who touched what. Object storage with versioning and restricted write access is a common choice.

Evidence agents tend to miss

The obvious entries (sandbox started, command run) are easy. These are the ones that usually come up in the walkthrough:

  • Policy changes. Not only what the policy was, but who changed it and when. A strict allowlist is weak evidence if anyone could widen it without a trace.
  • Self-approval attempts. If your control says nobody approves their own request, entries showing such attempts were refused are good evidence the control operates.
  • Secret use without values. You want to show which secrets a run used without the values appearing anywhere. The entry should name the variable, never the value.
  • Offboarding. For a sample of leavers, show that their access ended and that no agent kept acting on their behalf afterwards.
  • The kill switch. If you claim you can stop all agent activity, an entry from a rehearsal is better evidence than a design document.

What a platform can and cannot give you

A platform can give you a complete, verifiable record of what happened inside it. It cannot give you a control environment. Your assessor will still look at how you review the evidence, who reads denials, how often access is reviewed and what you do when something looks wrong. Evidence that nobody looks at supports a control on paper only.

Be careful, too, with vendor claims. A provider’s own certification, if it has one, covers the provider’s controls, not yours. If a provider has no certification, its log can still be useful evidence for your controls; it just has to stand on its completeness and integrity, which is the point of the checks above.

How this works on Sandscale

Sandscale does not claim a certification, and any certification stays with you and your assessor (audit concepts). What it provides is the record. Every action in an organization is written to an audit log where each entry is chained to the one before it: sign-ins, sandboxes and workspaces started and stopped, commands run, files moved, secrets used, approvals asked for and given, policy changes and kill switch use, with who did it, when and where.

Every plan can read the log in the console. Team and Enterprise can export a period, a quarter, a month or the dates your assessor asks for, and Sandscale verifies the chain for every entry in that period and packs the entries and the check result into one file (evidence export). From the API, POST /api/v1/audit-logs/export creates an export for a range and GET /api/v1/audit-logs/verify checks the chain between two times; both are in the audit API reference. For what each entry should contain in the first place, see what an audit log for coding agents should record.

Run your agents in a box of their own

Each sandbox is a Firecracker microVM. Free includes 100 awake vCPU-hours a month.

Start free

Keep reading