Browse docs
On this page

Host Security Scans

Report Lynis hardening audits and Trivy package vulnerabilities from a host without coupling either scan to the metrics agent.

The Hosts screen can track two independent security signals alongside CPU, memory, disk, and availability:

  • Hardening uses Lynis to score host configuration and report warnings and suggestions.
  • Vulnerabilities uses Trivy to report vulnerable operating-system packages, severity, installed and fixed versions, and CVE links.

Neither scanner requires host metrics. Each has its own narrowly scoped ingest key, reporter, and schedule, so a host can send either scan without granting access to metrics or queries.

Set up a scan

Open Hosts, connect a host or select an existing one, and choose the Hardening or Vulnerabilities setup. The wizard creates the right ingest key and supplies a command like one of these:

Shell
# Lynis hardening audit
curl -sSL "https://api.obistack.com/v1/hosts/os-hardening-setup.sh" | \
  sudo bash -s -- --api-key <hardening key> \
  --platform https://api.obistack.com

# Trivy vulnerability scan
curl -sSL "https://api.obistack.com/v1/hosts/os-vulnerability-setup.sh" | \
  sudo bash -s -- --api-key <vulnerability key> \
  --platform https://api.obistack.com

The scripts install a reporter and a cron entry, then run once immediately. Weekly is the default. Add --interval daily for daily scans.

The setup scripts do not install Lynis, Trivy, or jq. When a prerequisite is missing, the first report records scanner_missing and the UI shows an installation command appropriate for the host's operating-system family. Install the prerequisite, then rerun the reporter or wait for its next tick. A first Trivy scan can take several minutes while it downloads its vulnerability database.

Read results

The host's Security area separates current findings from scan history. Hardening shows Lynis's 0 to 100 index, warnings, suggestions, scanner version, and whether that version is current. Lynis does not rank its findings, so ObiStack adds one judgment of its own: a few Lynis warnings that leave a host open right now, such as an unlocked account with no password (AUTH-9283) or a second account with root's UID (AUTH-9204), are marked critical. Every other finding keeps Lynis's own label, warning or suggestion. Vulnerabilities groups open findings by severity and shows whether a fixed package version is available.

Scan failures are visible results, not missing data. The UI distinguishes a missing scanner, insufficient privileges, a timeout, an overlapping scan that was skipped, and another scanner error. A vulnerability report that stops arriving is also marked overdue.

Reports are deltas after the first full baseline, with periodic full baselines to reconcile state. A delta closes only findings it explicitly reports as fixed, so an incomplete report cannot make a host look clean.

Remove reporting

Use the current setup script for uninstalling, even if reporting was installed some time ago:

Shell
curl -sSL "https://api.obistack.com/v1/hosts/os-hardening-setup.sh" | \
  sudo bash -s -- --uninstall

curl -sSL "https://api.obistack.com/v1/hosts/os-vulnerability-setup.sh" | \
  sudo bash -s -- --uninstall

The scanner itself is left installed because it may be used by other tools. Add --remove-lynis or --remove-trivy if you intentionally want the uninstaller to remove it too. Uninstall sends a final status record so the UI does not leave an old scan looking active.

Tenant Isolation & Data Boundaries

The scan-specific ingest key decides the workspace and allowed report type. The host name or id inside a report cannot redirect it to another workspace. Scan history and findings use the same tenant-scoped access layer and database row security as the rest of the host record. See Tenant Isolation for the full model.