Semgrep
Fast static analysis with rules that look like source code; Community Edition is open source.
Semgrep searches code for patterns written in a syntax close to the target language, making custom security and correctness rules easy to write. The open-source Community Edition (LGPL-2.1) runs locally and in CI, while Semgrep's commercial platform adds cross-file analysis, supply-chain scanning and managed rules. In 2024 Semgrep changed the licence of its maintained rules, which led several vendors to fork the engine as Opengrep.
- Type
- Security
- Category
- Security
- Maintainer
- Semgrep, Inc.
- First released
- 2020
- License
- Mixed (LGPL-2.1-only)
- Pricing
- Freemium — Community Edition is free; the Semgrep AppSec Platform has a free tier for small teams and paid tiers.
- Level
- Intermediate
- Technologies
- security, sast, devsecops
- GitHub stars
- 18,203
- Weekly downloads
- 5,798,161 (pypi)
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What Semgrep is used for
- Custom lint/security rules
- SAST in pull requests
- Enforcing secure coding patterns
Strengths
- Readable rule syntax
- Fast
- Many languages
Limitations
- Advanced cross-file analysis is commercial
- Rule licensing changed in 2024
Semgrep alternatives
How it relates to other tools
- Semgrep works with GitHub Actions
- Semgrep works with GitLab CI/CD