Opengrep
$ opengrep Community Low RiskOpengrep is the LGPL-2.1 open-source fork of Semgrep CE preserving interfile taint analysis and multi-language pattern rules without commercial feature gates. opengrep scan supports --config, --json, --sarif, --exclude, and --dataflow-traces in clean headless execution.
https://github.com/opengrep/opengrep/releases opengrep scan --json runs full AST and taint analysis locally on disk without uploading source files to an external MCP service.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Full non-interactive SAST runner with --json, --sarif, --config, -e inline patterns, and --dataflow-traces.
- Supports
--json,--sarif,-o, and--config
Read-only static analysis by default; only writes to disk if --autofix or -o output path is explicitly passed.
- Read-only by default unless
--autofixis requested
Prebuilt standalone binaries for macOS and Linux via GitHub Releases and install script; native Windows requires WSL.
- Official macOS/Linux binaries; no native Windows binary
Retains cross-function/interfile taint analysis (--interfile-depth) and Semgrep rule compatibility fully open-source.
- Multi-language AST + interfile taint engine
Community-backed open-source fork supported by multiple AppSec vendors and contributors.
- Active repository at github.com/opengrep/opengrep
Clear CLI reference and rule-syntax documentation at opengrep.dev.
- Official docs at opengrep.dev/docs/
Security, Auth & Guardrails
None required for local rule scans; custom YAML rulesets live locally or at specified --config URLs.
100% free and open-source (LGPL-2.1).
# Opengrep Agent Rules - Keep scans read-only by omitting `--autofix` unless automated code rewrites are explicitly approved. - Pass explicit `--config <path>` and `--json` or `--sarif` for deterministic offline parsing.
Agent-Ready Command Recipes
Safe Read-Only Queries
opengrep scan --config ./rules/ --json .
Evaluates local YAML rules in ./rules/ against the workspace and prints structured JSON findings to stdout.
opengrep scan -e 'eval($X)' --sarif -o opengrep.sarif .
Runs an ad-hoc pattern query (-e) across files and writes SARIF results to opengrep.sarif.
Strengths for Agents
- + Fully open-source LGPL-2.1 engine with interfile taint analysis and Semgrep YAML compatibility.
- + Clean
--jsonand--sarifoutputs plus ad-hoc-epattern matching.
Caveats & Pitfalls
- ! No native Windows binary outside WSL; Homebrew core packaging varies.
- ! Using
--config autofetches rules over the network unless local--configrules are supplied.