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
| Field | What it holds |
|---|---|
schema | The version of the format. |
agent | The version and run mode of the agent and of Trivy. |
server | The random ID made at install time and the name you chose for the server. |
collected_at | When the agent 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 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 asserver-3f9a1c. IP addresses are not sent: a service that listens on all addresses shows as0.0.0.0or::, one that listens on a specific address as the kind of that address, such asipv4-publicoripv4-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
| 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 or KbdInteractiveAuthentication is yes |
SSH accepts empty passwordsssh.empty_passwords | critical | PermitEmptyPasswords is yes |
SSH offers weak ciphers, MACs or key exchangesssh.weak_algorithms | low | Ciphers, MACs, KexAlgorithms set to known weak values |
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 active (matters 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 | Number of upgradable packages, security ones where the package manager tells |
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 |
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/UDP sockets on non-loopback addresses with the process name |
No active firewallnet.firewall | medium | nftables or iptables rules loaded, ufw or firewalld active |
The Docker API listens on TCPnet.docker_api_tcp | critical | dockerd started with -H tcp:// or a daemon.json hosts entry with tcp |
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 is mounted into a container |
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 or 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/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.
| 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 hoursagent.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) |
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 stay in
/var/lib/patchbrief/last-payload.json.gzandlast-response.json. install.shandrun.share plain shell you can read before you run them; the agent source will be published under Apache-2.0.