# US 2025/0156557 A1 · Vulnerability Analysis Method, Apparatus, and Device, and Computer-Readable Storage Medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156557 A1
- Document ID: US20250156557A1
- Status: Published application
- Kind: A1
- Application number: 19/022,643
- Filed: 2025-01-15
- Published: 2025-05-15
- Earliest claimed: 2022-07-25
- Assignees: Huawei Cloud Computing Technologies Co., Ltd.
- Applicants: Huawei Cloud Computing Technologies Co., Ltd.
- Inventors: Lin Li; Guangtai Liang; Bingjie Shan; Liuchuan Zhu
- Web page: https://patentgrep.com/patent/US20250156557A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 21/12: Protecting executable software
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- H04L 63/1433: {Vulnerability analysis}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A vulnerability analysis method includes: An analysis device obtains software environment information of a vulnerability, where the software environment information is used to describe software affected by the vulnerability (201); the analysis device obtains n candidate software packages through searching based on the software environment information, where n is an integer greater than or equal to 1 (202); and the analysis device performs same-source extension on the n candidate software packages to obtain a plurality of recommended software packages, where a quantity of the plurality of recommended software packages is greater than n, and the recommended software package is used to assist an annotation object in determining an impact range of the vulnerability (203). The candidate software packages are obtained through searching based on the software environment information, and universality is high.

## Claims

### Claim 1

A method comprising:
obtaining software environment information of a vulnerability, wherein the software environment information describes software affected by the vulnerability;
obtaining n candidate software packages through searching based on the software environment information, wherein n is an integer greater than or equal to 1; and
performing same-source extension on the n candidate software packages to obtain recommended software packages for assisting an annotation object in determining an impact range of the vulnerability,
wherein a quantity of the recommended software packages is greater than n.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the software environment information comprises:
obtaining vulnerability description information of the vulnerability;
identifying a software entity in the vulnerability description information;
extracting a context of the software entity from the vulnerability description information; and
obtaining the software environment information based on the context.

### Claim 3 (depends on 1)

The method of claim 1, wherein obtaining the n candidate software packages comprises:
searching, based on the software environment information, a database comprising description informations of software packages to obtain m initial software packages related to the vulnerability, wherein m is an integer greater than n; and
selecting the n candidate software packages from the m initial software packages based on the software environment information.

### Claim 4 (depends on 3)

The method of claim 3, wherein selecting the n candidate software packages comprises:
sorting the m initial software packages based on software description informations of the m initial software packages and the software environment information to obtain a sorting result that ranks the m initial software packages based on relevance to the vulnerability; and
selecting the n candidate software packages from the m initial software packages based on the sorting result.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
obtaining a software package filtering model; and
further selecting the n candidate software packages by invoking the software package filtering model.

### Claim 6 (depends on 3)

The method of claim 3, wherein performing the same-source extension comprises:
clustering the software packages based on the description informations to obtain at least one target software cluster comprising the candidate software package, and the target software cluster further comprises a software package that has a same source as the candidate software package; and
using a candidate software package in the at least one target software cluster and a same-source software package that meets a condition as the recommended software packages.

### Claim 7 (depends on 6)

The method of claim 6, wherein clustering the software packages comprises:
obtaining description vectors of the software packages based on the description informations;
clustering the software packages based on the description vectors to obtain initial software clusters;
calculating code similarities between the software packages in each of the initial software clusters;
filtering, based on the code similarities, the software packages to obtain candidate software clusters; and
using a first candidate software cluster of the candidate software clusters and comprising the candidate software package as the target software cluster.

### Claim 8 (depends on 1)

The method of claim 1, wherein after performing the same-source extension, the method further comprises:
determining, from the recommended software packages, a target software package matching the annotation object; and
determining a software version affected by the vulnerability.

### Claim 9 (depends on 8)

The method of claim 8, wherein determining the target software package comprises:
sending, to a terminal, first information about the recommended software packages; and
receiving, from the terminal and in response to the first information, second information that is about the target software package and that matches the annotation object.

### Claim 10 (depends on 9)

The method of claim 9, wherein determining the software version comprises:
obtaining, from an information base comprising version informations of the software packages and based on the second information, first version information of the target software package;
sending, to the terminal, the first version information; and
receiving, from the terminal and in response to the first version information, the software version.

### Claim 11

A computing device cluster comprising:
at least one computing device configured to:
obtain software environment information of a vulnerability, wherein the software environment information describes software affected by the vulnerability;
obtain n candidate software packages through searching based on the software environment information, wherein n is an integer greater than or equal to 1; and
perform same-source extension on the n candidate software packages to obtain recommended software packages for assisting an annotation object in determining an impact range of the vulnerability,
wherein a quantity of the recommended software packages is greater than n.

### Claim 12 (depends on 11)

The computing device cluster of claim 11, wherein the at least one computing device cluster is further configured to obtain the software environment information by:
obtaining vulnerability description information of the vulnerability;
identifying a software entity in the vulnerability description information;
extracting a context of the software entity from the vulnerability description information; and
obtaining the software environment information based on the context.

### Claim 13 (depends on 11)

The computing device cluster of claim 11, wherein the at least one computing device cluster is further configured to obtain the n candidate software packages by:
searching, based on the software environment information, a database comprising description informations of software packages to obtain m initial software packages related to the vulnerability, wherein m is an integer greater than n; and
selecting the n candidate software packages from the m initial software packages based on the software environment information.

### Claim 14 (depends on 13)

The computing device cluster of claim 13, wherein the at least one computing device cluster is further configured to select the n candidate software packages by:
sorting the m initial software packages based on software description informations of the m initial software packages and the software environment information to obtain a sorting result that ranks the m initial software packages based on relevance to the vulnerability; and
selecting the n candidate software packages from the m initial software packages based on the sorting result.

### Claim 15 (depends on 13)

The computing device cluster of claim 13, wherein the at least one computing device cluster is further configured to:
obtain a software package filtering model; and
further selecting the n candidate software packages by invoking the software package filtering model.

### Claim 16 (depends on 13)

The computing device cluster of claim 13, wherein the at least one computing device cluster is further configured to perform the same-source extension by:
clustering the software packages based on description informations to obtain at least one target software cluster comprising the candidate software package, and the target software cluster further comprises a software package that has a same source as the candidate software package; and
use a candidate software package in the at least one target software cluster and a same-source software package that meets a condition as the recommended software packages.

### Claim 17 (depends on 16)

The computing device cluster of claim 16, wherein the at least one computing device cluster is further configured to cluster the software packages by:
description vectors of the software packages based on the description informations;
clustering the software packages based on the description vectors to obtain initial software clusters;
calculating code similarities between the software packages in each of the initial software clusters;
filtering, based on the code similarities, the software packages to obtain candidate software clusters; and
using a first candidate software cluster of the candidate software clusters and comprising the candidate software package as the target software cluster.

### Claim 18 (depends on 11)

The computing device cluster of claim 11, wherein the at least one computing device cluster is further configured to perform the same-source extension by:
determining, from the recommended software packages, a target software package matching the annotation object; and
determining a software version affected by the vulnerability.

### Claim 19 (depends on 18)

The computing device cluster of claim 18, wherein the at least one computing device cluster is further configured to determine the target software package by:
sending, to a terminal, first information about the recommended software packages; and
receive, from the terminal and in response to the first information, second information that is about the target software package and that matches the annotation object.

### Claim 20 (depends on 19)

The computing device cluster of claim 19, wherein the at least one computing device cluster is further configured to determine the software version by:
obtaining, from an information base comprising version informations of the software packages and based on the second information, first version information of the target software package;
sending, to the terminal, the first version information; and
receiving, from the terminal and in response to the first version information, the software version.
