1---
2name: infrastructure-compliance-auditor
3description: >
4 Cross-cutting infrastructure security audit skill that checks cloud
5 infrastructure, DNS, TLS, endpoints, access control, network security,
6 containers, CI/CD pipelines, secrets management, logging, and physical
7 security against ALL major compliance frameworks. Use for infrastructure
8 audit, cloud security audit, infrastructure compliance, DNS security audit,
9 TLS audit, endpoint security, access control audit, network security
10 assessment, infrastructure security, cloud compliance, Vanta alternative,
11 compliance automation, security posture assessment, hardware security keys,
12 YubiKey compliance.
13license: MIT + Commons Clause
14metadata:
15 source: https://skillmd.com/skills/aibot88/infrastructure-compliance-auditor
16 version: 1.0.0
17 author: borghei
18 category: compliance
19 domain: infrastructure-security
20 updated: 2026-03-31
21 tags: [infrastructure-audit, cloud-security, dns, tls, compliance-automation]
22---
23# Infrastructure Compliance Auditor
24
25Cross-cutting infrastructure security audit across ALL compliance frameworks. Replaces manual Vanta-style checks with deterministic, repeatable, evidence-generating infrastructure audits covering cloud, DNS, TLS, endpoints, access control, network, containers, CI/CD, secrets, logging, and physical security.
26
27---
28
29## Table of Contents
30
31- [Trigger Phrases](#trigger-phrases)
32- [Quick Start](#quick-start)
33- [Tools](#tools)
34- [Audit Domains](#audit-domains)
35 - [1. Cloud Infrastructure Security](#1-cloud-infrastructure-security)
36 - [2. DNS Security](#2-dns-security)
37 - [3. TLS/SSL Security](#3-tlsssl-security)
38 - [4. Endpoint Security](#4-endpoint-security)
39 - [5. Access Control and Authentication](#5-access-control-and-authentication)
40 - [6. Network Security](#6-network-security)
41 - [7. Container and Kubernetes Security](#7-container-and-kubernetes-security)
42 - [8. CI/CD Pipeline Security](#8-cicd-pipeline-security)
43 - [9. Secrets Management](#9-secrets-management)
44 - [10. Logging and Monitoring](#10-logging-and-monitoring)
45 - [11. Physical Security](#11-physical-security)
46 - [12. Compliance Framework Mapping](#12-compliance-framework-mapping)
47- [Workflows](#workflows)
48- [Reference Guides](#reference-guides)
49- [Validation Checkpoints](#validation-checkpoints)
50- [Scoring Methodology](#scoring-methodology)
51
52---
53
54## Trigger Phrases
55
56Use this skill when you hear:
57- "infrastructure audit"
58- "cloud security audit"
59- "infrastructure compliance"
60- "DNS security audit"
61- "TLS audit"
62- "endpoint security"
63- "access control audit"
64- "network security assessment"
65- "infrastructure security"
66- "cloud compliance"
67- "Vanta alternative"
68- "compliance automation"
69- "security posture assessment"
70- "hardware security keys"
71- "YubiKey compliance"
72
73---
74
75## Quick Start
76
77### Run Full Infrastructure Audit
78
79```bash
80python scripts/infra_audit_runner.py --config infrastructure.json --output audit_report.json
81```
82
83### Audit DNS Security for a Domain
84
85```bash
86python scripts/dns_security_checker.py --domain example.com --output dns_report.json
87```
88
89### Audit Access Controls
90
91```bash
92python scripts/access_control_auditor.py --config access_controls.json --output access_report.json
93```
94
95### Generate Compliance-Mapped Report
96
97```bash
98python scripts/infra_audit_runner.py --config infrastructure.json --frameworks soc2,iso27001,hipaa --format markdown --output compliance_report.md
99```
100
101---
102
103## Tools
104
105| Tool | Purpose | Input |
106|------|---------|-------|
107| `infra_audit_runner.py` | Full infrastructure audit across all 11 domains | JSON config describing infrastructure |
108| `dns_security_checker.py` | DNS-specific security audit (SPF, DKIM, DMARC, DNSSEC, CAA, MTA-STS) | Domain name |
109| `access_control_auditor.py` | Access control, MFA, SSO, PAM, RBAC audit | JSON config describing access controls |
110
111---
112
113## Audit Domains
114
115### 1. Cloud Infrastructure Security
116
117#### AWS Security Audit Checklist
118
119**IAM Policies and Roles**
120
121| Check ID | Control | Severity | Frameworks |
122|----------|---------|----------|------------|
123| AWS-IAM-001 | Root account has MFA enabled (hardware MFA preferred) | Critical | SOC 2 CC6.1, ISO 27001 A.9.2.1, PCI-DSS 8.3, NIST CSF PR.AC-1, HIPAA 164.312(d), FedRAMP AC-2 |
124| AWS-IAM-002 | Root account has no access keys | Critical | SOC 2 CC6.1, ISO 27001 A.9.2.3, PCI-DSS 2.1, NIST CSF PR.AC-4 |
125| AWS-IAM-003 | No IAM policies with `"Effect": "Allow", "Action": "*", "Resource": "*"` | Critical | SOC 2 CC6.3, ISO 27001 A.9.4.1, PCI-DSS 7.1, NIST CSF PR.AC-4 |
126| AWS-IAM-004 | All IAM users have MFA enabled | High | SOC 2 CC6.1, ISO 27001 A.9.4.2, PCI-DSS 8.3, HIPAA 164.312(d) |
127| AWS-IAM-005 | IAM password policy enforces minimum 14 characters | Medium | SOC 2 CC6.1, ISO 27001 A.9.4.3, PCI-DSS 8.2.3, NIST CSF PR.AC-1 |
128| AWS-IAM-006 | IAM roles use external ID for cross-account access | Medium | SOC 2 CC6.3, ISO 27001 A.9.2.1 |
129| AWS-IAM-007 | Unused IAM credentials (>90 days) are disabled | Medium | SOC 2 CC6.2, ISO 27001 A.9.2.6, PCI-DSS 8.1.4 |
130| AWS-IAM-008 | IAM Access Analyzer is enabled in all regions | Medium | SOC 2 CC6.1, ISO 27001 A.9.2.5 |
131| AWS-IAM-009 | No inline IAM policies (use managed policies) | Low | ISO 27001 A.9.2.2 |
132| AWS-IAM-010 | IAM policy conditions restrict by source IP or VPC where possible | Low | SOC 2 CC6.6, NIST CSF PR.AC-3 |
133
134**S3 Bucket Security**
135
136| Check ID | Control | Severity | Frameworks |
137|----------|---------|----------|------------|
138| AWS-S3-001 | S3 Block Public Access enabled at account level | Critical | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 1.3, HIPAA 164.312(e)(1), GDPR Art.32 |
139| AWS-S3-002 | No S3 buckets with public ACLs or policies | Critical | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 1.3, HIPAA 164.312(e)(1) |
140| AWS-S3-003 | Server-side encryption enabled (SSE-S3 minimum, SSE-KMS preferred) | High | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 3.4, HIPAA 164.312(a)(2)(iv), GDPR Art.32 |
141| AWS-S3-004 | Versioning enabled on critical data buckets | Medium | SOC 2 CC6.7, ISO 27001 A.12.3.1 |
142| AWS-S3-005 | Access logging enabled for all buckets | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.2 |
143| AWS-S3-006 | Lifecycle policies configured for log retention | Low | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
144| AWS-S3-007 | MFA Delete enabled for critical buckets | Medium | SOC 2 CC6.7, ISO 27001 A.12.3.1 |
145| AWS-S3-008 | S3 Object Lock enabled for compliance data (WORM) | Medium | SEC Rule 17a-4, HIPAA 164.312(c)(1) |
146
147**VPC Configuration**
148
149| Check ID | Control | Severity | Frameworks |
150|----------|---------|----------|------------|
151| AWS-VPC-001 | VPC Flow Logs enabled for all VPCs | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.2, NIST CSF DE.CM-1 |
152| AWS-VPC-002 | Default security group restricts all inbound/outbound | High | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 1.2 |
153| AWS-VPC-003 | No security groups allow 0.0.0.0/0 on SSH (22) or RDP (3389) | Critical | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 1.3, NIST CSF PR.AC-5 |
154| AWS-VPC-004 | Private subnets used for databases and application tiers | High | SOC 2 CC6.6, ISO 27001 A.13.1.3, PCI-DSS 1.3 |
155| AWS-VPC-005 | NACLs configured as additional defense layer | Medium | SOC 2 CC6.6, PCI-DSS 1.2 |
156| AWS-VPC-006 | VPC endpoints used for AWS service access (avoid public internet) | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
157| AWS-VPC-007 | Transit Gateway or VPC Peering uses non-overlapping CIDRs | Low | ISO 27001 A.13.1.1 |
158
159**RDS Security**
160
161| Check ID | Control | Severity | Frameworks |
162|----------|---------|----------|------------|
163| AWS-RDS-001 | Encryption at rest enabled (KMS) | High | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 3.4, HIPAA 164.312(a)(2)(iv) |
164| AWS-RDS-002 | SSL/TLS connections enforced (`rds.force_ssl = 1`) | High | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 4.1 |
165| AWS-RDS-003 | Automated backups enabled with minimum 7-day retention | Medium | SOC 2 CC6.7, ISO 27001 A.12.3.1, HIPAA 164.308(a)(7)(ii)(A) |
166| AWS-RDS-004 | Multi-AZ deployment for production databases | Medium | SOC 2 A1.2, ISO 27001 A.17.1.1 |
167| AWS-RDS-005 | Database instances not publicly accessible | Critical | SOC 2 CC6.6, PCI-DSS 1.3 |
168| AWS-RDS-006 | Enhanced monitoring enabled | Low | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
169| AWS-RDS-007 | Deletion protection enabled for production instances | Medium | SOC 2 CC6.7 |
170
171**CloudTrail and Monitoring**
172
173| Check ID | Control | Severity | Frameworks |
174|----------|---------|----------|------------|
175| AWS-CT-001 | CloudTrail enabled in all regions | Critical | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.1, HIPAA 164.312(b), NIST CSF DE.CM-1, FedRAMP AU-2 |
176| AWS-CT-002 | CloudTrail log file validation enabled | High | SOC 2 CC7.2, ISO 27001 A.12.4.3, PCI-DSS 10.5 |
177| AWS-CT-003 | CloudTrail logs delivered to S3 with encryption | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.5 |
178| AWS-CT-004 | CloudTrail integrated with CloudWatch Logs | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
179| AWS-CT-005 | GuardDuty enabled in all regions | High | SOC 2 CC7.2, NIST CSF DE.CM-1 |
180| AWS-CT-006 | Security Hub enabled with CIS AWS Foundations Benchmark | Medium | SOC 2 CC7.2, NIST CSF DE.CM-1 |
181| AWS-CT-007 | AWS Config enabled with required rules | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, NIST CSF DE.CM-1, FedRAMP CM-8 |
182
183**KMS and Encryption**
184
185| Check ID | Control | Severity | Frameworks |
186|----------|---------|----------|------------|
187| AWS-KMS-001 | Customer-managed KMS keys used for sensitive data | High | SOC 2 CC6.7, ISO 27001 A.10.1.2, PCI-DSS 3.5 |
188| AWS-KMS-002 | KMS key rotation enabled (annual automatic rotation) | Medium | SOC 2 CC6.7, ISO 27001 A.10.1.2, PCI-DSS 3.6.4 |
189| AWS-KMS-003 | KMS key policies follow least privilege | Medium | SOC 2 CC6.3, ISO 27001 A.10.1.2 |
190| AWS-KMS-004 | KMS keys have alias and description for identification | Low | ISO 27001 A.10.1.2 |
191
192**Lambda and Serverless Security**
193
194| Check ID | Control | Severity | Frameworks |
195|----------|---------|----------|------------|
196| AWS-LAM-001 | Lambda functions use IAM roles with least privilege | High | SOC 2 CC6.3, ISO 27001 A.9.4.1 |
197| AWS-LAM-002 | Lambda functions do not store secrets in environment variables (use Secrets Manager) | High | SOC 2 CC6.7, PCI-DSS 3.4 |
198| AWS-LAM-003 | Lambda functions deployed in VPC when accessing private resources | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
199| AWS-LAM-004 | Lambda function code is signed | Medium | SOC 2 CC7.1 |
200| AWS-LAM-005 | Dead letter queues configured for async invocations | Low | SOC 2 A1.2 |
201
202**EKS/ECS Container Security**
203
204| Check ID | Control | Severity | Frameworks |
205|----------|---------|----------|------------|
206| AWS-EKS-001 | EKS cluster endpoint not publicly accessible (or restricted by CIDR) | High | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
207| AWS-EKS-002 | EKS control plane logging enabled (api, audit, authenticator) | High | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
208| AWS-EKS-003 | EKS managed node groups use latest AMI | Medium | SOC 2 CC7.1 |
209| AWS-EKS-004 | ECS tasks use awsvpc networking mode | Medium | SOC 2 CC6.6 |
210| AWS-EKS-005 | ECR image scanning enabled on push | High | SOC 2 CC7.1, NIST CSF PR.IP-12 |
211
212#### Azure Security Audit Checklist
213
214**Azure AD / Entra ID**
215
216| Check ID | Control | Severity | Frameworks |
217|----------|---------|----------|------------|
218| AZ-AD-001 | Global Administrator accounts have MFA enforced | Critical | SOC 2 CC6.1, ISO 27001 A.9.2.1, PCI-DSS 8.3 |
219| AZ-AD-002 | Maximum 5 Global Administrator accounts | High | SOC 2 CC6.1, ISO 27001 A.9.2.3 |
220| AZ-AD-003 | Conditional Access Policies configured | High | SOC 2 CC6.1, ISO 27001 A.9.4.2 |
221| AZ-AD-004 | Security Defaults enabled (if no Conditional Access) | High | SOC 2 CC6.1 |
222| AZ-AD-005 | Privileged Identity Management (PIM) enabled for admin roles | High | SOC 2 CC6.1, ISO 27001 A.9.2.3 |
223| AZ-AD-006 | Guest user access restricted | Medium | SOC 2 CC6.1, ISO 27001 A.9.2.2 |
224| AZ-AD-007 | Sign-in risk policy configured (requires P2) | Medium | SOC 2 CC6.1 |
225
226**Azure Network Security**
227
228| Check ID | Control | Severity | Frameworks |
229|----------|---------|----------|------------|
230| AZ-NET-001 | NSG rules follow least privilege (no allow-all inbound) | High | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 1.2 |
231| AZ-NET-002 | Azure Firewall or third-party NVA deployed | Medium | SOC 2 CC6.6, PCI-DSS 1.1 |
232| AZ-NET-003 | DDoS Protection Standard enabled for public IPs | Medium | SOC 2 A1.2, ISO 27001 A.13.1.1 |
233| AZ-NET-004 | Private endpoints used for PaaS services | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
234| AZ-NET-005 | Network Watcher enabled in all regions | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
235
236**Azure Key Vault**
237
238| Check ID | Control | Severity | Frameworks |
239|----------|---------|----------|------------|
240| AZ-KV-001 | Key Vault uses RBAC (not legacy access policies) | High | SOC 2 CC6.3, ISO 27001 A.10.1.2 |
241| AZ-KV-002 | Soft delete and purge protection enabled | High | SOC 2 CC6.7, ISO 27001 A.10.1.2 |
242| AZ-KV-003 | Key Vault diagnostic logging enabled | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
243| AZ-KV-004 | Key rotation policy configured | Medium | SOC 2 CC6.7, PCI-DSS 3.6.4 |
244| AZ-KV-005 | Key Vault firewall enabled (restrict to VNet/IP) | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
245
246**Azure Monitoring**
247
248| Check ID | Control | Severity | Frameworks |
249|----------|---------|----------|------------|
250| AZ-MON-001 | Azure Monitor activity log alerts configured | High | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
251| AZ-MON-002 | Microsoft Sentinel (SIEM) deployed | Medium | SOC 2 CC7.2, NIST CSF DE.AE-2 |
252| AZ-MON-003 | Diagnostic settings enabled for all resources | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
253| AZ-MON-004 | Azure Policy assignments enforcing compliance | High | SOC 2 CC7.1, ISO 27001 A.18.2.2 |
254| AZ-MON-005 | Microsoft Defender for Cloud enabled (all plans) | High | SOC 2 CC7.2, NIST CSF DE.CM-1 |
255
256**Azure Storage Security**
257
258| Check ID | Control | Severity | Frameworks |
259|----------|---------|----------|------------|
260| AZ-ST-001 | Storage accounts require HTTPS transfer | High | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 4.1 |
261| AZ-ST-002 | Storage account public access disabled | Critical | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
262| AZ-ST-003 | Storage accounts use customer-managed keys | Medium | SOC 2 CC6.7, PCI-DSS 3.5 |
263| AZ-ST-004 | Shared Access Signatures (SAS) use short expiry | Medium | SOC 2 CC6.1, ISO 27001 A.9.4.2 |
264
265**AKS Security**
266
267| Check ID | Control | Severity | Frameworks |
268|----------|---------|----------|------------|
269| AZ-AKS-001 | AKS uses managed identity (not service principal) | High | SOC 2 CC6.1, ISO 27001 A.9.4.1 |
270| AZ-AKS-002 | Azure Policy for AKS enabled | Medium | SOC 2 CC7.1 |
271| AZ-AKS-003 | AKS API server authorized IP ranges configured | High | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
272| AZ-AKS-004 | AKS uses Azure CNI (not kubenet) for network policies | Medium | SOC 2 CC6.6 |
273
274#### GCP Security Audit Checklist
275
276**GCP IAM and Service Accounts**
277
278| Check ID | Control | Severity | Frameworks |
279|----------|---------|----------|------------|
280| GCP-IAM-001 | Organization-level IAM policies use groups, not individual users | High | SOC 2 CC6.1, ISO 27001 A.9.2.2 |
281| GCP-IAM-002 | Service accounts do not have Owner/Editor roles | Critical | SOC 2 CC6.3, ISO 27001 A.9.4.1 |
282| GCP-IAM-003 | User-managed service account keys rotate every 90 days | High | SOC 2 CC6.1, PCI-DSS 3.6.4 |
283| GCP-IAM-004 | Domain-restricted sharing enabled via Organization Policy | Medium | SOC 2 CC6.1, ISO 27001 A.9.2.2 |
284| GCP-IAM-005 | Workload Identity used for GKE (no service account keys) | High | SOC 2 CC6.1, ISO 27001 A.9.4.1 |
285
286**GCP VPC and Network**
287
288| Check ID | Control | Severity | Frameworks |
289|----------|---------|----------|------------|
290| GCP-VPC-001 | VPC Service Controls configured for sensitive projects | High | SOC 2 CC6.6, ISO 27001 A.13.1.3 |
291| GCP-VPC-002 | Cloud Armor WAF rules protect public-facing services | High | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
292| GCP-VPC-003 | VPC Flow Logs enabled for all subnets | High | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
293| GCP-VPC-004 | Private Google Access enabled for private subnets | Medium | SOC 2 CC6.6 |
294| GCP-VPC-005 | Firewall rules do not allow 0.0.0.0/0 on SSH/RDP | Critical | SOC 2 CC6.6, PCI-DSS 1.3 |
295
296**GCP Security Services**
297
298| Check ID | Control | Severity | Frameworks |
299|----------|---------|----------|------------|
300| GCP-SEC-001 | Security Command Center (SCC) enabled (Premium) | High | SOC 2 CC7.2, NIST CSF DE.CM-1 |
301| GCP-SEC-002 | Cloud KMS keys have rotation scheduled | Medium | SOC 2 CC6.7, PCI-DSS 3.6.4 |
302| GCP-SEC-003 | Cloud Audit Logs enabled for all services | High | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
303| GCP-SEC-004 | Binary Authorization enabled for GKE | Medium | SOC 2 CC7.1 |
304| GCP-SEC-005 | Organization Policy Service enforces constraints | High | SOC 2 CC7.1, ISO 27001 A.18.2.2 |
305
306**GKE Security**
307
308| Check ID | Control | Severity | Frameworks |
309|----------|---------|----------|------------|
310| GCP-GKE-001 | GKE uses private cluster (no public endpoint) or authorized networks | High | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
311| GCP-GKE-002 | GKE Shielded Nodes enabled | Medium | SOC 2 CC6.7 |
312| GCP-GKE-003 | GKE node auto-upgrade enabled | Medium | SOC 2 CC7.1, NIST CSF PR.IP-12 |
313| GCP-GKE-004 | GKE workload identity enabled (no node service account keys) | High | SOC 2 CC6.1 |
314| GCP-GKE-005 | Container-Optimized OS used for nodes | Medium | SOC 2 CC7.1 |
315
316---
317
318### 2. DNS Security
319
320#### Email Authentication Chain
321
322SPF, DKIM, and DMARC form a layered email authentication system. ALL three must be configured correctly for effective protection against spoofing and phishing.
323
324**SPF (Sender Policy Framework)**
325
326| Check ID | Control | Severity | Frameworks |
327|----------|---------|----------|------------|
328| DNS-SPF-001 | SPF record exists for primary domain | High | SOC 2 CC6.6, ISO 27001 A.13.2.1, NIST CSF PR.AC-3 |
329| DNS-SPF-002 | SPF record uses `-all` (hard fail) not `~all` (soft fail) | High | SOC 2 CC6.6, ISO 27001 A.13.2.1 |
330| DNS-SPF-003 | SPF record has fewer than 10 DNS lookups (RFC 7208 limit) | Medium | SOC 2 CC6.6 |
331| DNS-SPF-004 | SPF record does not use `+all` (permits all senders) | Critical | SOC 2 CC6.6, ISO 27001 A.13.2.1 |
332| DNS-SPF-005 | Non-sending domains have `v=spf1 -all` to prevent spoofing | Medium | ISO 27001 A.13.2.1 |
333| DNS-SPF-006 | SPF record avoids deprecated PTR mechanism | Low | RFC 7208 |
334| DNS-SPF-007 | SPF flattening used if approaching lookup limit | Low | Best practice |
335
336SPF syntax reference:
337```
338v=spf1 include:_spf.google.com include:sendgrid.net ip4:203.0.113.0/24 -all
339```
340
341**Key rules:**
342- Maximum 10 DNS lookups (include, a, mx, ptr, exists, redirect each count as 1)
343- `ip4` and `ip6` mechanisms do NOT count toward the 10-lookup limit
344- Nested includes count toward the limit
345- Record must be a single TXT record (no multiple SPF records)
346- Maximum 255 characters per DNS string (use string concatenation for longer records)
347
348**DKIM (DomainKeys Identified Mail)**
349
350| Check ID | Control | Severity | Frameworks |
351|----------|---------|----------|------------|
352| DNS-DKIM-001 | DKIM record exists for all sending domains | High | SOC 2 CC6.6, ISO 27001 A.13.2.1 |
353| DNS-DKIM-002 | DKIM key is minimum 2048-bit RSA | High | SOC 2 CC6.7, ISO 27001 A.10.1.1 |
354| DNS-DKIM-003 | DKIM keys rotate every 6-12 months | Medium | SOC 2 CC6.7, ISO 27001 A.10.1.2 |
355| DNS-DKIM-004 | Multiple DKIM selectors for different sending services | Low | Best practice |
356| DNS-DKIM-005 | DKIM testing mode (`t=y`) removed for production domains | Medium | SOC 2 CC6.6 |
357
358DKIM record format:
359```
360selector._domainkey.example.com IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkq..."
361```
362
363**DMARC (Domain-based Message Authentication, Reporting, and Conformance)**
364
365| Check ID | Control | Severity | Frameworks |
366|----------|---------|----------|------------|
367| DNS-DMARC-001 | DMARC record exists at `_dmarc.example.com` | High | SOC 2 CC6.6, ISO 27001 A.13.2.1, NIST CSF PR.AC-3 |
368| DNS-DMARC-002 | DMARC policy is `p=reject` (maximum enforcement) | High | SOC 2 CC6.6, ISO 27001 A.13.2.1 |
369| DNS-DMARC-003 | DMARC `rua` (aggregate reporting) tag configured | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
370| DNS-DMARC-004 | DMARC `ruf` (forensic reporting) tag configured | Low | SOC 2 CC7.2 |
371| DNS-DMARC-005 | DMARC subdomain policy `sp=reject` configured | Medium | ISO 27001 A.13.2.1 |
372| DNS-DMARC-006 | DMARC alignment modes — `adkim=s` and `aspf=s` (strict) preferred | Medium | SOC 2 CC6.6 |
373| DNS-DMARC-007 | DMARC `pct=100` (applies to all messages) | Medium | SOC 2 CC6.6 |
374
375DMARC record format:
376```
377_dmarc.example.com IN TXT "v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s; rua=mailto:dmarc-agg@example.com; ruf=mailto:dmarc-forensic@example.com; pct=100"
378```
379
380**DMARC rollout strategy** (avoid disrupting legitimate email):
3811. `p=none; rua=mailto:...` — Monitor for 2-4 weeks
3822. `p=quarantine; pct=10` — Quarantine 10% of failing messages
3833. `p=quarantine; pct=50` — Increase gradually
3844. `p=quarantine; pct=100` — Full quarantine
3855. `p=reject; pct=100` — Full enforcement
386
387**DNSSEC**
388
389| Check ID | Control | Severity | Frameworks |
390|----------|---------|----------|------------|
391| DNS-SEC-001 | DNSSEC signing enabled for domain | High | SOC 2 CC6.6, ISO 27001 A.13.1.1, NIST CSF PR.DS-2 |
392| DNS-SEC-002 | DS record published in parent zone | High | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
393| DNS-SEC-003 | DNSSEC algorithm is ECDSAP256SHA256 (13) or newer | Medium | SOC 2 CC6.7 |
394| DNS-SEC-004 | DNSSEC key rotation schedule documented | Medium | SOC 2 CC6.7, ISO 27001 A.10.1.2 |
395
396**CAA (Certificate Authority Authorization)**
397
398| Check ID | Control | Severity | Frameworks |
399|----------|---------|----------|------------|
400| DNS-CAA-001 | CAA record exists restricting certificate issuance | High | SOC 2 CC6.7, ISO 27001 A.10.1.2 |
401| DNS-CAA-002 | CAA `iodef` tag configured for certificate issuance notifications | Medium | SOC 2 CC7.2 |
402| DNS-CAA-003 | Only authorized CAs listed in CAA record | High | SOC 2 CC6.7 |
403
404CAA record format:
405```
406example.com IN CAA 0 issue "letsencrypt.org"
407example.com IN CAA 0 issue "digicert.com"
408example.com IN CAA 0 issuewild "letsencrypt.org"
409example.com IN CAA 0 iodef "mailto:security@example.com"
410```
411
412**MTA-STS and TLS-RPT**
413
414| Check ID | Control | Severity | Frameworks |
415|----------|---------|----------|------------|
416| DNS-MTA-001 | MTA-STS policy published at `/.well-known/mta-sts.txt` | Medium | ISO 27001 A.13.2.1 |
417| DNS-MTA-002 | MTA-STS DNS record `_mta-sts.example.com` exists | Medium | ISO 27001 A.13.2.1 |
418| DNS-MTA-003 | MTA-STS mode is `enforce` (not `testing` or `none`) | Medium | ISO 27001 A.13.2.1 |
419| DNS-MTA-004 | TLS-RPT record `_smtp._tls.example.com` configured | Low | ISO 27001 A.12.4.1 |
420
421MTA-STS policy (at `https://mta-sts.example.com/.well-known/mta-sts.txt`):
422```
423version: STSv1
424mode: enforce
425mx: mail.example.com
426mx: *.example.com
427max_age: 604800
428```
429
430**Domain Security**
431
432| Check ID | Control | Severity | Frameworks |
433|----------|---------|----------|------------|
434| DNS-DOM-001 | Registrar lock enabled (clientTransferProhibited) | High | SOC 2 CC6.7, ISO 27001 A.13.1.1 |
435| DNS-DOM-002 | WHOIS privacy enabled | Low | GDPR Art.5 |
436| DNS-DOM-003 | 2FA enabled on domain registrar account | Critical | SOC 2 CC6.1, ISO 27001 A.9.4.2 |
437| DNS-DOM-004 | Domain expiration monitored (>60 days before expiry) | Medium | SOC 2 A1.2 |
438| DNS-DOM-005 | Subdomain inventory maintained (prevent subdomain takeover) | High | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
439| DNS-DOM-006 | Dangling DNS records (CNAME to deprovisioned services) monitored | High | SOC 2 CC6.6 |
440| DNS-DOM-007 | DNS monitoring alerts configured for unauthorized changes | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
441
442---
443
444### 3. TLS/SSL Security
445
446#### Certificate Management
447
448| Check ID | Control | Severity | Frameworks |
449|----------|---------|----------|------------|
450| TLS-CERT-001 | Certificates issued by trusted CA (not self-signed for public services) | High | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 4.1 |
451| TLS-CERT-002 | Automated certificate renewal via ACME (Let's Encrypt, ZeroSSL) | Medium | SOC 2 CC6.7 |
452| TLS-CERT-003 | Certificate expiration monitored (alert at 30, 14, 7 days) | High | SOC 2 A1.2, ISO 27001 A.10.1.2 |
453| TLS-CERT-004 | Certificate Transparency (CT) log monitoring enabled | Medium | SOC 2 CC7.2 |
454| TLS-CERT-005 | No wildcard certificates for high-security domains | Medium | SOC 2 CC6.7, PCI-DSS 4.1 |
455| TLS-CERT-006 | Certificate validity period 90 days maximum (Let's Encrypt standard) | Low | Best practice |
456| TLS-CERT-007 | OCSP stapling enabled | Medium | SOC 2 CC6.7 |
457| TLS-CERT-008 | Certificate pinning only for mobile apps (not web — risk of bricking) | Info | Best practice |
458
459#### Protocol and Cipher Configuration
460
461| Check ID | Control | Severity | Frameworks |
462|----------|---------|----------|------------|
463| TLS-PROTO-001 | TLS 1.2 minimum (TLS 1.0 and 1.1 disabled) | Critical | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 4.1, NIST CSF PR.DS-2, HIPAA 164.312(e)(1) |
464| TLS-PROTO-002 | TLS 1.3 preferred where supported | Medium | SOC 2 CC6.7, NIST CSF PR.DS-2 |
465| TLS-PROTO-003 | SSL 2.0 and 3.0 disabled | Critical | PCI-DSS 4.1, NIST CSF PR.DS-2 |
466| TLS-CIPHER-001 | Forward secrecy enabled (ECDHE or DHE key exchange) | High | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 4.1 |
467| TLS-CIPHER-002 | AEAD cipher suites only (GCM, ChaCha20-Poly1305) | High | SOC 2 CC6.7, PCI-DSS 4.1 |
468| TLS-CIPHER-003 | No RC4, 3DES, DES, NULL, or EXPORT ciphers | Critical | PCI-DSS 4.1, NIST CSF PR.DS-2 |
469| TLS-CIPHER-004 | No CBC mode ciphers (BEAST/POODLE vulnerability) | High | PCI-DSS 4.1 |
470| TLS-CIPHER-005 | RSA key exchange disabled (no forward secrecy) | Medium | SOC 2 CC6.7 |
471
472**Recommended TLS 1.2 cipher suites (in order):**
473```
474TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
475TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
476TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
477TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
478TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
479TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
480```
481
482**TLS 1.3 cipher suites (always use all three):**
483```
484TLS_AES_256_GCM_SHA384
485TLS_CHACHA20_POLY1305_SHA256
486TLS_AES_128_GCM_SHA256
487```
488
489#### HTTP Security Headers
490
491| Check ID | Control | Severity | Frameworks |
492|----------|---------|----------|------------|
493| TLS-HSTS-001 | HSTS enabled with `max-age` >= 31536000 (1 year) | High | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 4.1, NIST CSF PR.DS-2 |
494| TLS-HSTS-002 | HSTS `includeSubDomains` directive set | High | SOC 2 CC6.7 |
495| TLS-HSTS-003 | HSTS preload submitted to hstspreload.org | Medium | SOC 2 CC6.7 |
496| TLS-HSTS-004 | HTTP to HTTPS redirect configured (301 permanent) | High | SOC 2 CC6.7, PCI-DSS 4.1 |
497
498#### Internal TLS
499
500| Check ID | Control | Severity | Frameworks |
501|----------|---------|----------|------------|
502| TLS-INT-001 | mTLS configured for service-to-service communication | High | SOC 2 CC6.7, ISO 27001 A.13.1.1, PCI-DSS 4.1 (if CDE) |
503| TLS-INT-002 | Internal PKI with short-lived certificates (24h-7d) | Medium | SOC 2 CC6.7, ISO 27001 A.10.1.2 |
504| TLS-INT-003 | Service mesh (Istio/Linkerd) manages mTLS transparently | Medium | SOC 2 CC6.7 |
505| TLS-INT-004 | Database connections use TLS | High | SOC 2 CC6.7, PCI-DSS 4.1, HIPAA 164.312(e)(1) |
506
507---
508
509### 4. Endpoint Security
510
511#### Mobile Device Management (MDM)
512
513| Check ID | Control | Severity | Frameworks |
514|----------|---------|----------|------------|
515| EP-MDM-001 | MDM solution deployed (Jamf, Intune, Kandji) | High | SOC 2 CC6.7, ISO 27001 A.6.2.1, HIPAA 164.310(d)(1), NIST CSF PR.AC-3 |
516| EP-MDM-002 | All corporate devices enrolled in MDM | High | SOC 2 CC6.7, ISO 27001 A.6.2.1 |
517| EP-MDM-003 | MDM compliance policies enforced (auto-remediate non-compliant devices) | Medium | SOC 2 CC6.7 |
518| EP-MDM-004 | MDM reports integrated into security dashboard | Low | SOC 2 CC7.2 |
519
520#### Disk Encryption
521
522| Check ID | Control | Severity | Frameworks |
523|----------|---------|----------|------------|
524| EP-ENC-001 | Full disk encryption enabled on all endpoints (FileVault/BitLocker/LUKS) | Critical | SOC 2 CC6.7, ISO 27001 A.10.1.1, PCI-DSS 3.4, HIPAA 164.312(a)(2)(iv), GDPR Art.32, NIST CSF PR.DS-1 |
525| EP-ENC-002 | Encryption recovery keys escrowed in MDM or central key management | High | SOC 2 CC6.7, ISO 27001 A.10.1.2 |
526| EP-ENC-003 | Encryption status verified on every endpoint via MDM | Medium | SOC 2 CC6.7 |
527| EP-ENC-004 | Mobile devices have device encryption enabled | High | SOC 2 CC6.7, HIPAA 164.312(a)(2)(iv) |
528
529#### Antivirus and EDR
530
531| Check ID | Control | Severity | Frameworks |
532|----------|---------|----------|------------|
533| EP-AV-001 | EDR solution deployed on all endpoints (CrowdStrike, SentinelOne, Defender for Endpoint) | High | SOC 2 CC6.8, ISO 27001 A.12.2.1, PCI-DSS 5.1, HIPAA 164.308(a)(5)(ii)(B), NIST CSF DE.CM-4 |
534| EP-AV-002 | Real-time protection enabled and cannot be disabled by users | High | SOC 2 CC6.8, PCI-DSS 5.1 |
535| EP-AV-003 | Definitions updated automatically (maximum 24h staleness) | Medium | SOC 2 CC6.8, PCI-DSS 5.2 |
536| EP-AV-004 | EDR telemetry centralized for threat hunting | Medium | SOC 2 CC7.2, NIST CSF DE.AE-2 |
537| EP-AV-005 | Automatic quarantine/isolation for critical threats | Medium | SOC 2 CC6.8, NIST CSF RS.MI-1 |
538
539#### OS Patch Management
540
541| Check ID | Control | Severity | Frameworks |
542|----------|---------|----------|------------|
543| EP-PATCH-001 | Critical patches applied within 24 hours | Critical | SOC 2 CC7.1, ISO 27001 A.12.6.1, PCI-DSS 6.2, NIST CSF PR.IP-12 |
544| EP-PATCH-002 | High patches applied within 72 hours | High | SOC 2 CC7.1, ISO 27001 A.12.6.1, PCI-DSS 6.2 |
545| EP-PATCH-003 | Medium patches applied within 7 days | Medium | SOC 2 CC7.1, ISO 27001 A.12.6.1 |
546| EP-PATCH-004 | Low patches applied within 30 days | Low | SOC 2 CC7.1, ISO 27001 A.12.6.1 |
547| EP-PATCH-005 | Patch compliance reported weekly | Medium | SOC 2 CC7.1, ISO 27001 A.12.6.1 |
548| EP-PATCH-006 | Emergency patch process documented and tested | Medium | SOC 2 CC7.1, NIST CSF RS.MI-3 |
549
550#### Additional Endpoint Controls
551
552| Check ID | Control | Severity | Frameworks |
553|----------|---------|----------|------------|
554| EP-LOCK-001 | Screen lock after 5 minutes of inactivity | Medium | SOC 2 CC6.1, ISO 27001 A.11.2.8, PCI-DSS 8.1.8, HIPAA 164.310(b) |
555| EP-USB-001 | USB storage devices blocked or controlled via MDM | Medium | SOC 2 CC6.7, ISO 27001 A.8.3.1, PCI-DSS 9.7 |
556| EP-BRW-001 | Browser extension allow-listing enforced | Medium | SOC 2 CC6.8, ISO 27001 A.12.2.1 |
557| EP-BRW-002 | Safe browsing / web filtering enabled | Low | SOC 2 CC6.8, ISO 27001 A.13.1.1 |
558| EP-WIPE-001 | Remote wipe capability verified for all corporate devices | High | SOC 2 CC6.7, ISO 27001 A.6.2.1, HIPAA 164.310(d)(2)(iii) |
559| EP-BYOD-001 | BYOD policy documented and enforced via MDM container | Medium | SOC 2 CC6.7, ISO 27001 A.6.2.1, GDPR Art.32 |
560| EP-FW-001 | Host-based firewall enabled on all endpoints | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 1.4 |
561
562---
563
564### 5. Access Control and Authentication
565
566#### Identity Provider (IdP) Configuration
567
568| Check ID | Control | Severity | Frameworks |
569|----------|---------|----------|------------|
570| AC-IDP-001 | Centralized IdP deployed (Okta, Azure AD/Entra ID, Google Workspace) | High | SOC 2 CC6.1, ISO 27001 A.9.2.1, PCI-DSS 8.1, HIPAA 164.312(d), NIST CSF PR.AC-1, FedRAMP AC-2 |
571| AC-IDP-002 | All applications integrated with IdP via SSO | High | SOC 2 CC6.1, ISO 27001 A.9.4.2 |
572| AC-IDP-003 | IdP has admin MFA enforced (hardware key required for admin) | Critical | SOC 2 CC6.1, ISO 27001 A.9.4.2, PCI-DSS 8.3 |
573| AC-IDP-004 | IdP audit logs exported to SIEM | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
574
575#### Single Sign-On (SSO)
576
577| Check ID | Control | Severity | Frameworks |
578|----------|---------|----------|------------|
579| AC-SSO-001 | SSO implemented via SAML 2.0 or OIDC (no password-based SSO) | High | SOC 2 CC6.1, ISO 27001 A.9.4.2, NIST CSF PR.AC-1 |
580| AC-SSO-002 | SSO session timeout configured (maximum 8 hours) | Medium | SOC 2 CC6.1, ISO 27001 A.9.4.2, PCI-DSS 8.1.8 |
581| AC-SSO-003 | SSO enforced (local authentication disabled where possible) | High | SOC 2 CC6.1, ISO 27001 A.9.4.2 |
582| AC-SSO-004 | SCIM provisioning enabled for automated user lifecycle | High | SOC 2 CC6.2, ISO 27001 A.9.2.1, NIST CSF PR.AC-1 |
583| AC-SSO-005 | Deprovisioning triggers immediate SSO session revocation | High | SOC 2 CC6.2, ISO 27001 A.9.2.6 |
584
585#### Multi-Factor Authentication (MFA)
586
587| Check ID | Control | Severity | Frameworks |
588|----------|---------|----------|------------|
589| AC-MFA-001 | MFA enforced for ALL user accounts (no exceptions) | Critical | SOC 2 CC6.1, ISO 27001 A.9.4.2, PCI-DSS 8.3, HIPAA 164.312(d), NIST CSF PR.AC-7, GDPR Art.32, NIS2 Art.21, DORA Art.9, FedRAMP IA-2 |
590| AC-MFA-002 | Phishing-resistant MFA (FIDO2/WebAuthn) required for privileged accounts | Critical | SOC 2 CC6.1, ISO 27001 A.9.4.2, NIST CSF PR.AC-7, FedRAMP IA-2(6) |
591| AC-MFA-003 | SMS-based MFA prohibited (SIM swap vulnerability) | High | SOC 2 CC6.1, NIST CSF PR.AC-7 |
592| AC-MFA-004 | TOTP (time-based one-time password) accepted as minimum MFA | Medium | SOC 2 CC6.1 |
593| AC-MFA-005 | Hardware security keys (YubiKey 5 Series, Bio Series) deployed for all admins | High | SOC 2 CC6.1, ISO 27001 A.9.4.2, NIST CSF PR.AC-7 |
594| AC-MFA-006 | MFA recovery process documented (not bypass, requires identity verification) | Medium | SOC 2 CC6.1, ISO 27001 A.9.2.4 |
595| AC-MFA-007 | MFA enrollment status reported (100% coverage target) | Medium | SOC 2 CC6.1 |
596
597**Hardware Security Key (YubiKey) Implementation:**
598
599Enrollment process:
6001. User registers primary YubiKey to IdP (Okta, Azure AD, Google Workspace)
6012. User registers backup YubiKey (stored in secure location)
6023. IdP policy updated to require FIDO2/WebAuthn for user
6034. TOTP/push fallback disabled for privileged accounts
604
605YubiKey policy requirements:
606- Each user has minimum 2 registered keys (primary + backup)
607- Backup key stored in secure, documented location
608- PIN configured on YubiKey (FIDO2 user verification)
609- Touch required for every authentication
610- Bio Series (fingerprint) preferred for shared workstations
611- Inventory of all issued keys maintained
612- Lost key process: immediate revocation, identity reverification, new key issuance
613
614IdP-specific configuration:
615- **Okta:** Enroll YubiKey via FIDO2 (WebAuthn) factor, set Authentication Policy to require phishing-resistant MFA
616- **Azure AD/Entra ID:** Configure FIDO2 security key in Authentication Methods, create Conditional Access policy requiring authentication strength "Phishing-resistant MFA"
617- **Google Workspace:** Enroll security key in 2-Step Verification, enable Advanced Protection Program for admins
618
619#### Privileged Access Management (PAM)
620
621| Check ID | Control | Severity | Frameworks |
622|----------|---------|----------|------------|
623| AC-PAM-001 | Just-in-time (JIT) access implemented for privileged roles | High | SOC 2 CC6.1, ISO 27001 A.9.2.3, PCI-DSS 7.1, NIST CSF PR.AC-4 |
624| AC-PAM-002 | Privileged access requests require approval workflow | High | SOC 2 CC6.1, ISO 27001 A.9.2.3 |
625| AC-PAM-003 | Privileged session time-limited (maximum 4 hours, re-approval needed) | Medium | SOC 2 CC6.1, ISO 27001 A.9.2.3 |
626| AC-PAM-004 | Privileged sessions recorded (screen recording or command logging) | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.2 |
627| AC-PAM-005 | Break-glass procedure documented and tested quarterly | Medium | SOC 2 CC6.1, ISO 27001 A.9.2.3, NIST CSF PR.AC-4 |
628| AC-PAM-006 | Privileged account inventory maintained and reviewed quarterly | High | SOC 2 CC6.2, ISO 27001 A.9.2.5, PCI-DSS 7.1 |
629| AC-PAM-007 | Standing privileged access eliminated (no permanent admin accounts) | High | SOC 2 CC6.1, ISO 27001 A.9.2.3, NIST CSF PR.AC-4 |
630
631#### Role-Based Access Control (RBAC)
632
633| Check ID | Control | Severity | Frameworks |
634|----------|---------|----------|------------|
635| AC-RBAC-001 | RBAC model documented with role definitions and permissions | High | SOC 2 CC6.3, ISO 27001 A.9.2.2, PCI-DSS 7.1, HIPAA 164.312(a)(1), NIST CSF PR.AC-4 |
636| AC-RBAC-002 | Role assignments reviewed quarterly (access recertification) | High | SOC 2 CC6.2, ISO 27001 A.9.2.5, PCI-DSS 7.1.1 |
637| AC-RBAC-003 | Separation of duties enforced (no single user has conflicting roles) | High | SOC 2 CC6.3, ISO 27001 A.6.1.2, PCI-DSS 6.4.2 |
638| AC-RBAC-004 | Default deny — users get minimum necessary permissions | High | SOC 2 CC6.3, ISO 27001 A.9.4.1 |
639| AC-RBAC-005 | Role changes logged and auditable | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
640
641#### Service Account and API Key Governance
642
643| Check ID | Control | Severity | Frameworks |
644|----------|---------|----------|------------|
645| AC-SVC-001 | No shared credentials for service accounts | Critical | SOC 2 CC6.1, ISO 27001 A.9.2.4, PCI-DSS 8.5 |
646| AC-SVC-002 | Service account permissions follow least privilege | High | SOC 2 CC6.3, ISO 27001 A.9.4.1 |
647| AC-SVC-003 | Service account credentials rotate every 90 days maximum | High | SOC 2 CC6.1, ISO 27001 A.9.2.4, PCI-DSS 8.2.4 |
648| AC-SVC-004 | Service account inventory maintained with owner assignment | High | SOC 2 CC6.2, ISO 27001 A.9.2.5 |
649| AC-SVC-005 | API keys scoped to minimum required permissions | High | SOC 2 CC6.3, ISO 27001 A.9.4.1 |
650| AC-SVC-006 | API keys have expiration dates (maximum 1 year) | Medium | SOC 2 CC6.1, ISO 27001 A.9.2.4 |
651| AC-SVC-007 | API key usage monitored and anomalous access alerted | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
652
653#### SSH Key Management
654
655| Check ID | Control | Severity | Frameworks |
656|----------|---------|----------|------------|
657| AC-SSH-001 | ED25519 keys required (or RSA >= 4096 bit) | High | SOC 2 CC6.7, ISO 27001 A.10.1.1 |
658| AC-SSH-002 | SSH certificate-based authentication for infrastructure | Medium | SOC 2 CC6.7, ISO 27001 A.9.4.2 |
659| AC-SSH-003 | SSH key passphrase required | Medium | SOC 2 CC6.1, ISO 27001 A.9.4.2 |
660| AC-SSH-004 | SSH key inventory maintained with owner assignment | Medium | SOC 2 CC6.2, ISO 27001 A.9.2.5 |
661| AC-SSH-005 | SSH keys rotate annually at minimum | Medium | SOC 2 CC6.1, PCI-DSS 3.6.4 |
662| AC-SSH-006 | Root SSH login disabled | High | SOC 2 CC6.1, ISO 27001 A.9.4.2, PCI-DSS 2.1 |
663| AC-SSH-007 | SSH password authentication disabled (key-only) | High | SOC 2 CC6.1, ISO 27001 A.9.4.2 |
664
665#### Zero Trust Architecture
666
667| Check ID | Control | Severity | Frameworks |
668|----------|---------|----------|------------|
669| AC-ZT-001 | Identity-based access (verify user, device, and context) | High | SOC 2 CC6.1, ISO 27001 A.9.4.2, NIST CSF PR.AC-4 |
670| AC-ZT-002 | Device posture checked before granting access | High | SOC 2 CC6.1, ISO 27001 A.6.2.1 |
671| AC-ZT-003 | Network location is not trusted (no implicit trust for internal network) | High | SOC 2 CC6.6, ISO 27001 A.13.1.1, NIST CSF PR.AC-5 |
672| AC-ZT-004 | Continuous verification (re-authenticate for sensitive operations) | Medium | SOC 2 CC6.1, NIST CSF PR.AC-7 |
673| AC-ZT-005 | Microsegmentation between services | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.3, PCI-DSS 1.2 |
674
675---
676
677### 6. Network Security
678
679#### Firewall Configuration
680
681| Check ID | Control | Severity | Frameworks |
682|----------|---------|----------|------------|
683| NET-FW-001 | Default deny policy (deny all, allow by exception) | Critical | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 1.2, NIST CSF PR.AC-5 |
684| NET-FW-002 | Egress filtering enabled (restrict outbound traffic) | High | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 1.3 |
685| NET-FW-003 | Firewall rules reviewed quarterly | Medium | SOC 2 CC6.6, PCI-DSS 1.1.7 |
686| NET-FW-004 | Firewall rule documentation (business justification for each rule) | Medium | SOC 2 CC6.6, PCI-DSS 1.1.6 |
687| NET-FW-005 | No "any/any" rules in firewall ruleset | Critical | SOC 2 CC6.6, PCI-DSS 1.2 |
688| NET-FW-006 | Firewall change management process documented | Medium | SOC 2 CC6.6, PCI-DSS 1.1.1 |
689
690#### Network Segmentation
691
692| Check ID | Control | Severity | Frameworks |
693|----------|---------|----------|------------|
694| NET-SEG-001 | Network segmentation isolates sensitive environments (production, staging, dev) | High | SOC 2 CC6.6, ISO 27001 A.13.1.3, PCI-DSS 1.2, HIPAA 164.312(e)(1) |
695| NET-SEG-002 | Cardholder Data Environment (CDE) segmented from general network | Critical | PCI-DSS 1.3 |
696| NET-SEG-003 | Database tier isolated from public-facing tier | High | SOC 2 CC6.6, ISO 27001 A.13.1.3, PCI-DSS 1.3 |
697| NET-SEG-004 | Microsegmentation for East-West traffic | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.3, NIST CSF PR.AC-5 |
698| NET-SEG-005 | Management network separated from production | High | SOC 2 CC6.6, PCI-DSS 1.2 |
699| NET-SEG-006 | Guest WiFi isolated from corporate network | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.3 |
700
701#### Web Application Firewall (WAF)
702
703| Check ID | Control | Severity | Frameworks |
704|----------|---------|----------|------------|
705| NET-WAF-001 | WAF deployed for all public-facing web applications | High | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 6.6, NIST CSF PR.IP-1 |
706| NET-WAF-002 | OWASP Top 10 rules enabled | High | SOC 2 CC6.6, PCI-DSS 6.6 |
707| NET-WAF-003 | Rate limiting configured | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
708| NET-WAF-004 | WAF in blocking mode (not just detection) | High | SOC 2 CC6.6, PCI-DSS 6.6 |
709| NET-WAF-005 | WAF rules regularly updated | Medium | SOC 2 CC6.6, PCI-DSS 6.6 |
710| NET-WAF-006 | Custom rules for application-specific attack patterns | Low | SOC 2 CC6.6 |
711
712#### DDoS Protection
713
714| Check ID | Control | Severity | Frameworks |
715|----------|---------|----------|------------|
716| NET-DDOS-001 | DDoS protection enabled (Cloudflare, AWS Shield, Azure DDoS Protection) | High | SOC 2 A1.2, ISO 27001 A.13.1.1, NIST CSF PR.DS-4 |
717| NET-DDOS-002 | Layer 7 DDoS protection configured | Medium | SOC 2 A1.2, ISO 27001 A.13.1.1 |
718| NET-DDOS-003 | DDoS response plan documented | Medium | SOC 2 A1.2, ISO 27001 A.16.1.1, NIST CSF RS.RP-1 |
719| NET-DDOS-004 | DDoS alert thresholds configured | Medium | SOC 2 A1.2, ISO 27001 A.12.4.1 |
720
721#### VPN Configuration
722
723| Check ID | Control | Severity | Frameworks |
724|----------|---------|----------|------------|
725| NET-VPN-001 | VPN uses WireGuard or IPSec (no PPTP or L2TP without IPSec) | High | SOC 2 CC6.7, ISO 27001 A.13.1.1, PCI-DSS 4.1, NIST CSF PR.DS-2 |
726| NET-VPN-002 | Split tunneling disabled for compliance environments | Medium | SOC 2 CC6.7, PCI-DSS 1.4 |
727| NET-VPN-003 | VPN requires MFA for connection | High | SOC 2 CC6.1, ISO 27001 A.9.4.2, PCI-DSS 8.3 |
728| NET-VPN-004 | VPN access logged and monitored | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.2 |
729| NET-VPN-005 | VPN being replaced or augmented by ZTNA (Zero Trust Network Access) | Info | NIST CSF PR.AC-5 |
730
731#### Intrusion Detection/Prevention
732
733| Check ID | Control | Severity | Frameworks |
734|----------|---------|----------|------------|
735| NET-IDS-001 | IDS/IPS deployed at network perimeter | High | SOC 2 CC6.6, ISO 27001 A.13.1.1, PCI-DSS 11.4, NIST CSF DE.CM-1, HIPAA 164.312(e)(1) |
736| NET-IDS-002 | IDS/IPS signatures updated regularly | Medium | SOC 2 CC6.6, PCI-DSS 11.4 |
737| NET-IDS-003 | IDS alerts integrated with SIEM | Medium | SOC 2 CC7.2, ISO 27001 A.12.4.1 |
738| NET-IDS-004 | Network traffic monitoring for anomalies | Medium | SOC 2 CC7.2, NIST CSF DE.AE-1 |
739
740---
741
742### 7. Container and Kubernetes Security
743
744#### Base Image Security
745
746| Check ID | Control | Severity | Frameworks |
747|----------|---------|----------|------------|
748| K8S-IMG-001 | Base images from trusted registries only (verified publishers) | High | SOC 2 CC7.1, ISO 27001 A.14.2.7, NIST CSF PR.IP-12 |
749| K8S-IMG-002 | Minimal base images (distroless, Alpine, scratch) | Medium | SOC 2 CC7.1, ISO 27001 A.14.2.7 |
750| K8S-IMG-003 | No running as root in containers (USER directive in Dockerfile) | High | SOC 2 CC6.1, ISO 27001 A.9.4.1, PCI-DSS 2.1 |
751| K8S-IMG-004 | Container images scanned for vulnerabilities (Trivy, Snyk, Grype) | High | SOC 2 CC7.1, ISO 27001 A.12.6.1, PCI-DSS 6.2, NIST CSF DE.CM-8 |
752| K8S-IMG-005 | No secrets baked into container images | Critical | SOC 2 CC6.7, PCI-DSS 3.4 |
753| K8S-IMG-006 | Images tagged with specific version/digest (no `latest` tag) | Medium | SOC 2 CC7.1 |
754| K8S-IMG-007 | Image signing verified before deployment (cosign, Notary) | High | SOC 2 CC7.1, NIST CSF PR.IP-1 |
755
756#### Container Runtime Security
757
758| Check ID | Control | Severity | Frameworks |
759|----------|---------|----------|------------|
760| K8S-RT-001 | Seccomp profiles applied (runtime default minimum) | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
761| K8S-RT-002 | AppArmor/SELinux profiles applied | Medium | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
762| K8S-RT-003 | Read-only root filesystem for containers | Medium | SOC 2 CC6.7, ISO 27001 A.12.4.3 |
763| K8S-RT-004 | No privileged containers | Critical | SOC 2 CC6.1, ISO 27001 A.9.4.1, PCI-DSS 2.1 |
764| K8S-RT-005 | No host PID/network/IPC namespace sharing | High | SOC 2 CC6.6, ISO 27001 A.13.1.3 |
765| K8S-RT-006 | Resource limits set (CPU, memory) to prevent resource abuse | Medium | SOC 2 A1.2, ISO 27001 A.12.1.3 |
766
767#### Kubernetes Cluster Security
768
769| Check ID | Control | Severity | Frameworks |
770|----------|---------|----------|------------|
771| K8S-RBAC-001 | RBAC enabled with least-privilege role bindings | High | SOC 2 CC6.3, ISO 27001 A.9.4.1, PCI-DSS 7.1 |
772| K8S-RBAC-002 | No cluster-admin bindings for application workloads | Critical | SOC 2 CC6.3, ISO 27001 A.9.4.1 |
773| K8S-RBAC-003 | Default ServiceAccount token automounting disabled | Medium | SOC 2 CC6.1 |
774| K8S-NET-001 | Network Policies defined for all namespaces | High | SOC 2 CC6.6, ISO 27001 A.13.1.3, PCI-DSS 1.2 |
775| K8S-NET-002 | Default deny network policy in place | High | SOC 2 CC6.6, PCI-DSS 1.2 |
776| K8S-POD-001 | Pod Security Standards enforced (restricted profile) | High | SOC 2 CC6.6, ISO 27001 A.14.2.7 |
777| K8S-SEC-001 | External Secrets Operator or Sealed Secrets for secret management | High | SOC 2 CC6.7, PCI-DSS 3.4 |
778| K8S-SEC-002 | Etcd encrypted at rest | High | SOC 2 CC6.7, ISO 27001 A.10.1.1 |
779| K8S-ADM-001 | Admission controllers configured (OPA Gatekeeper or Kyverno) | High | SOC 2 CC7.1, ISO 27001 A.14.2.7 |
780| K8S-ADM-002 | Image pull policy set to Always for production | Medium | SOC 2 CC7.1 |
781| K8S-MESH-001 | Service mesh deployed for mTLS between services (Istio, Linkerd) | Medium | SOC 2 CC6.7, ISO 27001 A.13.1.1 |
782| K8S-REG-001 | Private container registry with authentication | High | SOC 2 CC6.6, ISO 27001 A.13.1.1 |
783| K8S-REG-002 | Registry vulnerability scanning enabled | Medium | SOC 2 CC7.1 |
784| K8S-REG-003 | Image retention policies configured | Low | SOC 2 CC6.7 |
785
786---
787
788### 8. CI/CD Pipeline Security
789
790#### Source Code Management
791
792| Check ID | Control | Severity | Frameworks |
793|----------|---------|----------|------------|
794| CICD-SCM-001 | Branch protection on main/production branches (required reviews) | High | SOC 2 CC7.1, ISO 27001 A.14.2.2, PCI-DSS 6.4.2, NIST CSF PR.IP-1 |
795| CICD-SCM-002 | Minimum 2 approvals for production branch merges | Medium | SOC 2 CC7.1, ISO 27001 A.14.2.2, PCI-DSS 6.4.2 |
796| CICD-SCM-003 | Status checks required before merge | Medium | SOC 2 CC7.1, ISO 27001 A.14.2.2 |
797| CICD-SCM-004 | Signed commits enforced (GPG or SSH signing) | Medium | SOC 2 CC7.1, ISO 27001 A.14.2.2 |
798| CICD-SCM-005 | Force push to protected branches prohibited | High | SOC 2 CC7.1, ISO 27001 A.14.2.2 |
799| CICD-SCM-006 | Repository access follows least privilege | High | SOC 2 CC6.3, ISO 27001 A.9.4.1 |
800| CICD-SCM-007 | Code owners configured for critical paths | Medium | SOC 2 CC7.1 |
801
802#### Security Scanning
803
804| Check ID | Control | Severity | Frameworks |
805|----------|---------|----------|------------|
806| CICD-SCAN-001 | Secret scanning enabled in all repositories | Critical | SOC 2 CC6.7, ISO 27001 A.9.4.3, PCI-DSS 3.4 |
807| CICD-SCAN-002 | Pre-commit hooks prevent secret commits (gitleaks, truffleHog) | High | SOC 2 CC6.7, PCI-DSS 3.4 |
808| CICD-SCAN-003 | Dependency scanning automated (Dependabot, Snyk, Renovate) | High | SOC 2 CC7.1, ISO 27001 A.12.6.1, PCI-DSS 6.2, NIST CSF PR.IP-12 |
809| CICD-SCAN-004 | SAST in CI pipeline (Semgrep, SonarQube, CodeQL) | High | SOC 2 CC7.1, ISO 27001 A.14.2.8, PCI-DSS 6.3.2, NIST CSF PR.IP-1 |
810| CICD-SCAN-005 | DAST for staging/pre-production (OWASP ZAP, Burp Suite) | Medium | SOC 2 CC7.1, ISO 27001 A.14.2.8, PCI-DSS 6.6 |
811| CICD-SCAN-006 | SCA (Software Composition Analysis) for license compliance | Medium | SOC 2 CC7.1, ISO 27001 A.18.1.2 |
812| CICD-SCAN-007 | Container image scanning in CI pipeline | High | SOC 2 CC7.1, ISO 27001 A.12.6.1, PCI-DSS 6.2 |
813| CICD-SCAN-008 | Infrastructure as Code scanning (tfsec, checkov, KICS) | High | SOC 2 CC7.1, ISO 27001 A.14.2.8 |
814
815#### Supply Chain Security
816
817| Check ID | Control | Severity | Frameworks |
818|----------|---------|----------|------------|
819| CICD-SC-001 | SBOM generated for all releases (CycloneDX or SPDX format) | High | SOC 2 CC7.1, NIST CSF PR.IP-1, NIS2 Art.21 |
820| CICD-SC-002 | Artifact signing for all builds (Sigstore/cosign) | High | SOC 2 CC7.1, NIST CSF PR.IP-1 |
821| CICD-SC-003 | Dependency pinning (lock files committed, hash verification) | Medium | SOC 2 CC7.1, ISO 27001 A.14.2.7 |
822| CICD-SC-004 | Third-party dependency review process | Medium | SOC 2 CC7.1, ISO 27001 A.15.1.1 |
823| CICD-SC-005 | CI/CD pipeline hardened (no arbitrary code execution from PRs) | High | SOC 2 CC7.1, ISO 27001 A.14.2.7 |
824
825#### Deployment Security
826
827| Check ID | Control | Severity | Frameworks |
828|----------|---------|----------|------------|
829| CICD-DEP-001 | Deployment approval gates for production | High | SOC 2 CC7.1, ISO 27001 A.14.2.2, PCI-DSS 6.4.5 |
830| CICD-DEP-002 | Production deployments audited (who, what, when) | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.2 |
831| CICD-DEP-003 | Rollback capability tested and documented | Medium | SOC 2 A1.2, ISO 27001 A.14.2.2 |
832| CICD-DEP-004 | Deployment credentials managed via secrets manager (not pipeline env vars) | High | SOC 2 CC6.7, PCI-DSS 3.4 |
833| CICD-DEP-005 | CI/CD service accounts have minimum required permissions | High | SOC 2 CC6.3, ISO 27001 A.9.4.1 |
834| CICD-DEP-006 | Immutable build artifacts (reproducible builds preferred) | Medium | SOC 2 CC7.1 |
835
836---
837
838### 9. Secrets Management
839
840#### Secrets Management Solutions
841
842| Check ID | Control | Severity | Frameworks |
843|----------|---------|----------|------------|
844| SEC-MGR-001 | Centralized secrets manager deployed (Vault, AWS SM, Azure KV, GCP SM) | High | SOC 2 CC6.7, ISO 27001 A.10.1.2, PCI-DSS 3.5, HIPAA 164.312(a)(2)(iv), NIST CSF PR.DS-1 |
845| SEC-MGR-002 | Secrets manager has HA/DR configuration | Medium | SOC 2 A1.2, ISO 27001 A.17.1.1 |
846| SEC-MGR-003 | Secrets access audited (who accessed what secret, when) | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.2 |
847| SEC-MGR-004 | Dynamic secrets used where possible (database credentials on demand) | Medium | SOC 2 CC6.7, ISO 27001 A.9.4.2 |
848
849#### Secret Rotation
850
851| Check ID | Control | Severity | Frameworks |
852|----------|---------|----------|------------|
853| SEC-ROT-001 | Database credentials rotate every 90 days maximum | High | SOC 2 CC6.1, ISO 27001 A.9.2.4, PCI-DSS 8.2.4 |
854| SEC-ROT-002 | API keys rotate every 90 days maximum | High | SOC 2 CC6.1, ISO 27001 A.9.2.4 |
855| SEC-ROT-003 | Service account passwords rotate every 90 days maximum | High | SOC 2 CC6.1, ISO 27001 A.9.2.4, PCI-DSS 8.2.4 |
856| SEC-ROT-004 | TLS private keys rotate annually at minimum | Medium | SOC 2 CC6.7, ISO 27001 A.10.1.2 |
857| SEC-ROT-005 | Encryption keys rotate annually (auto-rotation preferred) | Medium | SOC 2 CC6.7, PCI-DSS 3.6.4 |
858| SEC-ROT-006 | Rotation is automated (no manual credential changes) | Medium | SOC 2 CC6.1 |
859
860#### Code and Repository Security
861
862| Check ID | Control | Severity | Frameworks |
863|----------|---------|----------|------------|
864| SEC-CODE-001 | No secrets in source code (scan entire git history) | Critical | SOC 2 CC6.7, ISO 27001 A.9.4.3, PCI-DSS 3.4 |
865| SEC-CODE-002 | `.env` files in `.gitignore` | High | SOC 2 CC6.7, PCI-DSS 3.4 |
866| SEC-CODE-003 | Pre-commit hooks block secret commits (gitleaks) | High | SOC 2 CC6.7, PCI-DSS 3.4 |
867| SEC-CODE-004 | GitHub/GitLab secret scanning alerts enabled and triaged | High | SOC 2 CC6.7, PCI-DSS 3.4 |
868| SEC-CODE-005 | Historical leaked secrets rotated (not just removed from code) | Critical | SOC 2 CC6.7 |
869| SEC-CODE-006 | Environment-specific secrets never shared between environments | Medium | SOC 2 CC6.7, PCI-DSS 3.4 |
870
871#### Hardware Security Modules (HSM)
872
873| Check ID | Control | Severity | Frameworks |
874|----------|---------|----------|------------|
875| SEC-HSM-001 | HSM (CloudHSM, Azure Dedicated HSM) used for root CA keys | High | SOC 2 CC6.7, ISO 27001 A.10.1.2, PCI-DSS 3.5, FedRAMP SC-12 |
876| SEC-HSM-002 | HSM used for payment processing keys | Critical | PCI-DSS 3.5 |
877| SEC-HSM-003 | HSM firmware kept current | Medium | SOC 2 CC7.1, PCI-DSS 3.5 |
878| SEC-HSM-004 | HSM access restricted to authorized personnel only | High | SOC 2 CC6.1, PCI-DSS 3.5 |
879
880---
881
882### 10. Logging and Monitoring
883
884#### Centralized Logging
885
886| Check ID | Control | Severity | Frameworks |
887|----------|---------|----------|------------|
888| LOG-CEN-001 | All systems forward logs to centralized platform (ELK, Splunk, Datadog) | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.5.3, HIPAA 164.312(b), NIST CSF DE.CM-1, FedRAMP AU-6 |
889| LOG-CEN-002 | Log collection covers: authentication, authorization, data access, system changes | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.2 |
890| LOG-CEN-003 | Logs include: timestamp, source, user, action, result, source IP | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.3 |
891| LOG-CEN-004 | Log shipping uses TLS encryption | Medium | SOC 2 CC6.7, PCI-DSS 10.5 |
892| LOG-CEN-005 | Log source time synchronized via NTP (max 1 second drift) | Medium | SOC 2 CC7.2, PCI-DSS 10.4 |
893
894#### SIEM
895
896| Check ID | Control | Severity | Frameworks |
897|----------|---------|----------|------------|
898| LOG-SIEM-001 | SIEM deployed with correlation rules | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.6, NIST CSF DE.AE-2, NIS2 Art.21 |
899| LOG-SIEM-002 | SIEM detection rules cover MITRE ATT&CK framework | Medium | NIST CSF DE.AE-2 |
900| LOG-SIEM-003 | SIEM alerts have defined response procedures | Medium | SOC 2 CC7.3, ISO 27001 A.16.1.1, NIST CSF RS.RP-1 |
901| LOG-SIEM-004 | SIEM tuned to reduce false positives (<10% false positive rate) | Low | SOC 2 CC7.2 |
902
903#### Retention and Integrity
904
905| Check ID | Control | Severity | Frameworks |
906|----------|---------|----------|------------|
907| LOG-RET-001 | Log retention minimum 1 year (365 days) | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.7, HIPAA 164.312(b) |
908| LOG-RET-002 | Logs immutable (write-once, no modification or deletion) | High | SOC 2 CC7.2, ISO 27001 A.12.4.3, PCI-DSS 10.5 |
909| LOG-RET-003 | Log backup and disaster recovery tested | Medium | SOC 2 A1.2, ISO 27001 A.12.3.1 |
910| LOG-RET-004 | PCI-DSS environments retain logs for minimum 1 year, 3 months immediately available | High | PCI-DSS 10.7 |
911| LOG-RET-005 | HIPAA environments retain logs for minimum 6 years | High | HIPAA 164.530(j)(2) |
912
913#### Alerting and Detection
914
915| Check ID | Control | Severity | Frameworks |
916|----------|---------|----------|------------|
917| LOG-ALERT-001 | Alerts for: failed auth attempts (>5 in 5 min), privilege escalation, data exfiltration patterns | High | SOC 2 CC7.2, ISO 27001 A.12.4.1, PCI-DSS 10.6, NIST CSF DE.CM-1 |
918| LOG-ALERT-002 | Alert escalation matrix documented (L1 -> L2 -> L3 -> management) | Medium | SOC 2 CC7.3, ISO 27001 A.16.1.1 |
919| LOG-ALERT-003 | On-call rotation for security alerts (24/7 coverage) | Medium | SOC 2 CC7.3, ISO 27001 A.16.1.1 |
920| LOG-ALERT-004 | Mean time to acknowledge (MTTA) < 15 minutes for critical alerts | Medium | SOC 2 CC7.3 |
921| LOG-ALERT-005 | Anomaly detection enabled (UEBA — User and Entity Behavior Analytics) | Medium | SOC 2 CC7.2, NIST CSF DE.AE-1 |
922| LOG-ALERT-006 | File integrity monitoring (FIM) deployed for critical files | High | SOC 2 CC7.2, ISO 27001 A.12.4.3, PCI-DSS 11.5 |
923
924---
925
926### 11. Physical Security
927
928#### Data Center Security
929
930| Check ID | Control | Severity | Frameworks |
931|----------|---------|----------|------------|
932| PHYS-DC-001 | Cloud provider SOC 2 Type II report obtained and reviewed annually | High | SOC 2 CC6.4, ISO 27001 A.11.1.1, PCI-DSS 9.1 |
933| PHYS-DC-002 | Data center physical access restricted to authorized personnel | High | SOC 2 CC6.4, ISO 27001 A.11.1.2, PCI-DSS 9.1 |
934| PHYS-DC-003 | 24/7 video surveillance at data center | Medium | SOC 2 CC6.4, ISO 27001 A.11.1.2, PCI-DSS 9.1 |
935| PHYS-DC-004 | Visitor access logged and escorted | Medium | SOC 2 CC6.4, ISO 27001 A.11.1.2, PCI-DSS 9.4 |
936| PHYS-DC-005 | Environmental controls (fire suppression, HVAC, UPS) | Medium | SOC 2 A1.2, ISO 27001 A.11.1.4, PCI-DSS 9.1 |
937
938#### Office Security
939
940| Check ID | Control | Severity | Frameworks |
941|----------|---------|----------|------------|
942| PHYS-OFF-001 | Badge access for office entry | Medium | SOC 2 CC6.4, ISO 27001 A.11.1.2 |
943| PHYS-OFF-002 | Visitor management system (sign-in, badge, escort) | Low | SOC 2 CC6.4, ISO 27001 A.11.1.2 |
944| PHYS-OFF-003 | Clean desk policy documented and enforced | Low | SOC 2 CC6.4, ISO 27001 A.11.2.9 |
945| PHYS-OFF-004 | Server/network rooms locked with restricted access | Medium | SOC 2 CC6.4, ISO 27001 A.11.1.2, PCI-DSS 9.1 |
946
947#### Media Disposal
948
949| Check ID | Control | Severity | Frameworks |
950|----------|---------|----------|------------|
951| PHYS-DISP-001 | Media disposal follows NIST 800-88 guidelines (clear, purge, destroy) | High | SOC 2 CC6.5, ISO 27001 A.8.3.2, PCI-DSS 9.8, HIPAA 164.310(d)(2)(i), NIST CSF PR.IP-6 |
952| PHYS-DISP-002 | Certificate of destruction obtained for physical media | High | SOC 2 CC6.5, ISO 27001 A.8.3.2, PCI-DSS 9.8 |
953| PHYS-DISP-003 | Disposal vendor contracted with background checks | Medium | SOC 2 CC6.5, ISO 27001 A.8.3.2 |
954| PHYS-DISP-004 | Electronic media cryptographically erased before disposal | High | SOC 2 CC6.5, PCI-DSS 9.8, HIPAA 164.310(d)(2)(i) |
955
956---
957
958### 12. Compliance Framework Mapping
959
960Each control in this audit maps to one or more compliance frameworks. The mapping enables organizations pursuing multiple certifications to satisfy overlapping requirements with single implementations.
961
962**Supported Frameworks:**
963
964| Framework | Abbreviation | Focus Area |
965|-----------|-------------|------------|
966| SOC 2 Type II | SOC 2 | Trust Services Criteria (Security, Availability, Processing Integrity, Confidentiality, Privacy) |
967| ISO 27001:2022 | ISO 27001 | Information Security Management System (Annex A controls) |
968| HIPAA | HIPAA | Healthcare data protection (Security Rule, Privacy Rule) |
969| GDPR | GDPR | EU data protection and privacy |
970| PCI-DSS v4.0 | PCI-DSS | Payment card data security |
971| NIS2 Directive | NIS2 | EU network and information security (critical infrastructure) |
972| DORA | DORA | EU Digital Operational Resilience Act (financial services) |
973| NIST CSF 2.0 | NIST CSF | Cybersecurity Framework (Identify, Protect, Detect, Respond, Recover) |
974| FedRAMP | FedRAMP | US federal cloud security (based on NIST 800-53) |
975| CCPA/CPRA | CCPA | California consumer privacy |
976
977**Framework Coverage Summary:**
978
979| Audit Domain | SOC 2 | ISO 27001 | HIPAA | GDPR | PCI-DSS | NIS2 | DORA | NIST CSF | FedRAMP | CCPA |
980|-------------|-------|-----------|-------|------|---------|------|------|----------|---------|------|
981| Cloud Infrastructure | CC6.1-CC6.7 | A.9, A.10, A.12, A.13 | 164.312 | Art.32 | 1-4, 7-8, 10 | Art.21 | Art.9 | PR.AC, PR.DS, DE.CM | AC, SC, AU | 1798.150 |
982| DNS Security | CC6.6 | A.13.1, A.13.2 | - | - | - | Art.21 | - | PR.AC, PR.DS | - | - |
983| TLS/SSL | CC6.7 | A.10.1, A.13.1 | 164.312(e) | Art.32 | 4.1 | Art.21 | Art.9 | PR.DS-2 | SC-8, SC-13 | - |
984| Endpoint Security | CC6.7-CC6.8 | A.6.2, A.8.3, A.10.1, A.11.2, A.12.2, A.12.6 | 164.310, 164.312 | Art.32 | 1.4, 3.4, 5.1-5.4, 6.2 | Art.21 | Art.9 | PR.AC, PR.DS, PR.IP, DE.CM | - | - |
985| Access Control | CC6.1-CC6.3 | A.9.1-A.9.4 | 164.312(a)(d) | Art.32 | 7.1-8.3 | Art.21 | Art.9 | PR.AC | AC, IA | 1798.150 |
986| Network Security | CC6.6, A1.2 | A.13.1 | 164.312(e) | Art.32 | 1.1-1.3, 6.6, 11.4 | Art.21 | Art.9 | PR.AC-5, DE.CM-1 | SC, SI | - |
987| Container/K8s | CC6.1-CC7.1 | A.9.4, A.13.1, A.14.2 | - | - | 1.2, 2.1, 6.2, 7.1 | Art.21 | - | PR.AC, PR.IP | - | - |
988| CI/CD Pipeline | CC7.1-CC7.2 | A.14.2 | - | - | 6.2-6.6 | Art.21 | Art.9 | PR.IP-1, PR.IP-12 | SA, SI | - |
989| Secrets Management | CC6.7 | A.9.4, A.10.1 | 164.312(a) | Art.32 | 3.4-3.6, 8.2 | Art.21 | Art.9 | PR.DS-1 | SC-12, SC-28 | - |
990| Logging/Monitoring | CC7.2-CC7.3 | A.12.4 | 164.312(b) | Art.32 | 10.1-10.7, 11.5 | Art.21 | Art.9 | DE.AE, DE.CM | AU | - |
991| Physical Security | CC6.4-CC6.5 | A.8.3, A.11.1, A.11.2 | 164.310 | Art.32 | 9.1-9.8 | Art.21 | - | PR.IP-6 | PE | - |
992
993**Multi-Framework Evidence Strategy:**
994
995For each control, collect evidence once and map to all applicable frameworks:
996
9971. **Policy Document** — Covers SOC 2, ISO 27001, HIPAA, GDPR (one policy, multiple mappings)
9982. **Technical Configuration** — Screenshot/export showing control is active (maps to all technical frameworks)
9993. **Audit Log** — Proves ongoing compliance (SOC 2, PCI-DSS, HIPAA all require audit trails)
10004. **Review Record** — Quarterly review minutes satisfy multiple framework requirements simultaneously
1001
1002---
1003
1004## Workflows
1005
1006### Workflow 1: Full Infrastructure Audit
1007
1008```
10091. Prepare inventory → Document all cloud accounts, domains, endpoints, services
10102. Run infra_audit_runner.py → Generate findings across all 11 domains
10113. Triage findings → Prioritize Critical > High > Medium > Low
10124. Map to frameworks → Identify which framework requirements are met/unmet
10135. Create remediation plan → Assign owners, set deadlines by severity SLA
10146. Execute remediation → Fix Critical within 24h, High within 72h
10157. Re-audit → Verify fixes, update compliance evidence
10168. Generate report → Executive summary + detailed findings + evidence
1017```
1018
1019**Severity SLAs:**
1020| Severity | Remediation Deadline | Re-audit Deadline |
1021|----------|---------------------|-------------------|
1022| Critical | 24 hours | 48 hours |
1023| High | 72 hours | 7 days |
1024| Medium | 7 days | 14 days |
1025| Low | 30 days | 45 days |
1026| Info | No deadline | Next audit cycle |
1027
1028### Workflow 2: DNS Security Assessment
1029
1030```
10311. Enumerate domains → Primary + all subdomains
10322. Run dns_security_checker.py → Check SPF, DKIM, DMARC, DNSSEC, CAA, MTA-STS
10333. Validate email chain → SPF → DKIM → DMARC alignment
10344. Check domain security → Registrar lock, 2FA, WHOIS, expiration
10355. Subdomain audit → Check for dangling CNAME records (takeover risk)
10366. Generate DNS report → Findings + remediation DNS records
1037```
1038
1039### Workflow 3: Access Control Review
1040
1041```
10421. Export IdP configuration → Users, groups, roles, policies
10432. Run access_control_auditor.py → Check MFA, SSO, RBAC, PAM, service accounts
10443. Verify MFA coverage → Must be 100%, flag any exceptions
10454. Review privileged access → Who has admin? Is JIT in place?
10465. Check service accounts → Rotation, ownership, permissions
10476. Access recertification → Verify all access is current and justified
10487. Generate access report → Gaps + remediation steps
1049```
1050
1051### Workflow 4: Continuous Compliance Monitoring
1052
1053```
10541. Schedule automated scans → Weekly infra audit, daily DNS check
10552. Track compliance score trends → Score per domain over time
10563. Alert on regressions → Score drop or new Critical finding triggers alert
10574. Quarterly full audit → Manual review + automated scan
10585. Annual certification preparation → Compile evidence for auditors
1059```
1060
1061---
1062
1063## Reference Guides
1064
1065| Guide | Location | Coverage |
1066|-------|----------|----------|
1067| Cloud Security Baseline | `references/cloud-security-baseline.md` | AWS, Azure, GCP CIS Benchmarks |
1068| Access Control Standards | `references/access-control-standards.md` | MFA, SSO, PAM, Zero Trust, YubiKey |
1069| Compliance Framework Mapping | `references/compliance-framework-mapping.md` | Control-to-framework master mapping |
1070
1071---
1072
1073## Validation Checkpoints
1074
1075### Pre-Audit Validation
1076- [ ] Infrastructure inventory is complete and current
1077- [ ] All cloud accounts identified and accessible
1078- [ ] Domain list verified (primary + all active subdomains)
1079- [ ] Endpoint MDM reports available
1080- [ ] IdP configuration export available
1081- [ ] Previous audit findings reviewed
1082
1083### Post-Audit Validation
1084- [ ] All 11 domains audited with no skipped checks
1085- [ ] Every finding has severity, framework mapping, and remediation
1086- [ ] Critical and High findings have assigned owners
1087- [ ] Compliance score calculated per domain and overall
1088- [ ] Executive summary prepared
1089- [ ] Evidence package compiled for applicable frameworks
1090- [ ] Remediation deadlines set per severity SLA
1091
1092---
1093
1094## Scoring Methodology
1095
1096Each audit domain is scored 0-100 based on the controls assessed:
1097
1098**Score Calculation:**
1099```
1100Domain Score = (Passed Controls * Weight) / (Total Controls * Weight) * 100
1101
1102Weights by severity:
1103 Critical = 10
1104 High = 5
1105 Medium = 2
1106 Low = 1
1107 Info = 0 (informational, not scored)
1108```
1109
1110**Overall Score:**
1111```
1112Overall Score = Weighted Average of Domain Scores
1113
1114Domain Weights:
1115 Cloud Infrastructure: 15%
1116 Access Control: 15%
1117 Network Security: 12%
1118 Secrets Management: 10%
1119 Logging/Monitoring: 10%
1120 CI/CD Pipeline: 8%
1121 Container/K8s: 8%
1122 Endpoint Security: 7%
1123 TLS/SSL: 5%
1124 DNS Security: 5%
1125 Physical Security: 5%
1126```
1127
1128**Score Interpretation:**
1129| Score Range | Rating | Meaning |
1130|-------------|--------|---------|
1131| 90-100 | Excellent | Audit-ready, minimal findings |
1132| 80-89 | Good | Minor gaps, mostly compliant |
1133| 70-79 | Fair | Notable gaps, remediation needed before audit |
1134| 60-69 | Poor | Significant compliance gaps |
1135| Below 60 | Critical | Major overhaul required, not audit-ready |
1136
1137---
1138
1139---
1140
1141## Troubleshooting
1142
1143| Problem | Possible Cause | Resolution |
1144|---------|---------------|------------|
1145| Infra audit runner returns mostly "UNKNOWN" statuses | Config JSON missing required keys or key paths do not match expected `check_key` format | Generate a fresh template with `--generate-template` and verify all key paths match the control registry (e.g., `aws.iam.root_mfa_enabled`); fill in actual values from your infrastructure |
1146| DNS security checker cannot resolve records | `dig` command not available on the system or DNS resolver blocking queries | Install `dnsutils` (Linux) or `bind` (macOS via Homebrew); alternatively the tool falls back to socket-based lookups but with reduced functionality; check network connectivity to DNS resolvers |
1147| Access control auditor shows Critical findings for MFA | SMS/TOTP MFA deployed instead of hardware security keys for admin accounts | Migrate admin accounts to FIDO2/WebAuthn hardware keys (YubiKey 5, Titan); disable SMS MFA for privileged access; use `--generate-template` to review all MFA-related control expectations |
1148| Framework-filtered report shows zero controls for a specific framework | Framework label mismatch in `--frameworks` flag (e.g., `pci-dss` instead of `pci_dss`) | Use exact framework identifiers: `soc2`, `iso27001`, `hipaa`, `gdpr`, `pci_dss`, `nis2`, `dora`, `nist_csf`, `fedramp`, `ccpa` |
1149| Overall score low despite strong cloud security | Domain weights distribute score across all 11 domains; weak areas (e.g., physical security, DNS) drag down the average | Review per-domain scores to identify weakest areas; prioritize remediation in highest-weighted domains (Cloud Infrastructure 15%, Access Control 15%, Network Security 12%) |
1150| Container security audit fails with all controls non-compliant | Organization does not use containers but config JSON contains default/empty container section | Set container controls to `N/A` or remove the container section from the config; tool scores only applicable controls |
1151| Audit report too large for stakeholder review | Full 250+ control audit generates extensive output | Use `--frameworks` flag to filter to relevant frameworks; use `--format markdown` for human-readable summary; generate separate reports per domain for team-specific remediation |
1152
1153---
1154
1155## Success Criteria
1156
1157- **Overall infrastructure score of 80+ (Good or Excellent)** -- indicating audit-readiness with only minor gaps across all 11 domains
1158- **Zero Critical findings across all domains** -- all Critical-severity controls (root MFA, no wildcard IAM policies, encryption at rest, hardware key admin MFA) passing
1159- **Framework-specific compliance above 85%** -- for each targeted compliance framework (SOC 2, ISO 27001, PCI-DSS, etc.), the mapped controls show 85%+ pass rate
1160- **DNS security fully configured** -- SPF, DKIM, and DMARC (policy=reject) records validated, DNSSEC enabled, CAA records set, and MTA-STS deployed
1161- **Access control audit passes all Critical and High controls** -- centralized IdP deployed, SSO integrated for all applications, hardware security keys enforced for admin accounts, PAM implemented, and RBAC documented
1162- **Secrets management score above 90%** -- dedicated secrets vault deployed, automated rotation configured, no secrets in source code (git scanning enabled), and HSM for cryptographic operations
1163- **Evidence artifacts generated for audit** -- JSON or markdown reports suitable for auditor review, with per-control pass/fail status and framework mapping
1164
1165---
1166
1167## Scope & Limitations
1168
1169**In Scope:**
1170- Infrastructure security audit across 11 domains: Cloud, DNS, TLS/SSL, Endpoints, Access Control, Network, Containers/K8s, CI/CD, Secrets, Logging/Monitoring, Physical Security
1171- Framework mapping to 10 compliance standards: SOC 2, ISO 27001, HIPAA, GDPR, PCI-DSS, NIS2, DORA, NIST CSF, FedRAMP, CCPA
1172- 250+ individual control checks with severity-weighted scoring
1173- DNS security validation including SPF, DKIM, DMARC, DNSSEC, CAA, MTA-STS, and subdomain takeover risk
1174- Access control audit covering IdP, SSO, MFA, FIDO2/hardware keys, PAM, RBAC, service accounts, SSH keys, API keys, and Zero Trust
1175- Evidence-generating reports in JSON and markdown formats for auditor consumption
1176
1177**Out of Scope:**
1178- Actual penetration testing, vulnerability scanning, or active exploitation -- this skill performs configuration-based assessment, not active testing
1179- Cloud provider API calls or live infrastructure scanning -- the tool works with JSON configuration input describing your infrastructure state
1180- Compliance certification or attestation -- this skill identifies gaps but does not replace formal SOC 2, ISO 27001, or PCI-DSS audits
1181- Application security testing (SAST/DAST) beyond CI/CD pipeline configuration checks
1182- Compliance program management, policy writing, or governance documentation
1183
1184**Important Notes:**
1185- SOC 2 2026 best practices demand real-time monitoring dashboards flagging control deficiencies within 48 hours; periodic spot-checks are no longer sufficient
1186- Zero Trust architecture is increasingly expected across all frameworks; perimeter-based security alone is insufficient for SOC 2, ISO 27001, and NIS2
1187- Compliance automation platforms (Drata, Vanta, Sprinto) complement but do not replace the deterministic checks this tool provides
1188
1189---
1190
1191## Integration Points
1192
1193| Skill | Integration | When to Use |
1194|-------|-------------|-------------|
1195| `soc2-compliance-expert` | SOC 2 Trust Services Criteria mapped to infrastructure controls; evidence collection for SOC 2 Type II | When infrastructure audit supports SOC 2 certification |
1196| `information-security-manager-iso27001` | ISO 27001 Annex A technological controls validated by infrastructure checks | When ISO 27001 certification requires evidence of technical control implementation |
1197| `nist-csf-specialist` | NIST CSF 2.0 Protect and Detect functions mapped to infrastructure domains | When building unified security posture across NIST and other frameworks |
1198| `dora-compliance-expert` | DORA Pillar 1 and Pillar 3 controls validated by infrastructure security checks | When financial entity requires infrastructure evidence for DORA compliance |
1199| `pci-dss-specialist` | PCI-DSS v4.0 network security, encryption, and access control requirements mapped to checks | When cardholder data environment requires infrastructure compliance validation |
1200| `gdpr-dsgvo-expert` | Technical privacy controls (encryption, access controls, data masking) supporting GDPR Art. 32 | When infrastructure controls support personal data protection requirements |
1201
1202---
1203
1204## Tool Reference
1205
1206### infra_audit_runner.py
1207
1208Comprehensive infrastructure audit across 11 domains with compliance framework mapping.
1209
1210| Flag | Required | Description |
1211|------|----------|-------------|
1212| `--config <file>` | Yes (unless `--generate-template`) | Path to JSON file describing infrastructure configuration |
1213| `--generate-template` | No | Generate blank infrastructure configuration template |
1214| `--frameworks <list>` | No | Comma-separated framework filter (e.g., `soc2,iso27001,hipaa`); uses identifiers: `soc2`, `iso27001`, `hipaa`, `gdpr`, `pci_dss`, `nis2`, `dora`, `nist_csf`, `fedramp`, `ccpa` |
1215| `--format <fmt>` | No | Output format: `json` (default) or `markdown` |
1216| `--output <file>` | No | Export report to specified file path |
1217
1218**Output:** Per-domain scores (0-100), overall weighted score, per-control pass/fail/unknown status, framework-mapped findings with severity, and remediation recommendations.
1219
1220### dns_security_checker.py
1221
1222DNS-specific security audit validating email authentication, DNSSEC, certificate authority authorization, and subdomain takeover risk.
1223
1224| Flag | Required | Description |
1225|------|----------|-------------|
1226| `--domain <domain>` | Yes | Domain name to audit (e.g., `example.com`) |
1227| `--output <file>` | No | Export report to specified file path |
1228| `--format <fmt>` | No | Output format: `json` (default) or `markdown` |
1229| `--subdomains <list>` | No | Comma-separated subdomains to check for takeover risk (e.g., `sub1,sub2,sub3`) |
1230| `--dkim-selectors <list>` | No | Comma-separated DKIM selectors to validate (e.g., `google,selector1`) |
1231
1232**Checks:** SPF record syntax and lookup count, DKIM record presence and key strength, DMARC policy and reporting configuration, DNSSEC validation, CAA record authorization, MTA-STS policy, and subdomain takeover risk assessment.
1233
1234### access_control_auditor.py
1235
1236Access control audit covering identity, authentication, authorization, and privileged access management.
1237
1238| Flag | Required | Description |
1239|------|----------|-------------|
1240| `--config <file>` | Yes (unless `--generate-template`) | Path to JSON file describing access control configuration |
1241| `--generate-template` | No | Generate blank access control configuration template |
1242| `--format <fmt>` | No | Output format: `json` (default) or `markdown` |
1243| `--output <file>` | No | Export report to specified file path |
1244
1245**Audit Categories:** Identity Provider (IdP) configuration, SSO/SCIM provisioning, MFA enforcement, hardware security key (FIDO2/YubiKey) deployment, Privileged Access Management (PAM), RBAC, service account governance, SSH key management, API key management, and Zero Trust architecture.
1246
1247---
1248
1249**Last Updated:** March 2026
1250**Version:** 1.0.0
1251**Total Controls:** 250+ across 11 audit domains
1252**Frameworks Covered:** SOC 2, ISO 27001, HIPAA, GDPR, PCI-DSS, NIS2, DORA, NIST CSF, FedRAMP, CCPA