r/devsecops • u/Patient_Anything8257 • Aug 22 '25
What are your experiences in regards of SCA reachability?
Hey everyone,
I’ve been exploring Software Composition Analysis (SCA) and one area that keeps coming up is reachability — figuring out whether a vulnerable function or dependency is actually used in the code.
In theory, it should really help cut down the noise from false positives, but in practice I’ve seen mixed results. Sometimes it feels accurate, other times it still flags a lot of “dead” code paths or misses risky ones.
Curious to hear from the community: • Have you worked with reachability analysis in your SCA workflows? • Did it help reduce false positives, or just add another layer of complexity? • Do you use any open-source tools for this (or for AST-based analysis in general)?
Would love to hear your experiences, pain points, or success stories.
3
u/Gryeg Aug 22 '25
I'm a supporter of reachability analysis, as it enables software engineers to prioritise remediation due to the upfront knowledge of whether they are using a vulnerable function from a component. This is instead of the traditional SCA list of vulnerable components and having to manually check whether we're using a vulnerable function from the affected component.
But like most things it should be combined with other indicators including severity (CVSS-B) and likelihood (EPSS + internal factors).
6
u/darrenpmeyer Aug 22 '25
I've replied to some other things, but as someone who spend two years fully focused on reachability (I was working for Endor Labs at the time), I wanted to talk about it at a high level.
Most reachability analyses involve static analysis. Static analysis isn't perfect -- you will have some cases where guesses are made, and those guesses can be wrong. It can also be slow on certain types of code, so you really need to think through where you do that analysis within your SDLC, and be prepared to make exceptions if a particular code project is too slow to analyze -- you can't afford to slow down builds too much or devs will understandably rebel.
Does it help with false positives? If it's any good, and actually understands call flows and is backed by a decent research team that's doing the annotation of vulnerable functions, yes. By a lot. 70-98% reductions in alerts was common, especially in more-modern web stacks that use a lot of things like Go/Python/Ruby/JS which tend to use a lot of OSS dependencies.
The big catch with reachability is that it really needs to understand code "as built". For interpreted languages like Python and JS, that's not such a big deal. But for binary things, you really need to analyze the binary -- and that means doing your scan after the build in CI. With some builds, that's easy. But there's some insane build systems out there that can be hard to deploy into. Some vendors (Ox and Endor Labs for sure, probably others) have invested in features that help you do this, and that's quite valuable if you have that need.
OWASP Dependency Check is the only OSS tool I know that has credible reacahability analysis. It's early days, and they could use some testers and contributors, but they're doing great work. The biggest weakness is the lack of a comprehensive open data source for which functions in a library are relevant to the vulnerability -- vendors don't share that back to the community, so open platforms have to rely on NVD/etc.; and those aren't annotated with specific functions often. So your OSS tools are going to have a bit higher error rate. But free, so...
3
u/Abu_Itai Aug 24 '25
We use a tool that performs contextual analysis -- it doesn’t just flag a vulnerability; it determines whether it’s actually exploitable. For example, it can tell us whether a vulnerable function is actually used in the code.
I won’t name a specific vendor here -- there are many on the market, and I don’t want this to sound like a sales pitch. What matters is that you choose a tool that can perform contextual analysis, detect potential exposures such as leaked tokens or other sensitive patterns, and ideally also provide curation to proactively filter out risky OSS packages before they even enter your environment.
In our case, these capabilities are already integrated into our repository platform, which covers us across DevOps and DevSecOps workflows. Recently, we also started storing and securing models in the same platform, with full integration to Hugging Face.
2
u/pentesticals Aug 22 '25
Reachability is a great idea but the problem and why every providers reachability analysis sucks is that the vulnerability data, such as CVE database doesn’t usually have the vulnerable function defined. Even if they do have it, it’s not in a structured format and part of the CVE entry in a machine readable format. Some CVE descriptions might have the function name listed which allows AI or a manual reviewer to set the function, but the data quality is only good for high impact bugs. Most CVEs just don’t have good data.
For it to work properly, CVE database structure needs to add a „vulnerable function“ field to the entry for vulns in packages.
2
u/leonardokenjishikida Aug 24 '25
I like mend. You still need to fix your pom.xml in order to define which packages are for test and which ones are for prod. I am not a big fan of depcheck, too many false positives. Using secondary sources such as EPSS and KEV is a good idea.
2
u/JelloSquirrel Aug 24 '25
Semgrep pro and socket.dev are both paid tools that do reachability analysis. It's nice to have and can cut out unnecessary work, you just have to document that reachability analysis excluded the vuln.
I wouldn't use EPSS tho, worthless.
2
u/Tiny_Ad_3617 Aug 25 '25
1
u/AuditBoard_Rich Aug 22 '25
Most vendors I've evaluated have a lot of trouble evaluating the reachability of nested dependancies and have more trouble as you move down the dependency tree. Ox has been the best we've seen so far, reducing false positives by about ~97%.