# US 10,565,384 B2 · Auto-injection of security protocols

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

- Number: US 10,565,384 B2
- Document ID: US10565384B2
- Status: Granted
- Kind: B2
- Application number: 15/629,401
- Filed: 2017-06-21
- Published: 2017-12-21
- Granted: 2020-02-18
- Earliest claimed: 2016-06-21
- Assignees: Shadow-Soft, LLC
- Applicants: Shadow-Soft, LLC
- Inventors: Tony Stafford; Derrick Sutherland
- Web page: https://patentgrep.com/patent/US10565384B2

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 8/315: {Object-oriented languages}
- G06F 8/316: {Aspect-oriented programming techniques}
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 8/77: Software metrics
- G06F 8/70: Software maintenance or management
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for automatically enhancing security and fixing security vulnerabilities in the source code of a computer program in an object oriented run time environment includes evaluating the source code file of a monitored computer program. The source code file includes a plurality of class files. Each session includes two or more session segments. A security assessment on each of the plurality of class files is performed to identify one or more potential security issues associated with the plurality of class files. One or more security controls configured to address the identified potential security issues are automatically injected into a source code of one or more class files identified as having potential security issues. The automatically modified source code file of the monitored computer program is deployed to the run-time environment.

## Claims

### Claim 1

A method for automatically enhancing security and fixing security vulnerabilities in the source code of a computer program in an object-oriented run-time environment in a web application security system, comprising steps of:
evaluating the source code file of a monitored computer program, the source code file comprising a plurality of class files, containing byte codes, that are produced by a compiler from the source code file and executed in a virtual environment;
performing a security assessment on each of the plurality of class files to identify one or more potential security issues associated with the plurality of class files to fix the security vulnerabilities in the source code file in a level of the web application in the object-oriented run-time environment;
utilizing byte code injection to add in web security controls against the web applications by automatically injecting into a source code of one or more class files, identified as having potential security issues, one or more security controls configured to address the identified potential security issues; and
causing the automatically modified source code file of the monitored computer program to be deployed to the object-oriented run-time environment.

### Claim 2 (depends on 1)

The method of claim 1, wherein the step of performing the security assessment further comprises determining whether network authentication controls are required for an assessed class file and wherein the step of automatically injecting one or more security controls further comprises automatically injecting one or more authentication controls into the source code of the assessed class file.

### Claim 3 (depends on 1)

The method of claim 1, wherein the step of performing the security assessment further comprises determining whether authorization controls are required for an assessed class file and wherein the step of automatically injecting one or more security controls further comprises automatically injecting one or more authorization controls into the source code of the assessed class file.

### Claim 4 (depends on 1)

The method of claim 1, wherein the step of performing the security assessment further comprises determining whether auditing controls are required for an assessed class file and wherein the step of automatically injecting one or more security controls further comprises automatically injecting one or more auditing controls into the source code of the assessed class file.

### Claim 5 (depends on 4)

The method of claim 4, wherein the step of determining whether auditing controls are required for an assessed class file further comprises searching a plurality of log files and searching a plurality of audit records associated with the monitored computer program.

### Claim 6 (depends on 1)

The method of claim 1, wherein the step of performing the security assessment further comprises determining SQL injection attack vulnerability for an assessed class file and wherein the step of automatically injecting one or more security controls further comprises automatically injecting SQL injection attack safety protection method into the source code of the assessed class file.

### Claim 7 (depends on 1)

The method of claim 1, wherein the step of performing the security assessment further comprises determining cross-site scripting (XSS) attack vulnerability for an assessed class file and wherein the step of automatically injecting one or more security controls further comprises automatically injecting XSS attack safety protection method into the source code of the assessed class file.

### Claim 8 (depends on 1)

The method of claim 1, wherein the step of performing a security assessment on each of the plurality of class files further comprises generating an index file comprising one or more index links to one or more methods associated with the plurality of class files.

### Claim 9 (depends on 1)

The method of claim 1, further comprising sending results of the performed security assessment to a user.

### Claim 10

A computer system comprising:
a non-transitory memory device for storing computer readable program code; and at least one hardware processor in communication with the memory device, the hardware processor being operative with the computer readable program code to:
evaluate the source code file of a monitored computer program, the source code file comprising a plurality of class files, containing byte codes, that are produced by a compiler from the source code file and executed in a virtual environment;
perform a security assessment on each of the plurality of class files to identify one or more potential security issues associated with the plurality of class files to fix the security vulnerabilities in the source code file in a level of the web application in the object-oriented run-time environment;
utilize byte code injection to add in web security controls against the web applications by automatically injecting into a source code of one or more class files, identified as having potential security issues, one or more security controls configured to address the identified potential security issues; and
cause the automatically modified source code file of the monitored computer program to be deployed to a run-time environment.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein perform the security assessment further comprises determine whether network authentication controls are required for an assessed class file and wherein automatically inject one or more security controls further comprises automatically inject one or more authentication controls into the source code of the assessed class file.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein perform the security assessment further comprises determine whether authorization controls are required for an assessed class file and wherein automatically inject one or more security controls further comprises automatically inject one or more authorization controls into the source code of the assessed class file.

### Claim 13 (depends on 10)

The computer system of claim 10, wherein perform the security assessment further comprises determine whether auditing controls are required for an assessed class file and wherein automatically inject one or more security controls further comprises automatically inject one or more auditing controls into the source code of the assessed class file.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein determine whether auditing controls are required for an assessed class file further comprises search a plurality of log files and search a plurality of audit records associated with the monitored computer program.

### Claim 15 (depends on 10)

The computer system of claim 10, wherein perform the security assessment further comprises determine SQL injection attack vulnerability for an assessed class file and wherein automatically inject one or more security controls further comprises automatically inject SQL injection attack safety protection method into the source code of the assessed class file.

### Claim 16 (depends on 10)

The computer system of claim 10, wherein perform the security assessment further comprises determine cross-site scripting (XSS) attack vulnerability for an assessed class file and wherein automatically inject one or more security controls further comprises automatically inject XSS attack safety protection method into the source code of the assessed class file.

### Claim 17 (depends on 10)

The computer system of claim 10, wherein perform a security assessment on each of the plurality of class files further comprises generate an index file comprising one or more index links to one or more methods associated with the plurality of class files.

### Claim 18

One or more non-transitory computer-readable storage media, having computer-executable instructions embodied thereon, wherein when executed by at least one hardware processor, the computer-executable instructions cause the hardware processor to:
evaluate the source code file of a monitored computer program, the source code file comprising a plurality of class files, containing byte codes, that are produced by a compiler from the source code file and executed in a virtual environment;
perform a security assessment on each of the plurality of class files to identify one or more potential security issues associated with the plurality of class files to fix the security vulnerabilities in the source code file in a level of the web application in the object-oriented run-time environment;
utilize byte code injection to add in web security controls against the web applications by automatically injecting into a source code of one or more class files, identified as having potential security issues, one or more security controls configured to address the identified potential security issues; and
cause the automatically modified source code file of the monitored computer program to be deployed to a run-time environment.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage media of claim 18, wherein perform the security assessment further comprises determine whether network authentication controls are required for an assessed class file and wherein automatically inject one or more security controls further comprises automatically inject one or more authentication controls into the source code of the assessed class file.

### Claim 20 (depends on 18)

The non-transitory computer-readable storage media of claim 18, wherein perform the security assessment further comprises determine whether authorization controls are required for an assessed class file and wherein automatically inject one or more security controls further comprises automatically inject one or more authorization controls into the source code of the assessed class file.
