Trivy Security Scanner avatar

Trivy Security Scanner

Pricing

from $371.25 / 1,000 scan completeds

Go to Apify Store
Trivy Security Scanner

Trivy Security Scanner

Scan a container image or git repository for CVEs, exposed secrets, and misconfigurations using Trivy, the open-source scanner trusted across the container security ecosystem. Severity-scored findings, Critical to Negligible. $0.99 per completed scan; failed scans are never charged.

Pricing

from $371.25 / 1,000 scan completeds

Rating

0.0

(0)

Developer

Virtual Footprint LLC

Virtual Footprint LLC

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

21 days ago

Last modified

Categories

Features

Limited permissions

Share

Trivy Security Scanner API — Container Vulnerability & Secret Scanning

What is this Trivy Security Scanner?

This Trivy security scanner API scans container images and git repositories for vulnerabilities (CVEs), hardcoded secrets, and misconfigurations — powered by Aqua Security's open-source Trivy engine. No Docker daemon required. Use it for container security scanning, CI/CD vulnerability gates, dependency audits, compliance evidence (SOC2, ISO 27001), and DevSecOps pipelines.

Key search terms: Trivy scanner, container vulnerability scanner, CVE scanner API, Docker image security scan, Kubernetes security scanner, secret detection API, DevSecOps tool, container security API, misconfiguration scanner, supply chain security.

Container Security Scanner — Key Capabilities

CapabilityDescription
Vulnerability Scanning (CVEs)Detect known CVEs in OS packages and language dependencies (pip, npm, Go, Java, etc.)
Secret DetectionFind API keys, tokens, and credentials committed into targets
Misconfiguration ScanningCatch insecure settings in Dockerfiles, Kubernetes manifests, Terraform, CloudFormation
No Docker Daemon NeededScans run entirely inside the Actor container — no local Docker installation required
Container Image ScanningScan any public container image (Docker Hub, GHCR, etc.)
Git Repository ScanningScan public git repos for secrets and misconfigurations
Structured JSON OutputMachine-readable findings with severity, advisory links, and scan summaries

Container Vulnerability Scanner — Frequently Asked Questions

Q: What is Trivy? Trivy is an open-source security scanner by Aqua Security that detects vulnerabilities (CVEs), secrets, and misconfigurations in container images, filesystems, and git repositories. It's one of the most popular open-source security tools for DevSecOps.

Q: What container vulnerabilities does this scanner find? This scanner detects known CVEs in OS packages (Debian, Alpine, Ubuntu, etc.) and language-specific dependencies (pip/PyPI, npm, Go modules, Maven, NuGet, Ruby gems, etc.) with severity levels, installed vs. fixed versions, and advisory links.

Q: Can I scan Docker images for vulnerabilities? Yes. This Trivy scanner scans any public container image — Docker Hub, GHCR, ECR public, etc. Pass the image reference (e.g. python:3.9-slim, nginx:1.19) and it returns all known CVEs.

Q: Do I need Docker installed to use this? No. This scanner runs entirely inside the Apify Actor container. No Docker daemon, no local installation, no CI runner setup required. Just call the API with your target image or repo URL.

Q: Can I scan Kubernetes manifests? Yes. The misconfiguration scanner checks Dockerfiles, Kubernetes YAML manifests, Terraform, and CloudFormation for insecure defaults and misconfigurations.

Q: Does this scan for hardcoded secrets? Yes. The secret scanner detects API keys, tokens, and credentials committed into container images or git repositories.

Q: Is this suitable for CI/CD pipelines? Yes. Use it as a pre-deploy security gate — scan container images before shipping to production and fail the pipeline on Critical CVEs.

Q: What output format does it return? Structured JSON with one row per finding (vulnerability, secret, or misconfiguration), including severity, CVE ID, package name, installed/fixed versions, advisory URL, and a scan summary with totals.

Q: How does this compare to running Trivy locally? This hosted version removes the need to install/maintain Trivy, manage Docker, or set up CI runners. You get API-callable, schedulable, structured-output scanning for $0.99 per scan.


Powered by Trivy Apache 2.0 3 scan types No Docker daemon

What it checks • Use cases • Input • Output • Pricing

Trivy Security Scanner

One Actor, three real scan types, zero fabricated findings — CVEs, secrets, and misconfigurations for any container image or public git repo.

Verified live against python:3.9-slim: 51 real CVEs found (7 Critical, 44 High), each with a working advisory link back to avd.aquasecurity.com. No placeholder text, no invented CVE IDs — run it yourself and compare.

The problem with most "scanner" listings

Most security-scanner Actors on the Store either wrap one narrow check or silently return placeholder findings when the underlying tool isn't wired up correctly — you don't find out until you're staring at a report that doesn't match reality. This one wraps Trivy directly, unmodified, and reports exactly what Trivy finds. A clean target gets zero findings back, not a padded report.

What it checks

CheckWhat it means
VulnerabilitiesKnown CVEs in OS packages and language dependencies (pip, npm, Go, Java, and more), with severity, installed vs. fixed version, and a direct advisory link
SecretsAPI keys, tokens, and credentials committed into the target
MisconfigurationsInsecure settings in Dockerfiles, Kubernetes manifests, Terraform, and CloudFormation

Use cases

  • Pre-deploy gate in CI/CD — scan a container image before it ships to production and fail the pipeline on any Critical CVE.
  • Base image selection — compare CVE counts across candidate base images (python:3.9-slim vs python:3.9-alpine, etc.) before standardizing on one.
  • Dependency audit for acquisitions/due diligence — scan a target company's public repos for known CVEs and hardcoded secrets before a deal closes.
  • Compliance evidence collection — generate a point-in-time vulnerability report for SOC2, ISO 27001, or PCI-DSS audits.
  • Incident response triage — quickly check whether a newly disclosed CVE affects any image currently in your registry.
  • Open source dependency review — scan a vendor's or contractor's repo before integrating their code into your stack.
  • Secret leak detection before open-sourcing — scan a private repo for committed credentials before making it public.
  • Kubernetes manifest review — catch insecure defaults in K8s YAML before they reach a cluster.

Input

FieldTypeRequiredNotes
targetstringyesContainer image (nginx:1.19) or git repo URL
scanTypestringnoimage or repo — auto-detected from target if left blank
scannersarraynoAny of vuln, secret, misconfig — default all three
severityFilterarraynoRestrict vuln/misconfig results to given severities
{ "target": "python:3.9-slim", "scanners": ["vuln", "secret"] }

Output

One row per real finding (findingType: vulnerability, secret, or misconfiguration), plus one scan_summary row per run with totals by type and severity.

One real finding from a live scan:

{
"findingType": "vulnerability",
"target": "python:3.9-slim",
"scanTarget": "python:3.9-slim (debian 13.1)",
"vulnerabilityId": "CVE-2011-3374",
"pkgName": "apt",
"installedVersion": "3.0.3",
"fixedVersion": null,
"severity": "LOW",
"title": "It was found that apt-key in apt, all versions, do not correctly validate...",
"primaryURL": "https://avd.aquasecurity.com/nvd/cve-2011-3374"
}

Frequently asked questions

Does this require Docker or a daemon on my machine? No — Trivy runs entirely inside the Actor's container against the target you specify. You don't need Docker installed locally, and no daemon socket is mounted.

What happens if my target has zero vulnerabilities? You get zero vulnerability rows back and a scan_summary row showing totalMatches: 0. Nothing is padded or invented to make the report look more substantial.

Can I scan a private image or repo? Only public targets are supported out of the box — the Actor pulls from public registries and clones public git URLs. Private targets would need registry/git credentials, which this Actor doesn't currently accept as input.

How is this different from the Grype Actor in the same catalog? Trivy and Grype use overlapping but not identical vulnerability databases and matching logic. Running both against the same target is a legitimate cross-check — see Grype Vulnerability Matcher.

Are failed scans charged? No — only a successfully completed scan triggers the scan-completed charge. A bad target or clone failure returns a SCAN_FAILED status row and is not billed.

Limitations

  • Scans reflect Trivy's vulnerability database at the time of the scan — the Docker image's DB is refreshed at build time, not on every run, so there's a small window where the very newest CVEs may not yet be included.
  • Misconfiguration checks apply to Dockerfiles, Kubernetes manifests, Terraform, and CloudFormation specifically — a plain application repo with none of these will return zero misconfiguration findings, which is correct, not a bug.
  • Only public container registries and public git repos are supported.

Start scanning

Give it a container image or a public repo URL, pick which of the three scan types you need, and run it. Point it at your own registry image before your next deploy, or at a vendor's repo before you integrate their code.

Pricing

Pay per completed scan (Pay-Per-Event) — $0.99 per scan, charged once the scan finishes successfully regardless of how many findings come back. Failed scans (bad target, clone error) are never charged.

Part of a five-Actor security scanning catalog, each independently verified against real targets: Gitleaks Secret Scanner (full git-history secret detection), Syft SBOM Generator (CycloneDX/SPDX bill of materials), Grype Vulnerability Matcher (independent CVE cross-check), OSV-Scanner Vulnerability Checker (lockfile-based OSV.dev checks).

Testing

14 offline tests — python3 -m pytest tests/ (no network, no Apify runtime, no trivy binary).

tests/test_main_orchestration.py covers the main.py run-orchestration + billing contract that decides whether this PUBLIC pay-per-event actor charges correctly: the input gates (no target → not billed), the drop-not-billed honesty rule (SCAN_FAILED pushes ONE honest error record and is never charged), scanType image|repo auto-detect (explicit override wins), the default/override scanners set, the severityFilter gate (applied to vulnerabilities + misconfigurations, never dropping secrets), the per-finding row field mapping (vulnerability / secret / misconfiguration, with the 200-char secret match cap), the honest-zero scan_summary, and Actor.charge("scan-completed") firing exactly once per successful scan. Tests stub apify and monkeypatch _run_trivy to a deterministic leaf, exercising the real orchestration logic offline (identical pattern to the gitleaks / shopify / app-publisher orchestration suites).