# US 2023/0421573 A1 · System and method for detecting lateral movement using ssh private keys

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

- Number: US 2023/0421573 A1
- Document ID: US20230421573A1
- Status: Published application
- Kind: A1
- Application number: 18/457,752
- Filed: 2023-08-29
- Published: 2023-12-28
- Earliest claimed: 2021-04-02
- Assignees: Wiz, Inc.
- Applicants: Wiz, Inc.
- Inventors: Avi Tal LICHTENSTEIN; Ami LUTTWAK; Yinon COSTICA
- Web page: https://patentgrep.com/patent/US20230421573A1

## CPC

- H04L 63/14: {for detecting or protecting against malicious traffic}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system and method for detecting lateral movement based on an exposed cryptographic network protocol (CNP) key in a cloud computing environment. The method includes: inspecting a first workload for a private CNP key, the private CNP key associated with a hash of a public CNP key; detecting in a security database a representation of the public CNP key; generating a lateral movement path, the lateral movement path including an identifier of a second workload, the second workload represented by a representation connected to the representation of the public CNP key.

## Claims

### Claim 1

A method for detecting lateral movement based on an exposed cryptographic network protocol (CNP) key in a cloud computing environment, comprising:
inspecting a first workload for a private CNP key, the private CNP key associated with a hash of a public CNP key;
detecting in a security database a representation of the public CNP key;
generating a lateral movement path, the lateral movement path including an identifier of a second workload, the second workload represented by a representation connected to the representation of the public CNP key.

### Claim 2 (depends on 1)

The method of claim 1, wherein the workload is deployed in a cloud computing environment, and the security database includes a representation of the cloud computing environment.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining that the public CNP key hash of the private CNP key matches a public key hash represented in the security database by a public CNP key node.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
connecting in the security database the representation of the private CNP key to the representation of the public CNP key in response to determining that the public CNP key hash of the private CNP key matches the public CNP key hash.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
detecting that the private CNP key is stored as any one of: cleartext, and plaintext.

### Claim 6 (depends on 1)

The method of claim 1, wherein the workload is any one of: a virtual machine, and a software container.

### Claim 7 (depends on 1)

The method of claim 1, wherein the workload is a secure shell (SSH) server deployed in a cloud computing environment.

### Claim 8 (depends on 1)

The method of claim 1, wherein the private CNP key is stored in any one of: a PKCS format, and an OpenSSH format.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
detecting a user account identifier in the private CNP key;
generating a user representation representing the user account in the security database; and
connecting the user representation to the representation of the private CNP key.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
detecting in the security database a representation of a second workload connected to the representation of the private CNP key, wherein the representation of the second workload corresponds to a second workload which is an exposed workload.

### Claim 11 (depends on 10)

The method of claim 10, wherein the second workload is exposed to a network external to the cloud computing environment

### Claim 12 (depends on 10)

The method of claim 10, wherein the private CNP key is stored in the second workload in any one of: plaintext, and cleartext.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
determining that the private CNP key is exposed.

### Claim 14 (depends on 1)

The method of claim 1, wherein the CNP is Secure Shell (SSH) protocol.

### Claim 15

A non-transitory computer-readable medium storing a set of instructions for detecting lateral movement based on an exposed cryptographic network protocol (CNP) key in a cloud computing environment, the set of instructions comprising:
one or more instructions that, when executed by one or more processors of a device, cause the device to:
inspect a first workload for a private CNP key, the private CNP key associated with a hash of a public CNP key;
detect in a security database a representation of the public CNP key;
generate a lateral movement path, the lateral movement path including an identifier of a second workload, the second workload represented by a representation connected to the representation of the public CNP key.

### Claim 16

A system for detecting lateral movement based on an exposed cryptographic network protocol (CNP) key 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:
inspect a first workload for a private CNP key, the private CNP key associated with a hash of a public CNP key;
detect in a security database a representation of the public CNP key;
generate a lateral movement path, the lateral movement path including an identifier of a second workload, the second workload represented by a representation connected to the representation of the public CNP key.

### Claim 17 (depends on 16)

The system of claim 16, wherein the workload is deployed in a cloud computing environment, and the security database includes a representation of the cloud computing environment.

### Claim 18 (depends on 16)

The system of claim 16, wherein the memory contains further instructions which when executed by the processing circuitry further configure the system to:
determine that the public CNP key hash of the private CNP key matches a public key hash represented in the security database by a public CNP key node.

### Claim 19 (depends on 16)

The system of claim 16, wherein the memory contains further instructions which when executed by the processing circuitry further configure the system to:
connect in the security database the representation of the private CNP key to the representation of the public CNP key in response to determining that the public CNP key hash of the private CNP key matches the public CNP key hash.

### Claim 20 (depends on 16)

The system of claim 16, wherein the memory contains further instructions which when executed by the processing circuitry further configure the system to:
detect that the private CNP key is stored as any one of:
cleartext, and plaintext.

### Claim 21 (depends on 16)

The system of claim 16, wherein the workload is any one of:
a virtual machine, and a software container.

### Claim 22 (depends on 16)

The system of claim 16, wherein the workload is a secure shell (SSH) server deployed in a cloud computing environment.

### Claim 23 (depends on 16)

The system of claim 16, wherein the private CNP key is stored in any one of:
a PKCS format, and an OpenSSH format.

### Claim 24 (depends on 16)

The system of claim 16, wherein the memory contains further instructions which when executed by the processing circuitry further configure the system to:
detect a user account identifier in the private CNP key;
generate a user representation representing the user account in the security database; and
connect the user representation to the representation of the private CNP key.

### Claim 25 (depends on 16)

The system of claim 16, wherein the memory contains further instructions which when executed by the processing circuitry further configure the system to:
detect in the security database a representation of a second workload connected to the representation of the private CNP key, wherein the representation of the second workload corresponds to a second workload which is an exposed workload.

### Claim 26 (depends on 25)

The system of claim 25, wherein the second workload is exposed to a network external to the cloud computing environment.

### Claim 27 (depends on 25)

The system of claim 25, wherein the private CNP key is stored in the second workload in any one of:
plaintext, and cleartext.

### Claim 28 (depends on 27)

The system of claim 27, wherein the memory contains further instructions which when executed by the processing circuitry further configure the system to:
determine that the private CNP key is exposed.

### Claim 29 (depends on 16)

The system of claim 16, wherein the CNP is Secure Shell (SSH) protocol.
