Skip to main content

Trivy

Trivy is a comprehensive open-source security scanner designed to detect vulnerabilities, misconfigurations, secrets, and security issues in container images, filesystems, Git repositories, and infrastructure as code. It serves as a critical tool for DevSecOps teams, security engineers, compliance officers, and developers who need to identify and remediate security vulnerabilities across their software supply chain and deployment artifacts.

CategoryVulnerability management
DirectionQuery source
Sign-inNo Authentication
Query languagesSQLite
Tables7
Query templates39
Websitetrivy.dev

Before you start​

Trivy needs no credentials — Huntbase queries it without signing in.

Connect Trivy​

  1. Go to Connections and click New connection, or click New connection on the Trivy product page.
  2. On Product, pick Trivy and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Settings​

Where your Trivy lives:

FieldRequiredNotes
Container ImagesNoContainer images to scan by default, such as ubuntu:latest.
File System PathsNoFile system paths to scan by default. Each must be a full path.
Cache DirectoryNo

Credentials​

The only Method is No Authentication. Enter a Credential label (for example Production), then fill in:

No fields — choose this method to connect without credentials.

Query it​

Once connected, Trivy can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
SQLiteSQL over the 7 tables listed below, alongside every other connected source.

Example: SQLite​

Scan all configured targets for secrets — Scan all defined targets for potential secrets, enabling a comprehensive security assessment and proactive mitigation of potential risks.

select
*
from
trivy_scan_secret;

Trivy ships with 39 query templates. Find them in Library › Queries — see Query templates.

Tables​

Trivy adds 7 tables. Browse their columns from Schema in the query bar's ⋯ menu.

All 7 tables
TableContains
trivy_advisoryAdvisories detail the vulnerabilities affecting specific operating systems and packages.
trivy_data_sourceData sources for advisory and vulnerability definitions.
trivy_scan_artifactContainer image and filesystem artifacts being scanned.
trivy_scan_packageScan files and images for OS and language package versions.
trivy_scan_secretScan files and images for secrets.
trivy_scan_vulnerabilityScan files and container images for vulnerabilities.
trivy_vulnerabilityVulnerability definitions used by Trivy when scanning.

Next steps​