A unified, fast, and secure security scanning tool built in Rust. RustGuard helps developers detect security vulnerabilities, secrets, and configuration issues in their codebase, dependencies, and containers.
- 🔒 Secret Detection: Scan for hardcoded secrets, API keys, and sensitive data
- 📦 Dependency Analysis: Identify vulnerable dependencies across multiple package managers
- 🐳 Container Security: Analyze Docker/OCI images for security issues
- 📋 Configuration Compliance: Validate infrastructure-as-code and configuration files
- 📊 Multi-format Reports: Generate reports in JSON, SARIF, Markdown, and more
- ⚡ High Performance: Built in Rust for speed and efficiency
- 🎯 Extensible: Designed for custom plugins and integrations
- 🤖 CI/CD Ready: Perfect for automated security scanning
# Clone the repository
git clone https://github.com/bzhar/RustGuard.git
cd RustGuard
# Build and install
cargo install --path .Download pre-built binaries from the Releases page.
# Basic scan
rustguard scan ./path/to/project
# Scan specific components
rustguard scan-secrets ./path/to/project
rustguard scan-deps ./path/to/project
rustguard scan-image ./path/to/image
rustguard scan-config ./path/to/config
# Advanced options
rustguard scan --output json --severity critical,high --ignore-pattern "*.test"Create a rustguard.toml configuration file:
[scan]
output = "pretty"
severity = ["critical", "high"]
[deps]
ignore-dev-dependencies = true
max-concurrent-requests = 5
[secrets]
entropy-threshold = 4.5
ignore-patterns = ["*.test", "*.example"]
[container]
security-context = { privileged = false }
max-layers = 10- AWS Access Keys
- GitHub Tokens
- Stripe API Keys
- Firebase Secrets
- Azure AD Credentials
- And many more...
- Rust Cargo.lock
- Node.js package-lock.json
- Python requirements.txt
- Go mod
- And other package managers
- Layer analysis
- Package vulnerability scanning
- Security context validation
- CVE detection
- YAML/JSON validation
- Terraform security checks
- Kubernetes config analysis
- Infrastructure-as-code scanning
- Pretty (terminal)
- JSON
- SARIF
- Markdown
- HTML
- JUnit
RustGuard is designed with security in mind:
- No network access required (offline mode)
- Secure secret detection algorithms
- CVE database caching
- Memory-safe Rust implementation
- Regular security updates
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Rust community for their amazing ecosystem
- Special thanks to contributors who have helped improve RustGuard
- Inspired by other security scanning tools while aiming to be better
- Report bugs on GitHub Issues
- Follow me on Instagram