/standards-compliance-skills:cis-benchmarks-hardeningfrom standards-compliance-skills
Guides applying CIS Benchmarks for Kubernetes, Docker, Linux, and cloud foundations (AWS/Azure/GCP) using kube-bench, Docker Bench, and CIS-CAT. Interprets PASS/FAIL/WARN findings, remediates controls, and documents exceptions for inapplicable checks.
Ships in standards-compliance-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Center for Internet Security (CIS) publishes consensus-based, vendor-reviewed
configuration benchmarks (Kubernetes, Docker, Linux distributions such as
Ubuntu/RHEL/Amazon Linux, and cloud foundations benchmarks for AWS/Azure/GCP)
that translate abstract "harden your systems" advice into specific, testable
configuration checks. This skill guides running the right automated scanner
for the target (kube-bench for Kubernetes, Docker Bench for Security for
container hosts, CIS-CAT Pro or oscap/OpenSCAP for Linux OS, cloud-native
tools or Prowler/ScoutSuite for cloud foundations benchmarks), reading the
findings against the actual benchmark rationale (not just the pass/fail
label), remediating what should be remediated, and — critically — running a
documented, reviewed exception process for findings that do not apply to a
given environment instead of silently ignoring or globally disabling checks.
A passed scan is evidence of a hardening baseline; it is not by itself proof
of "CIS compliance," since CIS does not issue compliance certifications for
individual organizations — some cloud/SaaS compliance programs (e.g. FedRAMP,
StateRAMP) reference CIS Benchmarks as a required baseline, but the actual
attestation still comes from a separate audit process.
oscap) with a CIS SCAP profile for
Linux OS-level benchmarks./etc/docker/daemon.json, systemd unit files, etc.)
— most checks are read-only inspection, not exploitation.kubectl run kube-bench --rm -it --restart=Never \
--image=docker.io/aquasec/kube-bench:v0.9.3 \
--overrides='{"spec":{"hostPID":true,"nodeSelector":{"kubernetes.io/os":"linux"}}}' \
-- --benchmark cis-1.24 --json > kube-bench-results.json
docker run --rm --net host --pid host --userns host --cap-add audit_control \
-v /etc:/etc:ro -v /usr/bin/containerd:/usr/bin/containerd:ro \
-v /usr/bin/runc:/usr/bin/runc:ro -v /usr/lib/systemd:/usr/lib/systemd:ro \
-v /var/lib:/var/lib:ro -v /var/run/docker.sock:/var/run/docker.sock:ro \
--label docker_bench_security \
docker/docker-bench-security
[WARN] in
kube-bench often means "requires manual verification" — the tool
cannot automatically inspect the value and is telling the operator to
check it, not that it failed. Treat WARN as "needs a decision," FAIL
as "needs remediation or an approved exception," and PASS as
confirmed-compliant-with-that-check only.--anonymous-auth=false, restrict --protect-kernel-defaults=true,
disable Docker legacy registry/--insecure-registry flags, set
docker.sock permissions to non-world-writable, enable auditd rules
for Linux host benchmarks. Where remediation overlaps container image
configuration (non-root user, read-only rootfs, dropped capabilities),
apply it via
container-image-hardening
rather than re-deriving it here.waivers.yaml next to the scan config) so it is itself
auditable.kube-bench:v0.9.3
with --benchmark cis-1.24) so results are reproducible; an upgraded
scanner can silently change which controls run.NetworkPolicy defaults,
disabling a needed Docker feature) need a change-managed rollout, not an
auto-apply script.Illustrative kube-bench run against a self-managed Kubernetes 1.27 cluster, CIS Kubernetes Benchmark v1.24 profile, Level 1:
{
"Totals": { "total_pass": 46, "total_fail": 3, "total_warn": 12, "total_info": 0 },
"Controls": [
{
"id": "1.2.1",
"text": "Ensure that the --anonymous-auth argument is set to false (Automated)",
"status": "FAIL",
"actual_value": "--anonymous-auth=true"
},
{
"id": "4.2.6",
"text": "Ensure that the --protect-kernel-defaults argument is set to true (Automated)",
"status": "FAIL",
"actual_value": "--protect-kernel-defaults not set"
},
{
"id": "1.1.12",
"text": "Ensure that the etcd data directory ownership is set to etcd:etcd (Automated)",
"status": "WARN",
"reason": "requires manual verification of host filesystem"
}
]
}
Illustrative triage and remediation table:
| Control | Finding | Decision | Action |
|---|---|---|---|
| 1.2.1 | API server allows anonymous auth | Remediate | Set --anonymous-auth=false on kube-apiserver; roll out via config-managed control-plane change |
| 4.2.6 | Kubelet not protecting kernel defaults | Remediate | Set --protect-kernel-defaults=true in kubelet config; verify no workload depends on relaxed sysctls first |
| 1.1.12 | etcd data dir ownership (manual check) | Verify then close | Confirmed etcd:etcd ownership via ls -l /var/lib/etcd; mark PASS with evidence attached |
| 1.3.7 (illustrative) | "Ensure --bind-address is set to 127.0.0.1" on a managed control-plane component that the cloud provider operates | Exception | Waiver: control-plane managed by <CLOUD_PROVIDER>; verified in provider shared-responsibility doc <LINK_PLACEHOLDER>, approver <SECURITY_LEAD_PLACEHOLDER>, expiry <REVIEW_DATE_PLACEHOLDER> |
Illustrative waivers.yaml entry:
waivers:
- control_id: "1.3.7"
benchmark: "CIS Kubernetes Benchmark v1.24"
reason: "Control-plane component managed by cloud provider; not accessible to customer."
compensating_control: "Provider's own SOC 2 report covers this control (see vendor attestation)."
approved_by: "<SECURITY_LEAD_PLACEHOLDER>"
approved_date: "2026-06-01"
review_by: "2027-06-01"
Summary reported to the requester: "46 pass / 3 fail / 12 warn against CIS Kubernetes Benchmark v1.24, Level 1. 2 of 3 fails remediated this sprint (1.2.1, 4.2.6); 1 fail converted to a reviewed, time-boxed exception (control-plane check, cloud-managed). This is a hardening baseline, not a compliance certification — see the compliance-mapping skill if this is feeding a SOC 2 / ISO 27001 audit."
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin standards-compliance-skills4 skills in this plugin
/cloud-well-architected-framework-reviewGuides running a Well-Architected-style review of an existing cloud workload against the standard pillars used across AWS, Azure, and GCP's respective frameworks — operational excellence, security, reliability, performance efficiency, cost optimization, and (where the provider includes it) sustainability — scoring each pillar, identifying cross-pillar trade-offs, and producing a prioritized remediation backlog. Use when a user asks to "run a Well-Architected review", "do an AWS Well-Architected Framework (WAF) assessment", "review this workload against Azure Well-Architected / GCP Architecture Framework", "find our biggest architectural risks", "why does our cost optimization score keep getting deprioritized", or "build a remediation backlog from an architecture review". Framed generically since AWS, Azure, and GCP each publish their own version of this framework with different tooling and pillar names.
/owasp-top-10-secure-coding-standardsGuides understanding the OWASP Top 10 web application security risk categories, applying secure coding practices that prevent each category, and mapping which categories automated SAST/DAST tooling can and cannot reliably detect. Use when a user asks to "explain the OWASP Top 10", "review this code against OWASP standards", "why didn't our scanner catch this vulnerability", "add secure coding guidelines for [injection / broken access control / etc.]", "map OWASP categories to our SAST/DAST tool rules", or "figure out what our scanning stack is missing". Distinct from the sast-integration and dast-integration skills, which cover tool setup and pipeline mechanics — this skill focuses on the security categories themselves and their coverage boundaries, including business-logic flaws no automated scanner reliably finds.
/security-compliance-mapping-soc2-iso-pci-nistGuides mapping technical controls an engineering team has already implemented — secrets management, IAM/least-privilege, logging and audit trails, encryption at rest/in transit, SAST/DAST/SCA scanning, backup and DR — to SOC 2 Trust Services Criteria, ISO/IEC 27001 Annex A controls, PCI-DSS requirements, and NIST Cybersecurity Framework (CSF) functions, and identifying the evidence needed to make each mapping audit-ready. Use when a user asks to "map our controls to SOC 2", "prepare evidence for an ISO 27001 audit", "which PCI-DSS requirement does our secrets rotation satisfy", "align our security posture to NIST CSF", "get audit-ready", or "build a controls matrix for our compliance team." This is a technical control-mapping and audit-readiness guide, not a certification process, legal opinion, or substitute for a qualified auditor/QSA/assessor — frameworks are certified or attested by accredited third parties, not by running this skill.
Other plugins' skills for the same job