Trivy

Scan codebases, container images, and IaC for vulnerabilities and misconfigurations.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/zzw4257/security-skills --skill trivy-zzw4257
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Trivy
Source: https://github.com/zzw4257/security-skills/tree/main/skills/trivy
Command: npx skills add https://github.com/zzw4257/security-skills --skill trivy-zzw4257

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for comprehensive scanning of code, configurations, and dependencies to identify security vulnerabilities and compliance issues.

Core Features & Use Cases

  • Vulnerability Scanning: Detects known vulnerabilities in application dependencies (OS packages, application packages).
  • Misconfiguration Detection: Identifies security misconfigurations in infrastructure-as-code (IaC) and container images.
  • SBOM Generation: Creates Software Bill of Materials (SBOM) to track components.
  • Use Case: Integrate into a CI/CD pipeline to automatically scan container images for critical vulnerabilities before deployment.

Quick Start

Run a basic scan on the current directory using the Trivy skill.

Frequently Asked Questions about Trivy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan container images for vulnerabilities before deployment?

Scanning container images for vulnerabilities detects known issues in OS and application packages. This process identifies security flaws in dependencies to ensure secure deployments.

What is infrastructure-as-code misconfiguration detection?

Infrastructure-as-code misconfiguration detection identifies security issues in IaC files. This mechanism scans configurations to find compliance problems and insecure settings before infrastructure is provisioned.

How do I generate an SBOM for supply chain security?

Generating an SBOM for supply chain security creates a Software Bill of Materials that tracks all components in a project. This output provides a comprehensive inventory of application dependencies.

Do I need to install the Trivy binary to scan codebases for security issues?

Yes, you need the Trivy binary installed and accessible in the system's PATH to scan codebases for security issues. This prerequisite allows the tool to execute vulnerability and misconfiguration checks locally.

Can I integrate vulnerability scanning into a CI/CD pipeline?

Yes, you can integrate vulnerability scanning into a CI/CD pipeline to automatically scan container images and codebases. This integration checks for critical vulnerabilities before deployment.

What is the best way to detect secrets in source code?

The best way to detect secrets in source code is using a comprehensive scanner that checks codebases for exposed credentials. This method identifies hidden secrets alongside vulnerabilities and misconfigurations.