SemgrepPattern-based static analysis for many languages
TrivyAll-in-one scanner for vulnerabilities, IaC, SBOM, and secrets
Semgrep vs Trivy
How Semgrep and Trivy compare on popularity, activity, license and platforms: two open-source Application Security projects, both alternatives to Veracode.
At a glance
- Trivy has more GitHub stars (40k vs 18.2k, about 2× as many).
- Both are actively maintained (last commits yesterday and yesterday).
- Semgrep uses LGPL-2.1 (weak copyleft); Trivy uses Apache-2.0 (permissive).
Side by side
| Semgrep | Trivy | |
|---|---|---|
| GitHub stars | ★ 18,180 +236 in 9 days | ★ 40,022 +286 in 9 days |
| Forks | 1,240 | 992 |
| Last commit | yesterday | yesterday |
| Latest version | v1.188.0 | v0.77.0 |
| Repository started | December 2019 | April 2019 |
| License | LGPL-2.1 · weak copyleft | Apache-2.0 · permissive |
| Self-hosted | Desktop/CLI app | Desktop/CLI app |
| Platforms | macOS, Docker, CLI | macOS, Docker |
| Main language | C | Go |
| Alternative to | Veracode | GitHub Advanced Security, Veracode |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 4 December 2026.
Semgrep
Semgrep scans source code with rules that resemble real code to find bugs and enforce standards. It runs locally in the CLI, IDE hooks, pre-commit, or CI.
Key features
- Code-shaped Semgrep rule language
- CLI, IDE, and CI integrations
- Thirty-plus language support
- Supply-chain dependency scanning
- Secrets detection with semantics
- Community rule registry
Trivy
Trivy scans containers, filesystems, Git repos, VMs, Kubernetes, and related targets for CVEs, misconfigurations, secrets, licenses, and software bills of materials.
Key features
- Container image scanning
- Filesystem and Git repo scans
- Kubernetes cluster checks
- CVE and SBOM detection
- IaC misconfiguration rules
- Secret and license scanning