Add cryptographic algorithm scanning and CycloneDX 1.7 CBOM output#1656
Closed
CortezFrazierJr wants to merge 10 commits into
Closed
Add cryptographic algorithm scanning and CycloneDX 1.7 CBOM output#1656CortezFrazierJr wants to merge 10 commits into
CortezFrazierJr wants to merge 10 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extlib/cryptoscan) that scans source code across 10 ecosystems (Python, Java, Go, Rust, Node.js, Ruby, C#/.NET, PHP, Swift, Elixir) for cryptographic algorithm usage via dependency analysis, import patterns, API calls, and config file scanningSourceUnitformat and included in uploads alongside existing dependency analysis--x-crypto-scanflag to enable scanning,--crypto-cbom-output <file>for local CycloneDX 1.7 CBOM export, and--crypto-fips-reportfor FIPS 140-3 compliance reportingfossabinary (same pattern asberkeleydb/millhone) — no separate distribution neededWhat's included
Phase 1 — Rust Crypto Detection Engine (
extlib/cryptoscan/)cryptographic-assetcomponents,cryptoProperties, andprovidesdependenciesPhase 2 — Haskell Integration
CryptoScan.Analyze— invokes embedded binary, parses JSON resultsCryptoScan.SourceUnit— converts findings to FOSSASourceUnitwithcrypto+<algorithm>locatorsCryptoScan.Types— fullFromJSON/ToJSONfor all crypto typesAnalyze.hspipeline: cryptoSourceUnitincluded in upload alongside dependency resultsPhase 3 — CycloneDX 1.7 CBOM Output
--crypto-cbom-output <file>writes standards-compliant CycloneDX 1.7 JSON--format cyclonedxoutput (complete BOM with components, dependencies, metadata)Phase 4 — FIPS Compliance Reporting
--crypto-fips-reportrenders a color-coded compliance summary to stdoutScanSummaryoutputEcosystems supported
Test plan
cargo test -p cryptoscan)SourceUnitconversion and FIPS report renderingfossa analyze --x-crypto-scan --outputproduces valid JSON with crypto SourceUnit--crypto-cbom-output /tmp/cbom.jsonwrites valid CycloneDX 1.7--crypto-fips-reportrenders compliance summary🤖 Generated with Claude Code