| name | hipaa-validate |
| description | HIPAA validator: PHI exposure, audit logging, encryption, access control, BAA refs. Triggers: HIPAA, PHI, healthcare compliance, audit log, BAA. |
| user-invocable | true |
| effort | medium |
| disable-model-invocation | true |
| context | fork |
| agent | security-auditor |
| argument-hint | [path] [--mode developer|compliance] [--severity high|warn] [--keywords term1,term2] [--output json] |
| allowed-tools | Read, Grep, Glob, Bash |
/hipaa-validate - HIPAA Compliance Scanner
$ARGUMENTS
Scan a codebase for HIPAA compliance issues using pattern-matching heuristics. Detects PHI exposure in logs, missing audit trails, unencrypted transmission/storage, hardcoded patient data, access control gaps, and missing Business Associate Agreement references. Read-only โ never modifies files.
Regulation basis: 45 CFR Parts 160, 162, 164 (HIPAA Administrative Simplification, as amended through March 26, 2013). Covers Security Rule (ยง164.302-318), Privacy Rule (ยง164.500-534), Breach Notification Rule (ยง164.400-414), and enforcement penalties (ยง160.400-426).
Usage
/hipaa-validate # Scan full project (developer mode โ definitives only)
/hipaa-validate src/ # Scan specific path
/hipaa-validate --mode compliance # Full audit sweep including heuristic categories
/hipaa-validate --severity high # Filter to HIGH findings only
/hipaa-validate --keywords member,enrollee # Extend healthcare keyword list
/hipaa-validate --output json # Structured JSON output for CI integration
Modes:
developer (default): Categories 1, 3, 4, 7, 8 โ definitive regex matches only, low false-positive rate, suited for daily use
compliance: All 8 categories โ includes heuristic checks (Cat 2, 5, 6) for audit sweep coverage, suited for pre-audit sweeps
Severity filtering: --severity high shows only HIGH findings, --severity warn shows HIGH + WARN. Default shows all.
What This Command Does
- Run scanner script โ execute
scripts/hipaa_scan.py with passed arguments
- Interpret results โ analyze findings, add context, suggest specific fixes
- Report โ present findings with file paths, line numbers, severity, confidence, and HIPAA rule citations
Steps
Step 1: Run the Scanner Script
Execute the Python scanner with the user's arguments:
python3 ${CLAUDE_SKILL_DIR}/scripts/hipaa_scan.py [path] [--mode developer|compliance] [--severity high|warn] [--keywords term1,term2] [--output json]
The script handles all scanning logic deterministically:
- Context gate โ identifies PHI-adjacent files via healthcare keyword matching
- Language detection โ detects project languages from manifest files