Types of Reachability Analysis
Endor Labs offers multiple types of reachability analysis to help you accurately assess vulnerability exposure in your applications. Each type provides different levels of granularity and accuracy depending on your specific use case and available analysis context.- Function-level reachability and Dependency-level reachability: These analyses run during a full scan, when the project builds successfully and Endor Labs generates complete call graphs. They use actual code paths and dependency metadata to provide the most precise vulnerability assessment.
- Pre-computed reachability: A manifest-based analysis that assesses whether your direct dependencies can reach vulnerabilities in transitive dependencies. It requires no code compilation, builds, or full call graph generation. According to Endor Labs’ State of Dependency Management report, roughly 95% of vulnerabilities exist in transitive dependencies. Pre-computed reachability filters out vulnerabilities in transitive functions that your direct dependencies never call. It serves as an automatic fallback for full scans when builds fail, or as an optional enhancement for quick scans. See Pre-computed reachability to learn more.
How a finding gets its reachability label
Endor Labs checks each vulnerability finding in the following order. The first check that applies decides the label. Findings from source scans also get a dependency reachability label. When a build fails, Endor Labs answers the call path check with pre-computed reachability.Function-level reachability
Endor Labs performs function-level reachability analysis on direct and transitive dependencies to help you act on SCA results. It uses a static analysis technique called program analysis. This is the most accurate way to determine exploitability in your application. It shows you which risks to remediate.Function-level reachability labels
The different function reachability labels include:- Reachable Function: Endor Labs found a path from the developer-written code to a vulnerable function. The finding is exploitable in your environment. A call graph shows each step between the source code and the vulnerable library.
- Unreachable Function: Endor Labs determines that no risk of exploitation exists, as no path exists from the source code to the vulnerable function. A call graph supports this conclusion by demonstrating the absence of such a path.
- Potentially Reachable Function: Endor Labs can’t determine whether a finding is reachable or unreachable. The usual cause is that Endor Labs doesn’t support call graph analysis for the language or package manager. The function might run in the dependent project, but the analysis can’t confirm it.
- Reachable by Inclusion: The vulnerability applies whenever your project includes the package. The finding needs no call path to a vulnerable function. Endor Labs counts these findings as reachable in policies, filters, and dashboards. See Reachable by inclusion to learn which findings get this label.
Findings without a function reachability label
Endor Labs applies the function reachability labels only to findings that go through function-level analysis. The following findings get no function reachability label:- Container findings: Container scans don’t run function-level analysis. With
--os-reachability, OS packages, Maven packages, and Go modules in the image get a dependency reachability label instead. See Container reachability to set it up. - Test dependency findings: Findings in test dependencies get the Test attribute and no reachability label.
Dependency-level reachability
Endor Labs supports dependency-level reachability by default for all supported languages. This type of reachability analysis is more coarse-grained than function-level reachability. It indicates that the application uses the imported package somewhere but does not determine whether the source code calls the vulnerable package. Dependency-level reachability serves as a good indicator for prioritization. If you’re not actually using the dependency at all, consider removing that dependency. Determining whether your code calls or uses a dependency provides another layer of prioritization you can add to your remediation process.Dependency reachability labels
The different dependency reachability labels include:- Reachable Dependency: Endor Labs established that the application uses the imported package somewhere.
- Unreachable Dependency: Endor Labs determined that the application doesn’t use the imported dependency. You can remove the dependency to reduce technical debt.
- Potentially Reachable Dependency: Endor Labs cannot definitively determine whether the application uses a dependency, generally because Endor Labs does not support the given language or package manager.
Comparison of reachability analysis types
The following table compares the three types of reachability analysis available in Endor Labs:Phantom dependencies
Phantom dependencies are packages that your codebase uses but does not explicitly declare in your project’s manifest files, for example,package.json, or requirements.txt. These undeclared dependencies can pose significant security and operational risks, as they may contain vulnerabilities that standard dependency analysis does not track or assess. Identifying and managing phantom dependencies is crucial for accurate reachability analysis and comprehensive risk assessment.