NIST Cybersecurity Framework (CSF 2.0) compliance scanner — auditing codebases and infrastructure under 6 core functions. Use when checking NIST CSF compliance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/security-compliance-pro:nist-csf-scannerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill audits a codebase and its associated infrastructure configurations against the 6 core functions of the NIST Cybersecurity Framework (CSF) 2.0 (Govern, Identify, Protect, Detect, Respond, Recover). It determines compliance levels for each category and subcategory, aggregates evidence, and produces an actionable compliance report. The goal is to provide a concrete, evidence-based asses...
This skill audits a codebase and its associated infrastructure configurations against the 6 core functions of the NIST Cybersecurity Framework (CSF) 2.0 (Govern, Identify, Protect, Detect, Respond, Recover). It determines compliance levels for each category and subcategory, aggregates evidence, and produces an actionable compliance report. The goal is to provide a concrete, evidence-based assessment of NIST CSF alignment and define a remediation roadmap.
Core principle: Compliance is not a checklist; it is a continuous chain of evidence. If there is no evidence, there is no compliance.
THE COMPLIANCE LEVEL FOR A CSF SUBCATEGORY CANNOT BE DETERMINED WITHOUT GATHERING AT LEAST ONE PIECE OF TANGIBLE EVIDENCE.
A DECLARATION WITHOUT EVIDENCE IS AN INVALID DECLARATION.
Use this when:
Use this ESPECIALLY when:
Don't skip when:
BEFORE proceeding:
Inventory the target codebase and infrastructure components (cloud services, CI/CD pipelines, logging pipelines).
# Example target profile configuration
target_profile:
govern: Tier 2
identify: Tier 2
protect: Tier 3
detect: Tier 2
respond: Tier 2
recover: Tier 1
BEFORE proceeding:
Prepare a checklist containing the subcategories of NIST CSF 2.0 (approximately 100+ subcategories).
# Example audit scan output
scan_result = {
"GV.OC-01": { # Govern: Roles and Responsibilities
"status": "COMPLIANT",
"evidence": ["docs/security-roles.md", "oncall-roster.yaml"],
"notes": "Responsibility matrix exists and on-call rotation is active."
},
"ID.RA-01": { # Identify: Risk Assessment
"status": "PARTIALLY_COMPLIANT",
"evidence": ["docs/risk-assessment-q1-2026.md"],
"notes": "Risk assessment exists but has not been updated in the last 3 months.",
"remediation": "Update risk assessments on a regular, recurring schedule."
},
"PR.DS-01": { # Protect: Data Security (encryption)
"status": "NON_COMPLIANT",
"evidence": [],
"notes": "No AES-256 encryption implementation found; sensitive files are stored in plaintext.",
"remediation": "Implement encryption at rest for all sensitive data points."
}
}
BEFORE proceeding:
Ensure all subcategories have been audited and evidence has been cataloged.
NIST CSF COMPLIANCE REPORT SUMMARY
=======================================
Total Subcategories Audited: 108
COMPLIANT: 45 (41.7%)
PARTIALLY_COMPLIANT: 32 (29.6%)
NON_COMPLIANT: 28 (25.9%)
NOT_APPLICABLE: 3 (2.8%)
By Core Function:
Govern (GV): 35% COMPLIANT — ⚠️ Weak
Identify (ID): 50% COMPLIANT — 🟡 Moderate
Protect (PR): 30% COMPLIANT — ⚠️ Weak (Critical: Missing data encryption at rest)
Detect (DE): 45% COMPLIANT — 🟡 Moderate
Respond (RS): 60% COMPLIANT — ✅ Strong
Recover (RC): 20% COMPLIANT — ⚠️ Weak
Top 5 Urgent Remediations:
1. PR.DS-01 (Data Encryption) — Critical — Est: 14 days
2. ID.AM-01 (Asset Inventory) — Critical — Est: 7 days
3. DE.CM-03 (Log Monitoring) — High — Est: 21 days
4. GV.RM-01 (Risk Management Process) — High — Est: 30 days
5. RC.RP-01 (Recovery Plan) — High — Est: 45 days
Before marking complete:
If you catch yourself thinking:
ALL OF THESE MEAN: STOP. Return to the relevant phase.
Watch for these redirections:
When you see these: STOP. Return to the relevant phase.
| Excuse | Reality |
|---|---|
| "Gathering evidence takes too long; let's skip to the summary." | Evaluations without evidence are based on assumptions, which introduce compliance risks. |
| "CSF is too broad; we only need to focus on Protect." | Cybersecurity is a system. Focusing on one function leaves other vectors exposed. |
| "We are secure, so the framework is just paperwork." | Security requires proof. Frameworks establish verifiable trust. |
| "I'll reference our old audit reports as evidence." | Stale reports do not reflect the current system state; fresh evidence is required. |
| "I don't understand this subcategory, so I'll mark it NOT_APPLICABLE." | Research the subcategory requirements. Do not skip difficult items. |
After completing this process:
npx claudepluginhub haj1t/senior-dev-squad-skills --plugin security-compliance-proProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.