What the collector sends
The collector sends one report a day. The tables are generated from the JSON Schema of the report and from the check catalog, so they change when those change.
The fields of the report
| Field | What it holds |
|---|---|
schema | The version of the format. |
collector | Collectors before 0.3.0 send this object as agent; the server reads agent as collector. |
server | The random ID made at install time and the name you chose for the server. |
collected_at | When the collector collected the report. |
host | Operating system, kernel, architecture, virtualization, uptime and package manager. |
sboms | Package lists (CycloneDX SBOMs) of the host, of each running image and of the app directories you name: package type, name, version and package URL. |
checks | The result of each local check: pass, warn, fail, unknown or skip, with one short line of evidence. |
listening optional | Sockets on addresses other than loopback: protocol, address, port and the process name. |
containers optional | Running containers: name, image and the settings the checks look at (privileged, Docker socket, host network and PID, user, added capabilities, published ports). |
errors optional | Short messages about what the collector could not collect. |
runtime optional | What runs on the host outside containers, from the paths in /proc/<pid>/maps: per program its name, systemd unit, program path, whether it listens (public or local) and on which ports, the OS packages of the files it has loaded, its loaded program files outside OS packages, and the loaded files that an update replaced; and the setuid-root programs of the system directories with their packages. Left out when the loaded files could not be read. |
Of each package, an SBOM keeps the type, name, version, package URL and the properties that matching needs, such as the source package name. The collector drops file paths, hashes and licences. Every field with its limits
What it never collects
- The contents of files. A check that reads a configuration file reports its status and the directive it matched, such as
PermitRootLogin yes. - Environment variables, secrets, keys, tokens and passwords. The check for empty passwords reports only the account name.
- Command lines and arguments of processes. A listening socket is sent with the process name only, and a running program with its name, its systemd unit, the path of its program file and the packages of the files it has loaded.
- The memory of processes. Of each running program the collector reads which files it has loaded (the paths in
/proc/<pid>/maps), not what is in memory. Processes of containers are left out. - Host names and IP addresses. The server is known by its name and a random UUID. In a terminal the installer asks for the name and suggests the host name; without a terminal it takes
--name, or a name such asserver-3f9a1c. A service that listens on all addresses shows as0.0.0.0or::, and one that listens on a single address as the kind of that address, such asipv4-publicoripv4-private. - Logs, shell histories and the data of your applications.
The installer writes the settings to /etc/vulnpocalypse and the timer or cron line that runs the collector; the collector writes its state and a copy of the last report to /var/lib/vulnpocalypse. Neither changes other files or settings of the server. With Docker, its containers get read-only mounts and not the Docker socket. It sends one HTTPS request to one address and does not take commands from us.
The checks on the server
Each check reports pass, warn, fail, unknown (with the reason) or skip (the check does not apply), with one short line of evidence.
SSH
| Check | Severity | What it looks at |
|---|---|---|
SSH allows root to log in with a passwordssh.root_login | high | PermitRootLogin is yes (prohibit-password and no pass) |
SSH accepts passwordsssh.password_auth | medium | PasswordAuthentication is yes, or KbdInteractiveAuthentication is yes with UsePAM yes |
SSH accepts empty passwordsssh.empty_passwords | critical | PermitEmptyPasswords is yes |
SSH offers weak ciphers, MACs or key exchangesssh.weak_algorithms | low | CBC ciphers, MD5 or 96-bit MACs and SHA-1 key exchanges in Ciphers, MACs and KexAlgorithms |
SSH X11 forwarding is onssh.x11_forwarding | low | X11Forwarding is yes |
SSH allows many authentication triesssh.max_auth_tries | low | MaxAuthTries above 6 |
Repeated failed logins are not blockedauth.bruteforce_protection | info | fail2ban or CrowdSec running; checked while SSH accepts passwords |
Updates
| Check | Severity | What it looks at |
|---|---|---|
Security updates are not installed automaticallyupdates.auto_security | medium | unattended-upgrades, dnf-automatic or an apk cron job is not active |
Package updates are waitingupdates.pending | medium | Upgradable packages, and which of them are security updates where the package manager marks them |
Host
| Check | Severity | What it looks at |
|---|---|---|
A reboot is neededhost.reboot_required | medium | A newer kernel is installed than the one running, or /var/run/reboot-required exists |
Services run files that an update replacedhost.restart_needed | medium | Loaded programs and libraries marked (deleted) in /proc/<pid>/maps, with the package and the systemd unit |
The clock is not synchronisedtime.sync | low | systemd-timesyncd, chrony or ntpd active and synchronised |
AppArmor or SELinux is offmac.enabled | low | AppArmor enabled or SELinux enforcing |
Kernel hardening settings are offsysctl.hardening | low | kernel.kptr_restrict, kernel.dmesg_restrict, kernel.unprivileged_bpf_disabled, fs.protected_symlinks, fs.protected_hardlinks |
Network
| Check | Severity | What it looks at |
|---|---|---|
Services listen on public addressesnet.public_listeners | info | TCP and UDP sockets on 0.0.0.0, :: or a public address, with the process name |
No active firewallnet.firewall | medium | An nftables or iptables input chain that drops or rejects; ufw or firewalld when the rules cannot be read |
The Docker API listens on TCPnet.docker_api_tcp | critical | TCP sockets of dockerd, -H tcp:// in the service files, tcp:// in the hosts of daemon.json |
Docker and containers
| Check | Severity | What it looks at |
|---|---|---|
Container ports are published on all addressesdocker.public_ports | medium | Ports published on 0.0.0.0 or :: (Docker adds its own iptables rules and bypasses ufw) |
A container runs privilegeddocker.privileged | high | HostConfig.Privileged is true |
A container has the Docker socketdocker.socket_mount | high | /var/run/docker.sock or /run/docker.sock mounted into a container (warning for /, /run or /var/run) |
A container uses the host networkdocker.host_network | low | NetworkMode is host |
A container shares the host PID namespacedocker.host_pid | medium | PidMode is host |
A container has dangerous capabilitiesdocker.dangerous_caps | medium | CapAdd contains SYS_ADMIN, NET_ADMIN, SYS_PTRACE, SYS_MODULE or ALL |
A container runs as rootdocker.root_user | info | Config.User is empty, 0 or root, the main process runs as UID 0, and user namespace remapping is off |
Users
| Check | Severity | What it looks at |
|---|---|---|
An account other than root has UID 0users.uid0 | critical | /etc/passwd lines with UID 0 other than root |
An account has an empty passwordusers.empty_password | critical | Empty password field in /etc/shadow (only the account name is reported) |
sudo without a password is allowedusers.sudo_nopasswd | low | NOPASSWD in /etc/sudoers or /etc/sudoers.d |
Files
| Check | Severity | What it looks at |
|---|---|---|
Sensitive files have loose permissionsfs.sensitive_perms | high | Mode and owner of /etc/shadow, /etc/gshadow, /etc/passwd, /etc/group, /etc/sudoers, sshd_config, SSH host keys |
The checks on our side
Some use the report, such as the end of life of the operating system or a server that stopped reporting. The external ones connect once a day to a domain you verified.
| Check | Severity | What it looks at |
|---|---|---|
The operating system is past its end of lifehost.os_eol | high | OS release against end-of-life dates (Trivy data) |
A container image has an operating system past its end of lifeimage.os_eol | high | Image OS release against end-of-life dates |
A package has a known exploited vulnerabilityvuln.kev | critical | CVE on the CISA KEV list matched in a package of the server |
Critical or high vulnerabilities with a fixvuln.critical_fixable | high | Matched CVEs of severity critical or high where a fixed version exists |
The server has not reported for 48 hourscollector.stale | medium | Time of the last report |
The TLS certificate expires soontls.expiry external | high | Days until the certificate expires (warn under 21, fail under 7; less for short-lived certificates) |
The TLS certificate chain is not validtls.chain external | high | Chain verification against the system roots, host name match |
TLS 1.0 or 1.1 is acceptedtls.old_protocols external | medium | Handshake with TLS 1.0 and 1.1 only |
Strict-Transport-Security is missinghttp.hsts external | low | HSTS header on the HTTPS answer, max-age at least 180 days |
Security headers are missinghttp.security_headers external | low | Content-Security-Policy, X-Content-Type-Options, frame-ancestors or X-Frame-Options, Referrer-Policy |
The web server shows its versionhttp.version_banner external | info | Server and X-Powered-By headers with version numbers |
The domain does not have an SPF recorddns.spf external | low | TXT v=spf1 on the domain |
The domain does not have a DMARC recorddns.dmarc external | low | TXT v=DMARC1 on _dmarc |
The domain does not have a CAA recorddns.caa external | info | CAA records naming the allowed certificate authorities |
The domain is not signed with DNSSECdns.dnssec external | info | DS record at the parent |
See it yourself
--dry-runprints the exact report and sends nothing.--explainprints each step as it happens.- The last report and the answer to it stay in
/var/lib/vulnpocalypse/last-payload.json.gzandlast-response.json. install.shandrun.share shell scripts you can read before you run them. The source of the collector is on GitHub under the Apache-2.0 licence.
Vulnpocalypse