Skip to content
grundschutz-docsPublic

Latest commit

 

History

368 Commits

Folders and files

Repository files navigation

Grundschutz++ Docs: search it, link it, compare it, export it. A comparison of old IT-Grundschutz requirements and their Grundschutz++ counterparts.

The banner is an illustration, not a screenshot. The placeholder bars stand for requirement text.

Grundschutz++ Docs

What's on the site · Getting started · Self-hosting · Development · Contributing · License

The BSI ships its Grundschutz++ security catalog as a 92,000-line OSCAL JSON file — built for SSP-generation tooling, unreadable by a human who just wants to know what a control requires. This project turns that same JSON into a site you'd actually want to read: full-text search, one permalink per control, security level / effort / base threats / target object categories shown inline, a side-by-side mapping to the old IT-Grundschutz-Kompendium control it replaces, entry pages per role, a summary of the BSI methodology, an Excel/CSV export, a changelog of the catalog, dark mode, and a print-to-PDF per topic area.

This is an unofficial, independent project — not affiliated with, endorsed by, or produced by the Bundesamt für Sicherheit in der Informationstechnik (BSI).

Start page of grundschutz-docs.de: the headline 'Grundschutz++, lesbar aufbereitet', the BSI's raw OSCAL entry for a requirement above and the readable page it becomes below, plus the key figures of the catalog
The start page: the BSI's raw OSCAL entry above, the readable page it becomes below. German UI, English landing page at /en/.

A comparison page: old IT-Grundschutz requirements in the left column, the relationship type as a coloured badge in the middle, the matching Grundschutz++ requirements with links on the right
The comparison: each old requirement next to its Grundschutz++ counterpart, with the relationship type from the BSI's mapping file (which the BSI marks as a draft; the site says so).

What's on the site

The UI is German; the catalog text is the BSI's German original and is not translated.

Area What you get
Catalog every requirement with a permalink, obligation level, security level, effort, threats and target objects
Comparison old Kompendium requirement next to its successor, from the BSI's mapping file
Target objects, documents, threats the catalog seen from your systems, your documents and the elementary threats
Export Excel, CSV or checklist for the selection you need
Changelog and ID check what the BSI changed, also for your own list of IDs
Methodology, timeline, roles BSI Standard 300-1 in five steps, milestones, entry pages for management, ISB and developers
Findings inconsistencies in the catalog and this site's own mistakes, in public

Every feature in detail: DEVELOPMENT.md.

Why this exists

There's already a community-built viewer for the catalog with more visual firepower than this site aims for — graphs, diagrams. This one is going for something different: a clean, modern reading experience — searchable, permalinked, comfortable to sit down with. The BSI's catalog content stays CC BY-SA, exactly as licensed; the code here is MIT.

Past that, the pilot catalog is JSON-first by design — built for tooling and SSP generation, not for reading. Keeping it current here means running the generator against the upstream source automatically, not hand-transcribing it once and letting it rot.

Reading the catalog this closely also surfaces places where it doesn't add up — overlapping requirements, mappings that don't quite hold, missing cross-references. Those findings get published too, in a public register (/befunde/) — fact, interpretation, or observation, each labeled as such, with a status from open to fixed. The site's own bugs go in the same register, in the same format: a register that only points outward is an instrument, not a register.

Two tools go with the reading. The export puts the requirements into a table with columns for status, responsible person and deadline. The changelog shows what changed between two published versions of the catalog: the commit messages for those versions mostly read "publish rolling artifacts" and don't say what changed, so the changelog compares the versions themselves.

Hosted instance

A hosted instance is live at grundschutz-docs.de — free to use, no setup required. It runs this code: there is no separate tier, no feature held back, nothing you can't run yourself. The convenience is the hosting, not a different version of the site.

An earlier plan split the project into this repo plus a closed-source "hosted" layer with richer components. That split was dissolved after a day — the components live here now, under MIT like everything else. The reasoning, including what it cost and why it was wrong, is in adr/0008.

Status

The upstream catalog is being phased in alongside the existing IT-Grundschutz-Kompendium, on a multi-year timeline (pilot, public presentation, optional certification, eventual full replacement). The site tracks whatever the catalog looks like at build time — see the in-site "Status & Zeitplan" page for the current phase and dates, and the changelog for what has changed in the catalog itself.

Getting started

pnpm install
pnpm run dev      # http://localhost:4321
pnpm run build    # production build to ./dist/
pnpm run preview  # preview the production build locally

Requires the pnpm version pinned in package.json (packageManager). Site name and operator data (imprint, privacy policy) come from .env, see .env.example. Analytics (Plausible) is only included if PLAUSIBLE_SCRIPT_URL is set.

Self-hosting

docker compose up -d   # http://localhost:8080

The Dockerfile builds the site with Node and serves the result with nginx (docker/nginx.conf). .env is read at build time, so changing it means rebuilding the image. The generated pages are committed, so the build needs neither Python nor access to the BSI catalog.

The image is based on nginx-unprivileged: nginx runs as user 101 instead of root and listens on port 8080 (an unprivileged user may not bind ports below 1024). If you put a reverse proxy in front, point it at port 8080; with the old image this was port 80, so a port mapping like "8080:80" or a Traefik label loadbalancer.server.port=80 has to become 8080. nginx adds security headers to every response (docker/security-headers.conf) but does not set HSTS, since the proxy that terminates TLS should do that.

The short links (/GC.5.1.1) are a map plus one location in docker/nginx.conf, one rule per practice. scripts/tests/test_nginx.py starts a real nginx and checks every practice of the catalog, so a practice the BSI adds turns the test red until the map has it.

Development

How the pages are generated and checked, the Excel export, tests and project structure are in DEVELOPMENT.md. Architecture decisions with their reasoning are in adr/.

Contributing

Non-code input counts too — a different reading of a requirement, a gap, an open question; see CONTRIBUTING.md for the low-friction way in. The same file covers what's expected in a PR (build must pass, generator changes need an actual run and diff review, check both color schemes and both mobile/desktop layouts); CODE_OF_CONDUCT.md has the community expectations.

Related

grundschutz-docs/rag is the data pipeline behind this site for people who want to build their own search or chatbot on the catalog: the same controls as JSONL plus a small Qdrant indexing script.

What's next

The site is maintained: it follows the BSI catalog and keeps its dependencies current. New features are added when there is a concrete need, so please open an issue and describe yours (see CONTRIBUTING.md).

Currently on the list, without promises:

  • A shorter way from an old Kompendium module to an export of its successor requirements
  • A sheet in the Excel export mapping old to new requirements, once the BSI's mapping file is no longer marked as a draft

On request: requirement packages per target object category as files under stable addresses.

Not planned for now: an English translation of the catalog. The English pages are hand-written for foreign companies operating in Germany.

License

  • Code: MIT — see LICENSE.
  • Catalog content (the Grundschutz++ text rendered under src/content/docs/grundschutzpp/): CC BY-SA 4.0, © BSI-Bund, per the upstream catalog's own license. This site's generated pages inherit that license from their source.
  • Files and pages derived from the catalog (the export under public/downloads/, the Excel file the export page builds, and the changelog): they contain catalog text, so they are CC BY-SA 4.0 too. The attribution, the license and the note that they are modified are in the files themselves (LIZENZ.txt, the info sheet of the Excel file, the source column) and not only on the web page.
  • Every page carries one line in the footer with the catalog's author, license, source and the note that it is modified (on /methodik/ the line names the BSI's terms of use instead). scripts/tests/test_lizenzzeile.py checks the built site.
  • The page on the BSI Standard 300-1 (/methodik/): an own summary. The source is © BSI and is not under CC BY-SA; the BSI's terms of use apply to it. The old IT-Grundschutz-Kompendium is not reproduced: the comparison pages and the export only name its requirement IDs and link to the BSI's PDFs.
  • Original text (the findings register under src/content/docs/befunde/, and the ADRs under adr/): CC BY 4.0 — a content license fits prose better than a software license does, see adr/0010.

The BSI-OSCAL catalog itself follows OSCAL, a standard originating from NIST that the BSI adopted rather than building a proprietary format.

Releases

Packages

Used by

Contributors

Languages