{"id":24791245,"url":"https://github.com/opengrep/opengrep","last_synced_at":"2026-07-01T22:01:29.947Z","repository":{"id":270835837,"uuid":"903510992","full_name":"opengrep/opengrep","owner":"opengrep","description":"🔎 Static code analysis engine to find security issues in code.","archived":false,"fork":false,"pushed_at":"2026-06-29T16:06:25.000Z","size":90661,"stargazers_count":2730,"open_issues_count":85,"forks_count":224,"subscribers_count":24,"default_branch":"main","last_synced_at":"2026-06-29T16:32:13.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opengrep.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":"COPYRIGHT","agents":null,"dco":null,"cla":null}},"created_at":"2024-12-14T19:34:46.000Z","updated_at":"2026-06-29T16:05:08.000Z","dependencies_parsed_at":"2025-04-25T18:40:46.152Z","dependency_job_id":"638ff6f1-fe09-4e41-9f10-01900b195311","html_url":"https://github.com/opengrep/opengrep","commit_stats":null,"previous_names":["aikidosec/opengrep","opengrep/opengrep"],"tags_count":81,"template":false,"template_full_name":null,"purl":"pkg:github/opengrep/opengrep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengrep%2Fopengrep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengrep%2Fopengrep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengrep%2Fopengrep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengrep%2Fopengrep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opengrep","download_url":"https://codeload.github.com/opengrep/opengrep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengrep%2Fopengrep/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35024365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-29T19:02:26.455Z","updated_at":"2026-07-01T22:01:29.901Z","avatar_url":"https://github.com/opengrep.png","language":"OCaml","funding_links":[],"categories":["OCaml","Code Analysis"],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/opengrep\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"images/opengrep-github-banner.svg\"\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"images/opengrep-github-banner.svg\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/opengrep/opengrep/main/images/opengrep-github-banner.svg\" width=\"100%\" alt=\"Opengrep logo\"/\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Welcome to Opengrep, a fork of Semgrep, under the LGPL 2.1 license\n\n**Opengrep is the most advanced open source SAST engine.**\n\nLet's make secure software development a shared standard. Opengrep provides every developer and organisation with open and advanced static code analysis.\n\nOpengrep is backed by a consortium of 10+ AppSec organisations, including: [Aikido](https://www.aikido.dev/), [Arnica](https://www.arnica.io), [Amplify](https://amplify.security/), [Endor Labs](https://www.endorlabs.com/), [Jit](https://www.jit.io/), [Kodem](https://www.kodemsecurity.com/), [Legit](https://www.legitsecurity.com/), [Mobb](https://www.mobb.ai/), [Orca Security](https://orca.security/), and [Phoenix Security](https://phoenix.security/). To learn more, read the manifesto at [opengrep.dev](https://opengrep.dev/).\n\n## Why Opengrep?\n\nOpengrep was created when Semgrep moved critical features behind a commercial licence. We believe advanced static analysis should remain open and accessible to all.\n\n**Key advantages:**\n- **Compatible with Semgrep rules** - your existing rules and rulesets work unchanged\n- **Standard outputs** - JSON and SARIF formats for easy integration\n- **Open governance** - contributions accepted on merit, not commercial interest\n- **Long-term assurance** - committed to open-source under LGPL 2.1\n\n## Key Improvements\n\nOpengrep has introduced significant improvements since the fork. Highlights include:\n\n**Superior Taint Analysis** (`--taint-intrafile`):\n- Constructor and field assignment tracking\n- Inter-method taint flow\n- Higher-order function support across 12 languages\n- Collection method tainting (map, filter, reduce, etc.)\n\nSee the [Intrafile Tainting Tutorial](https://github.com/opengrep/opengrep/wiki/Intrafile-tainting-tutorial) and [Higher-Order Functions Tutorial](https://github.com/opengrep/opengrep/wiki/Higher-order-functions-tutorial) for details.\n\n**Language Support:**\n- **Visual Basic** - not available in Semgrep CE or Pro\n- **Apex, Elixir** - not in Semgrep CE\n- **Improved**: Clojure (tainting support), PHP 8.4, C# 14\n\n**Distribution:**\n- Self-contained binaries via Nuitka (no Python required)\n- Signed releases with Cosign\n\nSee [OPENGREP.md](OPENGREP.md) for the full list of improvements since the fork.\n\n# Opengrep: Fast and Powerful Code Pattern Search\n\nOpengrep is an ultra-fast static analysis tool for searching code patterns with the power of semantic grep. Analyze large code bases at the speed of thought with intuitive pattern matching and customizable rules. Find and fix security vulnerabilities, fast – ship more secure code.\n\nOpengrep supports 30+ languages, including:\n\nApex · Bash · C · C++ · C# · Clojure · 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.)\n\n## Installation\n\n### Quick Install (Recommended)\n\n#### Linux / macOS\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | bash\n```\n\nOr if you've cloned the repo:\n\n```bash\n./install.sh\n```\n\n#### Windows (PowerShell)\n\n```powershell\nirm https://raw.githubusercontent.com/opengrep/opengrep/main/install.ps1 | iex\n```\n\nOr with a specific version:\n\n```powershell\n\u0026 ([scriptblock]::Create((irm https://raw.githubusercontent.com/opengrep/opengrep/main/install.ps1))) -Version v1.16.0\n```\n\n### Manual Install\n\nBinaries are available on the [releases page](https://github.com/opengrep/opengrep/releases).\n\n## Getting started\n\nCreate `rules/demo-rust-unwrap.yaml` with the following content:\n\n```yml\nrules:\n- id: unwrapped-result\n  pattern: $VAR.unwrap()\n  message: \"Unwrap detected - potential panic risk\"\n  languages: [rust]\n  severity: WARNING\n```\n\nand `code/rust/main.rs` with the following content (that contains a risky unwrap):\n\n```rust\nfn divide(a: i32, b: i32) -\u003e Result\u003ci32, String\u003e {\n    if b == 0 {\n        return Err(\"Division by zero\".to_string());\n    }\n    Ok(a / b)\n}\n\nfn main() {\n    let result = divide(10, 0).unwrap(); // Risky unwrap!\n    println!(\"Result: {}\", result);\n}\n```\n\nYou should now have: \n\n``` shell\n.\n├── code\n│   └── rust\n│       └── main.rs\n└── rules\n    └── demo-rust-unwrap.yaml\n```\n\nNow run: \n\n```bash\n❯ opengrep scan -f rules code/rust\n\n┌──────────────┐\n│ Opengrep CLI │\n└──────────────┘\n\n\nScanning 1 file (only git-tracked) with 1 Code rule:\n\n  CODE RULES\n  Scanning 1 file.\n\n  PROGRESS\n\n  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00\n\n\n┌────────────────┐\n│ 1 Code Finding │\n└────────────────┘\n\n    code/rust/main.rs\n    ❯❯ rules.unwrapped-result\n          Unwrap detected - potential panic risk\n\n            9┆ let result = divide(10, 0).unwrap(); // Risky unwrap!\n\n\n\n┌──────────────┐\n│ Scan Summary │\n└──────────────┘\n\nRan 1 rule on 1 file: 1 finding.\n```\n\nTo obtain SARIF output: \n\n```bash\n❯ opengrep scan --sarif-output=sarif.json -f rules code\n  ...\n❯ cat sarif.json | jq\n{\n  \"version\": \"2.1.0\",\n  \"runs\": [\n    {\n      \"invocations\": [\n        {\n          \"executionSuccessful\": true,\n          \"toolExecutionNotifications\": []\n        }\n      ],\n      \"results\": [\n        {\n          \"fingerprints\": {\n            \"matchBasedId/v1\": \"a0ff5ed82149206a74ee7146b075c8cb9e79c4baf86ff4f8f1c21abea6ced504e3d33bb15a7e7dfa979230256603a379edee524cf6a5fd000bc0ab29043721d8_0\"\n          },\n          \"locations\": [\n            {\n              \"physicalLocation\": {\n                \"artifactLocation\": {\n                  \"uri\": \"code/rust/main.rs\",\n                  \"uriBaseId\": \"%SRCROOT%\"\n                },\n                \"region\": {\n                  \"endColumn\": 40,\n                  \"endLine\": 9,\n                  \"snippet\": {\n                    \"text\": \"    let result = divide(10, 0).unwrap(); // Risky unwrap!\"\n                  },\n                  \"startColumn\": 18,\n                  \"startLine\": 9\n                }\n              }\n            }\n          ],\n          \"message\": {\n            \"text\": \"Unwrap detected - potential panic risk\"\n          },\n          \"properties\": {},\n          \"ruleId\": \"rules.unwrapped-result\"\n        }\n      ],\n      \"tool\": {\n        \"driver\": {\n          \"name\": \"Opengrep OSS\",\n          \"rules\": [\n            {\n              \"defaultConfiguration\": {\n                \"level\": \"warning\"\n              },\n              \"fullDescription\": {\n                \"text\": \"Unwrap detected - potential panic risk\"\n              },\n              \"help\": {\n                \"markdown\": \"Unwrap detected - potential panic risk\",\n                \"text\": \"Unwrap detected - potential panic risk\"\n              },\n              \"id\": \"rules.unwrapped-result\",\n              \"name\": \"rules.unwrapped-result\",\n              \"properties\": {\n                \"precision\": \"very-high\",\n                \"tags\": []\n              },\n              \"shortDescription\": {\n                \"text\": \"Opengrep Finding: rules.unwrapped-result\"\n              }\n            }\n          ],\n          \"semanticVersion\": \"1.100.0\"\n        }\n      }\n    }\n  ],\n  \"$schema\": \"https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/schemas/sarif-schema-2.1.0.json\"\n}\n```\n\n## Documentation\n\n- [Wiki](https://github.com/opengrep/opengrep/wiki) - tutorials and language guides\n- [Intrafile Tainting Tutorial](https://github.com/opengrep/opengrep/wiki/Intrafile-tainting-tutorial)\n- [Higher-Order Functions Tutorial](https://github.com/opengrep/opengrep/wiki/Higher-order-functions-tutorial)\n- [C# Support](https://github.com/opengrep/opengrep/wiki/Support-for-C%23) (C# 12/13/14)\n- [PHP Support](https://github.com/opengrep/opengrep/wiki/Support-for-Php) (PHP 7.1-8.4)\n- [Visual Basic Support](https://github.com/opengrep/opengrep/wiki/Support-for-Visual-Basic)\n\n## Community\n\n- [X / Twitter](https://x.com/opengrep)\n- [Reddit](https://www.reddit.com/r/opengrep)\n- [Manifesto](https://opengrep.dev/) - why we forked\n- [Open roadmap sessions](https://lu.ma/opengrep) - join the conversation\n\n## More\n\n- [Contributing](CONTRIBUTING.md)\n- [Build instructions for developers](INSTALL.md)\n- [License (LGPL-2.1)](LICENSE)\n\n---\n\n_Opengrep is a fork of Semgrep v1.100.0, created by Semgrep Inc. Opengrep is not affiliated with or endorsed by Semgrep Inc._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengrep%2Fopengrep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopengrep%2Fopengrep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengrep%2Fopengrep/lists"}