
Seqra — security-focused static analyzer for Java
Issues | FAQ | Discord | seqradev@gmail.com
Why Seqra?
- CodeQL power + Semgrep simplicity:
- Write security rules using familiar patterns while getting cross-module dataflow analysis
- Free and source-available:
- Use for any purpose except competing commercial offerings for free
- Workflow ready:
- CLI tool with SARIF output for seamless CI/CD integration
Table of Contents
License
This project is released under the MIT License.
The core analysis engine is source-available under the Functional Source License (FSL-1.1-ALv2), which converts to Apache 2.0 two years after each release. You can use Seqra for free, including for commercial use, except for competing products or services.
Quick Start
Prerequisites
- Docker (used to run the analysis engine in a container)
1. Install Seqra CLI
-
Option A: Download Pre-built Binary (Linux)
One-liner install:
curl -L https://github.com/seqrateam/seqra/releases/latest/download/seqra_linux_amd64.tar.gz -o seqra.tar.gz && tar -xzf seqra.tar.gz seqra && sudo mv seqra /usr/local/bin/ && rm seqra.tar.gz && seqra --version
Step-by-step:
# 1. Download
curl -L https://github.com/seqrateam/seqra/releases/latest/download/seqra_linux_amd64.tar.gz -o seqra.tar.gz
# 2. Extract
tar -xzf seqra.tar.gz seqra
# 3. Install globally (optional)
sudo mv seqra /usr/local/bin/
# 4. Remove archive
rm seqra.tar.gz
# 5. Verify
seqra --version
-
Option B: Install via Go (Linux/macOS)
Note: Support Apple Silicon Mac is experemental you need Enable x86_64/amd64 emulation in Docker Desktop
Install
go install github.com/seqrateam/seqra@latest
Verify
$(go env GOPATH)/bin/seqra --version
Optional: Add GOPATH to path
2. Run Your First Scan
Scan a Java project and generate SARIF report
seqra scan --output results.sarif /path/to/your/java/project
3. View and Analyze Results
Seqra generates results in the standard SARIF format, which can be viewed and analyzed in multiple ways:
-
VS Code Integration
Open results.sarif with the SARIF Viewer extension for a rich, interactive experience.
-
GitHub Integration
Upload results to GitHub code scanning for security alerts and code quality insights.
-
Command Line Preview
Quick preview of findings
seqra summary --show-findings results.sarif
-
CodeChecker Integration
Use CodeChecker for advanced result management, tracking, and team collaboration.
CI/CD Integration
For seamless integration with your CI/CD pipelines, check out our dedicated integration repositories:
- seqra-action - GitHub Action for easy integration with GitHub workflows
- seqra-gitlab - GitLab CI template for automated security scanning
Troubleshooting
Docker not running
- Ensure Docker is installed and running on your system
- Run
docker info to verify Docker is accessible
Build Issues
Note: only Maven and Gradle projects are supported
- Ensure your Java project builds successfully with its native build tools
- If the Docker image lacks required dependencies, use
seqra scan --compile-type native --output /path/project/model /path/to/your/project to build the project directly on your machine instead
Logs and Debugging
- Run with
--verbosity debug for detailed logs
- Check the log file at
~/.seqra/logs/
Changelog
See CHANGELOG.