Comparison

Semgrep vs Trivy

On the evidence we track, Semgrep leads this comparison with a composite score of 64/100. Scores are only directly comparable because these tools share a category; the full breakdown and every source is below.

Machine formatsMarkdownJSONGraphQLMarkdown is open. JSON and GraphQL need a free key.
★Semgrep64
Trivy58
Score
vioscaleAI score
Semgrep64 / 100medium · 71%
Trivy58 / 100low · 41%
Pricing
Free tier
Semgrep✓
Trivy✓
Model
Price level
Semgrepmid
Trivyfree
Starting price
Semgrep$30
Trivy–
Transparent
Semgrep✓
Trivy✓
Integrations
Count
Semgrep11
Trivy4
Reliability
Status page
Semgrep✓
Trivy–
Adoption
Dependent repos
Semgrep375
Trivy134
Github stars
Semgrep18,010
Trivy39,785
Package downloads weekly
Semgrep5,048,057
Trivy–
Activity
Commits last 30d
Semgrep82
Trivy65
Release
Cadence days
Semgrep6
Trivy11
History
Semgrep20 items
License
Spdx
SemgrepLGPL-2.1
Language
Primary
SemgrepC
TrivyGo
Content
Faq
Semgrep8 items
Trivy6 items

Capabilities

Feature-by-feature on the axes that matter for devsecops tools. “-” means undocumented, not absent.

Scan types
SAST (static analysis)
Semgrep✓
Trivy✓
DAST (dynamic analysis)
Semgrep✗
Trivy-
SCA / dependency scanning
Semgrep✓
Trivy✓
Secret scanning
Semgrep✓
Trivy✓
Container / image scanning
Semgrep✗
Trivy✓
IaC misconfiguration scanning
Semgrep✓
Trivy✓
Governance
OSS licence compliance
Semgrep✓
Trivy✓
SBOM generation (SPDX/CycloneDX)
Semgrep✓
Trivy✓
Remediation
Automated fix / upgrade PRs
Semgrep✓
Trivy-
Prioritisation
Reachability / exploitability prioritisation
Semgrep✓
Trivy-
Deployment
Hosting
SemgrepCloud + self-hosted
TrivySelf-hosted only
Integration
First-class CI / pipeline integration
Semgrep✓
Trivy✓
In-editor / IDE scanning
Semgrep✓
Trivy✓
Licensing
OSS engine available
Semgrep✓
Trivy✓

What each one is

The product in its own terms, so the numbers below have context.

Semgrep

Leader

A comprehensive application security platform combining SAST, SCA, and secrets detection with AI-assisted remediation guidance. Integrates into developer workflows and CI/CD pipelines to catch vulnerabilities before code is deployed.

Independently observed

Trivy

A tool that scans containers, infrastructure configurations, and source code to surface security vulnerabilities, configuration errors, exposed secrets, and licensing concerns.

Independently observed

Pricing

List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.

Semgrep

Leader
from $30/contributor/moSubscriptionFree tier

Free tier with up to 10 repositories and 10 contributors. Teams plans from $15-30/month per contributor (depending on module). Enterprise custom pricing.

  • Free EditionFree
    • Cross-file analysis with Pro rules
    • AI-powered detection, triage, and remediation
    • 60 AI credits included
    • Fast CI/CD deploy via Semgrep infrastructure
    • Scan up to 10 repositories
    • +4 more
  • Teams$30/month per contributor (Code and Supply Chain), $15/month per contributor (Secrets)
    • One-click CI/CD deploy using Semgrep infrastructure
    • Single sign-on (SSO)
    • Award-winning support
    • AI-powered detection and auto-triage
    • Policy engine
    • +2 more
  • EnterpriseContact sales
    • Everything in Teams
    • Support for on-prem source code management
    • Support for custom CI/CD integrations
    • 50 AI credits per developer per month
    • Optional deployment in dedicated infrastructure
    • +5 more
as of verify ↗

Trivy

Open source
as of verify ↗

Platform & deployment

Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.

Platforms
Web
Semgrep✓
Trivy✗
Linux
Semgrep✗
Trivy✓
CLI
Semgrep✓
Trivy✓
Deployment
Cloud / SaaS
Semgrep✓
Trivy✗
Self-hosted
Semgrep✓
Trivy✓
On-premise
Semgrep✓
Trivy✗
Hybrid
Semgrep✓
Trivy✗

Integrations

What each product connects to. Counts come from the vendor's own integration directory where one exists.

In common (3)
  • GitHub
  • GitLab
  • VS Code

Semgrep

Leader
28 total - 25 not shared
  • Bitbucket
  • Jenkins
  • CircleCI
  • Azure
  • Buildkite
  • HackerOne
  • Slack
  • Email
  • Webhooks
  • IntelliJ
  • Jira
  • Wiz
  • Palo Alto Networks Cortex
  • REST API
  • Cursor
  • Replit
  • Codacy
  • OpenID Connect
  • SAML
  • GitHub OAuth
  • GitLab OAuth
  • Azure AD
  • Azure DevOps
  • Jetbrains
  • +1 more
Independently observed

Trivy

10 total - 7 not shared
  • Docker
  • Azure Container Registry
  • Kubernetes
  • Harbor
  • CloudNativePG
  • Docker Hub
  • Helm
Independently observed
Still deciding?

Semgrep or Trivy: which one depends on you

A composite score cannot know your constraints. Describe them and both get re-weighted against what you actually need, with the evidence behind every position.

Free to run, no account needed to start. How the evaluation works

Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.