Semgrep

Semgrep

Enable AI agents to secure code with Semgrep.

13,435
Stars
827
Forks
20
Releases

Overview

Semgrep is a fast, open-source static analysis engine that searches code, finds bugs, and enforces secure guardrails and coding standards. Rules look like the code you already write, with no heavy ASTs, regex wrestling, or painful DSLs. Semgrep Code supports 30+ languages, while Semgrep Supply Chain covers 12 languages across package managers. It runs locally on your machine or in build environments (by default, code isn’t uploaded). The ecosystem includes Semgrep Community Edition, Semgrep Code Pro rules/engine for enterprise-grade checks, and the Semgrep AppSec Platform to orchestrate SAST, SCA, and Secrets scanning at scale. AppSec adds cross-file and cross-function analysis and data-flow reachability to improve precision. Semgrep Assistant provides AI-powered triage and remediation guidance. You can enforce customizable policies and surface findings where developers work—IDE integrations, PR comments, or CI checks. With 20,000+ rules available, Semgrep covers a broad range of security and quality checks. Privacy-conscious defaults and easy CLI/extension usage make it practical for local and CI workflows.

Details

Owner
semgrep
Language
OCaml
License
GNU Lesser General Public License v2.1
Updated
2025-12-07

Features

Code-like rules

Rules look like the code you write; no heavy ASTs, regex wrestling, or painful DSLs.

Local analysis with privacy by default

Analyzes code locally on your machine or in build environments; by default, code is never uploaded.

Broad language support and ecosystem

Supports 30+ languages for Semgrep Code and 12 languages for Semgrep Supply Chain, with editor and extension support.

Extensive rule coverage

Uses 20,000+ proprietary rules across SAST, SCA, and Secrets to detect issues.

Cross-file and data-flow analysis (AppSec)

AppSec Platform provides cross-file/cross-function analysis and data-flow reachability for higher precision.

AI-powered remediation triage

Semgrep Assistant triages findings and provides tailored remediation guidance; reviewers report high usefulness.

Policy customization and workflow integration

Customizable policies and granular integration into IDEs, PRs, and CI workflows.

Extensions and ecosystem

Editor integrations and pre-commit extensions; CI-driven PR-scoped reporting.

Audience

DevelopersUse Semgrep rules to find bugs and enforce secure guardrails during development.
Security teamsOrchestrate SAST, SCA, and Secrets scanning across an organization and tailor findings visibility.
Security researchers/consultantsDevelop and tune rules; leverage Pro engine for enterprise-grade checks and audits.
DevOps/CI/CD engineersIntegrate into CI pipelines and PR workflows to run scans automatically.

Tags

static analysisSASTSCAsecrets scanninglocal analysislanguage supportAI assistantCI/CDIDE/pre-commit