mrva lets security researchers run CodeQL multi-repo analyses locally from the terminal
Mrva provides a fully local, terminal-first alternative to GitHub’s CodeQL MRVA that gives users complete control over analysis options and data ownership.
Security & privacy Trail of Bits 11 Dec 2025 Tooling Prototype evidence
Published as “Introducing mrva, a terminal-first approach to CodeQL multi-repo variant analysis”
Why it matters
Enables privacy-preserving, large-scale static analysis without relying on cloud services.
Summary
The post introduces mrva, a Python-based CLI that downloads pre-built CodeQL databases via the GitHub API, runs CodeQL queries locally, and prints results to stdout. It compares mrva’s feature set to GitHub’s VS Code extension and the unofficial gh-mrva CLI, highlighting that mrva runs entirely on the user’s machine and supports custom target lists and flexible query flags. The author demonstrates a workflow on 1,000 Go projects and notes that while the tool works, analysis time depends on corpus size and hardware. Evidence consists of a functional example and a feature table, but no independent performance benchmarks are provided.
What they found 2
- mrva runs on the local machine
“Runs on your local machine | ✅”
- mrva can download pre-built CodeQL databases via the GitHub API
“Download pre-built CodeQL databases from the GitHub API ( mrva download )”
Caveats 4
- This analysis may take quite some time depending on your database corpus size, query count, query complexity, and machine hardware.
- mrva currently has experimental support for printing AST information.
- The false positive example shows that some output may be truncated and requires manual query updates.
- This finding is a false positive because the message is indeed being truncated, but updating the query’s list of barriers is beyond the scope of this post.
What’s new here 4
- Runs entirely locally without requiring VS Code or cloud services
- Provides terminal commands to download CodeQL databases, run analyses, and pretty-print SARIF results
- Supports custom target lists and direct passing of CodeQL flags for fine-grained control
- Includes experimental AST printing support