Scan containers, filesystems, and repos for vulnerabilities with Trivy. Use when a user asks to scan Docker images for CVEs, audit filesystem for secrets, check IaC for misconfigurations, or add security scanning to CI.
Scanned 9/6/2026
Install to Claude Code
npx -y skills add TerminalSkills/skills --skill trivy --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Trivy?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/terminalskills-trivy)More formats (shields.io, HTML) on the badges page.
---
name: trivy
description: >-
Scan containers, filesystems, and repos for vulnerabilities with Trivy. Use
when a user asks to scan Docker images for CVEs, audit filesystem for secrets,
check IaC for misconfigurations, or add security scanning to CI.
license: Apache-2.0
compatibility: 'Docker, Linux, macOS'
metadata:
author: terminal-skills
version: 1.0.0
category: devops
tags:
- trivy
- vulnerability
- container
- scanning
- ci-cd
---
# Trivy
## Overview
Trivy is an open-source vulnerability scanner by Aqua Security. Scans container images, filesystems, git repos, and IaC for vulnerabilities, misconfigurations, and exposed secrets.
## Instructions
### Step 1: Install
```bash
brew install trivy
```
### Step 2: Container Scanning
```bash
trivy image node:20-alpine
trivy image --severity CRITICAL,HIGH my-app:latest
trivy image --format json --output results.json my-app:latest
```
### Step 3: Filesystem and Secret Scan
```bash
trivy fs .
trivy fs --scanners vuln,secret,misconfig .
```
### Step 4: IaC Scanning
```bash
trivy config ./terraform/
trivy config ./k8s/
```
## Guidelines
- Free and open-source — no account needed.
- Local vulnerability DB, updated automatically — scans are fast.
- Supports SBOM generation (CycloneDX, SPDX) for compliance.
- Use in CI to block deployments with critical CVEs.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.
Wire a service's OpenTelemetry output to Sematext Cloud. Walks through region, App-type, instrumentation flow (managed OTLP endpoint vs Sematext Agent), and signal selection (traces/metrics/logs), then produces the exact env-var block and points at a runnable reference example in this repo. Invoke when instrumenting a new app for Sematext.
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.
Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.
Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.