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

FieldWhat it holds
schemaThe version of the format.
collectorCollectors before 0.3.0 send this object as agent; the server reads agent as collector.
serverThe random ID made at install time and the name you chose for the server.
collected_atWhen the collector collected the report.
hostOperating system, kernel, architecture, virtualization, uptime and package manager.
sbomsPackage lists (CycloneDX SBOMs) of the host, of each running image and of the app directories you name: package type, name, version and package URL.
checksThe result of each local check: pass, warn, fail, unknown or skip, with one short line of evidence.
listening optionalSockets on addresses other than loopback: protocol, address, port and the process name.
containers optionalRunning containers: name, image and the settings the checks look at (privileged, Docker socket, host network and PID, user, added capabilities, published ports).
errors optionalShort messages about what the collector could not collect.
runtime optionalWhat 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 as server-3f9a1c. A service that listens on all addresses shows as 0.0.0.0 or ::, and one that listens on a single address as the kind of that address, such as ipv4-public or ipv4-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

CheckSeverityWhat it looks at
SSH allows root to log in with a password
ssh.root_login
highPermitRootLogin is yes (prohibit-password and no pass)
SSH accepts passwords
ssh.password_auth
mediumPasswordAuthentication is yes, or KbdInteractiveAuthentication is yes with UsePAM yes
SSH accepts empty passwords
ssh.empty_passwords
criticalPermitEmptyPasswords is yes
SSH offers weak ciphers, MACs or key exchanges
ssh.weak_algorithms
lowCBC ciphers, MD5 or 96-bit MACs and SHA-1 key exchanges in Ciphers, MACs and KexAlgorithms
SSH X11 forwarding is on
ssh.x11_forwarding
lowX11Forwarding is yes
SSH allows many authentication tries
ssh.max_auth_tries
lowMaxAuthTries above 6
Repeated failed logins are not blocked
auth.bruteforce_protection
infofail2ban or CrowdSec running; checked while SSH accepts passwords

Updates

CheckSeverityWhat it looks at
Security updates are not installed automatically
updates.auto_security
mediumunattended-upgrades, dnf-automatic or an apk cron job is not active
Package updates are waiting
updates.pending
mediumUpgradable packages, and which of them are security updates where the package manager marks them

Host

CheckSeverityWhat it looks at
A reboot is needed
host.reboot_required
mediumA newer kernel is installed than the one running, or /var/run/reboot-required exists
Services run files that an update replaced
host.restart_needed
mediumLoaded programs and libraries marked (deleted) in /proc/<pid>/maps, with the package and the systemd unit
The clock is not synchronised
time.sync
lowsystemd-timesyncd, chrony or ntpd active and synchronised
AppArmor or SELinux is off
mac.enabled
lowAppArmor enabled or SELinux enforcing
Kernel hardening settings are off
sysctl.hardening
lowkernel.kptr_restrict, kernel.dmesg_restrict, kernel.unprivileged_bpf_disabled, fs.protected_symlinks, fs.protected_hardlinks

Network

CheckSeverityWhat it looks at
Services listen on public addresses
net.public_listeners
infoTCP and UDP sockets on 0.0.0.0, :: or a public address, with the process name
No active firewall
net.firewall
mediumAn nftables or iptables input chain that drops or rejects; ufw or firewalld when the rules cannot be read
The Docker API listens on TCP
net.docker_api_tcp
criticalTCP sockets of dockerd, -H tcp:// in the service files, tcp:// in the hosts of daemon.json

Docker and containers

CheckSeverityWhat it looks at
Container ports are published on all addresses
docker.public_ports
mediumPorts published on 0.0.0.0 or :: (Docker adds its own iptables rules and bypasses ufw)
A container runs privileged
docker.privileged
highHostConfig.Privileged is true
A container has the Docker socket
docker.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 network
docker.host_network
lowNetworkMode is host
A container shares the host PID namespace
docker.host_pid
mediumPidMode is host
A container has dangerous capabilities
docker.dangerous_caps
mediumCapAdd contains SYS_ADMIN, NET_ADMIN, SYS_PTRACE, SYS_MODULE or ALL
A container runs as root
docker.root_user
infoConfig.User is empty, 0 or root, the main process runs as UID 0, and user namespace remapping is off

Users

CheckSeverityWhat it looks at
An account other than root has UID 0
users.uid0
critical/etc/passwd lines with UID 0 other than root
An account has an empty password
users.empty_password
criticalEmpty password field in /etc/shadow (only the account name is reported)
sudo without a password is allowed
users.sudo_nopasswd
lowNOPASSWD in /etc/sudoers or /etc/sudoers.d

Files

CheckSeverityWhat it looks at
Sensitive files have loose permissions
fs.sensitive_perms
highMode 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.

CheckSeverityWhat it looks at
The operating system is past its end of life
host.os_eol
highOS release against end-of-life dates (Trivy data)
A container image has an operating system past its end of life
image.os_eol
highImage OS release against end-of-life dates
A package has a known exploited vulnerability
vuln.kev
criticalCVE on the CISA KEV list matched in a package of the server
Critical or high vulnerabilities with a fix
vuln.critical_fixable
highMatched CVEs of severity critical or high where a fixed version exists
The server has not reported for 48 hours
collector.stale
mediumTime of the last report
The TLS certificate expires soon
tls.expiry external
highDays until the certificate expires (warn under 21, fail under 7; less for short-lived certificates)
The TLS certificate chain is not valid
tls.chain external
highChain verification against the system roots, host name match
TLS 1.0 or 1.1 is accepted
tls.old_protocols external
mediumHandshake with TLS 1.0 and 1.1 only
Strict-Transport-Security is missing
http.hsts external
lowHSTS header on the HTTPS answer, max-age at least 180 days
Security headers are missing
http.security_headers external
lowContent-Security-Policy, X-Content-Type-Options, frame-ancestors or X-Frame-Options, Referrer-Policy
The web server shows its version
http.version_banner external
infoServer and X-Powered-By headers with version numbers
The domain does not have an SPF record
dns.spf external
lowTXT v=spf1 on the domain
The domain does not have a DMARC record
dns.dmarc external
lowTXT v=DMARC1 on _dmarc
The domain does not have a CAA record
dns.caa external
infoCAA records naming the allowed certificate authorities
The domain is not signed with DNSSEC
dns.dnssec external
infoDS record at the parent

See it yourself

  • --dry-run prints the exact report and sends nothing.
  • --explain prints each step as it happens.
  • The last report and the answer to it stay in /var/lib/vulnpocalypse/last-payload.json.gz and last-response.json.
  • install.sh and run.sh are shell scripts you can read before you run them. The source of the collector is on GitHub under the Apache-2.0 licence.