← all posts
COMPLIANCE AUTOMATION · SOC 2

Stop Screenshotting Consoles: Automating SOC 2 Evidence

Why audit evidence shouldn’t be a picture of a settings page, and what I learned building an open-source tool that asks the systems directly.

Ajay Magar · 7 min read · github.com/Ajaymagar/evidence-collector
TL;DR
  • Most SOC 2 evidence is still a screenshot of a console, taken once a quarter and uploaded by hand.
  • I built evidence-collector, an open-source tool that asks AWS, GitHub, Okta and Drata directly, maps every answer to the SOC 2 criterion it proves, and writes a hashed evidence pack.
  • Its first real run taught me the most important design rule for compliance tooling: never turn “I can’t see it” into “it’s fine”.

The problem: proof by screenshot

Writing a security control is the easy part. “All console users must use MFA” takes one sentence in a policy. Proving it is where the time goes.

In most SOC 2 programs, proof looks like this: someone opens the AWS console, finds the IAM users page, takes a screenshot, and uploads it to a compliance platform. Then they do the same for GitHub branch protection, for Okta MFA policies, for CloudTrail, and for a few dozen other settings. Next quarter, they do it all again.

That evidence has three problems:

Building an AI agent that answers security questionnaires taught me that a claim is only as good as the evidence behind it. The APIs already know the answers. So why are we taking pictures of them?

BEFORE Open consoleper account, per setting Screenshotone moment in time Upload by handto the GRC tool Repeat quarterlydrift goes unseen AFTER Ask the APIread-only, every account Evaluatepass · fail · unknown Map to SOC 2CC6.1, CC8.1 … Hashed packon a schedule
Same goal, very different cost and confidence.

The idea: ask the systems, keep the answers

evidence-collector runs four steps, and each one exists for a reason.

  1. Collect. Read-only calls to each provider: AWS IAM, CloudTrail, GuardDuty, S3 and EC2; GitHub org settings and branch rules; Okta policies and users; Drata control status.
  2. Evaluate. Small, tested functions decide the verdict. Does any IAM user with console access lack MFA? Does any security group expose SSH to the whole internet?
  3. Map. Each check is tied to the SOC 2 criteria and ISO 27001 controls it supports. Engineers think in settings; auditors think in criteria. The map is the translator.
  4. Write. Every raw answer is saved as timestamped JSON, its SHA-256 goes into a manifest, and a readable report summarises coverage per criterion.

The mapping step is what makes the output useful to an auditor rather than just to an engineer:

What the engineer checksWhat the auditor reads
Every console user has MFACC6.1 Logical access security
Okta users inactive for 90+ daysCC6.2 / CC6.3 Access provisioning and removal
No SSH or RDP open to the internetCC6.6 Boundary protection
CloudTrail and GuardDuty on everywhereCC7.2 Security monitoring
Default branches need an approving reviewCC8.1 Change management

Four rules I built it around

Read-only, alwaysA compliance tool that can change production is itself an audit finding. It only sends read requests.
Evidence, not opinionsRaw API responses are kept and hashed, so anyone can check what the tool saw and when.
Unknown is not passIf the credential can’t see a setting, the report says so. More on this below.

The fourth rule is that one broken source must never sink the run. If Okta is down, the AWS and GitHub evidence still gets written, and the report lists Okta as skipped with the reason.

What the first real run taught me

I pointed it at a real organization’s GitHub, with a few hundred repositories, and at its compliance platform. Three things happened, and each one justified a design decision.

It found drift immediately. Almost every default branch required an approving review. Two didn’t: they were protected, but had no review rule. That’s exactly the kind of gap that sits unnoticed between quarterly screenshots, and here it showed up in the first minute.

It couldn’t see everything, and said so. GitHub only shows whether an org enforces 2FA to org owners. My token wasn’t an owner’s. A lazy tool would report nothing and look clean; this one reports unknown, with the reason. For an audit tool, a false “pass” is the worst possible bug, because it turns a gap into a comfortable signature.

Its own credential had quietly expired. The compliance platform rejected the API key. Instead of a half-empty report that looks complete, the pack recorded the failure as an error, with the exact call that failed. That small detail is the difference between evidence you can trust and evidence you have to double-check.

PASS The control is operating, and here is the API response that proves it. FAIL / WARN Something is off. The findings list exactly what, so it can be fixed. UNKNOWN The credential can’t see this. Never silently counted as a pass. ERROR The call failed. Recorded with the reason, not dropped.
Five statuses, because “not visible” and “broken” are not the same as “fine”.

Try it

It’s MIT-licensed and needs nothing but read-only credentials. Start with one source; a GitHub token alone is enough:

pip install -e ".[aws]"
evidence-collector --sources github --github-org your-org

The repository has a sample evidence pack built from synthetic data, the full check reference, and a minimal IAM policy so you never have to hand it more access than it needs.

What’s next

If your team still screenshots consoles for audits, I’d love to hear what you’d want it to check next.