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.
Overview
Semgrep is a static analysis engine that matches code structure beyond literal text, using rules written in a syntax familiar to developers. Community Edition suits ad hoc audits and custom checks; the AppSec Platform adds orchestration for SAST, software composition analysis, and secrets detection across an organization.
Scans run on your machine or in your build environment by default, without uploading source unless you choose a connected workflow. The CLI supports interactive queries, CI mode, and login for Pro rules, supply-chain scanning, and an advanced analysis engine. The platform integrates with GitHub, GitLab, CircleCI, and similar providers for pull-request checks and triage.
Language coverage spans dozens of languages for code rules and multiple package ecosystems for dependency risk. A public rule registry and playground help author and share policies. Hooks can trigger scans as you edit; in CI, findings can be limited to issues introduced in the current change.
For security programs, the vendor notes that Community Edition analyzes within single functions or files, while the platform adds cross-file and data-flow analysis, customizable policies, and maintained proprietary rule sets for higher-signal results in production pipelines.
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
- Local-first scan execution
- Pull-request scoped CI findings
Use cases
- Custom lint and guardrail rules
- CI security gates on pull requests
- Dependency vulnerability triage
- Hardcoded secret discovery
- Security auditor code review
Does the same job as
Semgrep doesn't name these products itself, but its own description shows it does the same job.