betterleaks/betterleaks
Find leaked secrets everywhere.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🔍 Betterleaks: A Smarter Secrets Scanner from the Gitleaks Team
Betterleaks is a configurable, fast, and thorough secrets scanner maintained by the original creators of Gitleaks.
Built in Go by the team behind Gitleaks, Betterleaks scans for leaked secrets across Git repositories, GitHub, GitLab, Hugging Face, S3, local directories, and stdin. It improves on traditional scanners with CEL-powered filtering, async secret validation, and token-based false-positive reduction.
✨ Highlights
- CEL-based filtering: Write contextual rule filters using fragment attributes like git author, commit message, and file path to reduce false positives.
- Secrets validation: Validate detected secrets asynchronously via HTTP requests defined directly in CEL rules.
- Token efficiency filtering: Use BPE tokenization to filter out natural language false positives by measuring string rarity.
- Fast scans: Parallelized scanning with Aho-Corasick keyword filters and RE2 for high performance.
- Multiple sources: Scan GitHub, GitLab, Hugging Face, S3, Cloudflare R2, local filesystems, and stdin with ease.
- Portability: Small Go binary runs on any modern OS/architecture and integrates into any system.
- Expressive config: Define pre-filters, post-match filters, and async validators all in CEL.
💡 Why it matters
Betterleaks builds on Gitleaks’ foundation with more expressive filtering and validation logic, making it easier to catch real secrets while suppressing noise. Its CEL-based approach allows developers to write precise, context-aware rules without hardcoding allowlists.
It fits well into CI/CD pipelines and DevSecOps workflows, especially for teams already using Gitleaks who want finer control over detection logic and secret verification.
#Betterleaks #SecretsScanning #DevSecOps #Go #TiniX
Similar Projects
Discover other similar projects and AI models.
Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions
:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.
The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems