What the agent collects

The agent sends one report a day. The lists below come from the JSON Schema of the report and from the catalog of checks, so they change when those change.

What the agent sends

FieldWhat it holds
schemaThe version of the format.
agentThe version and run mode of the agent and of Trivy.
serverThe random ID made at install time and the name you chose for the server.
collected_atWhen the agent 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 agent could not collect.

Each SBOM keeps per package only its type, name, version, package URL and the properties that matching needs, such as the source package name. File paths, hashes and licences are dropped. Every field with its limits

What it never collects

  • The contents of files. A check that reads a configuration file reports the status and the matched directive, 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; listening sockets carry the process name only.
  • 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 uses --name, or a name such as server-3f9a1c. IP addresses are not sent: a service that listens on all addresses shows as 0.0.0.0 or ::, one that listens on a specific address as the kind of that address, such as ipv4-public or ipv4-private.
  • Logs, shell histories and the data of your applications.

The agent only reads (with Docker: read-only mounts, without the Docker socket), 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 (does not apply), and 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 or KbdInteractiveAuthentication is yes
SSH accepts empty passwords
ssh.empty_passwords
criticalPermitEmptyPasswords is yes
SSH offers weak ciphers, MACs or key exchanges
ssh.weak_algorithms
lowCiphers, MACs, KexAlgorithms set to known weak values
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 active (matters 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
mediumNumber of upgradable packages, security ones where the package manager tells

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
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/UDP sockets on non-loopback addresses with the process name
No active firewall
net.firewall
mediumnftables or iptables rules loaded, ufw or firewalld active
The Docker API listens on TCP
net.docker_api_tcp
criticaldockerd started with -H tcp:// or a daemon.json hosts entry with tcp

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 is mounted into a container
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 or 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/sudoers, sshd_config, SSH host keys

The checks on our side

These do not run on your server. Some use the report (the end of life of the operating system, a server that stopped reporting); the external ones look at the public side of a domain you verified, once a day.

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
agent.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)
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 stay in /var/lib/patchbrief/last-payload.json.gz and last-response.json.
  • install.sh and run.sh are plain shell you can read before you run them; the agent source will be published under Apache-2.0.