Air-gapped container scanning: Aqua vs self-hosted Trivy

Both Aqua and Trivy can run disconnected. This page explains what self-hosted Trivy needs offline, how its databases are kept current, and when Aqua's managed disconnected deployment justifies its cost.

On this page

Air-gapped container scanning: can self-hosted Trivy replace Aqua on a disconnected network?

Trivy can run on a disconnected network once its databases are mirrored inside your perimeter, and Aqua also offers disconnected operation. The decision is therefore less about whether a disconnected option exists and more about who maintains the update path, how much central management you need, and what you must prove to an assessor. A regulated or critical-infrastructure team that must scan container images with no internet path has to plan for three things: the vulnerability and policy data must arrive from outside through an approved route, every image or artifact crossing into the enclave must be checked, and the scanner's own data must be provably current. Trivy's self-hosting guidance names the components you must host yourself: trivy-db, trivy-java-db and trivy-checks, published as OCI images that you mirror to an internal registry and point Trivy at with --db-repository, --java-db-repository and --checks-bundle-repository. For offline hosts, the documentation also describes downloading the database archive on a connected machine and copying it into the cache db directory.

The mirror is the operational risk. Trivy's documentation warns that mirrors must be kept updated, so your process needs a fixed cadence, a transfer step through whatever cross-domain or media controls your organization uses, and a record of which database version each scan used. Document that process in your vulnerability management procedure, since it supports the review expectation in CIS Controls Safeguard 7.1. Keep the scope of the decision in view: for cardholder data environments, PCI DSS requirement 11.3.2 still requires external scans by an Approved Scanning Vendor, so a self-hosted scanner does not replace that obligation. Before choosing Aqua's disconnected deployment, confirm with Aqua in writing: whether the disconnected edition is included in your license tier, how the vulnerability and policy feeds reach the enclave and how often, whether central console, policy enforcement and runtime features work offline, which components need internet access during installation or updates, and what support you receive for air-gapped upgrades. If the answers are weak, a self-hosted Trivy pipeline with a documented mirror process is the likelier fit for a team that mainly needs image scanning.

What an air-gapped scanning setup must cover

An isolated network changes how scanning works, but it does not change what the compliance frameworks expect. Each card below is a requirement you still need to meet once Trivy runs without internet access, and each one shapes the offline design.

Written vulnerability management process

CIS Safeguard 7.1 asks for a documented vulnerability management process that is reviewed once a year or after significant changes. For an isolated scanner, the document should state who refreshes the offline databases, how often, how the update media is verified and what happens when a mirror falls behind. Auditors will ask for this document before they look at scan output, so write it before the scanner goes live. Ask your assessor which evidence they expect to see for this safeguard.

CIS Control 7 spec

Internal scan cadence

CIS Safeguard 7.5 calls for automated authenticated and unauthenticated scans of internal assets at least quarterly. Trivy images and filesystems are usually scanned in CI and registries, so the cadence question is about the running estate: clusters, hosts and images already deployed. Plan a scheduled job that rescans stored images against a refreshed vulnerability database, because a scan run last quarter can miss a CVE published since then. Confirm the cadence your framework mapping requires.

Authenticated scanning for cardholder data

PCI DSS requirement 11.3.1.2, mandatory since March 31, 2025, requires internal scans to be authenticated with sufficient privileges. Where cardholder data is in scope, a Trivy scan of an image that never runs with credentials does not show what the live host exposes. Pair image scanning with host or cluster checks that use a scoped service account, and record which privileges the scanner used. Confirm the scope of your cardholder data environment with your QSA before you design the scan jobs.

Verified software crossing the boundary

Every package, database archive and checks bundle carried into an isolated network is a supply chain input. NERC CIP-013-2 is one example: energy sector entities must have procurement processes that address verifying software integrity and authenticity of vendor software and patches. Record the checksum or signature of each Trivy binary, trivy-db, Java DB and checks bundle at import, and keep the transfer log. Confirm the verification method with your compliance team, since the standard does not dictate a tool.

CIP-013-2 text

External ASV scans still required

Self-hosted scanning cannot replace the external scans that PCI DSS requirement 11.3.2 requires for cardholder data environments. Those scans run at least once every three months and must be performed by a PCI SSC Approved Scanning Vendor. An air-gapped Trivy setup covers internal and image-level risk only. Keep the ASV engagement in your plan, and confirm with your acquirer or QSA which external scans they accept.

Approved scanning vendors

What self-hosted Trivy needs offline: mirrored databases, Java DB and checks bundle

Trivy needs three databases to scan offline, and each one must be supplied to the disconnected environment. The vulnerability database (trivy-db), the Java database (trivy-java-db) and the checks bundle (trivy-checks) are published as OCI images. The supported pattern is to mirror those images into an internal registry and point Trivy at them with the --db-repository, --java-db-repository and --checks-bundle-repository flags. Scans on an isolated network then pull from the mirror instead of the public registry. Confirm the exact flag names and accepted formats against the version you deploy, because the self-hosting guidance is the reference for each release.

The alternative is to download the trivy-db or trivy-java-db archive on a connected machine and copy it into the cache db directory on the offline system. This avoids running a registry in the enclave, but it makes the transfer a manual step: someone must fetch the archive, verify it, move it across the approved boundary and place it where Trivy reads it. Teams with a small number of scan hosts and no existing internal registry often start here. Teams that already run an internal registry usually prefer mirroring, since the same process can cover the checks bundle and the image updates.

The Trivy documentation warns that mirrors must be kept updated, and that warning is the core operational risk. A stale vulnerability database produces a clean report for CVEs published after the last sync, which looks like assurance but is not. Your security team owns the update cadence: how often the databases are refreshed, who approves each import across the boundary, and how the team proves which database version a given scan used. Record that version in scan output and retain it with the scan results, so an auditor or incident responder can reconstruct what the scanner knew on a given date.

Before committing, ask your team to run a test cycle: sync the three databases, transfer them, run a scan of a known vulnerable image, and confirm the findings match the connected baseline. Ask whether the cadence you choose matches your own vulnerability management policy, since CIS Safeguard 7.1 expects a written process that is reviewed at least yearly or after significant change. The scanner is only as current as the last import, so budget staff time for the transfer work recurring indefinitely.

Which disconnected model fits your network

In a cluster with no internet egress, the Trivy Operator runs inside the cluster and scans workloads as they are created, such as when a new Pod appears. Its database source must be an internal registry where you have mirrored the trivy-db and trivy-java-db OCI images, with the --db-repository and --java-db-repository settings pointing to that mirror. The operator stores vulnerability, config audit, exposed secret, RBAC and compliance reports as Kubernetes custom resources, so teams can read them with ordinary cluster tooling and no extra database. Clusters themselves can be built offline: kubeadm can list and pull control plane images in advance, and the --image-repository flag points kubeadm init at your private registry.

  • Database source: an internal mirror of trivy-db and trivy-java-db, refreshed on a schedule you set.
  • Where it runs: inside the cluster as the Trivy Operator, with reports stored as custom resources.
  • What crosses the boundary: the database images and any scanner image updates, carried in on approved media or through a transfer registry.
  • Build-time images: control plane images pulled ahead of time with kubeadm and served through a private registry.
  • Compliance reports: the operator can produce reports against the CIS Kubernetes Benchmark v1.23 and Pod Security Standards profiles.

Confirm with your platform team whether the cluster's registry can accept mirrored OCI content, and who signs off each database import.

Aqua's managed disconnected deployment vs self-hosted Trivy

This table compares how Aqua's disconnected deployment and self-hosted Trivy supply vulnerability data, keep it current, and handle policy, reporting and runtime coverage on isolated networks. Read the Aqua column as questions to confirm with Aqua, since its disconnected packaging details are not covered here. The main takeaway is that Trivy covers scanning, while anything beyond scanning, such as runtime protection and central management, needs its own decision.

AreaAqua managed disconnected deploymentSelf-hosted Trivy
Who supplies vulnerability dataConfirm with Aqua which feeds are delivered, through what channel, and whether Aqua packages them for the disconnected sideYou mirror trivy-db, trivy-java-db and trivy-checks to an internal registry or download archives on a connected machine
How updates reach the offline sideConfirm the delivery cadence, the transfer method and who performs the import in your environmentYour team copies new database artifacts across the boundary on a schedule you set, and the docs warn mirrors must be kept updated
Scanner and database selectionManaged by the vendor package; confirm which components are included and how they are versionedSet with --db-repository, --java-db-repository and --checks-bundle-repository, so you control the source
Central policy and reportingConfirm whether policies and dashboards run on the disconnected side or report back only after reconnectionReports come from Trivy output formats such as table, JSON and SARIF; central views need your own tooling
Findings trackingConfirm whether scan results export to tools such as DefectDojoDefectDojo can import Trivy output for tracking and deduplication, and this works in either option
Runtime protectionAqua's commercial platform adds runtime controls; confirm which of these work when fully disconnectedNot covered by Trivy; Trivy Operator scans clusters but does not block workloads at runtime
Vendor support and licensingCommercial subscription; confirm support scope, update obligations and license terms for air-gapped useApache-2.0 license; support comes from your own team or from a services provider you engage

How to deploy Trivy and its databases on an isolated network

This sequence takes a scanner from policy to a working offline setup, so that container images, Kubernetes workloads and CI pipelines are checked against vulnerability data that was mirrored, verified and kept current inside your own boundary.

  1. Confirm scan scope and policy

    The security team and platform owners agree which registries, clusters, pipelines and base images must be scanned, which severities block a build, and who accepts risk for exceptions. Write these decisions down before any tooling changes, because they set the mirror contents, the report routing and the update owner. Done means a signed scope note that names the scan targets, the blocking policy and the accountable owner for the databases.

  2. Stand up an internal registry

    The platform team deploys or designates an internal OCI-capable registry inside the isolated network, with access control, TLS and storage sized for repeated database pulls. This registry hosts the mirrored Trivy databases and the scanned images. Confirm that the registry accepts the artifact types your mirror tooling pushes. Done means the registry answers authenticated pushes and pulls from a test host on the isolated network.

  3. Mirror the three Trivy databases on a connected machine

    On a connected build host, pull the trivy-db, trivy-java-db and trivy-checks artifacts, which Trivy publishes as OCI images, and push them to the internal registry under paths your team names in the mirror runbook. Keep the mirror source and digest of each artifact in a log so the copy can be traced later. Done means each of the three repositories is present in the internal registry with a recorded digest.

  4. Transfer and verify artifacts across the boundary

    Move the artifacts through your approved transfer path, such as a data diode, removable media process or controlled file transfer, and recheck the digests on the isolated side before they are used. Record who performed the transfer and who verified it. Where no internal registry exists, the fallback is to download the trivy-db or trivy-java-db archive on the connected machine and copy it into the cache db directory on the offline system, as Trivy's self-hosting guidance describes. Done means checksums match on both sides and the transfer record is filed.

  5. Point Trivy at the internal repositories

    Configure the Trivy binary, CI images and any server mode with the internal repository values through the --db-repository, --java-db-repository and --checks-bundle-repository options, or the equivalent configuration keys in your deployment. Disable any default network lookups that would fail on the isolated network. Done means a test scan of a known image completes on an isolated host, reports vulnerabilities from the mirrored database, and records the database version it used.

  6. Wire scans into CI and the Trivy Operator

    Add the internal-repository Trivy command to pipeline jobs that build and push images, and install Trivy Operator in clusters with the same internal database settings so new Pods are scanned when they are created. Set the policy from step one as the pipeline gate. Done means a deliberately vulnerable test image fails the gate in CI, and the Operator writes vulnerability reports as Kubernetes custom resources in a test namespace.

  7. Set an update schedule with a named owner

    Trivy's documentation warns that mirrors must be kept updated, so define how often the team refreshes each database, who runs the connected-side pull and transfer, and what happens when a refresh fails. Track the age of the mirrored databases in your monitoring. Confirm the cadence against your own policy and any framework you are assessed under. Done means a written schedule, a named owner and an alert that fires when the database is older than the agreed limit.

  8. Route reports to DefectDojo

    Export scan results in a format DefectDojo imports, such as JSON or SARIF, and send them from CI and the Operator workflow so findings are deduplicated and tracked to closure in one place. Assign owners to findings and set review rules for accepted risk. Done means a scan from a pipeline appears as a DefectDojo engagement with findings that carry a severity, an owner and a status.

When Aqua's managed disconnected deployment is worth paying for

Pay for Aqua's disconnected deployment when you need vendor-managed packaging, contractual support or the platform features that Trivy does not supply. Trivy alone covers scanning parity: container images, filesystems, SBOMs, CVEs, misconfigurations and secrets. Aqua's commercial platform adds runtime protection, policy enforcement and central management on top of that. If your requirement is only to scan disconnected images and report findings, the open-source path may be sufficient. If your requirement includes blocking workloads at runtime, enforcing one policy across many clusters and registries, or holding a vendor accountable for an offline update process, the comparison changes.

Typical situations where the managed route earns its cost include a regulator or customer that expects a supported vendor for the disconnected stack, a security team that does not want to own database mirroring and verification, and a need for a single console covering several environments. Ask Aqua in writing for the disconnected deployment documentation, the exact list of components delivered to the isolated network, how the vulnerability and policy data is refreshed, how each package is verified before it crosses the boundary, and what the support terms cover when an update fails. Confirm these points with the vendor rather than relying on marketing material.

Then price both sides on the same scope. For the self-hosted route, list who maintains the mirror pipeline, who validates each transfer and who answers when the offline database is stale. For the Aqua route, list what the subscription includes, what is still your responsibility, and which features you would actually enable. Document the decision so the answer can be defended to auditors and procurement, and revisit it when your runtime or policy requirements change.

Risks that appear when the database mirror goes stale

A self-hosted Trivy deployment is only as current as the databases copied into the enclave. The risks below share one root cause: the transfer process is manual, so gaps in data freshness, verification, rescanning and ownership show up as missed findings rather than errors.

Outdated CVE data hides findings

Trivy reads its vulnerability data from trivy-db, and the Java vulnerability data from trivy-java-db. Trivy's self-hosting docs warn that mirrors must be kept updated. If the mirror lags behind the upstream databases, a scan can report a clean image while a newer CVE affecting the same package is missing from the results. This is a false negative, and it is the kind of gap a CIS Safeguard 7.5 assessor will test by comparing scan output with current advisories. Check the age of the database in every enclave scan output before you accept a clean result.

Trivy self-hosting docs

Unverified packages cross the boundary

Every package, image and database archive carried into an isolated network is a supply chain input. NERC CIP-013-2 requires procurement processes that address verification of software integrity and authenticity for vendor software and patches, and the same discipline applies to Trivy binaries, databases and checks bundles you move by hand. Without a recorded checksum or signature check at the boundary, a tampered artifact can reach the scanner unnoticed. Record who verified each transfer and keep that record with the scan evidence.

CIP-013-2 text

Critical fixes without a rescan

PCI DSS v4.x requirement 11.3.1 expects rescans after high-risk and critical fixes, and that expectation does not pause because a network is disconnected. If the mirror is refreshed only once a quarter, a critical patch can be applied while the scanner still reports the old state, so the rescan proves nothing. Ask for a defined rule that triggers a database refresh and a rescan after each critical remediation, and confirm the refresh cadence against your own change records.

PCI DSS SAQ D

Unclear owner for the transfer process

Mirror refreshes involve a connected machine, media handling, a transfer approval and an import step on the offline side. CIS Safeguard 7.1 asks for a written vulnerability management process that is reviewed at least once a year or after significant changes, and the transfer steps belong inside it. When no single team owns the chain, databases fall behind silently because each party assumes another has done the last step. Name one accountable owner, a backup owner and a documented schedule in the written process.

CIS Control 7 spec

Drift between CI and cluster scanners

Teams often run Trivy in CI pipelines and Trivy Operator inside the cluster. If the two draw on different database snapshots, the same image can pass a pipeline gate and then produce findings in the cluster, or the reverse. Trivy Operator scans continuously and stores results as Kubernetes custom resources, so divergence shows up as conflicting reports for one workload. Pin both components to the same mirrored database version and compare their reported database timestamps during each refresh.

Trivy Operator README

Questions teams ask before scoping air-gapped container scanning

Can our team run air-gapped Trivy without outside help?

Yes, many teams can, provided they have someone who owns container security, someone who can operate a registry, and a repeatable process for moving files across the boundary. Trivy itself is Apache-2.0 and the offline steps are documented, so the question is capacity and ownership, not licensing. The work that usually stalls internal teams is the recurring part: keeping the mirrors current, validating each transfer and handling findings. Ask your own team to walk through one full update cycle on paper before deciding. If that exercise exposes gaps in skills or time, a fixed-scope engagement from DeployOpen can cover the build and handover, and a retainer can cover upgrades.

What drives the effort of an offline Trivy setup?

The main drivers are the number of images and clusters in scope, how often your vulnerability databases must be refreshed, and how the transfer process works across your boundary. More images and clusters mean more registry storage, more scan targets and more findings to triage. A faster update cadence means more transfers to validate. A manual, media-based transfer process costs more people time than an automated, approved one. Trivy's databases are published as OCI images you can mirror to an internal registry, and the offline archive route copies database files into the cache directory. Ask your team to map each path, its owner and its approval step before estimating effort.

What does the work need from our security, registry and network teams?

Expect four groups to be involved:

  • A security owner who accepts risk, sets scan policy and reviews findings.
  • Registry administrators who host the mirrors and control who can pull from them.
  • Change control staff who approve each transfer across the isolated boundary.
  • Network staff who confirm which hosts can reach which endpoints, and that nothing else leaks out.

NERC CIP-013-2 is one example of a requirement that expects software integrity checks on what crosses a boundary, so involve your compliance lead early. Agree these roles and approval steps in writing before work starts.

Does Aqua's disconnected deployment cost more, and how do we compare it?

Aqua's pricing is not published in the sources used for this page, so the only reliable comparison is a written quote from Aqua for the disconnected deployment, with its components itemized. Ask whether the offline option is included in your subscription tier, what it adds in support, update delivery and central management, and whether it recurs annually. Put the self-hosted side next to it: compute for the registry and scanners, storage for mirrors, staff time for transfers and triage, and any support you buy. Compare both over the same number of images, clusters and years. Ask Aqua to state what happens to database updates if your transfer process slips.

How often must the offline Trivy mirrors be updated?

Often enough that your scanner is not working from stale vulnerability data. Trivy's documentation warns that mirrors must be kept updated, so the cadence should be set by your risk tolerance and the rate at which your images change. Write the schedule down, name the owner of each refresh, and record each transfer with its checksum or signature check. Test the mirror after every update by scanning a known image. Confirm the exact update workflow and any database version details with the current Trivy self-hosting documentation before you commit to a schedule.

Does Trivy cover runtime threats in our clusters?

No, Trivy finds vulnerabilities, misconfigurations, secrets and licenses in images, filesystems, Git repositories, virtual machine images and Kubernetes resources. It does not watch running processes or block behavior. Trivy Operator scans a cluster continuously, for example when a new Pod is created, and stores reports as custom resources, but that is still a posture check rather than runtime detection. For syscall-level alerts, pair the scanning stack with Falco, which is a separate tool with its own rule maintenance. Aqua's commercial platform bundles runtime protection and policy enforcement, so compare those capabilities explicitly in your quote.

How is a fixed-scope engagement agreed in writing?

DeployOpen agrees scope, deliverables and timelines in writing before work starts, and the quote follows from that written scope. A typical written scope for this topic would list the systems in scope, the mirror and transfer design, the registry and scanner configuration, the handover documents and the testing you want performed. It would also name what is excluded, such as runtime detection or ongoing triage. DeployOpen does not publish a price list. Ongoing upgrades, database refreshes and continuous testing can be covered by a retainer after handover. Ask for the written scope and quote in the same document so you can compare it with other options.

How scanner databases and reports cross the isolation boundary

The diagram starts on the connected side, where a build host pulls the trivy-db, trivy-java-db and checks bundle from vendor OCI registries and mirrors them into an internal registry. Only verified artifacts cross the labeled trust boundary, by media or a controlled transfer, into the isolated zone. There, Trivy runs in CI, Trivy Operator runs in the cluster, and findings flow into DefectDojo for tracking. Check that the mirror refresh cadence and the checksum step are owned by someone, because stale databases quietly weaken every scan.

Verified databases cross one boundary; scan reports stay inside the isolated zone.

How DeployOpen deploys Trivy under an air-gap constraint

DeployOpen plans, builds and hands over self-hosted Trivy scanning inside the client's own disconnected network, including the mirrored vulnerability databases, the update path across the isolation boundary and the documentation the client's security team needs to review it. Engagements are agreed as fixed-scope work with written deliverables before any build starts.

How we scope

  • We agree in writing which registries, CI runners, clusters and scan targets fall inside the air-gapped boundary.
  • We record which Trivy databases, Java DB and checks bundle versions the client will carry across the boundary.
  • We confirm with the client whether Aqua's managed disconnected deployment is in or out of the agreed scope.

How we build

  • We mirror trivy-db, trivy-java-db and trivy-checks to an internal registry and point Trivy at them with the repository flags.
  • We define the transfer path, signing and checksum checks for each database and bundle moved into the isolated network.
  • We test scans of images, filesystems and SBOMs offline, and confirm that no outbound calls occur during a scan run.

How we hand over

  • We deliver the architecture, the mirror and update runbook, and the cadence for refreshing offline databases.
  • We provide configuration files, pipeline changes and access controls so your security team can review each component.
  • We document evidence for the controls your assessors ask about, such as vulnerability scanning and supply chain verification.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • We can test the setup again after Trivy or database format changes, and document the results for your records.
  • Ask us to confirm how each update cycle, including the offline database refresh, will be staffed and reviewed before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.