Welcome to the premier CBOM open source tool. Keylens is a lightning-fast CLI tool that scans codebases to generate a Cryptographic Bill of Materials (CBOM). Designed to help organizations meet EO 14412 cryptographic inventory requirements, it acts as a proactive CNSA 2.0 compliance tool. Built in Rust with Tree-sitter AST parsing, Keylens is a powerful PQC readiness scanner ensuring your projects are prepared for the post-quantum era.
See your cryptographic posture instantly, without walls of JSON.
Generate actionable insights instantly with cbom scan --summary.
- Speed & DX: Written in Rust, Keylens offers a 50ms execution time with zero dependencies. Utilizing AST-based scanning, it provides accurate, compilation-free detection of cryptographic usage.
- Actionable Security: Beyond just a CBOM generator, Keylens provides
--fix-suggestionsand performs SBOM↔CBOM dependency correlation, giving you context-rich security detections. - CI/CD Gating: Utilize our CBOM GitHub Action and the unique
cbom difffeature for banned cryptography detection CI. Validate against Rego policy crypto compliance to block deprecated crypto before it merges.
Get started in seconds. No complex setup required.
cargo install cbom
cd my-project
cbom scan --summaryKeylens integrates seamlessly into your developer and security workflows:
- Generating a CBOM: Run
cbom scanto instantly inventory cryptography across Python and JavaScript codebases, as well as dependency lockfiles. - Diffing for PRs: Use
cbom diff --base main.json --head pr.jsonto detect newly introduced cryptography in a pull request. - Policy Checking against CNSA 2.0: Leverage
cbom scan --strictto validate your cryptographic assets against modern standards and block critically insecure algorithms. - Viewing History: Use the interactive TUI with
cbom viewto explore findings and audit historical snapshots.
For deep dives into configurations, supported languages, and contribution guidelines, please refer to our documentation:
- 📖 Output Formats & Schemas - Details on CycloneDX v1.5 and default JSON payloads.
- 🔍 Supported Languages & Detection Coverage - Supported languages (Python, JS) and package managers.
- 🔬 Detection Engine & Cryptographic Context - How we parse algorithm strings and extract deep crypto context.
- 🧪 Testing Guide - Instructions for unit, manual, and Docker testing.
- 🏛️ Architecture & Contributing - System architecture and how to submit PRs.
[
{
"algorithm": "AES",
"file_path": "src/server.js",
"severity": "safe",
"quantum_safe": "safe"
}
]Keylens open source is built for single-repo developer use—providing fast, local, and accurate CBOM generation.
Our roadmap includes expanding language support and refining our policy engine. For multi-repo aggregation, historical tracking, and enterprise-wide cryptographic posture management, this tool provides a natural bridge to Keylens Cloud.
MPL-2.0
