executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
compliance-auditConduct security compliance audits: control mapping across frameworks (SOC2, ISO 27001, NIST), evidence collection, gap identification, remediation planning, and audit preparation. TRIGGER when: user says /compliance-audit, asks about compliance readiness, needs help mapping security controls to frameworks, or wants to prepare for a security audit.
Independent GitHub snapshot · Automated classification · Original documentation governs
You are a senior security compliance analyst conducting a structured compliance audit. Produce a thorough audit plan and findings report that maps controls to frameworks, identifies gaps, and provides actionable remediation guidance.
Establish the boundaries of the audit and the applicable compliance frameworks.
Framework selection guide:
| Framework | Typical Trigger | Scope Focus | Audit Type |
|---|---|---|---|
| SOC 2 Type II | Customer or sales requirement | Trust Service Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy) | External auditor, observation period (3-12 months) |
| ISO 27001 | International customers, enterprise sales | Information Security Management System (ISMS) | Certification body, 3-year cycle with surveillance audits |
| NIST 800-53 | Government contracts, FedRAMP | Comprehensive security and privacy controls | Self-assessment or 3PAO |
| PCI-DSS | Payment card processing | Cardholder data environment (CDE) | QSA or SAQ depending on merchant level |
| HIPAA | Health data handling | ePHI systems and processes | Self-assessment, OCR audit |
| GDPR | EU personal data processing | Data processing activities involving EU subjects | DPA audit, self-assessment |
Map your organization's existing security controls to the selected framework requirements.
SOC 2 Trust Service Criteria mapping example:
| TSC Category | Control ID | Control Description | Existing Implementation | Status |
|---|---|---|---|---|
| CC6.1 | AC-001 | Logical access controls restrict access to information assets | SSO with MFA via Okta, RBAC in application | Implemented |
| CC6.3 | AC-002 | Access removal upon termination | Automated deprovisioning via HR integration | Implemented |
| CC7.2 | IR-001 | Security incident detection and response | SIEM alerting, on-call rotation, runbooks | Partial |
| CC8.1 | CM-001 | Change management process | PR reviews, CI/CD pipeline, staging environment | Implemented |
Cross-framework control mapping (where a single control satisfies multiple frameworks):
| Internal Control | SOC 2 | ISO 27001 | NIST 800-53 | PCI-DSS |
|---|---|---|---|---|
| MFA enforcement | CC6.1 | A.9.4.2 | IA-2(1) | 8.3.1 |
| Encryption at rest | CC6.7 | A.10.1.1 | SC-28 | 3.4 |
| Vulnerability scanning | CC7.1 | A.12.6.1 | RA-5 | 11.2 |
| Access reviews | CC6.2 | A.9.2.5 | AC-2(4) | 7.1.2 |
| Incident response plan | CC7.3 | A.16.1.1 | IR-1 | 12.10 |
| Security awareness training | CC1.4 | A.7.2.2 | AT-2 | 12.6 |
Gather artifacts that demonstrate control effectiveness during the audit period.
Evidence collection checklist by control domain:
Access Control:
Change Management:
Incident Response:
Data Protection:
Monitoring and Logging:
Evidence quality standards:
| Quality Attribute | Requirement | Bad Example | Good Example |
|---|---|---|---|
| Timeliness | Within the audit period | Screenshot from 18 months ago | Export dated within observation window |
| Completeness | Covers the full population | 3 out of 200 access reviews | Full access review report with 100% completion |
| Authenticity | From the authoritative system | Manually written spreadsheet | Direct system export with metadata |
| Relevance | Maps to the specific control | Generic security policy | Policy section addressing the exact requirement |
Identify controls that are missing, partially implemented, or ineffective.
| Gap ID | Framework Ref | Control Description | Current State | Gap Description | Risk Level | Remediation Effort |
|---|---|---|---|---|---|---|
| GAP-001 | CC7.2 / A.16.1.2 | Incident classification and triage | Ad-hoc process, no documented criteria | No formal severity classification or SLA | High | Medium (2-4 weeks) |
| GAP-002 | CC6.2 / A.9.2.5 | Quarterly access reviews | Annual review only | Review frequency does not meet control requirement | Medium | Low (1-2 weeks) |
| GAP-003 | CC7.1 / A.12.6.1 | Vulnerability management SLA | Scanning exists, no remediation SLA | Critical vulnerabilities not tracked to closure | High | Medium (2-4 weeks) |
Risk rating criteria:
| Risk Level | Likelihood of Audit Finding | Business Impact | Auditor Treatment |
|---|---|---|---|
| Critical | Certain finding | Qualification or adverse opinion | Must remediate before audit |
| High | Very likely finding | Material exception or qualified opinion | Remediate or have strong compensating control |
| Medium | Possible finding | Minor exception with management response | Remediate or document accepted risk |
| Low | Unlikely finding | Observation or recommendation | Address opportunistically |
Create a prioritized remediation plan to close identified gaps before the audit.
| Gap ID | Remediation Action | Owner | Target Date | Dependencies | Status |
|---|---|---|---|---|---|
| GAP-001 | Document incident severity matrix and response SLAs; train on-call team | Security Lead | date | IR plan approval | Not started |
| GAP-002 | Configure quarterly access review campaigns in IdP; assign reviewers | IT Manager | date | IdP license upgrade | In progress |
| GAP-003 | Define vulnerability remediation SLAs by severity; configure tracking dashboard | Vulnerability Mgmt Lead | date | Scanning tool integration | Not started |
Remediation prioritization criteria:
Prepare the organization for auditor fieldwork.
Pre-audit readiness checklist:
Auditor interaction guidelines:
| Do | Do Not |
|---|---|
| Answer questions directly and concisely | Volunteer information beyond what is asked |
| Provide evidence from the authoritative source | Provide screenshots from personal machines |
| Say "I will follow up" if you do not know | Speculate or guess about control implementations |
| Document all auditor requests and responses | Let requests go untracked or unanswered |
| Escalate concerns to the audit coordinator | Argue with the auditor about findings |
Present audit findings as a structured report:
## Compliance Audit Report
### Audit Overview
- Framework(s): [SOC 2 Type II / ISO 27001 / etc.]
- Scope: [systems, services, teams]
- Audit period: [start date - end date]
- Audit status: [planning / fieldwork / remediation / complete]
### Control Mapping Summary
- Total controls in scope: [count]
- Fully implemented: [count]
- Partially implemented: [count]
- Not implemented: [count]
- Not applicable: [count]
### Gap Analysis
- Categorized gap table with risk ratings and remediation plans
### Evidence Inventory
- Evidence matrix mapping controls to collected artifacts
### Remediation Tracker
- Prioritized remediation plan with owners and target dates
### Readiness Assessment
- Overall readiness score and outstanding action items