# US 2020/0125735 A1 · Non-intrusive method of detecting security flaws of a computer program

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

- Number: US 2020/0125735 A1
- Document ID: US20200125735A1
- Status: Published application
- Kind: A1
- Application number: 16/620,819
- Filed: 2018-05-11
- Published: 2020-04-23
- Earliest claimed: 2017-06-09
- Assignees: Cryptosense SAS
- Applicants: Cryptosense
- Inventors: Bertrand Bonnefoy-Claudet; Etienne Millon; Nathan Rebours; Graham Steel
- Web page: https://patentgrep.com/patent/US20200125735A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 8/61: Installation
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This disclosure relates to a non-intrusive method of detecting security flaws of a computer program APP. The method comprises a step of installing and executing an executable and non-instumentalized version of the program APP in a computer system 1, the computer system 1 comprising at least one cryptographic function able to be called by the program APP. It also comprises, in the course of the execution of the program, a step of recording in a tracing file the modalities of calls to the cryptographic function and, after the execution of the program, a step of analyzing the tracing file so as to devise a data structure of the states taken by the cryptographic object manipulated in the course of the execution of the program. The data structure is analyzed to detect calls to the cryptographic function that are liable to form a security flaw.

## Claims

### Claim at position 1

1-13. (canceled)

### Claim 14

A non-intrusive method for detecting security flaws in a computer program, the method comprising:
installing and executing an executable and non-instrumentalized version of the program in a computer system, the computer system comprising at least one cryptographic function able to be called by the program to manipulate at least one cryptographic object;
in a course of execution of the program, recording in a tracing file modalities of calls to the cryptographic function; and
after the execution of the program, analyzing the tracing file and creating a data structure of states taken by the cryptographic object manipulated in the course of the execution of the program responsive to the analyzing the tracing file, and analyzing the data structure to detect calls to the cryptographic function that are liable to form a security flaw.

### Claim 15 (depends on 14)

The method of claim 14, wherein recording in the tracing file comprises running a tracing program concurrently with the computer program to record in the tracing file.

### Claim 16 (depends on 14)

The method of claim 14, further comprising instrumentalizing the cryptographic function before executing the executable and non-instrumentalized version of the program to allow recording of the modalities of calls to the instrumentalized cryptographic function.

### Claim 17 (depends on 16)

The method of claim 16, further comprising replacing an original cryptographic function of the computer system with the instrumentalized cryptographic function.

### Claim 18 (depends on 14)

The method of claim 14, wherein recording in the tracing file comprises obtaining at least a portion of an execution stack when the cryptographic function is called by the program.

### Claim 19 (depends on 14)

The method of claim 14, wherein:
the computer system includes a plurality of cryptographic functions; and
wherein recording in the tracing file comprises recording only the modalities of calls to cryptographic-management and usage functions of the cryptographic function in the tracing file.

### Claim 20 (depends on 14)

The method of claim 14, wherein recording the modalities of calls to the cryptographic function in the tracing file comprises recording at least one of the modalities of calls selected from the group consisting of a name of the cryptographic function, arguments of the cryptographic function, the name of a module calling the cryptographic function, a time-stamping of the call to the cryptographic function, and a response returned by the cryptographic function in the tracing file.

### Claim 21 (depends on 14)

The method of claim 14, wherein recording the modalities of calls to the cryptographic function in the tracing file comprises recording a data pointer in the tracing file and accessing data designated by the data pointer to record the data designated by the data pointer in the tracing file.

### Claim 22 (depends on 14)

The method of claim 14, wherein analyzing the data structure comprises applying a rule base to the data structure.

### Claim 23 (depends on 22)

The method of claim 22, wherein applying the rule base to the data structure comprises implementing an inference engine configured to detect security flaws.

### Claim 24 (depends on 14)

The method of claim 14, further comprising recording a version number of the cryptographic function.

### Claim 25 (depends on 14)

The method of claim 14, further comprising filtering a detected security flaw.

### Claim 26

A computer program product comprising a computer-readable storage device storing instructions that, when the instructions are executed on a computing device, cause the computing device to perform a non-intrusive method of detecting security flaws of a computer program, the instructions comprising:
an execution function configured to execute an executable and non-instrumentalized version of the program in a computer system, the computer system comprising at least one cryptographic function able to be called by the program to manipulate at least one cryptographic object;
a recording function that, in a course of execution of the program, is configured to record in a tracing file modalities of calls to the cryptographic function; and
an analysis function that, after the execution of the program, is configured to analyze the tracing file and create a data structure of states taken by the cryptographic object manipulated in the course of the execution of the program responsive to the analyzing the tracing file, and analyze the data structure to detect calls to the cryptographic function that are liable to form a security flaw.

### Claim 27 (depends on 26)

The computer program product of claim 26, wherein the instructions stored on the computer-readable storage device further comprise an instrumentalizing function configured to instrumentalize the cryptographic function before execution of the executable and non-instrumentalized version of the program to allow recording of the modalities of calls to the instrumentalized cryptographic function.

### Claim 28 (depends on 26)

The computer program product of claim 26, wherein the recording function of the instructions stored on the computer-readable storage device is configured to record at least one of the modalities of calls selected from the group consisting of a name of the cryptographic function, arguments of the cryptographic function, the name of a module calling the cryptographic function, a time-stamping of the call to the cryptographic function, and a response returned by the cryptographic function in the tracing file.

### Claim 29 (depends on 26)

The computer program product of claim 26, wherein the recording function of the instructions stored on the computer-readable storage device is configured to record a data pointer in the tracing file and access data designated by the data pointer to record the data designated by the data pointer in the tracing file.

### Claim 30 (depends on 26)

The computer program product of claim 26, wherein the analysis function of the instructions stored on the computer-readable storage device is configured to apply a rule base to the data structure.

### Claim 31 (depends on 30)

The computer program product of claim 30, the analysis function of the instructions stored on the computer-readable storage device is configured to implement an inference engine configured to detect security flaws.

### Claim 32 (depends on 30)

The computer program product of claim 30, wherein the recording function of the instructions stored on the computer-readable storage device is configured to record a version number of the cryptographic function.

### Claim 33 (depends on 32)

The computer program product of claim 32, wherein the analysis function of the instructions stored on the computer-readable storage device is configured to select the rule base from a plurality of rule bases depending on the version number of the cryptographic function.
