Skip to content

feat: HIPAA.Security + NIST.800.53.R5 remediation docs, fix NIST prefix fallback#146

Open
AditSKumar wants to merge 1 commit into
alphacrack:developmentfrom
AditSKumar:feat/remediation-hipaa-nist-docs
Open

feat: HIPAA.Security + NIST.800.53.R5 remediation docs, fix NIST prefix fallback#146
AditSKumar wants to merge 1 commit into
alphacrack:developmentfrom
AditSKumar:feat/remediation-hipaa-nist-docs

Conversation

@AditSKumar

Copy link
Copy Markdown

Adds curated RuleDoc entries for the most commonly-hit HIPAA.Security and NIST.800.53.R5 rules (S3 versioning/SSL, RDS encryption, CloudTrail logging/validation, IAM admin-access policies), giving the fix loop actionable remediation hints for these packs, not just AwsSolutions.

While verifying the prefix-level fallback per the acceptance criteria, I found the existing NIST.800-53. prefix default never matched a real rule ID — cdk-nag's actual pack name/prefix is NIST.800.53.R5- (verified against node_modules/cdk-nag/lib/packs/nist-800-53-r5.js and upstream RULES.md). Fixed it to the correct prefix.

Only src/ruleDocs.ts and its new test file change, per the issue's scope note.

What changed

  • 6 curated HIPAA.Security-* entries + 6 curated NIST.800.53.R5-* entries (mirrored pairs, since the underlying cdk-nag checks are shared across packs)
  • Fixed the broken NIST.800-53. prefix fallback to the correct NIST.800.53.R5-
  • Added src/test/ruleDocs.test.ts asserting new exact entries resolve, both prefix fallbacks resolve for an uncurated id, and curated-id counts meet the ≥6/≥6 acceptance bar

How this was tested

  • npm run compile — clean
  • npm test (node:test sandbox suite) — 12/12 pass
  • npm run test:jest — 195/196 pass. The one failure (validateFileTool.test.ts) is pre-existing and unrelated to this change — a hardcoded POSIX path assertion that produces backslashes under Windows path resolution. Not touched by this PR.
  • npm run lint — clean on the files this PR touches

Closes #139

…ix fallback

Add curated RuleDoc entries for the most commonly-hit HIPAA.Security and
NIST.800.53.R5 rules (S3 versioning/SSL, RDS encryption, CloudTrail
logging/validation, IAM admin-access policies), so the fix loop has
actionable remediation hints for these packs, not just AwsSolutions.

While verifying the prefix-level fallback per the issue's acceptance
criteria, found the existing NIST.800-53. prefix default never matched a
real rule ID -- cdk-nag's actual pack name/prefix is NIST.800.53.R5-
(verified against node_modules/cdk-nag/lib/packs/nist-800-53-r5.js and
upstream RULES.md). Fixed it to the correct prefix.

Closes alphacrack#139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant