# US 10,956,562 B2 · Developing applications using precise static security analysis

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

- Number: US 10,956,562 B2
- Document ID: US10956562B2
- Status: Granted
- Kind: B2
- Application number: 15/622,424
- Filed: 2017-06-14
- Published: 2018-12-20
- Granted: 2021-03-23
- Earliest claimed: 2017-06-14
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Salvatore A. Guarnieri; Marco Pistoia; Omer Tripp
- Web page: https://patentgrep.com/patent/US10956562B2

## CPC

- G06F 21/54: by adding security routines or objects to programs
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A security analysis of an application is performed by encoding predicates during a first operation by asserting a set of data flow facts comprising a mapping from a variable to a security-relevant substring of a string of the application. A respective truth value is associated with each data flow fact of the set of data flow facts. The set of data flow facts and each truth value are stored in a tangible computer-readable memory device. The truth value of at least one data flow fact of the set of data flow facts is updated in at least one subsequent operation using a set of abstract transformers to eliminate or reduce a security vulnerability in the application.

## Claims

### Claim 1

A computer-implemented method for performing a security analysis of an application, the method comprising:
prior to running a security-sensitive operation involving a variable assigned an input value received from a user, encoding a respective set of one or more predicates during a first operation by asserting a corresponding set of data flow facts each comprising a mapping from the variable to a set of security-relevant substrings of a string of the application, the set of security-relevant substrings required to be eliminated from the application, and the set of one or more predicates used to define a set of all objects that have at least one property in common;
associating a respective truth value with each data flow fact of the corresponding set of data flow facts;
storing the corresponding set of data flow facts and each respective truth value in a tangible computer-readable memory device; and
updating the respective truth value of at least one data flow fact of the corresponding set of data flow facts in at least one subsequent operation using a set of abstract transformers to eliminate or reduce a security vulnerability in the application, an abstract transformer of said set comprising a replace operation for deleting a substring of the application, such that a set of one or more undeleted substrings remains.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1 wherein the first operation further comprises a static security analysis of the application.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1 wherein the first operation further comprises a dynamic security analysis of the application using an instrumented interpreter.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1 wherein the first operation further comprises a static and dynamic security analysis within an instrumented interpreter, and the corresponding set of data flow facts further comprises one or more assertions indicative of whether or not each of one or more substrings contained within the string of the application are untrusted.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1 further comprising joining the set of one or more undeleted substrings by performing a union operation on the set of one or more undeleted substrings to generate a joined set of substrings.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5 further comprising performing a differencing operation on the joined set of substrings to provide an intersected joined set of substrings.

### Claim 7

A computer program product for performing a security analysis of an application, the computer program product comprising a computer-readable storage medium having a computer-readable program stored therein, wherein the computer-readable program, when executed on a computing device including at least one processor, causes the at least one processor to:
prior to running a security-sensitive operation involving a variable assigned an input value received from a user, encode a respective set of one or more predicates during a first operation by asserting a corresponding set of data flow facts each comprising a mapping from the variable to a set of security-relevant substrings of a string of the application, the set of security-relevant substrings required to be eliminated from the application, and the set of one or more predicates used to define a set of all objects that have at least one property in common;
associate a respective truth value with each data flow fact of the corresponding set of data flow facts;
store the corresponding set of data flow facts and each respective truth value in a tangible computer-readable memory device; and
update the respective truth value of at least one data flow fact of the corresponding set of data flow facts in at least one subsequent operation using a set of abstract transformers to eliminate or reduce a security vulnerability in the application, an abstract transformer of said set comprising a replace operation for deleting a substring of the application, such that a set of one or more undeleted substrings remains.

### Claim 8 (depends on 7)

The computer program product of claim 7 wherein the first operation further comprises a static security analysis of the application.

### Claim 9 (depends on 7)

The computer program product of claim 7 wherein the first operation further comprises a dynamic security analysis of the application using an instrumented interpreter.

### Claim 10 (depends on 7)

The computer program product of claim 7 wherein the first operation further comprises a static and dynamic security analysis within an instrumented interpreter, and the corresponding set of data flow facts further comprises one or more assertions indicative of whether or not each of one or more substrings contained within the string of the application are untrusted.

### Claim 11 (depends on 7)

The computer program product of claim 7 further comprising instructions for joining the set of one or more undeleted substrings by performing a union operation on the set of one or more undeleted substrings to generate a joined set of substrings.

### Claim 12 (depends on 11)

The computer program product of claim 11 further comprising instructions for performing a differencing operation on the joined set of substrings to provide an intersected joined set of substrings.

### Claim 13

An apparatus for performing a security analysis of an application, the apparatus comprising a processor and a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to:
prior to running a security-sensitive operation involving a variable assigned an input value received from a user, encode a respective set of one or more predicates during a first operation by asserting a corresponding set of data flow facts each comprising a mapping from the variable to a set of security-relevant substrings of a string of the application, the set of security-relevant substrings required to be eliminated from the application, and the set of one or more predicates used to define a set of all objects that have at least one property in common;
associate a respective truth value with each data flow fact of the corresponding set of data flow facts;
store the corresponding set of data flow facts and each respective truth value in a tangible computer-readable memory device; and
update the respective truth value of at least one data flow fact of the corresponding set of data flow facts in at least one subsequent operation using a set of abstract transformers to eliminate or reduce a security vulnerability in the application, an abstract transformer of said set comprising a replace operation for deleting a substring of the application, such that a set of one or more undeleted substrings remains.

### Claim 14 (depends on 13)

The apparatus of claim 13 wherein the first operation further comprises a static security analysis of the application.

### Claim 15 (depends on 13)

The apparatus of claim 13 wherein the first operation further comprises a dynamic security analysis of the application using an instrumented interpreter.

### Claim 16 (depends on 13)

The apparatus of claim 13 wherein the first operation further comprises a static and dynamic security analysis within an instrumented interpreter, and the corresponding set of data flow facts further comprises one or more assertions indicative of whether or not each of one or more substrings contained within the string of the application are untrusted.
