# US 2023/0069334 A1 · Detecting vulnerabilities in virtual instances in a cloud environment utilizing infrastructure as code

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

- Number: US 2023/0069334 A1
- Document ID: US20230069334A1
- Status: Published application
- Kind: A1
- Application number: 17/820,433
- Filed: 2022-08-17
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Wiz, Inc.
- Applicants: Wiz, Inc.
- Inventors: Roy REZNIK; Yinon COSTICA; Osher HAZAN; Raaz HERZBERG
- Web page: https://patentgrep.com/patent/US20230069334A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 21/568: {eliminating virus, restoring damaged files}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for detecting a vulnerable workload deployed in a cloud environment based on a code object of an infrastructure as code file utilizes a security graph. The method includes: extracting the code object from a state file, which includes a mapping between the code object to a first deployed workload and a second deployed workload; generating a node representing the code object in the security graph; generating a connection in the security graph between the node representing the code object and a node representing the first workload and a connection between the node representing the code object and a node representing the second workload; and determining that the second workload is a vulnerable workload, in response to detecting that the first workload node is associated with a cybersecurity threat, and that the nodes representing the workloads are each connected to the node representing the code object.

## Claims

### Claim 1

A method for detecting a vulnerable workload deployed in a cloud computing environment based on a code object of an infrastructure as code (IaC) file utilizing a security graph, comprising:
extracting a code object, of a deployment code, from a state file, the state file including a mapping between the code object to a first workload deployed in the cloud computing environment and a second workload deployed in the cloud computing environment;
generating a node representing the code object in the security graph, wherein the security graph includes a representation of the cloud computing environment;
generating a connection in the security graph between the node representing the code object and a node representing the first workload;
generating a connection in the security graph between the node representing the code object and a node representing the second workload; and
determining that the second workload is a vulnerable workload which includes a cybersecurity threat, in response to detecting that the first workload node is associated with a cybersecurity threat, and that the node representing the second workload and the node representing the first workload are each connected to the node representing the code object.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
inspecting the first workload to detect the cybersecurity threat;
generating a node representing the cybersecurity threat in the security graph; and
generating a connection in the security graph between the node representing the cybersecurity threat and the node representing the first workload.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
detecting a plurality of nodes connected to the node representing the cybersecurity threat, each node of the plurality of nodes representing a workload deployed in the cloud computing environment;
detecting a group of nodes of the plurality of nodes, each node of the group having a common value of an attribute; and
detecting a node representing a code object connect to each node of the group of nodes.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
generating a notification to indicate that each workload representing by a node of the group of nodes includes the cybersecurity threat.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
generating a mitigation action based on the code object.

### Claim 6 (depends on 5)

The method of claim 5, wherein the mitigation action includes a preprogrammed code to replace a portion of code in the code object.

### Claim 7 (depends on 3)

The method of claim 3, further comprising:
determining that the code object includes a cybersecurity threat in response to traversing the graph and determining that the node representing the code object is connected to each node of the group of nodes.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
generating a connection between the node representing the code object and the node representing the cybersecurity threat.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
searching a state file for a predetermined data field, the predetermined data field indicating that code object.

### Claim 10

A non-transitory computer readable medium having stored thereon instructions for causing a processing circuitry to execute a process, the process comprising:
extracting a code object, of a deployment code, from a state file, the state file including a mapping between the code object to a first workload deployed in the cloud computing environment and a second workload deployed in the cloud computing environment;
generating a node representing the code object in the security graph, wherein the security graph includes a representation of the cloud computing environment;
generating a connection in the security graph between the node representing the code object and a node representing the first workload;
generating a connection in the security graph between the node representing the code object and a node representing the second workload; and
determining that the second workload is a vulnerable workload which includes a cybersecurity threat, in response to detecting that the first workload node is associated with a cybersecurity threat, and that the node representing the second workload and the node representing the first workload are each connected to the node representing the code object.

### Claim 11

A system for detecting a vulnerable workload deployed from an object in code in a cloud computing environment, comprising:
a processing circuitry; and
a memory, the memory containing instructions that, when executed by the processing circuitry, configure the system to:
extract a code object, of a deployment code, from a state file, the state file including a mapping between the code object to a first workload deployed in the cloud computing environment and a second workload deployed in the cloud computing environment;
generate a node representing the code object in the security graph, wherein the security graph includes a representation of the cloud computing environment;
generate a connection in the security graph between the node representing the code object and a node representing the first workload;
generate a connection in the security graph between the node representing the code object and a node representing the second workload; and
determine that the second workload is a vulnerable workload which includes a cybersecurity threat, in response to detecting that the first workload node is associated with a cybersecurity threat, and that the node representing the second workload and the node representing the first workload are each connected to the node representing the code object.

### Claim 12 (depends on 11)

The system of claim 11, wherein the memory contains further instructions that when executed by the processing circuitry, further configure the system to:
inspecting the first workload to detect the cybersecurity threat;
generating a node representing the cybersecurity threat in the security graph; and
generating a connection in the security graph between the node representing the cybersecurity threat and the node representing the first workload.

### Claim 13 (depends on 12)

The system of claim 12, wherein the memory contains further instructions that when executed by the processing circuitry, further configure the system to:
detect a plurality of nodes connected to the node representing the cybersecurity threat, each node of the plurality of nodes representing a workload deployed in the cloud computing environment;
detect a group of nodes of the plurality of nodes, each node of the group having a common value of an attribute; and
detect a node representing a code object connect to each node of the group of nodes.

### Claim 14 (depends on 13)

The system of claim 13, wherein the memory contains further instructions that when executed by the processing circuitry, further configure the system to:
generate a notification to indicate that each workload representing by a node of the group of nodes includes the cybersecurity threat.

### Claim 15 (depends on 14)

The system of claim 14, wherein the memory contains further instructions that when executed by the processing circuitry, further configure the system to:
generate a mitigation action based on the code object.

### Claim 16 (depends on 15)

The system of claim 15, wherein the mitigation action includes a preprogrammed code to replace a portion of code in the code object.

### Claim 17 (depends on 13)

The system of claim 13, wherein the memory contains further instructions that when executed by the processing circuitry, further configure the system to:
determine that the code object includes a cybersecurity threat in response to traversing the graph and determining that the node representing the code object is connected to each node of the group of nodes.

### Claim 18 (depends on 17)

The system of claim 17, wherein the memory contains further instructions that when executed by the processing circuitry, further configure the system to:
generate a connection between the node representing the code object and the node representing the cybersecurity threat.

### Claim 19 (depends on 11)

The system of claim 11, wherein the memory contains further instructions that when executed by the processing circuitry, further configure the system to:
search a state file for a predetermined data field, the predetermined data field indicating that code object.
