From redcap-compliance
Security compliance baseline audit using ComplianceAsCode/content. Compare a target system or device configuration to a hardening baseline — SCAP, STIG (DISA), CIS benchmarks, PCI-DSS, OSPP, USGCB — and emit a deviation report with specific rule references (OVAL, XCCDF, CCE). Supports RHEL, Fedora, Ubuntu, Debian, SUSE, and generic Linux profiles. Also useful for "what SHOULD a hardened system look like?" reference queries and for cross-referencing exploits against compliance rules that would have blocked them.
How this skill is triggered — by the user, by Claude, or both
Slash command
/redcap-compliance:redcap-complianceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Wraps [ComplianceAsCode/content](https://github.com/ComplianceAsCode/content) — the Red Hat-maintained upstream source of truth for SCAP / STIG / CIS / PCI-DSS / OSPP hardening rules. Covers RHEL, Fedora, Ubuntu, Debian, SUSE, and generic Linux.
Wraps ComplianceAsCode/content — the Red Hat-maintained upstream source of truth for SCAP / STIG / CIS / PCI-DSS / OSPP hardening rules. Covers RHEL, Fedora, Ubuntu, Debian, SUSE, and generic Linux.
The skill expects the fork cloned to:
~/Documents/GitHub/content
Optional: for live SCAP evaluation, install OpenSCAP:
# macOS
brew install openscap
# Debian / Ubuntu
sudo apt install libopenscap8 ssg-base ssg-debian
# RHEL / Fedora
sudo dnf install openscap-scanner scap-security-guide
Live SCAP evaluation is optional — the skill can work purely from ComplianceAsCode source (reading YAML rule files) even when OpenSCAP isn't installed.
content/
├── products/ # per-product config
│ ├── rhel9/, rhel10/, ubuntu2404/, fedora/, sle15/, ...
├── controls/ # named control frameworks
│ ├── stig_rhel9.yml, cis_rhel9_l1.yml, cis_rhel9_l2.yml, pci-dss_3.2.1.yml, ...
├── shared/
│ ├── references/ # cross-references (NIST, PCI, etc.)
│ ├── templates/ # shared rule templates
│ └── checks/ # OVAL / shell / ansible checks
├── linux_os/guide/ # the big rule tree
│ └── <category>/<subcategory>/<rule>/
│ ├── rule.yml # description, CCE, severity, check, fix
│ ├── oval/ # OVAL check logic
│ ├── bash/ # bash remediation
│ └── ansible/ # ansible remediation
└── docs/
Each rule has:
# Find relevant product
ls ~/Documents/GitHub/content/products/
# Find control profile
ls ~/Documents/GitHub/content/controls/ | grep -i <framework>
# Read the profile
head -200 ~/Documents/GitHub/content/controls/stig_rhel9.yml
Summarize top-severity rules for the user. Cite CCE / STIG IDs so they can cross-reference.
rhel9, ubuntu2404, generic).stig, cis_l1, cis_l2, pci-dss, ospp, usgcb).rule.yml for the check logicLive evaluation with OpenSCAP:
oscap xccdf eval \
--profile xccdf_org.ssgproject.content_profile_stig \
--results results.xml \
--report report.html \
/usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml
Or offline rule-by-rule against extracted system config using the Bash checks in content/linux_os/guide/.../bash/.
For a consumer device (router, IoT, hotspot, embedded system) running Linux:
This pairs with redcap-kernel on unpacked firmware: after unpacking, cross-check /etc/, /lib/systemd/, /var/log/ config against the nearest appropriate profile.
Reference query — no target to audit. Walk the relevant profile, extract high-severity rules, present as a hardening checklist.
## Hardening deviation report — <target> vs. <profile>
**Profile:** stig_rhel9 (DISA STIG for RHEL 9)
**Target:** <hostname / device>
**Date:** <date>
**Total rules evaluated:** <n>
### Summary
| Severity | Pass | Fail | Not Applicable |
|---|---|---|---|
| High | 12 | 3 | 1 |
| Medium | 28 | 7 | 4 |
| Low | 42 | 5 | 6 |
### Failures (sorted by severity, high first)
#### HIGH — CCE-86207-9 — "Ensure SSH does not permit root login"
- **STIG ID:** RHEL-09-255040
- **Source:** `linux_os/guide/services/ssh/ssh_server/sshd_disable_root_login/rule.yml`
- **Observed:** `PermitRootLogin yes` in `/etc/ssh/sshd_config`
- **Expected:** `PermitRootLogin no`
- **Remediation:** `sed -i 's/^PermitRootLogin .*/PermitRootLogin no/' /etc/ssh/sshd_config && systemctl restart sshd`
- **Rationale:** Root SSH login bypasses individual user accountability and is a common attack vector. Disabling it forces users to authenticate as themselves and use sudo for privileged actions.
(...additional failures...)
### Recommendations
1. Apply all HIGH remediations immediately.
2. Review MEDIUM failures against the target's operational constraints.
3. Re-audit after remediation to confirm.
oscap can be run as a non-root user for read-only scans. Only run as root when applying remediation.Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub gitdiddy69/redcap --plugin redcap-compliance