🔎 Static code analysis engine to find security issues in code.
Overview
Welcome to Opengrep! Opengrep is the most advanced open-source Static Application Security Testing (SAST) engine. - Support for 30+ languages - Semantic and type-aware matching - Cross-function and cross-file taint tracking - Advanced dataflow analysis: higher-order functions, field sensitivity, and more - Superior performance: multicore parallelism with OCaml 5 - Self-contained, Cosign-signed binaries for Linux, macOS, and Windows - Output formats: SARIF, JSON, and more - Fine-grained memory and time limits - Compatible with Semgrep rules Apex · Bash · C · C++ · C# · Clojure · Crystal · Dart · Dockerfile · Elixir · Go · HTML · Java · JavaScript · JSON · Jsonnet · JSX · Julia · Kotlin · Lisp · Lua · OCaml · PHP · Python · R · Ruby · Rust · Scala · Scheme · Solidity · Swift · Terraform · TSX · TypeScript · Visual Basic · XML · YAML · Generic (ERB, Jinja, etc.) Binaries are available on the releases page. On Windows, the package holds opengrep.
README
Welcome to Opengrep! Opengrep is the most advanced open-source Static Application Security Testing (SAST) engine.
Opengrep is backed by a consortium of AppSec organisations, including: Aikido, Amplify, Endor Labs, Kodem, and Orca Security.
More information: opengrep.dev
About
- Support for 30+ languages
- Semantic and type-aware matching
- Cross-function and cross-file taint tracking
- Advanced dataflow analysis: higher-order functions, field sensitivity, and more
- Superior performance: multicore parallelism with OCaml 5
- Self-contained, Cosign-signed binaries for Linux, macOS, and Windows
- Output formats: SARIF, JSON, and more
- Fine-grained memory and time limits
- Compatible with Semgrep rules
Supported Languages: Apex · Bash · C · C++ · C# · Clojure · Crystal · Dart · Dockerfile · Elixir · Go · HTML · Java · JavaScript · JSON · Jsonnet · JSX · Julia · Kotlin · Lisp · Lua · OCaml · PHP · Python · R · Ruby · Rust · Scala · Scheme · Solidity · Swift · Terraform · TSX · TypeScript · Visual Basic · XML · YAML · Generic (ERB, Jinja, etc.)
Installation
Quick install (recommended)
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | bash
Or if you’ve cloned the repo:
./install.sh
Windows (PowerShell)
irm https://raw.githubusercontent.com/opengrep/opengrep/main/install.ps1 | iex
Or with a specific version:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/opengrep/opengrep/main/install.ps1))) -Version v1.16.0
Manual install
Binaries are available on the releases page.
On Windows, the package holds opengrep.exe and the DLLs it needs; keep them
together in the directory you install them to.
For Agents
- Skill - install, write rules, run scans (
npx skills add opengrep/skills)
Documentation
- Wiki - tutorials and language guides
- Intrafile Tainting Tutorial
- Higher-Order Functions Tutorial
Community
- X / Twitter
- opengrep.dev - more information
More
Opengrep is a fork of Semgrep v1.100.0, created by Semgrep Inc. Opengrep is not affiliated with or endorsed by Semgrep Inc.
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add opengrep/opengrep