Skip to content
r.

semgrep

semgrep/semgrep · Public GitHub repository

Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

semgrep live demo screenshot
Captured from the live demo · 2026-11-23

About this project

Author-written excerpt from the project README.

Semgrep is semantic grep for code. While running grep "2" would only match the exact string 2, Semgrep would match x = 1; y = x + 1 when searching for 2. Semgrep rules look like the code you already write; no abstract syntax trees, regex wrestling, or painful DSLs.

Note that in security contexts, Semgrep Community Edition will miss many true positives as it can only analyze code within the boundaries of a single function or file. If you want to use Semgrep for security purposes (SAST, SCA, or secrets scanning), the Semgrep AppSec Platform is strongly recommended since it adds the following critical capabilities:

The Semgrep AppSec Platform works out-of-the-box with 20000+ proprietary rules across SAST, SCA, and secrets. Pro rules are written and maintained by the Semgrep security research team and are highly accurate, meaning AppSec teams can feel confident bringing findings directly to developers without slowing them down.

Requirements and intended audience

Semgrep is semantic grep for code. While running grep "2" would only match the exact string 2, Semgrep would match x = 1; y = x + 1 when searching for 2. Semgrep rules look like the code you already write; no abstract syntax trees, regex wrestling, or painful DSLs.

Not recorded: external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-23. Source: https://github.com/semgrep/semgrep/blob/develop/README.md

Recorded maintenance information

Last recorded source update: 2026-11-23. Saved release: v1.179.0 · 2026-10-02. These dates do not guarantee ongoing maintenance.

Technologies
Python
Licence
LGPL-2.1. Changes and distribution carry source-sharing and notice conditions; linking rules depend on the licence version.
Demo check
A public page loaded on 2026-11-23. This does not test every feature.

Browse related categories