← 返回
未分类 中文

Soc2 Evidence Collector

Generate SOC2 evidence collection checklists, automate evidence gathering scripts, and produce audit-ready evidence packages. Covers all 5 Trust Service Crit...
生成SOC2证据收集清单,自动化证据收集脚本,生成审计就绪的证据包。涵盖所有5个信任服务原则。
afrexai-cto afrexai-cto 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 470
下载
💾 1
安装
1
版本
#latest

概述

SOC2 Evidence Collector

Automate evidence gathering for SOC2 Type I and Type II audits across all 5 Trust Service Criteria.

When to Use

  • Preparing for an upcoming SOC2 audit (Type I or Type II)
  • Building continuous compliance evidence pipelines
  • Auditor requests evidence and you need to gather it fast
  • Onboarding a new client who requires SOC2 compliance proof
  • Annual evidence refresh cycle
  • Gap analysis before engaging an audit firm

Input

Gather these from the user before generating:

Required

  1. Audit type: Type I (point-in-time) or Type II (over a period, typically 3-12 months)
  2. Trust Service Criteria in scope: Security (CC — always required), plus any of: Availability, Processing Integrity, Confidentiality, Privacy
  3. Cloud provider(s): AWS, GCP, Azure, multi-cloud, on-prem, hybrid
  4. Primary tech stack: languages, frameworks, CI/CD, IaC tools
  5. Team size: engineering + ops headcount

Optional

  • Current compliance certifications (ISO 27001, HIPAA, PCI-DSS, etc.)
  • Audit firm name and timeline
  • Previous audit findings or gaps
  • Specific control frameworks already mapped (NIST 800-53, CIS, etc.)
  • SSO/IdP provider (Okta, Azure AD, Google Workspace, etc.)

Evidence Categories

CC — Common Criteria (Security) — Always In Scope

CC1: Control Environment

EvidenceSourceCollection Method
-------------------------------------
Org chart with security rolesHR system / ConfluenceManual export quarterly
Security policy documentsPolicy repo / wikiGit log showing annual review
Code of conduct acknowledgmentsHR systemExport signed acknowledgments
Board/management meeting minutes on securityCalendar + notesScreenshot + agenda export
Risk assessment documentationGRC tool / spreadsheetExport current risk register

CC2: Communication and Information

EvidenceSourceCollection Method
-------------------------------------
Security awareness training recordsLMS / training platformCompletion report export
Onboarding security checklistHR systemTemplate + completion logs
Incident communication proceduresRunbook / wikiVersion-controlled doc with review history
External communication policiesPolicy repoGit log + approval records

CC3: Risk Assessment

EvidenceSourceCollection Method
-------------------------------------
Annual risk assessment reportGRC toolPDF export with sign-off
Vendor risk assessmentsVendor management toolExport assessment records
Penetration test reportsSecurity vendorPDF reports with remediation tracking
Vulnerability scan resultsScanner (Qualys, Nessus, etc.)Automated export, monthly

CC4: Monitoring Activities

EvidenceSourceCollection Method
-------------------------------------
SIEM dashboards and alert configsDatadog / Splunk / CloudWatchScreenshot + config export
Uptime monitoring evidencePingdom / Datadog / UptimeRobotMonthly uptime reports
Log retention configurationCloud provider consoleConfig export / IaC snippet
Anomaly detection rulesSIEM / monitoring toolRule export with change log

CC5: Control Activities

EvidenceSourceCollection Method
-------------------------------------
Access control matrixIdP / IAM consoleExport user-role mappings
MFA enforcement evidenceIdP admin consolePolicy config screenshot
Firewall / security group rulesCloud console / IaCterraform state or console export
Encryption at rest configurationCloud console / IaCConfig export showing encryption enabled
Encryption in transit (TLS)Load balancer / CDN configCertificate + config export

CC6: Logical and Physical Access Controls

EvidenceSourceCollection Method
-------------------------------------
User access reviews (quarterly)IdP + spreadsheetReview meeting notes + updated access list
Terminated user deprovisioningIdP audit logExport showing timely deactivation
SSH key / credential rotation logsSecrets managerRotation event logs
Physical access logs (if applicable)Building managementBadge access reports

CC7: System Operations

EvidenceSourceCollection Method
-------------------------------------
Change management recordsJira / GitHub PRsExport merged PRs with approvals
CI/CD pipeline configurationGitHub Actions / CircleCIConfig file export from repo
Deployment approval processPR review settingsBranch protection rule screenshots
Incident response logsPagerDuty / OpsgenieIncident timeline exports
Backup configuration and test resultsCloud console / IaCBackup policy + restore test logs

CC8: Change Management

EvidenceSourceCollection Method
-------------------------------------
PR review requirementsGitHub / GitLab settingsBranch protection config
Code review evidenceGitHub PR historyExport PRs with review comments
Release notes / changelogsRepoCHANGELOG.md with version history
Rollback proceduresRunbookDocumented procedure with test evidence

CC9: Risk Mitigation

EvidenceSourceCollection Method
-------------------------------------
Business continuity planPolicy repoDocument with annual review evidence
Disaster recovery test resultsDR runbookTest execution logs + results
Insurance certificatesFinance / legalCurrent certificate copies
Sub-processor agreementsLegal / contract managementSigned DPAs + vendor list

A — Availability (If In Scope)

EvidenceSourceCollection Method
-------------------------------------
SLA definitions and monitoringProduct docs + monitoringSLA doc + uptime dashboard exports
Capacity planning documentationArchitecture docsQuarterly capacity review notes
Auto-scaling configurationCloud console / IaCConfig export
Incident response SLA adherencePagerDuty / incident trackerResponse time reports
Redundancy / failover configurationCloud architectureArchitecture diagram + failover test logs

PI — Processing Integrity (If In Scope)

EvidenceSourceCollection Method
-------------------------------------
Data validation rulesApplication code / configCode snippets + test results
QA / testing proceduresCI/CD pipelineTest suite config + pass/fail reports
Error handling and correction proceduresRunbook / codeError handling docs + incident examples
Data reconciliation reportsApplication logs / reportsMonthly reconciliation output

C — Confidentiality (If In Scope)

EvidenceSourceCollection Method
-------------------------------------
Data classification policyPolicy repoDocument with review history
NDA / confidentiality agreementsLegal / HRSigned agreement copies
Data retention and disposal policyPolicy repoPolicy doc + disposal logs
DLP tool configurationDLP tool adminConfig export + alert samples

P — Privacy (If In Scope)

EvidenceSourceCollection Method
-------------------------------------
Privacy policy (public)WebsiteURL + version history
Data processing agreementsLegalSigned DPAs
Consent management recordsCMP / applicationConsent log exports
Data subject request proceduresPolicy repo / ticketingProcedure doc + DSR ticket samples
Privacy impact assessmentsGRC tool / docsPIA reports for high-risk processing

Automation Scripts

When the user's stack is identified, generate shell scripts for automated evidence collection:

AWS Evidence Collection (example)

#!/bin/bash
# SOC2 Evidence Collector — AWS
# Generated by AfrexAI SOC2 Evidence Collector skill
set -euo pipefail

EVIDENCE_DIR="soc2-evidence/$(date +%Y-%m-%d)"
mkdir -p "$EVIDENCE_DIR"/{iam,network,encryption,logging,compute}

echo "=== CC5: Access Controls ==="
aws iam get-account-summary > "$EVIDENCE_DIR/iam/account-summary.json"
aws iam generate-credential-report && sleep 5
aws iam get-credential-report --output text --query Content | base64 -d > "$EVIDENCE_DIR/iam/credential-report.csv"
aws iam list-users --output json > "$EVIDENCE_DIR/iam/users.json"
aws iam list-policies --scope Local --output json > "$EVIDENCE_DIR/iam/custom-policies.json"

echo "=== CC5: Encryption at Rest ==="
aws rds describe-db-instances --query 'DBInstances[*].{ID:DBInstanceIdentifier,Encrypted:StorageEncrypted,KmsKey:KmsKeyId}' > "$EVIDENCE_DIR/encryption/rds-encryption.json"
aws s3api list-buckets --query 'Buckets[*].Name' --output text | tr '\t' '\n' | while read bucket; do
  aws s3api get-bucket-encryption --bucket "$bucket" >> "$EVIDENCE_DIR/encryption/s3-encryption.json" 2>/dev/null || echo "{\"bucket\":\"$bucket\",\"encryption\":\"NONE\"}" >> "$EVIDENCE_DIR/encryption/s3-encryption.json"
done

echo "=== CC4: Logging ==="
aws cloudtrail describe-trails > "$EVIDENCE_DIR/logging/cloudtrail-config.json"
aws cloudwatch describe-alarms --state-value ALARM > "$EVIDENCE_DIR/logging/active-alarms.json"

echo "=== CC5: Network Security ==="
aws ec2 describe-security-groups > "$EVIDENCE_DIR/network/security-groups.json"
aws ec2 describe-vpcs > "$EVIDENCE_DIR/network/vpcs.json"

echo "=== CC6: MFA Status ==="
aws iam list-virtual-mfa-devices > "$EVIDENCE_DIR/iam/mfa-devices.json"

echo "Evidence collected in $EVIDENCE_DIR"
echo "Review and redact sensitive values before sharing with auditors."

GitHub Evidence Collection (example)

#!/bin/bash
# SOC2 Evidence Collector — GitHub
set -euo pipefail

ORG="${1:?Usage: $0 <github-org>}"
EVIDENCE_DIR="soc2-evidence/$(date +%Y-%m-%d)/github"
mkdir -p "$EVIDENCE_DIR"

echo "=== CC8: Branch Protection ==="
gh api "/orgs/$ORG/repos" --paginate --jq '.[].name' | while read repo; do
  gh api "/repos/$ORG/$repo/branches/main/protection" 2>/dev/null > "$EVIDENCE_DIR/${repo}-branch-protection.json" || true
done

echo "=== CC7: Recent Deployments ==="
gh api "/orgs/$ORG/repos" --paginate --jq '.[].name' | head -10 | while read repo; do
  gh api "/repos/$ORG/$repo/deployments?per_page=10" > "$EVIDENCE_DIR/${repo}-deployments.json" 2>/dev/null || true
done

echo "=== CC8: PR Review Evidence ==="
gh api "/orgs/$ORG/repos" --paginate --jq '.[].name' | head -10 | while read repo; do
  gh pr list --repo "$ORG/$repo" --state merged --limit 20 --json number,title,mergedAt,reviewDecision > "$EVIDENCE_DIR/${repo}-merged-prs.json" 2>/dev/null || true
done

echo "=== CC5: Org Security Settings ==="
gh api "/orgs/$ORG" --jq '{two_factor_requirement: .two_factor_requirement_enabled, default_permissions: .default_repository_permission}' > "$EVIDENCE_DIR/org-security.json"

echo "Evidence collected in $EVIDENCE_DIR"

Output Format

Generate a structured evidence package:

soc2-evidence/
├── README.md                    # Overview, scope, period, auditor info
├── evidence-matrix.md           # Full checklist with status (collected/pending/N-A)
├── collection-scripts/
│   ├── collect-aws.sh
│   ├── collect-github.sh
│   ├── collect-idp.sh
│   └── collect-monitoring.sh
├── gap-analysis.md              # Missing evidence + remediation steps
└── schedule.md                  # Evidence collection calendar (what to refresh when)

evidence-matrix.md Format

| # | Control | Evidence | Status | Source | Last Collected | Notes |
|---|---------|----------|--------|--------|---------------|-------|
| CC1.1 | Org chart | org-chart-2026-Q1.pdf | ✅ Collected | HR export | 2026-01-15 | |
| CC5.3 | MFA enforcement | mfa-config.json | ✅ Automated | IdP API | 2026-03-17 | Script: collect-idp.sh |
| CC3.2 | Pen test report | — | ⏳ Pending | External vendor | — | Due 2026-04-01 |

Workflow

  1. Gather inputs (audit type, scope, stack, team size)
  2. Generate the full evidence matrix for in-scope criteria
  3. Mark known evidence sources based on their stack
  4. Generate collection scripts for automated gathering
  5. Identify gaps and generate remediation recommendations
  6. Create an evidence collection schedule (daily/weekly/monthly/quarterly)
  7. Output the complete evidence package

Tips for Users

  • Start 3-6 months before audit: evidence gaps take time to fill
  • Automate early: scripts that run monthly save panic before audit
  • Version everything: auditors love seeing change history
  • Don't fake it: missing evidence is better than fabricated evidence
  • Continuous > point-in-time: Type II requires sustained evidence over the audit period
  • Tag evidence: use consistent naming so auditors can self-serve

AfrexAI Note

This skill generates the framework and automation scaffolding. For hands-on SOC2 audit preparation with managed AI agents handling continuous evidence collection, monitoring, and auditor coordination — that's what AfrexAI's AI-as-a-Service delivers. Contact us at hello@afrexai.com.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 05:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,874
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,873
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,558