Reachability analysis in source scans uses code paths, imports, and call graphs from readable code to see whether a vulnerable function can actually be invoked. In binary scans, the same judgement relies on disassembly, symbols, and runtime-linked references, so evidence source changes from source files to compiled artefacts and embedded metadata.
How source scans and binary scans answer the same reachability question differently
Both scan types are trying to answer the same practical question, whether a vulnerable function is actually reachable from code that ships or runs. The difference is the evidence they trust. Source scans reason from readable code structure, while binary scans reason from compiled artefacts, symbol data, and runtime-linked references when source is unavailable or incomplete.
That difference matters because reachability is not just about whether a vulnerable library exists in the build. It is about whether a code path can invoke the vulnerable routine in a way that changes exposure. In source, that path is easier to inspect directly; in binaries, the same judgement is usually inferred from what survived compilation and linking.
In practice, source scans are better when you want explanation and traceability, because imports, call graphs, and code paths can be followed back to the exact statement that creates the dependency. Binary scans are better when the shipped artefact is the source of truth, especially for vendor software, stripped builds, firmware, or cases where the code no longer matches what was compiled.
What changes in the evidence model for source versus binary reachability
Source scans work from the developer-visible model of the program. They can see imports, references, conditional branches, wrapper calls, and dead code that may never be exercised. That makes them strong at showing why a vulnerability is not on an execution path, but they can also miss issues introduced later by build flags, feature toggles, or dynamic loading if the analysis stops too early.
Binary scans start from the delivered executable or library, so they reflect what was actually built, linked, and shipped. Their evidence comes from disassembly, exported or stripped symbols, relocation tables, embedded metadata, and other compiled artefacts. That makes them useful when source is missing or untrusted, but it also means the tool has to reconstruct intent from a less readable representation.
The practical trade-off is precision versus reconstruction. Source analysis usually gives cleaner reasoning about program flow, while binary analysis is often closer to the real deployment artefact. Good teams use source when they need explainable code-path judgement and binary when they need confidence about what is present in the final package.
Why the distinction matters for prioritising findings
Reachability analysis is most valuable when it reduces false positives without hiding real exposure. A vulnerable function that is present but never invoked may be lower priority than one that sits on a live request path. Conversely, a function that looks unreachable in source may still be callable in the shipped binary if linking, optimisation, or configuration changed the picture.
That is why source and binary results should not be treated as interchangeable. A source finding can say, "this code path does not reach the vulnerable function in the repository state we scanned." A binary finding can say, "this compiled artefact still contains, references, or exposes the vulnerable routine in the shipped build." Those are related answers, but they are not the same answer.
For teams running application security programmes, the right question is usually which artefact is authoritative for the decision you need to make. If your release gate is based on build output, binary evidence is often more defensible. If your remediation workflow starts in development, source evidence is often faster to interpret and fix.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS, CIS Controls v8 and SLSA set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V15 — Secure Coding and Architecture | Reachability analysis depends on understanding code paths and build-time behavior. |
| Recommendation — Use source-path review and build-aware checks to confirm whether vulnerable code is actually callable. | ||
| CIS Controls v8 | CIS-7 — Continuous Vulnerability Management | Reachability is used to prioritise vulnerable components and reduce noise. |
| Recommendation — Prioritise reachable vulnerabilities first and track which findings are actually exploitable. | ||
| SLSA | Build provenance | Binary reachability depends on what was built and shipped, not just source intent. |
| Recommendation — Verify that the binary under review matches the intended source and build pipeline outputs. | ||
Practitioner Guidance
What to verify: Make sure the scan type matches the artefact you are trying to govern. If the binary is what gets deployed, validate reachability against the compiled output, not only the repository snapshot.
Decision rule: Treat source reachability as an explanation of code intent and binary reachability as a check on shipped reality. If they disagree, assume the build or packaging step changed the exposure until proven otherwise.
Common mistake: Do not use a source-only reachability result to clear a vulnerability in a release artefact that was transformed by compilation, stripping, static linking, or conditional build logic.
Practitioner takeaway: The most reliable programme is the one that can compare source-path reasoning with binary-path evidence and explain any gap between them before a vulnerable artefact is released.
Related resources from NHI Mgmt Group
- Guide: Reachability Analysis Guide
- What is the difference between vulnerability scanning and reachability analysis for open source risk?
- How should security teams use reachability analysis to prioritize open-source vulnerabilities in software supply chains?
- How should teams choose between source-based and binary-based embedded Linux builds?
- Why does reachability analysis improve vulnerability management?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org