I ran my CBOM scanner against a public benchmark. It scored 14%. Here is how I got it to 56.5%.
The scanner’s positive-form score rose from 203 of 1,429 examples, or 14.2%, to 807 of 1,429, or 56.5%. At the same time, the number of decoys incorrectly flagged fell from 16 of 172 to zero. The rewrite therefore improved both recognition and restraint. The first version mainly matched literal strings. It could recognize an API string such as “AES/GCM/NoPadding,” but often missed cryptography represented as a registered identifier, curve name, or command-line flag. It also mistook comments, logs, deny-lists, and disabled switches for active uses. That produced misses and false alarms in the same test. The adapter ran the full 2,099-row ShorList catalogue both times. Key-size extraction also improved, from 0 of 53 to 119 of 208. The result is better, not complete: CLI examples remain 0 of 115, and the scanner still has no CWE mapping for the defect axis. The adapter and raw results were submitted as an open, unmerged PR.
How much did the scanner improve, and how many real uses and decoys did it find before and after the rewrite?
The scanner’s positive-form score rose from 203 of 1,429 examples, or 14.2%, to 807 of 1,429, or 56.5%. At the same time, the number of decoys incorrectly flagged fell from 16 of 172 to zero. The rewrite therefore improved both recognition and restraint.
The first version mainly matched literal strings. It could recognize an API string such as “AES/GCM/NoPadding,” but often missed cryptography represented as a registered identifier, curve name, or command-line flag. It also mistook comments, logs, deny-lists, and disabled switches for active uses. That produced misses and false alarms in the same test.
The adapter ran the full 2,099-row ShorList catalogue both times. Key-size extraction also improved, from 0 of 53 to 119 of 208. The result is better, not complete: CLI examples remain 0 of 115, and the scanner still has no CWE mapping for the defect axis. The adapter and raw results were submitted as an open, unmerged PR.
What is a CBOM scanner, and what does a cryptographic bill of materials record?
A CBOM is a cryptographic bill of materials: an inventory of cryptographic elements found in a software project. The article describes cbom-tools as a zero-dependency CycloneDX CBOM scanner. In general usage, a bill of materials records what components or technologies a system contains; here, the focus is cryptography.
The article’s examples show the kinds of details that matter: algorithms such as AES, RSA, and DH, identifiers such as TLS cipher suites and curve names, and key sizes. The rewrite decomposes some registered identifiers into their component algorithms and extracts key sizes where possible. It also tries to distinguish active use from mere mention.
That distinction matters because an inventory may support security review or compliance claims, as the article notes. A list that includes log messages or blocked algorithms can misrepresent what a program actually uses. The article reports stronger detection after the rewrite, but not a complete inventory: CLI examples remained undetected, and there was no CWE mapping for the defect axis. Those limits matter when interpreting results.
Why did the original scanner miss cryptography written as a TLS suite, curve name, or command-line flag?
The original scanner looked for recognizable algorithm strings, rather than interpreting how cryptography was represented. It found a literal API string such as “AES/GCM/NoPadding,” but its score fell when an algorithm appeared as a registry identifier, a curve name, or a command-line flag. The spelling and structure of the evidence mattered.
A TLS suite such as TLS_AES_256_GCM_SHA384 is a registered identifier, not simply an API name. The rewrite addressed this by decomposing registered identifiers into their component algorithms. It also added recognition for other forms, including groups such as ffdhe2048, which it interprets as DH with a size of 2048. Curve names were another category the original scanner missed.
The limits are still visible: the rewritten scanner cannot open .conf, .sh, or .tf files, and CLI recognition remains 0 of 115. So the article distinguishes two issues: recognizing structured names and being able to inspect the file formats where examples appear. The reported improvement does not mean every form is covered.
Why can it be dangerous to mistake a log message or deny-list entry for cryptography that a program actually uses?
A scanner needs to distinguish an algorithm that a program uses from a name that appears only in text. The baseline did not reliably make that distinction: it reported logs, comments, deny-lists, and disabled switches as active cryptography. That made “mentioned” look the same as “used.”
For example, logging.warning("refused sha1") was reported as using SHA-1. A BLOCKED_CIPHERS deny-list and a disabled setting such as {"Ed448": False} could also trigger a finding. The rewrite treats these as omissions, rather than adding a special “not-a-use” marker, because CycloneDX has no such marker. It still catches hashlib.md5(data, usedforsecurity=False), where the algorithm is the key.
This matters because an inventory can become a compliance claim. If it lists cryptography that is not active, readers may misunderstand what the software actually uses. In the catalogue test, the baseline flagged 16 of 172 decoys; after the rewrite, it flagged none. That is a concrete improvement in avoiding false alarms, though the scanner still has coverage gaps.
How did the rewrite recognize combined cryptographic identifiers while skipping mentions that were not active uses?
The rewrite tackles two different problems: registered names can combine several algorithms, and text can mention an algorithm without using it. Treating the whole identifier as one opaque string misses its parts. Treating every mention as active use creates false positives. The scanner was changed to parse structure and to suppress non-use contexts.
For example, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 is decomposed into ECDH, RSA, and AES. The scanner also recognizes ffdhe2048 as DH with a size of 2048. On the other side, it skips names inside log strings, comments, deny-lists, and JSON policies with “Effect”: “Deny.” A hashlib.md5 call remains detectable when the algorithm is the key, even with usedforsecurity=False.
These rules helped move recognition from 203 to 807 positive forms and decoy flags from 16 to zero. The approach is not complete: CLI remains 0 of 115, and some file types cannot be opened. The adapter and raw results are in an open PR, so the measurement may still be reviewed.
What do ShorList’s real-use examples and decoys help reveal about whether a scanner is reliable?
ShorList is an open catalogue of 2,099 concrete ways cryptography appears in real code. It includes 1,429 positive forms and 172 decoy rows: code that mentions crypto but does not use it. A scanner tested against both can be measured not only for what it finds, but also for what it correctly ignores.
The baseline recognized 203 positive forms and flagged 16 decoys. After the rewrite, it recognized 807 positives and flagged none of the 172 decoys. The positive examples test coverage; the decoys act as negative controls. Together, they expose a scanner that either misses real uses or mistakes incidental mentions for active cryptography.
The author says the adapter and raw results were published as a PR to the ShorList repository, but the PR is still open and unmerged. That leaves room for the maintainer to challenge the adapter or results. The stated lesson is to publish the denominator, build the negative control first, and prefer a low number that can be defended over a high one that cannot.
What do cryptographic algorithms and key sizes do to protect information, and why does an inventory of them matter?
As general cryptography background, algorithms describe the methods used to protect or verify information, while key sizes describe the lengths of cryptographic keys. These details can affect how cryptographic protection works. The source article focuses on detecting such details in code, rather than explaining cryptographic theory.
Its examples include AES, RSA, DH, curve names, TLS suites, and groups such as ffdhe2048. The rewrite can break a suite into component algorithms and identify the size 2048 in that group. It also reports a change in key-size extraction from 0 of 53 examples to 119 of 208. That helps make the inventory more informative than a list of algorithm names alone.
An inventory matters because the author describes it as a basis for a compliance claim, where confusing a mention with actual use is a problem. The article does not give a full account of how inventories should guide security decisions. It does show important limits: CLI recognition remains 0 of 115, and there is no CWE mapping for the defect axis. The results should be read with those gaps in view.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web