# US 2022/0067168 A1 · Method and apparatus for detecting and remediating security vulnerabilities in computer readable code

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

- Number: US 2022/0067168 A1
- Document ID: US20220067168A1
- Status: Published application
- Kind: A1
- Application number: 17/005,685
- Filed: 2020-08-28
- Published: 2022-03-03
- Earliest claimed: 2020-08-28
- Assignees: Secure Code Warrior Limited
- Applicants: Secure Code Warrior Limited
- Inventors: Pieter DE CREMER; Matias MADOU; Nathan DESMET; Colin WONG
- Web page: https://patentgrep.com/patent/US20220067168A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 9/451: Execution arrangements for user interfaces
- G06F 21/562: {Static detection}
- G06F 21/563: {by source code analysis}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes processing computer readable code viewable by way of a user interface to determine whether the computer readable code is in compliance with one or more guidelines. The one or more guidelines include at least one rule and one or more of a hint to correct the computer readable code based on a determination that the computer readable code is non-compliant, one or more compliance levels based on a degree or risk of non-compliance, a category of the at least one rule, a remediation to correct the computer readable code based on the determination that the computer readable code is non-compliant, or a message indicative of a training sequence associated with the at least one rule. The method also includes causing the at least one of the hint, the one or more compliance levels, the remediation or the message to be displayed by way of the user interface.

## Claims

### Claim 1

A method, comprising:
processing, by a processor, computer readable code input into a user interface field and simultaneously viewable by way of a user interface including the user interface field, to determine whether the computer readable code is in compliance with one or more guidelines, the one or more guidelines comprising:
at least one rule; and
one or more of:
a hint to correct the computer readable code based on a determination that the computer readable code is non-compliant with the at least one rule;
one or more compliance levels based on at least one of a degree of non-compliance with the at least one rule or an amount of risk associated with the determination that the computer readable code is non-compliant with the at least one rule;
a category of the at least one rule;
a remediation to correct the computer readable code based on the determination that the computer readable code is non-compliant with the at least one rule; or
a message indicative of a training sequence associated with the at least one rule;
causing the at least one of the hint, the one or more compliance levels, the remediation or the message to be displayed by way of the user interface based on a determination that the computer readable code is non-compliant with the at least one rule;
processing one or more changes made to the computer readable code input into the user interface field in response to the displaying of the least one of the hint, the one or more compliance levels, the remediation or the message to determine whether the one or more changes cause the computer readable code to be in compliance with the at least one rule; and
causing a compliance status to be displayed by way of the user interface indicating whether the one or more changes made to the computer readable code input into the user interface field cause the computer readable code to be in compliance with the at least one rule.

### Claim 2 (depends on 1)

The method of claim 1, wherein the compliance status is displayed based on the one or more changes made to the computer readable code such that the compliance status is simultaneously viewable with the computer readable code as the one or more changes are being made.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
causing the compliance status to change from a non-compliant indicator to a compliant indicator as the one or more changes to the computer readable code are made in real-time.

### Claim 4 (depends on 3)

The method of claim 3, wherein the compliant indicator is based on a degree of compliance with the at least one rule and the compliant indicator is at least one of one or more partially compliant level indicators or a fully compliant indicator, the one or more partially compliant level indicators being indicative of a first degree of compliance between non-compliant and fully compliant with the at least one rule, or a second degree of compliance between the first degree of compliance and fully compliant with the at least one rule.

### Claim 5 (depends on 3)

The method of claim 3, wherein the non-compliant indicator and the compliant indicator display a quantified amount of risk associated with the determination that the computer readable code is non-compliant with the at least one rule.

### Claim 6 (depends on 3)

The method of claim 3, wherein the compliance status is a text message.

### Claim 7 (depends on 3)

The method of claim 3, wherein the compliance status is a color-coded highlighting of at least the one or more changes made to the computer readable code, wherein the non-compliant indicator is a first color and the compliant indicator is a second color different from the first color.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
causing the non-compliant computer readable code to be displayed differently compared to a portion of the computer readable code that is compliant with the at least one rule.

### Claim 9 (depends on 1)

The method of claim 1, wherein the one or more guidelines further comprises the hint, the remediation, and the message, and at least one of the one or more compliance levels or the category of the at least one rule, and the method further comprises:
causing the hint, the remediation or the message to be displayed based on the compliance level or the category of the at least one rule.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
detecting one or more of an amount of time taken to make the changes to the computer readable code to cause the computer readable code to be in compliance with the at least one rule, or a quantity of attempts to make the changes to the computer readable code to cause the computer readable code to be in compliance with the at least one rule; and
causing the hint, the remediation or the message to be displayed based on the amount of time or the quantity of attempts.

### Claim 11

An apparatus, comprising:
at least one processor; and
a memory having computer readable instructions stored thereon that, when executed by the at least one processor, cause the apparatus to:
process computer readable code input into a user interface field and simultaneously viewable by way of a user interface including the user interface field, to determine whether the computer readable code is in compliance with one or more guidelines, the one or more guidelines comprising:
at least one rule; and
one or more of:
a hint to correct the computer readable code based on a determination that the computer readable code is non-compliant with the at least one rule;
one or more compliance levels based on at least one of a degree of non-compliance with the at least one rule or an amount of risk associated with the determination that the computer readable code is non-compliant with the at least one rule;
a category of the at least one rule;
a remediation to correct the computer readable code based on the determination that the computer readable code is non-compliant with the at least one rule; or
a message indicative of a training sequence associated with the at least one rule;
cause the at least one of the hint, the one or more compliance levels, the remediation or the message to be displayed by way of the user interface based on a determination that the computer readable code is non-compliant with the at least one rule;
process one or more changes made to the computer readable code input into the user interface field in response to the displaying of the least one of the hint, the one or more compliance levels, the remediation or the message to determine whether the one or more changes cause the computer readable code to be in compliance with the at least one rule; and
cause a compliance status to be displayed by way of the user interface indicating whether the one or more changes made to the computer readable code input into the user interface field cause the computer readable code to be in compliance with the at least one rule.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the compliance status is displayed based on the one or more changes made to the computer readable code such that the compliance status is simultaneously viewable with the computer readable code as the one or more changes are being made.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the apparatus is further caused to:
cause the compliance status to change from a non-compliant indicator to a compliant indicator as the one or more changes to the computer readable code are made in real-time.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the compliant indicator is based on a degree of compliance with the at least one rule and the compliant indicator is at least one of one or more partially compliant level indicators or a fully compliant indicator, the one or more partially compliant level indicators being indicative of a first degree of compliance between non-compliant and fully compliant with the at least one rule, or a second degree of compliance between the first degree of compliance and fully compliant with the at least one rule.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the non-compliant indicator and the compliant indicator display a quantified amount of risk associated with the determination that the computer readable code is non-compliant with the at least one rule.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein the apparatus is further caused to:
cause the non-compliant computer readable code to be displayed differently compared to a portion of the computer readable code that is compliant with the at least one rule.

### Claim 17 (depends on 11)

The apparatus of claim 11, wherein the one or more guidelines further comprises the hint, the remediation, and the message, and at least one of the one or more compliance levels or the category of the at least one rule, and the apparatus is further caused to:
cause the hint, the remediation or the message to be displayed based on the compliance level or the category of the at least one rule.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the apparatus is further caused to:
detect one or more of an amount of time taken to make the changes to the computer readable code to cause the computer readable code to be in compliance with the at least one rule, or a quantity of attempts to make the changes to the computer readable code to cause the computer readable code to be in compliance with the at least one rule; and
cause the hint, the remediation or the message to be displayed based on the amount of time or the quantity of attempts.

### Claim 19

A non-transitory computer readable medium having instructions stored thereon that, when executed by at least one processor, cause an apparatus to:
process computer readable code input into a user interface field and simultaneously viewable by way of a user interface including the user interface field, to determine whether the computer readable code is in compliance with one or more guidelines, the one or more guidelines comprising:
at least one rule; and
one or more of:
a hint to correct the computer readable code based on a determination that the computer readable code is non-compliant with the at least one rule;
one or more compliance levels based on at least one of a degree of non-compliance with the at least one rule or an amount of risk associated with the determination that the computer readable code is non-compliant with the at least one rule;
a category of the at least one rule;
a remediation to correct the computer readable code based on the determination that the computer readable code is non-compliant with the at least one rule; or
a message indicative of a training sequence associated with the at least one rule;
cause the at least one of the hint, the one or more compliance levels, the remediation or the message to be displayed by way of the user interface based on a determination that the computer readable code is non-compliant with the at least one rule;
process one or more changes made to the computer readable code input into the user interface field in response to the displaying of the least one of the hint, the one or more compliance levels, the remediation or the message to determine whether the one or more changes cause the computer readable code to be in compliance with the at least one rule; and
cause a compliance status to be displayed by way of the user interface indicating whether the one or more changes made to the computer readable code input into the user interface field cause the computer readable code to be in compliance with the at least one rule.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the compliance status is displayed based on the one or more changes made to the computer readable code such that the compliance status is simultaneously viewable with the computer readable code as the one or more changes are being made.
