# US 2023/0057717 A1 · Insecure software detection apparatus and detection method, and storage medium

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

- Number: US 2023/0057717 A1
- Document ID: US20230057717A1
- Status: Published application
- Kind: A1
- Application number: 18/046,147
- Filed: 2022-10-12
- Published: 2023-02-23
- Earliest claimed: 2020-04-13
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Meilun Xie; Shilin Pan
- Web page: https://patentgrep.com/patent/US20230057717A1

## CPC

- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/554: {involving event detection and direct action}
- G06N 3/045: Combinations of networks
- G06N 3/063: using electronic means
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An insecure software detection apparatus is provided, including: a dedicated processor (101), configured to: when a first analysis result indicates that to-be-detected software is not secure, analyze the to-be-detected software by using a first neural network model, to obtain a second analysis result, where the first analysis result is obtained by analyzing the to-be-detected software by using a second neural network model; and a general-purpose processor (102), configured to: obtain the second analysis result from the dedicated processor, and perform security processing on the to-be-detected software based on the second analysis result. The apparatus first analyzes the to-be-detected software by using the second neural network model with low power consumption. When an analysis result indicates that the to-be-detected software is not secure, the dedicated processor analyzes the to-be-detected software by using the first neural network model with a high computing capability.

## Claims

### Claim 1

An insecure software detection apparatus, comprising:
a processor, configured to: when a first analysis result indicates that software is not secure, analyze the software by using a first neural network model, to obtain a second analysis result, wherein the first analysis result is obtained by analyzing the software by using a second neural network model, the second analysis result indicates that the software is not secure, power consumption of the first neural network model is greater than power consumption of the second neural network model, and a computing capability of the first neural network model is greater than a computing capability of the second neural network model; and
a general-purpose processor, configured to: obtain the second analysis result from the processor, and perform security processing on the software based on the second analysis result.

### Claim 2 (depends on 1)

The apparatus according to claim 1, wherein the second neural network model is used to perform real-time analysis on the software.

### Claim 3 (depends on 1)

The apparatus according to claim 1, wherein the processor is further configured to: analyze the software by using the second neural network model, to obtain the first analysis result; and when the first analysis result indicates that the software is not secure, activate a first neural network.

### Claim 4 (depends on 1)

The apparatus according to claim 1, wherein the processor comprises a first neural network processing unit and a second neural network processing unit;
the first neural network processing unit is configured to analyze the software by using the second neural network model, to obtain the first analysis result; and
the second neural network processing unit is configured to: when the first analysis result indicates that the software is not secure, activate the first neural network model, and analyze the software by using the first neural network model, to obtain the second analysis result.

### Claim 5 (depends on 1)

The apparatus according to claim 1, wherein the general-purpose processor is further configured to: analyze the software by using the second neural network model, to obtain the first analysis result, and when the first analysis result indicates that the software is not secure, activate the processor; and
the processor is specifically configured to: respond to activation, and analyze the software by using the first neural network model.

### Claim 6 (depends on 1)

The apparatus according to claim 1, wherein the first analysis result is obtained by analyzing, by using the second neural network model, a first observation event corresponding to the software.

### Claim 7 (depends on 1)

The apparatus according to claim 1, wherein the second analysis result is obtained by analyzing, by using the first neural network model, a second observation event corresponding to the software.

### Claim 8 (depends on 1)

The apparatus according to claim 1, wherein the security processing comprises at least one of the following: stopping running the software, limiting at least a part of functions of the software, triggering an alarm, or further performing security detection on the software.

### Claim 9 (depends on 1)

The apparatus according to claim 1, wherein
the general-purpose processor is further configured to obtain the second analysis result from the processor, and is specifically configured to perform the security processing on the software based on the first analysis result and the second analysis result.

### Claim 10 (depends on 1)

The apparatus according to a claim 1, wherein the second analysis result further indicates a non-security type of the software.

### Claim 11

An insecure software detection method, comprising:
when a first analysis result indicates that software is not secure, analyzing, by a processor, the software by using a first neural network model, to obtain a second analysis result, wherein the first analysis result is obtained by analyzing the software by using a second neural network model, the second analysis result indicates that the software is not secure, power consumption of the first neural network model is greater than power consumption of the second neural network model, and a computing capability of the first neural network model is greater than a computing capability of the second neural network model; and
performing, by a general-purpose processor, security processing on the software based on the second analysis result.

### Claim 12

A computer-readable storage medium, comprising instructions, wherein when the instructions are run on an electronic device including a processor and a general-purpose processor, the electronic device is enabled to perform a method comprising:
when a first analysis result indicates that software is not secure, analyzing, by the processor, the software by using a first neural network model, to obtain a second analysis result, wherein the first analysis result is obtained by analyzing the software by using a second neural network model, the second analysis result indicates that the software is not secure, power consumption of the first neural network model is greater than power consumption of the second neural network model, and a computing capability of the first neural network model is greater than a computing capability of the second neural network model; and
performing, by the general-purpose processor, security processing on the software based on the second analysis result.

### Claim 13 (depends on 12)

The computer-readable storage medium according to claim 12, wherein the second neural network model is used to perform real-time analysis on the software.

### Claim 14 (depends on 12)

The computer-readable storage medium according to claim 12, wherein the method further comprises: analyzing, by the processor, the software by using the second neural network model, to obtain the first analysis result.

### Claim 15 (depends on 12)

The computer-readable storage medium according to claim 12, wherein the processor comprises a first neural network processing unit and a second neural network processing unit, and the method further comprises:
analyzing, by the first neural network processing unit, the software by using the second neural network model, to obtain the first analysis result; and
the analyzing, by a processor, the software by using a first neural network model, to obtain a second analysis result comprises:
when the first analysis result indicates that the software is not secure, enabling, by the second neural network processing unit, the first neural network model, and analyzing the software by using the first neural network model, to obtain the second analysis result.

### Claim 16 (depends on 12)

The computer-readable storage medium according to claim 12, wherein the method further comprises: analyzing, by the general-purpose processor, the software by using the second neural network model, to obtain the first analysis result.

### Claim 17 (depends on 12)

The computer-readable storage medium according to claim 12, wherein the first analysis result is obtained by analyzing, by using the second neural network model, a first observation event corresponding to the software.

### Claim 18 (depends on 12)

The computer-readable storage medium according to claim 12, wherein the second analysis result is obtained by the processor by analyzing, by using the first neural network model, a second observation event corresponding to the software.

### Claim 19 (depends on 12)

The computer-readable storage medium according to claim 12, wherein the security processing comprises at least one of the following: stopping running the software, limiting at least a part of functions of the software, triggering an alarm, or further performing security detection on the software.

### Claim 20 (depends on 12)

The computer-readable storage medium according to claim 12, wherein
the performing, by a general-purpose processor, security processing on the software based on the second analysis result comprises:
performing, by the general-purpose processor, the security processing on the software based on the first analysis result and the second analysis result.
