Concepts / Hardening and auditing

Hardening and auditing

SCAP and security benchmarks

Also called SCAP, OpenSCAP, oscap, XCCDF, OVAL, benchmark, CIS benchmark, STIG, compliance scan

A standard format for writing a security baseline as machine-checkable rules, and the tool that evaluates a host against it.

A rule points at a check, the check inspects the host
A rule points at a check, the check inspects the host

An XCCDF rule says what should be true; its OVAL check reads the real host and answers pass or fail. The scan is one result per rule.

SCAP (Security Content Automation Protocol) is a standard format for writing a security baseline as rules any tool can check. A benchmark is a set of XCCDF rules; each points at an OVAL check that inspects the real host (a config line, a file's permissions) and reports pass or fail. The CIS Benchmarks and DISA STIGs ship this way. oscap xccdf eval runs a profile and prints each result.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab