IP Library › Granted Patent US 12,462,043
Granted Patent B1
US 12,462,043 · App. 19/191,857 · Granted Nov 4, 2025

Creating and using call graphs to select an update

Inventors: Joseph Hejderup (Palo Alto, CA); Philip Hamer (Palo Alto, CA); Georgios Apostolopoulos (San Jose, CA); Dimitrios Styliadis (San Jose, CA)
Assignee: Endor Labs Inc
G06F21/577G06F21/6218G06F21/552G06F21/565G06F21/70
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,462,043
App. No.
19/191,857
Filed
Apr 28, 2025
Granted
Nov 4, 2025
Kind
B1
Art Unit
2497
USPC
726/25
Abstract

In some implementations, a set of dependencies in a selected package are determined. Each dependency in the set of dependencies is used to create a set of partial call graphs that are stitched together to create a complete call graph of the package. A subset of upgrade candidates may be selected from a set of upgrade candidates for a particular dependency. Determining issues associated with upgrading the package to use an upgrade candidate includes determining security vulnerabilities based on the complete call graph, determining a number of vulnerabilities addressed by upgrading the package to use the upgrade candidate, and determining a severity of vulnerabilities addressed by upgrading the package to use the upgrade candidate. A risk-benefit score associated with each of the upgrade candidates is determined to create a subset of upgrade candidates prioritized based on the risk-benefit score. The prioritized subset is provided to a developer associated with the package.

Claims (105)

1 . A computer-implemented method comprising:

selecting a package in a software project;

determining a set of dependencies in the package based on:

resolving direct dependencies in the package; and

resolving indirect dependencies in the package;

generating a partial call graph for each dependency in the set of dependencies to create a set of partial call graphs;

storing the set of partial call graphs in a partial call graph cache;

based on determining that a particular dependency in the set of dependencies is not included in the partial call graph cache, creating and storing a partial analysis result in the partial call graph cache, the partial analysis result including one or more partial call graphs associated with the particular dependency, including static call sites found in bytecode and a type hierarchy that includes types, parent types, and associated components declared in the particular dependency;

based on determining that the particular dependency in the set of dependencies is included in the partial call graph cache, requesting the partial analysis result from the set of partial call graphs;

merging individual type hierarchies to build a global type hierarchy, wherein the individual type hierarchies are derived from the partial analysis result;

stitching together the set of partial call graphs to create a complete call graph of the package;

determining unreachable code in the package based on the complete call graph of the package;

determining a set of upgrade candidates for the particular dependency in the set of dependencies;

based on determining that a number of upgrade candidates in the set of upgrade candidates is greater than a predetermined threshold, selecting a subset of the upgrade candidates;

selecting an upgrade candidate in the subset of upgrade candidates;

determining issues associated with upgrading the package to use the upgrade candidate, including:

determining security vulnerabilities based on the complete call graph;

determining a number of vulnerabilities addressed by upgrading the package to use the upgrade candidate; and

determining a severity of vulnerabilities addressed by upgrading the package to use the upgrade candidate;

determining a risk-benefit score associated with each upgrade candidate in the subset of the upgrade candidates;

prioritizing each of the upgrade candidates in the subset of the upgrade candidates based on the associated risk-benefit score to create a prioritized subset of the upgrade candidates; and

providing, via a display device, the prioritized subset of the upgrade candidates to a developer associated with the package.

2 . The computer-implemented method of claim 1 , wherein selecting the subset of the upgrade candidates comprises: selecting a predetermined number of early versions of the upgrade candidates; and selecting a predetermined number of later versions of the upgrade candidates.

3 . The computer-implemented method of claim 1 , wherein determining the risk-benefit score associated with each upgrade candidate in the subset of the upgrade candidates comprises:

the issues associated with upgrading the package to use the upgrade candidate;

the number of vulnerabilities addressed by upgrading the package to use the upgrade candidate; and

the severity of the vulnerabilities addressed by upgrading the package to use the upgrade candidate.

4 . The computer-implemented method of claim 1 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises:

determining a security score indicating a number of security-related issues associated with a third-party package in which the upgrade candidate is included.

5 . The computer-implemented method of claim 1 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises:

determining a popularity score indicating an amount of usage received by a particular third-party package based at least in part on:

tracking source code management system metrics; and

how many other packages have a dependency on the particular third-party package.

6 . The computer-implemented method of claim 1 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises:

determining a code quality score indicating how well a particular third-party package complies with best practices for code development.

7 . The computer-implemented method of claim 1 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises: determining a number of licenses associated with the upgrade candidate.

8 . A server comprising:

one or more processors; and

one or more non-transitory computer readable media storing instructions executable by the one or more processors to perform operations comprising:

selecting a package in a software project;

determining a set of dependencies in the package based on:

resolving direct dependencies in the package; and

resolving indirect dependencies in the package;

generating a partial call graph for each dependency in the set of dependencies to create a set of partial call graphs;

storing the set of partial call graphs in a partial call graph cache;

based on determining that a particular dependency in the set of dependencies is not included in the partial call graph cache, creating and storing a partial analysis result in the set of partial call graphs, the partial analysis result including one or more partial call graphs associated with the particular dependency, including static call sites found in bytecode and a type hierarchy that includes all types, parent types, and associated components declared in the particular dependency;

based on determining that the particular dependency in the set of dependencies is included in the partial call graph cache, requesting the partial analysis result from the set of partial call graphs;

merging individual type hierarchies to build a global type hierarchy, wherein the individual type hierarchies are derived from the partial analysis result;

stitching together the set of partial call graphs to create a complete call graph of the package;

determining unreachable code in the package based on the complete call graph of the package;

determining a set of upgrade candidates for the particular dependency in the set of dependencies;

based on determining that a number of upgrade candidates in the set of upgrade candidates is greater than a predetermined threshold, selecting a subset of the upgrade candidates;

selecting an upgrade candidate in the subset of upgrade candidates;

determining issues associated with upgrading the package to use the upgrade candidate, including:

determining security vulnerabilities based on the complete call graph;

determining a number of vulnerabilities addressed by upgrading the package to use the upgrade candidate; and

determining a severity of vulnerabilities addressed by upgrading the package to use the upgrade candidate;

determining a risk-benefit score associated with each upgrade candidate in the subset of the upgrade candidates;

prioritizing each of the upgrade candidates in the subset of the upgrade candidates based on the associated risk-benefit score to create a prioritized subset of the upgrade candidates; and

providing, via a display device, the prioritized subset of the upgrade candidates to a developer associated with the package.

9 . The server of claim 8 , wherein selecting the subset of the upgrade candidates comprises: selecting a predetermined number of early versions of the upgrade candidates; and selecting a predetermined number of later versions of the upgrade candidates.

10 . The server of claim 8 , wherein determining the risk-benefit score associated with each upgrade candidate in the subset of the upgrade candidates comprises:

the issues associated with upgrading the package to use the upgrade candidate;

the number of vulnerabilities addressed by upgrading the package to use the upgrade candidate; and

the severity of the vulnerabilities addressed by upgrading the package to use the upgrade candidate.

11 . The server of claim 8 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises:

determining a number of breaking changes that would result from upgrading the package to use the upgrade candidate.

12 . The server of claim 8 , wherein determining the set of dependencies associated with the package comprises: ignoring test dependencies; and ignoring unused dependencies.

13 . The server of claim 8 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises:

determining a security score indicating a number of security-related issues associated with a third-party package in which the upgrade candidate is included.

14 . The server of claim 8 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises:

determining a number of licenses associated with the upgrade candidate.

15 . One or more non-transitory computer readable media capable of storing instructions executable by one or more processors to perform operations comprising:

selecting a package in a software project;

determining a set of dependencies in the package based on:

resolving direct dependencies in the package; and

resolving indirect dependencies in the package;

generating a partial call graph for each dependency in the set of dependencies to create a set of partial call graphs;

storing the set of partial call graphs in a partial call graph cache;

based on determining that a particular dependency in the set of dependencies is not included in the partial call graph cache, creating and storing a partial analysis result in the set of partial call graphs, the partial analysis result including one or more partial call graphs associated with the particular dependency, including static call sites found in bytecode and a type hierarchy that includes all types, parent types, and associated components declared in the particular dependency;

based on determining that the particular dependency in the set of dependencies is included in the partial call graph cache, requesting the partial analysis result from the set of partial call graphs;

merging individual type hierarchies to build a global type hierarchy, wherein the individual type hierarchies are derived from the partial analysis result;

stitching together the set of partial call graphs to create a complete call graph of the package;

determining unreachable code in the package based on the complete call graph of the package;

determining a set of upgrade candidates for the particular dependency in the set of dependencies;

based on determining that a number of upgrade candidates in the set of upgrade candidates is greater than a predetermined threshold, selecting a subset of the upgrade candidates;

selecting an upgrade candidate in the subset of upgrade candidates;

determining issues associated with upgrading the package to use the upgrade candidate, including:

determining security vulnerabilities based on the complete call graph;

determining a number of vulnerabilities addressed by upgrading the package to use the upgrade candidate; and

determining a severity of vulnerabilities addressed by upgrading the package to use the upgrade candidate;

determining a risk-benefit score associated with each upgrade candidate in the subset of the upgrade candidates;

prioritizing each of the upgrade candidates in the subset of the upgrade candidates based on the associated risk-benefit score to create a prioritized subset of the upgrade candidates; and

providing, via a display device, the prioritized subset of the upgrade candidates to a developer associated with the package.

16 . The one or more non-transitory computer readable media of claim 15 , wherein determining the risk-benefit score associated with each upgrade candidate in the subset of the upgrade candidates comprises:

the issues associated with upgrading the package to use the upgrade candidate;

the number of vulnerabilities addressed by upgrading the package to use the upgrade candidate; and

the severity of the vulnerabilities addressed by upgrading the package to use the upgrade candidate.

17 . The one or more non-transitory computer readable media of claim 15 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises: determining an activity score indicating an amount of development activity associated with a third-party package in which the upgrade candidate is included.

18 . The one or more non-transitory computer readable media of claim 15 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises: determining a security score indicating a number of security-related issues associated with a third-party package in which the upgrade candidate is included.

19 . The one or more non-transitory computer readable media of claim 15 , wherein determining the issues associated with upgrading the package to use the upgrade candidate comprises:

determining a popularity score indicating an amount of usage received by a particular third-party package based at least in part on:

tracking source code management system metrics; and

how many other packages have a dependency on the particular third-party package.

20 . The one or more non-transitory computer readable media of claim 15 , wherein determining the set of dependencies associated with the package comprises: ignoring test dependencies; and ignoring unused dependencies.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 29, 2025
From: HEJDERUP, JOSEPH; HAMER, PHILIP; APOSTOLOPOULOS, GEORGIOS; STYLIADIS, DIMITRIOS
To: ENDOR LABS INC
Reel/Frame 072230/0547 →
Continuity (2)
Continuation 19020659 · Jan 14, 2025
Continuation 18951189 · Nov 18, 2024
References Cited (19)
US 8627327B2 · Dunshea · 2014 [cited by examiner]
US 10108975B1 · Benner · 2018 [cited by examiner]
US 10917415B2 · Chen · 2021 [cited by examiner]
US 11930013B1 · Zhang · 2024 [cited by examiner]
US 20050055565A1 · Fournet · 2005 [cited by examiner]
US 20130083030A1 · Fukuda · 2013 [cited by examiner]
US 20140013315A1 · Genevski · 2014 [cited by examiner]
US 20170206123A1 · Kirkpatrick · 2017 [cited by examiner]
US 20170286099A1 · Wilkinson · 2017 [cited by examiner]
US 20200053175A1 · Bodman · 2020 [cited by examiner]
US 20210281597A1 · Guiroux · 2021 [cited by examiner]
US 20220222351A1 · Levin · 2022 [cited by examiner]
US 20240370570A1 · Betthauser · 2024 [cited by examiner]
CN 116842522A · 2023 [cited by examiner]
CN 118467790A · 2024 [cited by examiner]
Istvan-Attila Csaszar and Radu Razvan Slavescu (Interactive call graph generation for software projects); pp. 8; Published on IEEE in Nov. 26, 2020. [cited by examiner]
Mehdi Keshani, Georgios Gousios and Sebastian Proksch (Frankenstein: fast and lightweight call graph generation for software builds); pp. 47; Published in Nov. 16, 2023. [cited by examiner]
Mehdi Keshani (Scalable Call Graph Constructor for Maven); pp. 3; Published in Mar. 28, 2021). [cited by examiner]
V. Benjamin Livshits and Monica S. Lam (Finding Security Vulnerabilities in Java Applications with Static Analysis); pp. 16; Published in (Year: 2005). [cited by examiner]