opengrep vs hexora
Source-code security scanners compared
opengrep scans code across many languages using customizable rules, including Semgrep-compatible rules, while hexora focuses on suspicious behavior in Python files. Hexora combines static rules with a machine-learned file score; opengrep emphasizes rule-based scanning and taint analysis.

opengrep: Find Security Issues with Static Code Analysis
Opengrep is an open-source static analysis engine that scans code for security issues using customizable pattern rules. It supports Semgrep-compatible rules and produces text, JSON, and SARIF results for developer and CI workflows.

hexora: Detect Malicious Python Code with Ruff and ML
Hexora scans Python code for malicious patterns using rule-based analysis, a file-level machine-learning score, and the AST parser from Astral's Ruff. It is aimed at security teams auditing packages, dependencies, and suspicious scripts.
| opengrep | hexora | |
|---|---|---|
| Language | OCaml | Rust |
| License | LGPL-2.1 | MIT |
| Stars | 3.1k | 173 |
| Forks | 272 | 9 |
| Last analyzed | Oct 7, 2026 | Oct 31, 2026 |
Key differences
- opengrep supports more than 30 languages, while hexora scans Python source files and directories.
- opengrep is an OCaml engine with customizable YAML rules and intrafile taint analysis; hexora is implemented in Rust and combines rule findings with a machine-learned score per file.
- opengrep exports findings as JSON or SARIF; hexora reports locations, descriptions, rule codes, and confidence levels, with filters for confidence and rule codes.
- opengrep is licensed under LGPL-2.1, while hexora is licensed under MIT.
- opengrep is suited to broader code-quality and security scanning, including CI workflows; hexora focuses on reviewing Python packages, dependencies, and untrusted scripts for potentially malicious behavior.
- opengrep has 3.1k stars and 270 forks, compared with hexora's 173 stars and 9 forks.
Choose opengrep if you…
- need rule-based scanning across many programming languages.
- want Semgrep-compatible rules, intrafile taint analysis, or JSON and SARIF output.
- plan to integrate customizable security checks into development or CI workflows.
Choose hexora if you…
- need to review Python packages, dependencies, or untrusted scripts for suspicious behavior.
- want rule findings combined with a machine-learned file score and confidence levels for triage.
- need a Python API or a benchmarking command for testing detection rules against a malicious-package dataset.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.