Skip to main content
QUICK REVIEW

[Paper Review] The Dynamics of Software Composition Analysis

Darius Foo, Jason Yeo|arXiv (Cornell University)|Sep 3, 2019
Software Engineering ResearchComputer Science26 references4 citations
TL;DR

This paper proposes a novel, modular approach to combining static and dynamic call graphs in Software Composition Analysis (SCA) to reduce false positives in vulnerability detection. By integrating hand-curated, vulnerability-specific sinks with precomputed call chains and instrumented dynamic call graphs, the method improves reachability analysis and enables scalable, CI/CD-friendly dependency remediation, achieving up to 824% more call graph vertices and 361% more edges in real-world projects.

ABSTRACT

Developers today use significant amounts of open source code, surfacing the need for ways to automatically audit and upgrade library dependencies, and giving rise to the subfield of Software Composition Analysis (SCA). SCA products are concerned with three tasks: discovering dependencies, checking the reachability of vulnerable code for false positive elimination, and automated remediation. The latter two tasks rely on call graphs of application and library code to check whether vulnerability-specific sinks identified in libraries are used by applications. However, statically-constructed call graphs introduce both false positives and false negatives on real-world projects. In this paper, we develop a novel, modular means of combining call graphs derived from both static and dynamic analysis to improve the performance of false positive elimination. Our experiments indicate significant performance improvements.

Motivation & Objective

  • Address the high rate of false positives in static call graph analysis for Software Composition Analysis (SCA), particularly due to unused or unreachable transitive dependencies.
  • Improve the accuracy of vulnerability reachability detection by combining static and dynamic call graphs, leveraging instrumentation to capture real runtime behavior.
  • Enable scalable, modular analysis in CI/CD pipelines by precomputing call chains and avoiding on-demand call graph reconstruction for third-party libraries.
  • Support automated remediation by using semantic diffs augmented with call graphs to identify potentially breaking changes during library upgrades.
  • Demonstrate that dynamic call graphs significantly expand the set of discoverable vulnerable method call chains compared to static analysis alone.

Proposed method

  • Integrate package manager-embedded dynamic analysis to accurately discover transitive dependencies, avoiding the inaccuracies of static manifest-based resolution.
  • Construct dynamic call graphs via instrumentation during test execution, capturing only feasible, runtime-observed method invocations.
  • Precompute and modularize call chains for third-party libraries, enabling reuse and reducing recomputation overhead in CI/CD pipelines.
  • Compose static and dynamic call graphs by merging static call chains with dynamic call graphs, preserving only first-party entry points and enabling hybrid path tracing.
  • Augment vulnerability detection with hand-curated, library-specific sinks to improve precision in identifying exploitable code paths.
  • Use semantic diffs between library versions, enriched with call graph information, to predict breaking changes during automated remediation.

Experimental results

Research questions

  • RQ1How can static and dynamic call graphs be effectively composed to improve the accuracy of vulnerability reachability detection in SCA?
  • RQ2To what extent does dynamic call graph instrumentation improve the discovery of vulnerable method call chains compared to static analysis alone?
  • RQ3Can a modular, precomputed call graph composition strategy enable scalable SCA analysis suitable for integration into CI/CD pipelines?
  • RQ4How does the use of library-specific, hand-curated sinks impact the reduction of false positives in vulnerability detection?
  • RQ5What is the performance overhead and scalability of combining dynamic and static call graphs in real-world, large-scale Java projects?

Key findings

  • Dynamic call graphs added 824% more vertices and 361% more edges on average across four real-world Maven-based Java projects compared to static call graphs.
  • The hybrid approach discovered significantly more reachable vulnerable methods—up to 3616 dynamic sinks in one project (e.g., helios), compared to only 1 static sink.
  • The method reduced false positives by accurately identifying only those library methods that are actually reachable in production execution paths.
  • The modular composition of call graphs enabled analysis to complete in minutes on average, making integration into CI/CD pipelines feasible.
  • Projects with higher test coverage produced larger and more accurate dynamic call graphs, leading to better vulnerability detection.
  • The use of semantic diffs augmented with call graphs improved the precision of automated remediation by identifying potentially breaking changes with higher fidelity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.