# US 2019/0173842 A1 · Flexible Network Security System and Method for Permitting Trusted Process

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

- Number: US 2019/0173842 A1
- Document ID: US20190173842A1
- Status: Published application
- Kind: A1
- Application number: 16/267,681
- Filed: 2019-02-05
- Published: 2019-06-06
- Earliest claimed: 2003-12-31
- Assignees: Cap Corporation
- Applicants: Cap Co., Ltd.
- Inventors: Dong-Hyul LEE
- Web page: https://patentgrep.com/patent/US20190173842A1

## CPC

- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Flexible network security is achieved while permitting a trusted process. Port monitoring is used for extracting information about a server port being used through a network communication program. Internal permitted program storage is used for extracting information about a program for which communication is permitted by the firewall. The system determines whether a destination port of a packet of inbound traffic has been registered in the internal permitted port storage, and if the destination port has not been registered, transmitting the corresponding packet to the firewall, and if the destination port has been registered, allowing the corresponding packet to as inbound traffic as a transmission to a permitted port as a hooked original function of a permitted trusted process.

## Claims

### Claim 1

A computer executing a firewall controlling inbound traffic, the firewall protecting the computer against a network connection attempt by setting restrictions on information communicated between networks, the computer comprising:
an internal permitted program storage configured to store a list of programs permitted by the firewall;
an input interface configured to accept an indication that one or more permitted network communication programs are permitted by the firewall, thereby resulting in said one or more permitted network communication programs being added to the list of programs permitted by the firewall in the internal permitted program storage;
a port monitoring unit configured to automatically extract, outside of the firewall, information about a protocol using a server port, wherein the server port is designated as a port of a network communication program providing one or more packets of inbound traffic for a destination port; and
a flexible firewall device making the firewall flexible, the flexible firewall device configured to populate a list of server ports permitted by the firewall in an internal permitted port storage as follows:
detect that said network communication program tries to listen to said server port;
in response to detecting that said network communication program tries to listen to said server port, extract, outside of the firewall, using the port monitoring unit, information about the server port requesting communication with the destination port for the packets of inbound traffic; and
automatically store the extracted information about the server port in the internal permitted port storage if said network communication program matches a program on said list of programs permitted by the firewall in the internal permitted program storage;
wherein the firewall is further configured to thereafter selectively block or allow one or more packets of inbound traffic to the computer as follows:
make a determination whether a destination port of the one or more packets of inbound traffic matches one of the server ports included in the list of server ports permitted by the firewall in the internal permitted port storage;
either allow or block the one or more packets of inbound traffic based on the determination whether the destination port of the one or more packets of inbound traffic matches one of the server ports included in the list of server ports permitted by the firewall in the internal permitted port storage, and using the information about the server port and the protocol to determine whether registration exists in the internal permitted port storage; and
in the case of a determination that the registration does not exist, blocking the corresponding packet, and in the case of a determination that the registration exists, transmitting the corresponding packet to a hooked original function.

### Claim 2 (depends on 1)

The computer as set forth in claim 1, wherein the flexible firewall device is further configured to delete information about a server port from the internal permitted port storage without intervention by the user of the computer if the permitted network communication program closes the server port.

### Claim 3 (depends on 1)

The computer as set forth in claim 1, wherein the flexible firewall device is further configured to store information about a server port without intervention by the user of the computer if the permitted network communication program opens the server port.

### Claim 4 (depends on 1)

The computer as set forth in claim 1, wherein the list of programs permitted by the firewall in the internal permitted program storage includes information about at least one of a program name, an entire path of the program, and a program hash value.

### Claim 5 (depends on 1)

The computer as set forth in claim 1, wherein the firewall is further configured to inspect the packets of inbound traffic in a kernel mode.

### Claim 6 (depends on 1)

The computer as set forth in claim 1, wherein a packet of inbound traffic includes the protocol, a source IP address, a source port, a destination IP address, and a destination port.

### Claim 7 (depends on 1)

The computer as set forth in claim 1, wherein the flexible firewall device is configured to populate the list of server ports permitted by the firewall without intervention by the user of the computer.

### Claim 8 (depends on 1)

The computer as set forth in claim 1, wherein the flexible firewall device is configured to populate the list of server ports permitted by the firewall by repeating the detecting, extracting, and automatically storing steps as necessary to populate the list of server ports permitted by the firewall in the internal permitted port storage.

### Claim 9 (depends on 1)

The computer as set forth in claim 1, wherein the determination of whether a destination port of inbound traffic matches one of the server ports included in the list of server ports permitted by the firewall in the internal permitted port storage comprises:
for inbound traffic transmitted from the outside, the inbound traffic reaches the firewall after passing through the network connection, the firewall determines whether a registration exists for the destination port in the internal permitted port storage by examining the packets of the inbound traffic.

### Claim 10 (depends on 1)

The computer as set forth in claim 1, wherein the determination of whether a destination port of inbound traffic matches one of the server ports included in the list of server ports permitted by the firewall in the internal permitted port storage comprises:
extracting a packet from inbound traffic before processing by the firewall; and
extracting, from the extracted packet, information about a corresponding destination port and extracting the information about the protocol.

### Claim 11

A computer security method for controlling inbound traffic of a computer executing a firewall, the firewall protecting the computer against a network connection attempt by setting restrictions on information communicated between networks, the method comprising:
storing in an internal permitted program storage a list of programs permitted by the firewall;
adding a network communication program to the list of programs stored in the internal permitted program storage;
automatically extracting, outside of the firewall, information about a protocol using a server port, wherein the server port is designated as a port of the network communication program;
automatically storing, by the firewall, the extracted information about the server port in an internal permitted port storage in response to determining that the network communication program tries to listen to the server port;
using the information about the server port and the protocol to determine whether registration exists in the internal permitted port storage; and
in the case of a determination that the registration does not exist, blocking the corresponding packet, and in the case of a determination that the registration exists, transmitting the corresponding packet to a hooked original function.

### Claim 12 (depends on 11)

The method as set forth in claim 11, further comprising:
deleting the extracted information about the server port from the internal permitted port storage without intervention by the user of the computer if the added network communication program closes the server port.

### Claim 13 (depends on 11)

The method as set forth in claim 11, further comprising:
blocking the packet of inbound traffic in response to determining that the port does not match the server port.

### Claim 14 (depends on 11)

The method as set forth in claim 11, further comprising:
storing the extracted information about the server port in the internal permitted port storage without intervention by a user of the computer if the added network communication program opens the server port.

### Claim 15 (depends on 11)

The method as set forth in claim 11, wherein the information about the network communication program includes information about at least one of a program name, an entire path of the program, and a program hash value.

### Claim 16 (depends on 11)

The method as set forth in claim 11, wherein the firewall inspects the packet of inbound traffic in a kernel mode.

### Claim 17 (depends on 11)

The method as set forth in claim 11, wherein a packet of inbound traffic includes the protocol, a source IP address, a source port, a destination IP address, and a destination port.

### Claim 18 (depends on 11)

The method as set forth in claim 11, wherein extracting information about a server port and automatically storing the extracted information about the server port in an internal permitted port storage comprises:
detecting that the added network communication program tries to listen to a server port;
in response to detecting that the network communication program tries to listen to a server port, extracting, outside of the firewall, information about the server port; and
automatically storing the extracted information about the server port in the internal permitted port storage.

### Claim 19 (depends on 11)

The method as set forth in claim 11, wherein extracting, without intervention by a user of the computer, information about a server port comprises extracting, without intervention by the user of the computer, information about the server port, with the server port designated as providing one or more packets of inbound traffic for a destination port.

### Claim 20 (depends on 11)

The method as set forth in claim 11, wherein the determination of whether a destination port of inbound traffic matches one of the server ports included in the list of server ports permitted by the firewall in the internal permitted port storage comprises:
for inbound traffic transmitted from the outside, the inbound traffic reaches the firewall after passing through the network connection, the firewall determines whether a registration exists for the destination port in the internal permitted port storage by examining the packets of the inbound traffic.

### Claim 21 (depends on 11)

The method as set forth in claim 11, wherein the determination of whether a destination port of inbound traffic matches one of the server ports included in the list of server ports permitted by the firewall in the internal permitted port storage comprises:
extracting a packet from inbound traffic before processing by the firewall; and
extracting, from the extracted packet, information about a corresponding destination port and extracting the information about the protocol.
