How to Verify the Provenance of a Closed-Source or Firmware Component Without Source Code

Binary composition analysis identifies the open-source components embedded inside a compiled binary without access to source code; KhaiCode produces an SPDX or CycloneDX SBOM from a firmware image or software binary this way, mapping identified components to known CVEs and KEVs.

You received a firmware update from a hardware vendor. Or a third-party library in compiled form. Or a container image where the build pipeline is entirely opaque to you. The question is the same in every case: what is actually in this thing, and should I trust it?

Source code makes supply-chain security tractable. You can grep it, lint it, run SCA against a manifest. But closed-source components, vendor-supplied binaries, and embedded firmware hand you a compiled artifact and no receipt. That gap is where provenance verification gets hard - and where most traditional tools simply stop working.


Why "No Source Code" Is the Default, Not the Exception

In practice, most software organizations consume far more binary artifacts than they ever inspect at the source level. OT and IoT hardware ships with vendor firmware. Medical devices run embedded stacks the manufacturer controls. Acquired software comes with compiled DLLs, not repositories. Even containers sourced from public registries may contain compiled components that never passed through your SCA scanner.

The common assumption - that an SBOM produced from a package manifest reflects what is actually running - breaks down the moment a build diverges from its declared dependencies, or when you are consuming something you did not build at all.


What Provenance Verification Actually Requires for Binaries

Verifying that a binary component is what it claims to be, and that it carries no known exposure, involves three distinct steps:

1. Component identification (fingerprinting)

Before you can assess a binary, you need to know what is inside it. This means fingerprinting the compiled artifact to identify embedded open-source libraries, third-party components, and framework versions - without relying on a manifest, a package lock file, or vendor disclosure. The output of this step is a component inventory: an SBOM in a standard format (SPDX or CycloneDX) that reflects what the binary actually contains, not what it claims to contain.

2. Vulnerability correlation

Once you have a component inventory, each identified component needs to be mapped against known vulnerability databases - CVEs for general exposure, and KEVs (Known Exploited Vulnerabilities, from CISA's catalog) for the subset that attackers are actively using in the wild. This tells you whether a component is vulnerable in theory, and whether that vulnerability is being weaponized right now.

3. Exploitability validation

A CVE match is not the same as confirmed exploitability. A component may carry a vulnerability that is not reachable in the specific build, or not reachable given the target's architecture and runtime environment. Exploit validation - actually exercising the binary in an emulated environment - confirms whether a known vulnerability is triggerable in that specific binary, in that specific configuration. This step separates "theoretically exposed" from "actually exploitable," which is the number that matters when you're deciding whether to deploy.


How KhaiCode Approaches This

KhaiCode is built specifically for the binary-first case. You upload a binary - software, firmware, or container image - and the platform fingerprints what is inside, produces an SBOM (SPDX or CycloneDX), correlates the identified components against CVEs and KEVs, and then validates exploitability through in-house exploit-based binary analysis.

The exploitability layer uses multi-architecture and multi-platform emulation, which matters for the edge-device and OT/IoT cases where x86 assumptions break down. Mobile systems, IIoT/IoT sensors, and embedded devices run on architectures that generic scanners often do not handle. The emulation environment finds vulnerabilities in the same environment where attacks actually occur.

KhaiCode also supports search by product, hash, or component - so if you have a hash for a binary artifact you received, you can query against it directly rather than waiting for a full analysis cycle.

The result is what you would call build-specific exploitability intelligence: not a generic list of CVEs for a named version, but a confirmed assessment tied to the actual binary in front of you.


Where This Fits in a Broader Supply-Chain Program

Binary analysis complements, rather than replaces, source-based supply-chain security. If you are building software with source access, Labrador handles SAST, SCA, and SBOM generation from that source. KhaiCode fills the gap for artifacts where source is unavailable - vendor-supplied firmware, acquired software, third-party containers, or compiled components from partners whose build process you do not control.

Together they address both sides of the provenance question: what did we build, and what did we receive.


The Practical Starting Point

If you are working with closed-source or firmware components and do not currently have visibility into their contents, the starting point is an SBOM. Not a manifest-derived one, but one generated from the binary itself. That document - even before you run vulnerability correlation or exploit validation - tells you what you are actually running.

From there, the CVE and KEV correlation tells you what is known-vulnerable. The exploit validation tells you what is confirmed-exploitable. That sequence turns a black-box binary into a risk posture you can act on.

If you want to see what KhaiCode surfaces against a binary or firmware image in your environment, you can request a demo at khaicode.com.

This post is about KhaiCode.