Automate SOC 2 evidence collection by exporting audit logs and access reviews from cloud provider APIs

domain: aicpa.org/soc2 · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify the SOC 2 trust service criteria (CC6, CC7, CC9 are most relevant to technical evidence) and map each criterion to a specific data source (CloudTrail, GCP Audit Logs, Okta System Log, GitHub Audit Log)
  2. Script periodic exports: for AWS use `cloudtrail:LookupEvents` filtered by event source and time range; for GCP use the Logging API `entries.list` method with a suitable filter
  3. Store exported logs in an append-only, versioned object store (e.g., S3 with Object Lock) to preserve tamper-evident evidence
  4. Generate access review reports by querying your IdP (Okta, Azure AD) for group memberships and comparing them to the authorized access list in your HR system
  5. Package evidence files with metadata (collection date, source system, SHA-256 hash) into a structured evidence archive uploaded to your GRC platform (Vanta, Drata, Secureframe, etc.)

Known gotchas

Related routes

Export Microsoft 365 unified audit logs at scale using the Office 365 Management Activity API
learn.microsoft.com · 5 steps · unrated
Extract SOX and audit evidence from accounting systems: change logs and approval trails
accounting-general · 6 steps · unrated
Automate FedRAMP System Security Plan control evidence collection and formatting
fedramp.gov · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans