# US 2022/0021649 A1 · Policy based mechanism to efficiently interpret and block insecure network communication

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

- Number: US 2022/0021649 A1
- Document ID: US20220021649A1
- Status: Published application
- Kind: A1
- Application number: 17/004,169
- Filed: 2020-08-27
- Published: 2022-01-20
- Earliest claimed: 2020-07-14
- Assignees: VMware, Inc.
- Applicants: Vmware, Inc.
- Inventors: MANDAR NANIVADEKAR; LEENA SHUKLENDU SOMAN
- Web page: https://patentgrep.com/patent/US20220021649A1

## CPC

- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- G06F 9/545: {where tasks reside in different layers, e.g. user- and kernel-space}
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/166: {at the transport layer}
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- G06F 21/552: {involving long-term monitoring or reporting}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure provides an approach for network security. Embodiments include receiving, by a kernel of a first machine, via a hook in a protocol stack of the first machine, one or more packets of a connection between the first machine and a second machine Embodiments include generating a metadata object for the connection based on at least a subset of the one or more packets. Embodiments include adding the one or more packets to a queue accessible by a security component of the first machine. Embodiments include determining, based on the metadata object, whether to continue capturing additional packets of the connection. Embodiments include receiving, from the security component, a security determination regarding the connection based on the one or more packets. Embodiments include performing an action with respect to the connection based on the security determination.

## Claims

### Claim 1

A method of network security, comprising:
receiving, by a kernel of a first machine, via a hook in a protocol stack of the first machine, one or more packets of a connection between the first machine and a second machine;
generating, by the kernel, a metadata object for the connection based on at least a subset of the one or more packets;
adding, by the kernel, the one or more packets to a queue accessible by a security component of the first machine;
determining, by the kernel, based on the metadata object, whether to continue capturing additional packets of the connection;
receiving, by the kernel, from the security component, a security determination regarding the connection based on the one or more packets; and
performing, by the kernel, an action with respect to the connection based on the security determination.

### Claim 2 (depends on 1)

The method of claim 1, wherein the action comprises one or more of:
generating a notification based on the security determination;
blocking subsequent packets of the connection based on the security determination;
allowing the subsequent packets of the connection based on the security determination;
modifying the subsequent packets of the connection based on the security determination; or
providing the subsequent packets of the connection to another component based on the security determination.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining, by the kernel, that the connection has terminated; and
deleting, by the kernel, the metadata object.

### Claim 4 (depends on 1)

The method of claim 1, further comprising determining, by the kernel, based on the one or more packets, whether the connection comprises a transport layer security (TLS) stream.

### Claim 5 (depends on 4)

The method of claim 4, further comprising setting, by the kernel, a value of the metadata object based on whether the connection comprises the TLS stream.

### Claim 6 (depends on 1)

The method of claim 1, wherein the one or more packets comprise a handshake.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
determining, by the kernel, that the handshake is complete; and
updating, by the kernel, a value of the metadata object to indicate that capturing is to be stopped.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining whether to continue capturing the additional packets of the connection comprises accessing the value of the metadata object.

### Claim 9

An apparatus for network security, comprising;
a kernel configured to:
receiving, via a hook in a protocol stack of the apparatus, one or more packets of a connection between the apparatus and a second machine;
generate a metadata object for the connection based on at least a subset of the one or more packets;
add the one or more packets to a queue accessible by a security component of the apparatus;
determine, based on the metadata object, whether to continue capturing additional packets of the connection;
receive, from the security component, a security determination regarding the connection based on the one or more packets; and
perform an action with respect to the connection based on the security determination; and
a security component configured to:
retrieve the one or more packets from the queue;
make the security determination regarding the connection based on the one or more packets; and
send the security determination regarding the connection to the kernel.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the action comprises one or more of:
generating a notification based on the security determination;
blocking subsequent packets of the connection based on the security determination;
allowing the subsequent packets of the connection based on the security determination;
modifying the subsequent packets of the connection based on the security determination; or
providing the subsequent packets of the connection to another component based on the security determination.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the kernel is further configured to:
determine that the connection has terminated; and
deleting, by the kernel, the metadata object.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein the kernel is further configured to determine, based on the one or more packets, whether the connection comprises a transport layer security (TLS) stream.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the kernel is further configured set a value of the metadata object based on whether the connection comprises the TLS stream.

### Claim 14 (depends on 9)

The apparatus of claim 9, wherein the one or more packets comprise a handshake.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the kernel is further configured to:
determine that the handshake is complete; and
update a value of the metadata object to indicate that capturing is to be stopped.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein determining whether to continue capturing the additional packets of the connection comprises accessing the value of the metadata object.

### Claim 17

A non-transitory computer-readable medium comprising instructions that, when executed by one or more processors of a computing system, cause the computing system to perform a method of network security, the method comprising:
receiving, by a kernel of a first machine, via a hook in a protocol stack of the first machine, one or more packets of a connection between the first machine and a second machine;
generating, by the kernel, a metadata object for the connection based on at least a subset of the one or more packets;
adding, by the kernel, the one or more packets to a queue accessible by a security component of the first machine;
determining, by the kernel, based on the metadata object, whether to continue capturing additional packets of the connection;
receiving, by the kernel, from the security component, a security determination regarding the connection based on the one or more packets; and
performing, by the kernel, an action with respect to the connection based on the security determination.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the action comprises one or more of:
generating a notification based on the security determination;
blocking subsequent packets of the connection based on the security determination;
allowing the subsequent packets of the connection based on the security determination;
modifying the subsequent packets of the connection based on the security determination; or
providing the subsequent packets of the connection to another component based on the security determination.

### Claim 19 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the method further comprises:
determining, by the kernel, that the connection has terminated; and
deleting, by the kernel, the metadata object.

### Claim 20 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the method further comprises determining, by the kernel, based on the one or more packets, whether the connection comprises a transport layer security (TLS) stream.
