# semgrep

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

Canonical page: https://www.reposhelf.co.uk/projects/github/semgrep/semgrep.html

- Project ID: semgrep/semgrep
- Source: GitHub
- Original project: https://github.com/semgrep/semgrep
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Python
- Licence: LGPL-2.1
- Repository availability checked: 2026-11-23T13:30:13.191Z
- Demo page loaded: 2026-11-23T16:30:47.108Z

Changes and distribution carry source-sharing and notice conditions; linking rules depend on the licence version.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 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.

- Improved core analysis capabilities \(cross-file, cross-function, data-flow reachability\) that greatly reduce false positives by 25% and increase detected true positives by 250%
- Contextual post-processing of findings with Semgrep Assistant \(AI\) to further reduce noise by 20%. In addition, Assistant enriches findings with tailored, step-by-step remediation guidance that humans find actionable…
- Customizable policies and seamless integration into developer workflows, giving security teams granular control over where, when, and how different findings are presented to developers \(IDE, PR comment, etc.\)

## Author-documented requirements and 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.



- Account — Required: Run semgrep login to create your account and login to Semgrep.

Not recorded: External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/semgrep/semgrep/blob/develop/README.md

Extraction checked: 2026-10-23T21:46:47.656Z

Last recorded source update: 2026-11-23T00:02:27.000Z

Saved release: v1.179.0 — 2026-10-02T00:03:14.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=semgrep%2Fsemgrep). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
