# US 10,956,313 B2 · Application testing for security vulnerabilities

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

- Number: US 10,956,313 B2
- Document ID: US10956313B2
- Status: Granted
- Kind: B2
- Application number: 16/452,583
- Filed: 2019-06-26
- Published: 2019-10-17
- Granted: 2021-03-23
- Earliest claimed: 2015-06-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Roee Hay; Omer Tripp
- Web page: https://patentgrep.com/patent/US10956313B2

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3672: {Test management}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- 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

In an approach for testing an application for a security vulnerability, a processor inserts an instrumentation hook in the application to be tested, wherein the instrumentation hook is executed prior to a sink operation. A processor transmits a probe input value to the application to be tested. A processor detects a modification to the probe input value at the instrumentation hook by comparing the probe input value at the instrumentation hook to a signature value and detecting that the probe input value matches the signature value. A processor removes the sink operation from testing for the security vulnerability.

## Claims

### Claim 1

A computer system comprising:
one or more computer processors, one or more computer readable storage media, and program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising:
program instructions to, prior to a sink operation for a file system operation, insert an instrumentation hook in an application to be tested by editing binary code;
program instructions to transmit a probe input value shared by a security vulnerability;
program instructions to, subsequent to a sanitation process on the probe input value, detect that a modification to the probe input value matches a signature value, wherein the signature value includes a structured query language operation that is modified to not be executable; and
program instructions to remove the sink operation from testing for the security vulnerability and to remove tests corresponding to structured query language security vulnerabilities.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein the probe input value is selected from the group consisting of scripting language characters and structured query language characters.

### Claim 3 (depends on 1)

The computer system of claim 1, further comprising:
program instructions, stored on the computer readable storage media for execution by at least one of the one or more computer processors, to detect a set of vulnerability test operations corresponding to the probe input value;
program instructions, stored on the computer readable storage media for execution by at least one of the one or more computer processors, to detect that the probe input value matches a criterion at the instrumentation hook; and
program instructions, stored on the computer readable storage media for execution by at least one of the one or more computer processors, to test the sink operation with the set of vulnerability test operations.

### Claim 4 (depends on 1)

The computer system of claim 1, wherein the instrumentation hook monitors variable values in the application.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the sink operation includes a security sensitive operation.

### Claim 6 (depends on 5)

The computer system of claim 5, wherein the security sensitive operation is selected from the group consisting of a database operation, a file system operation, and a web based operation.

### Claim 7 (depends on 1)

The computer system of claim 1, wherein the program instructions to detect that the modification to the probe input value matches the signature value comprise:
program instructions to compare the probe input value at the instrumentation hook to the signature value; and
program instructions to detect that the probe input value matches the signature value.

### Claim 8

A computer-implemented method comprising:
prior to a sink operation for a file system operation, inserting, by one or more processors, an instrumentation hook in an application to be tested by editing binary code;
transmit, by one or more processors, a probe input value shared by a security vulnerability;
subsequent to a sanitation process on the probe input value, detecting, by one or more processors, that a modification to the probe input value matches a signature value, wherein the signature value includes a structured query language operation that is modified to not be executable; and
removing, by one or more processors, the sink operation from testing for the security vulnerability and removing tests corresponding to structured query language security vulnerabilities.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein the probe input value is selected from the group consisting of scripting language characters and structured query language characters.

### Claim 10 (depends on 8)

The computer-implemented method of claim 8, further comprising:
detecting, by one or more processors, a set of vulnerability test operations corresponding to the probe input value;
detecting, by one or more processors, that the probe input value matches a criterion at the instrumentation hook; and
testing, by one or more processors, the sink operation with the set of vulnerability test operations.

### Claim 11 (depends on 8)

The computer-implemented method of claim 8, wherein the instrumentation hook monitors variable values in the application.

### Claim 12 (depends on 8)

The computer-implemented method of claim 8, wherein the sink operation includes a security sensitive operation.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, wherein the security sensitive operation is selected from the group consisting of a database operation, a file system operation, and a web based operation.

### Claim 14 (depends on 8)

The computer-implemented method of claim 8, wherein detecting that the modification to the probe input value matches the signature value comprises:
comparing, by one or more processors, the probe input value at the instrumentation hook to the signature value; and
detecting, by one or more processors, that the probe input value matches the signature value.

### Claim 15

A computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to, prior to a sink operation for a file system operation, insert an instrumentation hook in an application to be tested by editing binary code;
program instructions to transmit a probe input value shared by a security vulnerability;
program instructions to, subsequent to a sanitation process on the probe input value, detect that a modification to the probe input value matches a signature value, wherein the signature value includes a structured query language operation that is modified to not be executable; and
program instructions to remove the sink operation from testing for the security vulnerability and to remove tests corresponding to structured query language security vulnerabilities.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the probe input value is selected from the group consisting of scripting language characters and structured query language characters.

### Claim 17 (depends on 15)

The computer program product of claim 15, further comprising:
program instructions, stored on the computer readable storage media, to detect a set of vulnerability test operations corresponding to the probe input value;
program instructions, stored on the computer readable storage media, to detect that the probe input value matches a criterion at the instrumentation hook; and
program instructions, stored on the computer readable storage media, to test the sink operation with the set of vulnerability test operations.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the instrumentation hook monitors variable values in the application.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the sink operation includes a security sensitive operation.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the security sensitive operation is selected from the group consisting of a database operation, a file system operation, and a web based operation.
