# US 2021/0334367 A1 · Automated security algorithm identification for software distributions

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

- Number: US 2021/0334367 A1
- Document ID: US20210334367A1
- Status: Published application
- Kind: A1
- Application number: 16/856,423
- Filed: 2020-04-23
- Published: 2021-10-28
- Earliest claimed: 2020-04-23
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Pierre-Yves Chibon; Leigh Griffin
- Web page: https://patentgrep.com/patent/US20210334367A1

## CPC

- G06F 21/554: {involving event detection and direct action}
- 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
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Providing automated security algorithm identification in software distributions is disclosed herein. In one example, a processor device receives a source code fragment representing a difference between a given source code file of a first software distribution and a corresponding source code file of a second software distribution. The processor device determines whether the source code fragment matches any security profile of one or more security profiles that each corresponds to an approved security algorithm. If so, the processor device generates an approval notification to indicate that the source code fragment comprises the approved security algorithm. However, if the processor device determines that the source code fragment does not match any security profile of the one or more security profiles, the processor device generates a warning notification. In this manner, preparation of software distributions may be performed more efficiently and reliably, and with decreased overhead relative to manual security algorithm identification.

## Claims

### Claim 1

A method, comprising:
receiving, by a first processor device, a first source code fragment representing a difference between a first source code file of a first software distribution and a second source code file of a second software distribution;
determining that the first source code fragment matches any security profile of one or more security profiles, wherein each security profile of the one or more security profiles corresponds to an approved security algorithm; and
responsive to determining that the first source code fragment matches any security profile of the one or more security profiles, generating an approval notification indicating that the first source code fragment comprises the approved security algorithm.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving a second source code fragment representing a difference between a third source code file of a third software distribution and a fourth source code file of a fourth software distribution;
determining that the second source code fragment does not match any security profile of the one or more security profiles; and
responsive to determining that the second source code fragment does not match any security profile of the one or more security profiles, generating a warning notification indicating that the second source code fragment comprises an unrecognized algorithm.

### Claim 3 (depends on 2)

The method of claim 2, further comprising, responsive to determining that the second source code fragment does not match any security profile of the one or more security profiles, generating a new security profile corresponding to the second source code fragment.

### Claim 4 (depends on 2)

The method of claim 2, wherein the warning notification comprises one or more of an automated notification to a CI system and an automated communication to a developer.

### Claim 5 (depends on 1)

The method of claim 1, wherein the approval notification comprises an automated notification to a continuous integration (CI) system.

### Claim 6 (depends on 1)

The method of claim 1, wherein each security profile of the one or more security profiles comprises one or more of:
an identifier of the approved security algorithm;
a classification of the approved security algorithm;
an exemplary code fragment of the approved security algorithm;
a programming language identifier indicating a programming language in which the exemplary code fragment of the approved security algorithm is implemented; and
a programming paradigm identifier indicating a programming paradigm in which the exemplary code fragment of the approved security algorithm is implemented.

### Claim 7 (depends on 1)

The method of claim 1, wherein the second software distribution precedes the first software distribution.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
receiving a compressed archive comprising the first source code file of the first software distribution;
decompressing the first source code file from the compressed archive;
determining that the second software distribution preceding the first software distribution exists in a repository; and
responsive to determining that the second software distribution exists in the repository, generating the first source code fragment using a file differencing operation.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining that the first source code fragment matches any security profile of the one or more security profiles comprises comparing an attribute of the first source code fragment with a corresponding attribute of each security profile of the one or more security profiles.

### Claim 10 (depends on 1)

The method of claim 1, further comprising training a machine language model using exemplary code fragments for each security profile of the one or more security profiles;
wherein determining that the first source code fragment matches any security profile of the one or more security profiles comprises applying the machine language model to the source code fragment.

### Claim 11

A computing system, comprising:
a first computing device comprising a first memory and a first processor device coupled to the first memory, the first processor device to:
receive a first source code fragment representing a difference between a first source code file of a first software distribution and a second source code file of a second software distribution;
determine that the first source code fragment matches any security profile of one or more security profiles, wherein each security profile of the one or more security profiles corresponds to an approved security algorithm; and
responsive to determining that the first source code fragment matches any security profile of the one or more security profiles, generate an approval notification indicating that the first source code fragment comprises the approved security algorithm.

### Claim 12 (depends on 11)

The computing system of claim 11, wherein the first processor device is further to:
receive a second source code fragment representing a difference between a third source code file of a third software distribution and a fourth source code file of a fourth software distribution;
determine that the second source code fragment does not match any security profile of the one or more security profiles; and
responsive to determining that the second source code fragment does not match any security profile of the one or more security profiles, generate a warning notification indicating that the second source code fragment comprises an unrecognized algorithm.

### Claim 13 (depends on 12)

The computing system of claim 12, wherein the processor device is further to, responsive to determining that the second source code fragment does not match any security profile of the one or more security profiles, generate a new security profile corresponding to the second source code fragment.

### Claim 14 (depends on 12)

The computing system of claim 12, wherein the warning notification comprises one or more of an automated notification to a CI system and an automated communication to a developer.

### Claim 15 (depends on 11)

The computing system of claim 11, wherein the approval notification comprises an automated notification to a continuous integration (CI) system.

### Claim 16 (depends on 11)

The computing system of claim 11, wherein each security profile of the one or more security profiles comprises one or more of:
an identifier of the approved security algorithm;
a classification of the approved security algorithm;
an exemplary code fragment of the approved security algorithm;
a programming language identifier indicating a programming language in which the exemplary code fragment of the approved security algorithm is implemented; and
a programming paradigm identifier indicating a programming paradigm in which the exemplary code fragment of the approved security algorithm is implemented.

### Claim 17 (depends on 11)

The computing system of claim 11, wherein the second software distribution precedes the first software distribution.

### Claim 18 (depends on 17)

The computing system of claim 17, further comprising:
a second computing device comprising a second memory and a second processor device coupled to the memory, the second processor device to:
receive a compressed archive comprising the first source code file of the first software distribution;
decompress the first source code file from the compressed archive;
determine that the second software distribution preceding the first software distribution exists in a repository; and
responsive to determining that the second software distribution exists in the repository, generate the first source code fragment using a file differencing operation.

### Claim 19 (depends on 11)

The computing system of claim 11, wherein to determine that the first source code fragment matches any security profile of the one or more security profiles is to compare an attribute of the first source code fragment with a corresponding attribute of each security profile of the one or more security profiles.

### Claim 20

A computer program product stored on a non-transitory computer-readable storage medium and including instructions to cause a processor device to:
receive a first source code fragment representing a difference between a first source code file of a first software distribution and a second source code file of a second software distribution;
determine that the first source code fragment matches any security profile of one or more security profiles, wherein each security profile of the one or more security profiles corresponds to an approved security algorithm; and
responsive to determining that the first source code fragment matches any security profile of the one or more security profiles, generate an approval notification indicating that the first source code fragment comprises the approved security algorithm.
