CBOMkit vs CRYPTAGION: two tools, two real repositories, every CBOM published
In short
- On a Java application (Keycloak), CBOMkit found much more in our first run. It reported 78 distinct production lines; CRYPTAGION reported 23, every one of which CBOMkit also found. CBOMkit caught TLS contexts, RSA, DSA and EdDSA key handling, AES key wrapping and HMAC keys that CRYPTAGION’s Java analysis missed.
- We fixed those gaps and re-ran the same pinned commit. With scanner
13de736, CRYPTAGION reports 99 production lines. That includes 74 of CBOMkit’s 78, plus 25 lines CBOMkit does not report. The 4 lines still missed need values passed from one method to another. The Java rules were changed because of this comparison, so the re-run measures the fix; it is not a blind test. - On a Python library (pyca/cryptography), the picture reversed. In the library’s own code CBOMkit reported 4 lines in 2 files; CRYPTAGION reported 46 detections in 11 files. Only one line was in both.
- Both tools produced schema-valid CycloneDX 1.6 CBOMs and repeatable results on both repositories. They count different things, so neither raw count is a quality score.
- The practical lesson: coverage depends on language and code style far more than on datasheets. Run any tool on code like yours, and compare more than one.
Test 1: a Java application — Keycloak 26.8.0
Keycloak is an open-source identity and access
management server (Apache-2.0) with heavy, real-world use of cryptography: token signing, key providers, SAML,
TLS clients, FIPS and non-FIPS crypto modules. It is also the example CBOMkit’s own documentation uses, which
makes it a fair test of its strengths. We pinned tag 26.8.0 (commit 4246609,
8,546 tracked Java files) and ran each tool twice.
| CBOMkit 2.3.0 | CRYPTAGION first run (scanner 4c9ee2e) | CRYPTAGION re-run (scanner 13de736) | |
|---|---|---|---|
| Files scanned | 6,440 files in 96 project modules (768,354 lines) | 8,489 Java files, tests and examples included and tagged | 8,546 Java files (every tracked one), tests and examples included and tagged |
| Scan time | About 4–6 minutes | About 25 minutes | About 35 minutes (the repeat run took about 2 hours on a machine shared with other work) |
| Output | 59 components (30 algorithms, 28 related keys, 1 protocol); 124 occurrences on 87 lines | 63 findings: 23 in production code, 40 in tests | 190 findings: 99 in production code, 91 in tests |
| Production lines | 78 | 23 — all also found by CBOMkit | 99 — 74 also found by CBOMkit |
| Production lines found by one tool only | 55 against the first run; 4 against the re-run | 0 | 25 |
| Test lines found by one tool only | 8 against the first run; 0 against the re-run | 39 | 82 |
| CycloneDX 1.6 schema | Valid, 0 errors | Valid, 0 errors | Valid, 0 errors |
| Repeat run | Identical after normalising random IDs | Identical findings and risk scores | Identical findings and risk scores |
Production lines by algorithm family (key-material components excluded; a line naming two algorithms, such as SHA256withRSA, counts in both):
| Family | CBOMkit | CRYPTAGION first run | CRYPTAGION re-run |
|---|---|---|---|
| SHA-2 | 21 | 11 | 13 |
| EC / ECDSA / ECDH | 14 | 6 | 19 |
| AES | 13 | 2 | 17 |
| RSA | 12 | 0 | 21 |
| TLS | 8 | 0 | 8 |
| HMAC | 5 | 0 | 11 |
| SHA-1 | 4 | 2 | 2 |
| DSA | 3 | 0 | 3 |
| EdDSA | 2 | 0 | 2 |
| MD5 | 2 | 2 | 2 |
| Other (KDF, MGF1, raw keys) | 3 | 0 | 1 |
What CRYPTAGION missed in the first run, and why it matters
The 55 production lines only CBOMkit found follow clear patterns: key factories
(KeyFactory.getInstance("RSA" | "EC" | "EdDSA" | "dsa")), TLS contexts
(SSLContext.getInstance("TLS")), symmetric and HMAC keys built with SecretKeySpec,
AES key wrapping (Cipher.getInstance("AESWrap_128")), RSA-PSS signatures, the SHA-1 DSA and RSA
signatures in Keycloak’s SAML code, algorithm names returned as strings ("SHA256withRSA",
"HMACSHA256"), and BouncyCastle’s lightweight API (AESWrapEngine, ConcatKDF). Some of
these are exactly what a post-quantum programme needs to find — RSA and DSA key handling, SHA-1 signatures.
In this run, CRYPTAGION reported no RSA usage in Keycloak’s production code at all; all its RSA findings were in
tests. That was a real gap in our Java coverage at that version.
The re-run after the fix
We added Java rules for each of these patterns and re-ran the same pinned commit with the same procedure. Only
the scanner commit in the reproduction script changed, to 13de736. The re-run finds 51 of the 55
lines. The 4 lines still missed need values passed from one method to another:
HashUtils.java:80and:86, andMdocCredential.java:243, call a helper withJavaAlgorithm.SHA256orSHA384, and the helper callsMessageDigest.getInstance(algorithm).WildFlyElytronProvider.java:138callsKeyFactory.getInstance(algorithm)on a method parameter.
CRYPTAGION also reports 25 production lines that CBOMkit does not:
- 12 algorithm-name constants returned by
JavaAlgorithm; - 6 algorithm names returned by the ECDSA and AES-CBC-HMAC providers (
"SHA256withECDSA","HMACSHA256"); - 4 AES ciphers in the default and FIPS crypto providers;
- 2 RSA key factories in the SAML adapter’s
PemUtils; - 1 SHA-512 digest named through a constant of another class (
JpaHashUtils).
The re-run also scans the 57 test files under a Java package named dist, which the first run had
skipped as vendored code.
Two points in fairness to both sides. CBOMkit fills in default parameters where the code does not state them —
for example RSA-2048 for a bare KeyFactory.getInstance("RSA"), or AES-128
for a SecretKeySpec — so some of its key sizes are inferences rather than observations. And our scan
skipped 57 Keycloak test files because they sit in a directory named dist, which our vendored-code
rule treats as third-party; that did not affect production results.
Test 2: a Python library — pyca/cryptography
The first test used pyca/cryptography at commit
d45b793, the same commit as our pyca CBOM example. This is
a cryptographic library, which gives call-resolving tools less to work with.
| CBOMkit 2.3.0 | CRYPTAGION (10 October 2026 run) | |
|---|---|---|
| Files scanned | 131: 124 Python files outside tests/, 2 in vectors/, 1 Java and 4 Go helper scripts | 243 Python files, including 117 test files; no Java or Go |
| Output | 17 components, 25 occurrences | 1,804 detections (46 production, 1,746 test, 12 docs) |
| Library source | 4 lines in 2 files | 46 detections in 11 files |
| Lines found by both | 1 | |
| Schema and repeat run | Valid; identical | Valid; identical |
In ssh.py, the one library file both reported on, CBOMkit caught the RSA key objects built from SSH
data (lines 317, 336, 337) that CRYPTAGION missed, while CRYPTAGION reported the ECDSA curves, ECDSA signing,
PKCS#1 v1.5 padding and SHA selections that CBOMkit did not. CBOMkit also covered the Java and Go helper scripts,
which our Python-only run did not scan. Each tool labelled DSA as Diffie-Hellman once.
What the two tests say
- CBOMkit is strong on Java applications. Its call-level analysis resolves JCA and BouncyCastle usage well, records parameters and links keys to algorithms — and it is free, open (Apache-2.0, under the Linux Foundation’s PQCA) and fast.
- CRYPTAGION saw more in a Python library, including test and example code kept apart by scope tags. Its Java analysis missed common JCA patterns in the first run. After the fix, it finds 74 of CBOMkit’s 78 Keycloak production lines; the 4 it still misses need values passed between methods.
- Neither tool sees everything. On both repositories, each found lines the other missed.
- The inventory is only the first step. CBOMkit offers a basic quantum-safe policy check and custom policies through Open Policy Agent; CRYPTAGION adds per-asset risk scoring with HNDL exposure, replacement and migration year, a roadmap, reports mapped to DORA, NIS2 and the CRA, certificates and live TLS endpoints — none of which helps if the inventory underneath has gaps.
When to use which
For a Java codebase, CBOMkit is a sensible free first pass, in CI or through its SonarQube plugin, if you have people who can interpret and maintain it. In our Keycloak re-run the two tools cover nearly the same production lines. CBOMkit still follows algorithm names passed from one method to another, which CRYPTAGION does not yet.
CRYPTAGION is built for regulated organisations that need the decision layer — scope separation, certificates and endpoints alongside code, risk and HNDL scoring, roadmap and regulatory reporting, with support — and it reads CycloneDX, so a CBOMkit CBOM can sit next to its own. As long as the gaps above exist, we would rather tell you here than have you discover them in an audit.
For the broader picture see CRYPTAGION vs open-source CBOM tools, and to run the same test on any vendor, our CBOM tool evaluation checklist.
Method and evidence
CBOMkit 2.3.0 ran as a service with default settings and no build, the path its quickstart describes, with its
API bound to localhost; each target commit was pinned through a local read-only mirror, and every CBOMkit CBOM
records the commit it scanned. CRYPTAGION ran at the scanner commit used for the published pyca bundle, in
Evaluation mode, with an isolated database and no rule changes for this comparison.
The Keycloak re-run used CRYPTAGION scanner commit 13de736 (main after PR #47). It ran on the same
pinned target, with the same reproduction script; only the scanner commit in the script changed. Its Java rules
were written after, and because of, the first run. Everything is published:
- Keycloak: methodology and results, CBOMkit CBOM, CRYPTAGION CBOM, comparison output and the analysis script; re-run: CRYPTAGION CBOM, comparison output and reproduction script.
- pyca/cryptography: methodology and results, CBOMkit CBOM, CRYPTAGION CBOM and comparison output.
Limits of this comparison
- Two repositories, one machine. Results on other languages, code styles and versions will differ.
- CBOMkit ran without building the targets; its documentation says a build (SonarQube plugin or GitHub Action) improves completeness, particularly for Java.
- “Lines” compare where each tool points; they do not judge whether each finding is correct or important. Some CBOMkit parameters are defaults, and both tools mislabelled DSA once on pyca.
- We maintain CRYPTAGION. That is why every input and output is published. Corrections are welcome at contact@cryptagion.io.
Sources
- CBOMkit repository (release 2.3.0, commit
feace38) - Keycloak (tag 26.8.0) and pyca/cryptography
- Keycloak comparison note and pyca comparison note
- CycloneDX 1.6 JSON reference
Independent comparison by CRYPTAGION. CBOMkit, PQCA, Keycloak and the pyca project have not reviewed or endorsed it. Last verified 12 October 2026 against CBOMkit 2.3.0 and CRYPTAGION scanner commits 4c9ee2e (first run) and 13de736 (Keycloak re-run).
Test us on code like yours
In a 30-minute demo we run CRYPTAGION live on a public repository that matches your stack — bring a CBOMkit output of the same repository and we will compare them with you. No access to your code needed.
Request a free demo →