Skip to content

History & Findings Walkthrough

Recording

CISentinel persists all scan results in a local SQLite database, allowing historical review and export.

Viewing Scan History

Interactive (via menu)

sudo cis-hardening-tool
# Select "View Scan History"

Displays a table of all past scans with selectable entries for detailed findings.

CLI (non-interactive)

cis-hardening-tool history
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Scan ID           ┃ Status     ┃ Duration   ┃ Tools                    ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ a1b2c3d4-...      │ Completed  │ 45s        │ lynis, openscap          │
│ e5f6g7h8-...      │ Completed  │ 120s       │ lynis, openscap, ciscat  │
│ i9j0k1l2-...      │ Failed     │ 5s         │ usg                      │
└───────────────────┴────────────┴────────────┴──────────────────────────┘

JSON Output

cis-hardening-tool --json history

Viewing Findings for a Scan

cis-hardening-tool findings <scan_id>

Displays parsed findings from the selected scan, including: - Rule IDs - Severity levels - Pass/fail status - Remediation details (when available)

JSON findings

cis-hardening-tool --json findings <scan_id>

Exporting a Historical Report

Export a previously completed scan as PDF or HTML:

# Export as PDF
cis-hardening-tool history --id a1b2c3d4 --export pdf --output compliance_report.pdf

# Export as HTML
cis-hardening-tool history --id a1b2c3d4 --export html --output compliance_report.html

Viewing Scan Logs

Latest scan logs

cis-hardening-tool logs

Specific scan logs

cis-hardening-tool logs --id a1b2c3d4

Filter by tool

cis-hardening-tool logs --id a1b2c3d4 --tool lynis

Limit entries

cis-hardening-tool logs --id a1b2c3d4 --limit 100

Log output format

Logs are color-coded by tool:

15:23:01 [OPENSCAP] Starting XCCDF evaluation...
15:23:05 [OPENSCAP] Using content: ssg-ubuntu2204-ds.xml
15:23:45 [LYNIS]    Initializing program
15:23:46 [LYNIS]    System scan started
15:24:01 [LYNIS]    Hardening index: 72/100
Tool Color
OpenSCAP Yellow
Lynis Cyan
CIS-CAT Green
USG Blue
HardeningKitty Magenta
SCT Red

Database Location

The SQLite database is stored at: - Linux: ~/.cis-sentinel/cis_history.db - Windows: %LOCALAPPDATA%\cis-sentinel\cis_history.db