AGENT SKILL

compliance-mapping

Map a compliance framework (SOC 2 / GDPR / ISO 27001 / HIPAA) to concrete technical controls and the evidence/artifacts each control needs for audit.

License 许可
MIT
最近更新
2026-10-29
Stars
★ 0
Forks
0

01 前言 Front Matter

name
compliance-mapping
description
Map a compliance framework (SOC 2 / GDPR / ISO 27001 / HIPAA) to concrete technical controls and the evidence/artifacts each control needs for audit.

02 资源文件 1

03 SKILL.md 正文

compliance-mapping

Auditors don't accept intentions; they accept evidence. Translate each framework requirement into a control someone owns and an artifact that proves it runs — or it isn't real.

Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.

When to use

  • Preparing for SOC 2 / ISO 27001 / GDPR / HIPAA, or mapping a requirement to engineering work.
  • A control exists "in policy" but nobody can show it operates.
  • A workflow invokes polymath-security:compliance-mapping.

Not this when: you are finding vulnerabilities (owasp-review) or modeling threats (stride-threat-model). Compliance maps requirements→controls→evidence; it is not a vuln hunt.

Inputs

  • The framework(s) in scope and the system/data boundary (what's in scope).
  • Existing controls and where they're enforced.

Procedure

  1. Define scope precisely: which systems, data classes, and environments the audit covers. Out-of-scope must be justified and isolated.
  2. Pull the relevant control families (this mapping is engineering input, not legal advice — scope interpretations go to your auditor or counsel): e.g. SOC 2 Trust Services Criteria (Security/Availability/Confidentiality/…), ISO 27001 Annex A, GDPR articles (lawful basis, DSAR, breach notice, DPIA), HIPAA safeguards. Work from the actual criteria, not memory.
  3. Map each requirement → technical control: access control (least privilege, MFA, review cadence), encryption (at rest/in transit — see crypto-review), logging/monitoring, change management, vulnerability management, backup/DR, vendor management, data retention/deletion.
  4. Name the evidence per control: the artifact an auditor accepts — access-review records, CI logs showing the gate ran, config screenshots/IaC, ticket trails, signed policies, pen-test reports. A control with no evidence source is a finding waiting to happen.
  5. Assign an owner and cadence to each control (who runs it, how often, where it's recorded). Automate evidence collection where possible.
  6. Gap analysis: requirement with no control, or control with no evidence → remediation item with owner + date.
  7. Data-subject obligations (GDPR/CCPA): lawful basis, consent records, DSAR/erasure workflow, processor agreements, breach-notification runbook.

Output

docs/compliance/<framework>-controls.md, in this shape:

# SOC 2 (Security, Availability) — control mapping: payments platform

Scope: prod AWS account 1234…, refund-service, ledger-db; excluded: marketing site (no customer data; separate account).

| Requirement | Control | Enforced at | Evidence | Owner | Cadence |
|---|---|---|---|---|---|
| CC6.1 logical access | SSO + MFA for all prod access | Okta, AWS IAM Identity Center | Okta policy export; IAM IC config (IaC) | platform team | continuous; quarterly review |
| CC6.2 access reviews | Quarterly access review | Okta + Jira ticket | signed review records in Jira PLAT-ACCESS-* | security team | quarterly |
| CC8.1 change mgmt | PR review + CI gates before deploy | GitHub branch protection | branch-protection settings; CI run logs | eng managers | per change |

## Gaps (remediation)
- CC7.2 monitoring: no alert on IAM policy changes → CloudTrail + EventBridge alert · owner: platform team · due: [TBD: date agreed with owner]

Engineering input, not legal advice — scope interpretations go to the auditor.

Quality bar

  • Every in-scope requirement maps to a named control with a concrete evidence artifact.
  • Each control has an owner and a cadence — not just a policy statement.
  • Gaps are explicit remediation items with owners and dates.
  • Scope boundaries (and exclusions) are stated and justified.

04 同仓库更多 Skills