ai newsDi., 1. Dez.

KI-gestützter SBOM-Scanner meldete null Schwachstellen, Test mit bekanntem Ergebnis entlarvte den Fehler

Der Entwickler des Open-Source-Scanners ShieldBOM, der mit Claude erstellt wurde, prüfte das Tool mit einem Testfall mit bekanntem Ergebnis und stellte fest, dass die fehlerfreie Anzeige nicht stimmte.

dev.toMittwoch 22:51 · 25.11.DE5 Min. Lesezeit
Bild: dev.to

Ich entwickle ShieldBOM, einen SBOM-Scanner für Embedded-Software. Ich baue es mit Claude (einem LLM). Zuvor war ich in der Embedded-Entwicklung tätig und half anschließend Teams bei der Einführung von SCA-Tools. ShieldBOM ist mein persönliches Open-Source-Projekt, bitte beachte also, dass ich der Autor bin. Claude hat diesen Beitrag geschrieben, und ich habe die Fakten geprüft.

Mein Scanner meldete "0 Schwachstellen" für eine OpenSSL-Version, die bekannte CVEs hat. Es gab keine Warnung. Claude hat den Großteil des Codes geschrieben, und ein anderer KI-Agent hat ihn geprüft. Niemand hat es bemerkt. Es gab keinen Fehler, und "0" sah wie eine normale Antwort aus. Ich habe das Problem erst entdeckt, als ich eine Eingabe mit bekannter Antwort ausführte.

Mit KI ist ein Skript, das OSV oder NVD abfragt, in wenigen Minuten geschrieben. Solche Skripte haben oft dieselben Probleme. In diesem Beitrag stelle ich einen 5-Minuten-Test vor und zeige drei Stellen, an denen diese Probleme entstehen.

OpenSSL 3.0.8 hat mehrere bekannte CVEs. Beispielsweise betrifft CVE-2023-2650 die Versionen 3.0.0 bis 3.0.8. Erstelle ein SBOM mit nur dieser einen Komponente und führe deinen Scanner oder dein Skript darauf aus.

{ "bomFormat": "CycloneDX", "specVersion": "1.5", "version": 1, "components": [ { "type": "library", "name": "openssl", "version": "3.0.8", "purl": "pkg:generic/openssl@3.0.8" } ] } Vollbildmodus aktivieren Vollbildmodus beenden Ich verwende pkg:generic, weil C/C++-Bibliotheken in echten SBOMs oft so aussehen. Es gibt keinen Paketmanager wie npm oder PyPI, also gibt es keinen besseren purl-Typ zur Verwendung.

Der schlimmste Fall ist 0 Ergebnisse ohne Warnung.

OSV.dev lässt sich mit einer purl abfragen. Aber OSV arbeitet pro Ökosystem, wie npm, PyPI oder Debian. pkg:generic gehört zu keinem Ökosystem. Als ich pkg:generic/openssl@3.0.8 sendete, gab OSV ein leeres Ergebnis zurück (geprüft im November 2026).

Conan-Nutzer haben dasselbe Problem. Am 25. November 2026 sendete ich pkg:conan-purls an OSV. Jede der folgenden Versionen hat bekannte CVEs.

Mit einer Debian-purl liefern dieselben Bibliotheken CVEs zurück. Conan ist (Stand dieses Tages) nicht in OSVs Liste der Ökosysteme enthalten. 0 bedeutet also nicht "keine Schwachstellen".

OSV gibt für einen nicht unterstützten purl-Typ keinen Fehler zurück. Am selben Tag sendete ich außerdem pkg:nosuchtype/foo@1.0, einen Typ, der nicht existiert. OSV antwortete mit HTTP 200 und einem leeren Ergebnis. Man kann also an der Antwort nicht unterscheiden zwischen "keine Schwachstellen" und "nicht unterstützt". Wenn man eine KI bittet, "ein Skript zu schreiben, das Schwachstellen mit OSV prüft", wird das Skript dies vermutlich als 0 zählen. Mein Scanner tat das.

NVD wird üblicherweise per CPE abgefragt. Aber Embedded-SBOMs haben oft kein CPE. Ohne CPE muss man per Produktname suchen.

Die Stichwortsuche findet CVEs für andere Produkte. Mein Scanner hat ein Beispiel-SBOM mit FreeRTOS, lwIP, cJSON und weiteren. 21 Funde basierten nur auf Namensübereinstimmung. Ich habe alle 21 gelesen:

Viele der falschen Funde waren CVEs für andere Software, die ihre eigene Kopie von cJSON oder lwIP enthält. Embedded-C-Bibliotheken werden oft in andere Projekte kopiert. Eine Stichwortsuche findet auch die CVEs dieser Kopien.

Eine CPE-Suche hat das umgekehrte Problem. Sie liefert CVEs nicht zurück, die NVD noch nicht analysiert hat, weil diese CVEs keine Produkt- oder Versionsdaten haben. NVDs Analyse hinkt neuen CVEs hinterher (auch im November 2026 noch wahr), deshalb sind neue CVEs am leichtesten zu übersehen. Die Stichwortsuche liefert False Positives. Die CPE-Suche verpasst einige CVEs. Keine von beiden allein reicht aus.

Nachdem ich Probleme 1 und 2 behoben hatte, führte ich den 5-Minuten-Test erneut aus. Diesmal erhielt ich 259 Funde. Darunter war Heartbleed, das 1.0.1 bis 1.0.1f und 1.0.2-beta1 betrifft. Es hat nichts mit 3.0.8 zu tun. Heartbleed steht in CISA KEV, einer Liste von Schwachstellen, von denen bekannt ist, dass sie ausgenutzt werden. Deshalb zeigte der EU-CRA-Report (eine Bereitschaftsprüfung, keine Konformitätsbewertung) FAIL bei "bekannt ausnutzbare Schwachstellen" an.

Die Ursache war der Versionsvergleich. OpenSSL fügt seinen Versionen Buchstaben hinzu, wie 1.0.1g oder 1.0.2zh. NVD verwendet dasselbe Format für betroffene Bereiche, zum Beispiel "from 1.0.1, before 1.0.1g". Mein Scanner versuchte, diese Versionen als Semver zu lesen. Das scheiterte, und er verwarf die Grenze, die er nicht lesen konnte, ohne eine Warnung. Ohne "before 1.0.1g" wird der Bereich zu "1.0.1 und höher". Das schließt 3.0.8 ein.

C-Bibliotheken verwenden auch andere Formate, wie vier Zahlen ( 1.2.3.4 ) oder Datumsangaben. Wenn eine Semver-Bibliothek eine Version nicht lesen kann, hängt das Ergebnis von deinem Code ab. Wenn du die Grenze verwirfst, wird der Bereich größer und du erhältst False Positives. Wenn du sie als "nicht betroffen" behandelst, wird der Bereich kleiner und du verpasst Funde. Beides geschieht ohne Warnung.

Nachdem ich jede Ursache gefunden hatte, hat die KI sie in wenigen Minuten behoben. Das Finden des Problems dauerte viel länger. Alle Unit-Tests bestanden. Ich habe die Testdaten mit der KI geschrieben. Sie stammten nicht von echten APIs.

ShieldBOM zeigt Komponenten, die es nicht prüfen konnte, als "could not check" an. Es sendet purl-Typen, die OSV nicht unterstützt (wie pkg:generic und pkg:conan ), an NVD. Es markiert CVEs, die nur per Name übereinstimmen, und OpenSSL-artige Versionen, die es nicht vergleichen konnte, als "unbestätigt". Vierstellige Versionsnummern oder Datumsversionen werden noch nicht unterstützt. Es steht unter Apache-2.0 und lässt sich über crates.io installieren.

cargo install shieldbom # das obige JSON als test.cdx.json speichern shieldbom scan test.cdx.json Vollbildmodus aktivieren Vollbildmodus beenden GitHub: https://github.com/kazu11max17/shieldbom Wenn du den 5-Minuten-Test mit deinem Scanner ausführst oder wenn ShieldBOM dein Embedded-SBOM falsch verarbeitet, teile es mir bitte in den Issues mit: https://github.com/kazu11max17/shieldbom/issues. Für andere Scanner brauchst du das Tool nicht zu nennen. Das Ergebnis genügt.

Schwachstellendaten: OSV.dev, NVD, CISA KEV. Dieses Produkt nutzt Daten aus der NVD-API, wird aber von der NVD weder unterstützt noch zertifiziert. Es besteht keine Verbindung zu oder Unterstützung durch CISA oder OSV.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

I'm building ShieldBOM, an SBOM scanner for embedded software. I build it with Claude (an LLM). Before this, I worked in embedded development, and then I helped teams adopt SCA tools. ShieldBOM is my personal open-source project, so please keep in mind that I'm the author. Claude wrote this post, and I checked the facts.

My scanner said "0 vulnerabilities" for a version of OpenSSL that has known CVEs. There was no warning. Claude wrote most of the code, and another AI agent reviewed it. Nobody noticed. There was no error, and "0" looked like a normal answer. I found the problem only when I ran an input with a known answer.

With AI, a script that checks OSV or NVD takes only a few minutes to write. Scripts like this often have the same problems. In this post, I share a 5-minute test and three places where these problems come from.

OpenSSL 3.0.8 has several known CVEs. For example, CVE-2023-2650 affects 3.0.0 to 3.0.8. Make an SBOM with only this one component, and run your scanner or script on it.

{ "bomFormat": "CycloneDX", "specVersion": "1.5", "version": 1, "components": [ { "type": "library", "name": "openssl", "version": "3.0.8", "purl": "pkg:generic/openssl@3.0.8" } ] } Enter fullscreen mode Exit fullscreen mode I use pkg:generic because C/C++ libraries often look like this in real SBOMs. There is no package manager like npm or PyPI, so there is no better purl type to use.

The worst case is 0 results with no warning.

You can query OSV.dev with a purl. But OSV works per ecosystem, like npm, PyPI, or Debian. pkg:generic does not belong to any ecosystem. When I sent pkg:generic/openssl@3.0.8, OSV returned an empty result (checked in November 2026).

Conan users have the same problem. On November 25, 2026, I sent pkg:conan purls to OSV. Each version below has known CVEs.

With a Debian purl, the same libraries return CVEs. Conan is not in OSV's list of ecosystems (as of that day). So 0 does not mean "no vulnerabilities".

OSV does not return an error for an unsupported purl type. On the same day, I also sent pkg:nosuchtype/foo@1.0, a type that does not exist. OSV returned HTTP 200 with an empty result. So you cannot tell "no vulnerabilities" from "not supported" by looking at the response. If you ask an AI for "a script that checks vulnerabilities with OSV", the script will likely count this as 0. My scanner did.

NVD is usually queried by CPE. But embedded SBOMs often have no CPE. Without a CPE, you have to search by product name.

Keyword search finds CVEs for other products. My scanner has a sample SBOM with FreeRTOS, lwIP, cJSON, and more. 21 findings matched by name only. I read all 21:

Many of the wrong ones were CVEs for other software that includes its own copy of cJSON or lwIP. Embedded C libraries are often copied into other projects. A keyword search also finds the CVEs of those copies.

A CPE search has the opposite problem. It does not return CVEs that NVD has not analyzed yet, because those CVEs have no product or version data. NVD's analysis is behind new CVEs (still true in November 2026), so new CVEs are the easiest to miss. Keyword search gives false positives. CPE search misses some CVEs. Neither one alone is enough.

After I fixed problems 1 and 2, I ran the 5-minute test again. This time I got 259 findings. They included Heartbleed, which affects 1.0.1 to 1.0.1f and 1.0.2-beta1. It has nothing to do with 3.0.8. Heartbleed is in CISA KEV, a list of vulnerabilities that are known to be exploited. Because of this, the EU CRA report (a readiness check, not a conformity assessment) showed FAIL for "known exploitable vulnerabilities".

The cause was version comparison. OpenSSL adds letters to its versions, like 1.0.1g or 1.0.2zh. NVD uses the same format for affected ranges, for example "from 1.0.1, before 1.0.1g". My scanner tried to read these versions as semver. It failed, and it dropped the limit it could not read, without a warning. Without "before 1.0.1g", the range becomes "1.0.1 and later". That includes 3.0.8.

C libraries also use other formats, like four numbers ( 1.2.3.4 ) or dates. If a semver library cannot read a version, the result depends on your code. If you drop the limit, the range gets bigger and you get false positives. If you treat it as "not affected", the range gets smaller and you miss findings. Both happen with no warning.

After I found each cause, the AI fixed it in a few minutes. Finding the problem took much longer. All the unit tests passed. I wrote the test data with the AI. It was not taken from real APIs.

ShieldBOM shows components it could not check as "could not check". It sends purl types that OSV does not support (like pkg:generic and pkg:conan ) to NVD. It marks CVEs matched by name only, and OpenSSL-style versions it could not compare, as "unconfirmed". It does not support four-number or date versions yet. It is Apache-2.0, and you can install it from crates.io.

cargo install shieldbom # save the JSON above as test.cdx.json shieldbom scan test.cdx.json Enter fullscreen mode Exit fullscreen mode GitHub: https://github.com/kazu11max17/shieldbom If you try the 5-minute test with your scanner, or if ShieldBOM gets your embedded SBOM wrong, please tell me in the issues: https://github.com/kazu11max17/shieldbom/issues. For other scanners, you don't need to name the tool. The result is enough.

Vulnerability data: OSV.dev, NVD, CISA KEV. This product uses data from the NVD API but is not endorsed or certified by the NVD. No affiliation with or endorsement by CISA or OSV is implied.

Originaltitel: My AI-assisted SBOM scanner said "0 vulnerabilities". A test with a known answer caught itQuelle: dev.to (dev.to). Original öffnen