All integrations

Aqua Trivy

Seal and Aqua Trivy integration

Description

Seal fixes the open source and OS vulnerabilities Trivy finds in your container images and filesystems. Instead of waiting on a dependency upgrade or a base image rebuild, Seal backports the upstream security fix into the exact package version you already run and delivers it as a signed, drop-in replacement. Trivy recognizes sealed packages out of the box, so the scan shows them clean without any extra configuration on your side.

How Seal fits into your Aqua Trivy workflow

Trivy scans your container images and filesystems to find known vulnerabilities; Seal is the fix underneath it. Add the Seal CLI to your CI pipeline, or run Seal OS inside your Dockerfile, and it resolves the packages covered by your Sealing Rules to their sealed versions before the image is built. The sealed package ships inside the image like any other dependency, with no separate Trivy-specific step and no change to how or when you run your Trivy scans.

Sealing Rules can be managed three ways: automatically, where Seal fixes every sealable vulnerability it finds; remotely, where rules are approved once in the Seal Platform and every build that references the affected package picks them up on its next run; or locally, in a .seal-actions.yml file committed to the repository. Remote mode is what lets one approved rule reach every image Trivy scans that uses a package, without touching each Dockerfile by hand.

Because a sealed version keeps the original version number and adds a suffix (for example lodash 4.17.20-sp1, or an extended revision for Alpine packages), it is still the version your manifest or base image expects. There is no framework migration and no code change, so a security fix does not turn into an engineering project.

Seal and Trivy's findings

Keep Trivy scanning your images and filesystems as you already do. Seal does not replace it; Seal removes the vulnerability it reports. Trivy recognizes sealed packages and sealed container images out of the box, so once a sealed package is built into the image, the next Trivy scan sees the sealed version and the finding closes. No manual override, waiver or ignore-list entry is needed in Trivy's configuration.

Setting up Seal with Aqua Trivy

  1. Get a Seal API token from the Seal Platform.
  2. Add the Seal CLI to your CI pipeline, or add a Seal OS step to your Dockerfile, so builds resolve covered packages to sealed versions.
  3. Decide how Sealing Rules should apply: automatic, remote (managed centrally in the Seal Platform), or local (a .seal-actions.yml file).
  4. Build your image or artifact as usual. The sealed packages ship inside it with no extra Trivy configuration required.
  5. Run Trivy against the image or filesystem, on your normal schedule or as part of the pipeline.
  6. Check the Trivy report. The finding for each sealed package is gone, and the component shows as remediated.

Frequently asked questions

Does Seal replace Trivy?

No. Seal fixes the vulnerabilities Trivy finds; it does not scan. Keep Trivy running, since Seal backports the fix into the version your containers and filesystems already use.

Do I need to configure Trivy to recognize sealed packages?

No. Trivy recognizes sealed packages out of the box, with nothing to install or configure on the Trivy side.

Do I need to change my Dockerfile logic or application code to use Seal with Trivy?

No. A sealed version is a drop-in replacement with the same major version and the same API, so adopting Seal is a build configuration change, not a code change.

Will this work for end-of-life or legacy packages Trivy flags in my images?

Yes. Seal backports fixes into end-of-life and legacy versions as long as the upstream source is public, so images pinned to old versions can still be remediated without an upgrade.

Does sealing a container image require runtime access?

No. Seal works at build time, delivering sealed packages into the image before it is deployed. It runs no agents inside your running containers.

How quickly does a cleared finding show up in Trivy?

As soon as a sealed package is in the image or filesystem, the next Trivy scan of that target sees it and the finding closes.