# US 2017/0293546 A1 · Automated software code review

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

- Number: US 2017/0293546 A1
- Document ID: US20170293546A1
- Status: Published application
- Kind: A1
- Application number: 15/093,013
- Filed: 2016-04-07
- Published: 2017-10-12
- Earliest claimed: 2016-04-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: William H. Frontiero; Spencer T. Murata
- Web page: https://patentgrep.com/patent/US20170293546A1

## CPC

- G06F 11/36: Prevention of errors by analysis, debugging or testing of software
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F 8/30: Creation or generation of source code
- G06F 8/70: Software maintenance or management
- G06F 11/302: {where the computing system component is a software system}
- 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Code monitoring and optimization may include code being monitored for potential security violations during an active code creation session. The procedure may include at least one of monitoring code for potential security violations during an active code creation session occurring on a client device, comparing the monitored code with an aggregate rule set stored in a repository, identifying at least one of a security violation or an error based on the comparing and identifying a correction to the at least one of the security violation or the error during the active code creation session.

## Claims

### Claim 1

A method, comprising:
in response to a predetermined coding event occurring, invoking a monitoring operation that identifies code that has been added since a last monitoring operation and monitors the identified code for potential security threats during an active code creation session occurring on a client device;
comparing the monitored code with an aggregate rule set stored in a data repository;
identifying at least one of a security violation and an error included in the monitored code based on the comparing; and
identifying a correction to the at least one of the security violation and the error during the active code creation session.

### Claim 2 (depends on 1)

The method of claim 1, wherein the data repository is located in a cloud environment.

### Claim 3 (depends on 1)

The method of claim 1, further comprising updating the aggregate rule set by uploading at least one of:
a most recently published rule set to the aggregate rule set; and
at least one change to the aggregate rule set.

### Claim 4 (depends on 1)

The method of claim 1, further comprising triggering a start point for the code to be monitored based on at least one of a time lapse, a predetermined number of keystrokes identified, a known variable being identified, a known object being identified, a known class being identified, a known error being identified, and a known security issue being identified.

### Claim 5 (depends on 1)

The method of claim 1, further comprising initiating the monitoring operation via an integrated development environment (IDE) during the code creation session, wherein the IDE is configured to operate on or via the client device.

### Claim 6 (depends on 1)

The method of claim 1, wherein the monitoring operation is invoked in response to determining that a new code segment has been added during the code creation session.

### Claim 7 (depends on 1)

The method of claim 1, further comprising providing the correction to the at least one of the security violation or the error during the active code creation session.

### Claim 8

An apparatus, comprising:
a data repository; and
a processor configured to:
in response to a predetermined coding event occurring, invoke a monitoring operation that identifies code that has been added since a last monitoring operation and monitors the identified code for potential security threats, during an active code creation session that occurs on a client device;
compare the monitored code with an aggregate rule set stored in the data repository;
identify at least one of a security violation and an error included in the monitored code based on the comparison; and
identify a correction to the at least one of the security violation and the error during the active code creation session.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the data repository is located in a cloud environment.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to update the aggregate rule set by an upload of at least one of:
a most recently published rule set to the aggregate rule set; and
at least one change to the aggregate rule set.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to trigger a start point for the code to be monitored based on at least one of a time lapse, a predetermined number of keystrokes identified, a known variable being identified, a known object being identified, a known class being identified, a known error being identified, and a known security issue being identified.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to initiate the monitoring operation via an integrated development environment (IDE) during the code creation session, wherein the IDE is configured to operate on or via the client device.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein the processor is configured to invoke the monitoring operation in response to determining that a new code segment has been added during the code creation session.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to provide the correction to the at least one of the security violation and the error during the active code creation session.

### Claim 15

A non-transitory computer readable storage medium configured to store instructions that when executed cause a processor to perform:
in response to a predetermined coding event occurring, invoking a monitoring operation that identifies code that has been added since a last monitoring operation and monitors the identified code for potential security threats during an active code creation session occurring on a client device;
comparing the monitored code with an aggregate rule set stored in a data repository;
identifying at least one of a security violation and an error included in the monitored code based on the comparing; and
identifying a correction to the at least one of the security violation and the error during the active code creation session.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the data repository is located in a cloud environment.

### Claim 17 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the processor is further configured to perform updating the aggregate rule set by uploading at least one of:
a most recently published rule set to the aggregate rule set; and
at least one change to the aggregate rule set.

### Claim 18 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the processor is further configured to perform triggering a start point for the code to be monitored based on at least one of a time lapse, a predetermined number of keystrokes identified, a known variable being identified, a known object being identified, a known class being identified, a known error being identified, and a known security issue being identified.

### Claim 19 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the processor is further configured to perform initiating the monitoring operation via an integrated development environment (IDE) during the code creation session, wherein the IDE is configured to operate on or via the client device.

### Claim 20 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the monitoring operation is invoked in response to determining that a new code segment has been added during the code creation session; and
the correction to the at least one of the security violation or and the error is provided during the active code creation session.

### Claim 21 (depends on 1)

The method of claim 1, wherein the monitoring operation identifies one or more classes of code that have been added since a last monitoring operation, pre-compiles the identified classes, and determines at least one class from the pre-compiled classes is a potential security threat based on compiled code included in the at least one class.
