Skip to content
Skills Library
Security · Conversion & formats

cis-benchmark-framework

/cis-benchmark-framework

Convert a CIS Benchmark PDF into a CISO Assistant framework library (YAML) by extracting only the "Appendix: Summary Table" — recommendation numbers, titles, and their Automated/Manual tag as implementation groups. Stays within the same IP boundary as the existing cis-benchmark-kubernetes library (no audit/remediation/rationale content). Use when the user asks to "convert a CIS benchmark PDF to a framework", "add the CIS <tech> Benchmark as a library", or drops new benchmark PDFs (e.g. in cis_benchmarks/) to be turned into CISO Assistant frameworks.

Licence
MIT
Last repository change
24.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/deep_check.py, scripts/extract_cis_benchmark.py

What it does and when to use it

Convert a CIS Benchmark PDF into a CISO Assistant framework library (YAML) by extracting only the "Appendix: Summary Table" — recommendation numbers, titles, and their Automated/Manual tag as implementation groups. Stays within the same IP boundary as the existing cis-benchmark-kubernetes library (no audit/remediation/rationale content). Use when the user asks to "convert a CIS benchmark PDF to a framework", "add the CIS <tech> Benchmark as a library", or drops new benchmark PDFs (e.g. in cis_benchmarks/) to be turned into CISO Assistant frameworks.

Triggers from the description

Appendix: Summary Tableconvert a CIS benchmark PDF to a frameworkadd the CIS <tech> Benchmark as a library
Original author description

Convert a CIS Benchmark PDF into a CISO Assistant framework library (YAML) by extracting only the "Appendix: Summary Table" — recommendation numbers, titles, and their Automated/Manual tag as implementation groups. Stays within the same IP boundary as the existing cis-benchmark-kubernetes library (no audit/remediation/rationale content). Use when the user asks to "convert a CIS benchmark PDF to a framework", "add the CIS <tech> Benchmark as a library", or drops new benchmark PDFs (e.g. in cis_benchmarks/) to be turned into CISO Assistant frameworks.

How it works

  1. What this skill does
  2. PDF quirks the extractor already handles (don't re-debug these)
  3. Validation (always run the deep check)
  4. Errata overrides
  5. Outputs & conventions
Original SKILL.md headings · 75 lines, 645 words
SKILL.md preview
---
name: cis-benchmark-framework
description: Convert a CIS Benchmark PDF into a CISO Assistant framework library (YAML) by extracting only the "Appendix: Summary Table" — recommendation numbers, titles, and their Automated/Manual tag as implementation groups. Stays within the same IP boundary as the existing cis-benchmark-kubernetes library (no audit/remediation/rationale content). Use when the user asks to "convert a CIS benchmark PDF to a framework", "add the CIS <tech> Benchmark as a library", or drops new benchmark PDFs (e.g. in cis_benchmarks/) to be turned into CISO Assistant frameworks.
---

# CIS Benchmark PDF → CISO Assistant framework

## What this skill does

Two-step reproducible pipeline, run from the repo root:

```bash
# 1. PDF → v2 Excel (5 sheets, same shape as tools/excel/cis/cis-benchmark-kubernetes.xlsx)
.venv/bin/python .claude/skills/cis-benchmark-framework/scripts/extract_cis_benchmark.py \
    path/to/CIS_<Tech>_Benchmark_vX.Y.Z.pdf \
    --ref-id cis-benchmark-<tech> \
    --name "CIS <Tech> Benchmark" \
    -o tools/excel/cis/cis-benchmark-<tech>.xlsx

# 2. Excel → YAML library
.venv/bin/python tools/convert_library_v2.py tools/excel/cis/cis-benchmark-<tech>.xlsx \
    --output backend/library/libraries/cis-benchmark-<tech>.yaml
```

Only the **Appendix: Summary Table** is parsed (plus the cover page for name/version/date). Requirement nodes get:

- `ref_id` / `depth` from the recommendation numbering (depth = dot count + 1)
- `name` = recommendation title, `(Automated)`/`(Manual)` suffix stripped
- `assessable: x` iff the row carries an Automated/Manual tag; untagged rows are sections
- implementation group `A` (Automatic) or `M` (Manual) — the same `cat` group definition as cis-benchmark-kubernetes

Metadata (title, `vX.Y.Z`, publication date) is auto-read from the cover-page line `vX.Y.Z - MM-DD-YYYY`; `--ref-id`/`--name` override the auto-derived slug/title. Established slug convention: `cis-benchmark-aws-foundations`, `cis-benchmark-github`, `cis-benchmark-gcp-foundation`, `cis-benchmark-microsoft-365`, `cis-benchmark-windows-11`, `cis-benchmark-ubuntu-24.04`, …

## PDF quirks the extractor already handles (don't re-debug these)

- **Wrapped ref_ids**: deep numbers wrap inside the ref column (`18.10.10.1.1` + `0` → `18.10.10.1.10`, `18.10.42.6.1.` + `1` → `18.10.42.6.1.1`). Consecutive numeric fragments are buffered and accepted only when the concatenation is a valid depth-first successor of the previous ref.
- **Checkbox glyphs**: `o` on its own line, or glued to short titles (`... (Manual) o`), or private-use/ballot-box glyphs (Windows benchmarks). Stripped before tag matching.
- **ToC false positives**: the summary-table page is detected by an exact `Appendix: Summary Table` line *plus* the `CIS Benchmark Recommendation` header on the same page, so ToC entries don't match.
- **Empty sections**: sections with no assessable descendant (e.g. "Introduction", "CIS ... Benchmarks") are pruned by default (`--keep-empty-sections` to keep).
- **>200-char titles**: name is word-boundary-truncated with `…`, full title moved to `description` (DB limit enforced by convert_library_v2).
- Titles wrapped across lines are re-joined (hyphen-aware: `Organizations-` + `integrated` joins without a space).

The script exits 2 with `WARNING:` lines when it sees numeric lines it couldn't place (possible numbering gaps) — treat any warning as a parse review, not noise.

## Validation (always run the deep check)

```bash
.venv/bin/python .claude/skills/cis-benchmark-framework/scripts/deep_check.py \
    path/to/benchmark.pdf backend/library/libraries/cis-benchmark-<tech>.yaml
```

`deep_check.py` rebuilds ground truth from two sources *independent of the extractor* — the PDF's Table of Contents (refs + full titles + tags, including sections) and the recommendation body headings (anchored at `Profile Applicability:`) — and verifies against the YAML: ref coverage both ways, exact titles (whitespace/hyphen/quote-normalized), Automated/Manual tags, assessability, legitimacy of pruned sections, node ordering, and cover metadata. Expect `CLEAN`; `toc > yaml` by the pruned-section count is normal.

Interpreting findings:

- **TITLE-DIFF confirmed by both ToC and body** → the summary table itself is wrong (CIS errata); fix with `--rename` (below), body is authoritative.
- **YAML-ONLY + NO-BODY on the same ref** → summary-table-only phantom row (CIS editorial leftover). Keep it (the summary table is the extraction source of truth) but note it.
- Anything else → suspect the extractor; debug before shipping.

## Errata overrides

When the summary table contradicts the recommendation body, override at extraction time so the fix is reproducible:

```bash
--rename "4.1.2.1=(L2) Ensure Super Admin account recovery is disabled"
```

Known CIS PDF errata (re-apply on re-extraction):

- **Google Workspace v1.3.0 `4.1.2.1`**: summary table says "recovery is enabled"; ToC + body say "**disabled**" (the real control). Use the `--rename` above.
- **Ubuntu 24.04 v2.0.0 `1.5.10`** ("Ensure core file size is configured"): exists only in the summary table — ToC jumps 1.5.9 → 1.5.11 and there is no body section. Kept intentionally; deep_check reports it as the only expected non-CLEAN finding.

## Outputs & conventions

- Excel → `tools/excel/cis/<ref_id>.xlsx` (committed, alongside the kubernetes precedent)
- YAML → `backend/library/libraries/<ref_id>.yaml` (loadable library, PR-able)
- Library `version` starts at `1`; benchmark version lives in `description` (e.g. "CIS GitHub Benchmark v1.2.0"), never in the URN/ref_id
- `copyright: © CIS Security`, `provider: CIS`, `packager: intuitem`
Files in this package (3)
  • SKILL.md 6 KB
  • scripts/deep_check.py 9 KB
  • scripts/extract_cis_benchmark.py 12 KB

Versions

The database has no other skills named cis-benchmark-framework.

Database snapshot: 13.11.2026 · package version 081b1e5c16b2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100kubernetes-security-cis-benchmark-hardening
    Use this skill when harden production Kubernetes clusters against CIS benchmarks and node security standards.
  • 90blue-harden
    Write a hardening playbook for a system or service — CIS benchmark mapping and implementation steps. Use when asked to "harden this server", "apply the CIS benchmark", or "write a hardening playbook".
  • 100auditing-cis-benchmark
    Audits a self-hosted CockroachDB cluster against the CIS CockroachDB Benchmark v1.0.0 Level 1 controls. Supports two audit depths — quick automated scans and full CIS audit procedures. Produces a structured PASS/FAIL/MANUAL report covering installation, system hardening,…
  • 100cis-benchmarks
    Audit and remediate CIS benchmark violations. Use automated tools to assess compliance and implement hardening recommendations. Use when meeting compliance requirements or implementing security baselines.
  • 100ciso-assistant-bootstrap
    Bootstrap CISO Assistant for new users by guiding them through initial setup. Use when: (1) User wants to set up CISO Assistant from scratch (2) User mentions "bootstrap", "initial setup", "getting started", or "onboarding" with CISO Assistant (3) User needs help creating their…
  • 100reference-controls-enricher
    Enrich a CISO Assistant framework YAML by linking each assessable requirement to reference control URNs from the central doc-pol library (CISO Assistant Key Reference Controls). Produces a reviewable xlsx and patches the framework YAML in place. Use when the user asks to "add…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.