# US 2021/0286876 A1 · Method for preventing computer attacks in two-phase filtering and apparatuses using the same

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

- Number: US 2021/0286876 A1
- Document ID: US20210286876A1
- Status: Published application
- Kind: A1
- Application number: 17/336,899
- Filed: 2021-06-02
- Published: 2021-09-16
- Earliest claimed: 2018-04-24
- Inventors: Kuo CHIANG
- Web page: https://patentgrep.com/patent/US20210286876A1

## CPC

- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- H04L 63/0227: {Filtering policies (mail message filtering H04L51/212)}
- H04L 63/101: {Access control lists [ACL]}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 67/563: Data redirection of data network streams
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The invention introduces a method for preventing computer attacks in two-phase filtering, performed by a processing unit of an apparatus, which contains at least the following steps: receiving service requests from a client system, wherein each service request requests for executing a service in a protected computer-asset in a network; performing a phase one filtering including a white-list judgment, a black-list judgment, and a custom-rule judgment on each service request; and performing a phase two filtering including a base-rule judgement on each service request that has undergone the phase one filtering completely, hasn't been forwarded to the protected computer-asset in the phase one filtering, and hasn't been undergone the attack prevention operation in the phase one filtering. Each custom-rule pattern defines a specific attack to an individual system or vulnerability. Each base-rule pattern defines a common attack. The base-rule patterns cover more types of computer-assets than the custom-rule patterns.

## Claims

### Claim 1

A method for preventing computer attacks in two-phase filtering, performed by a processing unit of an apparatus, comprising:
receiving a plurality of service requests from a client system, wherein each service request requests for executing a service in a protected computer-asset in a network;
performing a phase one filtering comprising a white-list judgment, a black-list judgment, and a custom-rule judgment on each service request, wherein each service request comprising any of plurality of white-list patterns is forwarded to the protected computer-asset when the white-list judgment is executed, each service request comprising any of plurality of black-list patterns is undergone an attack prevention operation when the black-list judgement is executed, and each service request comprising any of plurality of custom-rule patterns is undergone the attack prevention operation when the custom-rule judgment is executed; and
performing a phase two filtering comprising a base-rule judgement on each service request that has undergone the phase one filtering completely, hasn't been forwarded to the protected computer-asset in the phase one filtering, and hasn't been undergone the attack prevention operation in the phase one filtering, wherein each service request comprising none of plurality of base-rule patterns is forwarded to the protected computer-asset when the base-rule judgement is executed, and each service request comprising any of the base-rule patterns is undergone the attack prevention operation when the base-rule judgment is executed,
wherein the custom-rule judgment examines content of each service request to discover whether any custom-rule pattern is presented in each service request, and each custom-rule pattern defines a specific attack to an individual system or vulnerability,
wherein the base-rule judgment examines content of each service request to discover whether any base-rule pattern is presented in each service request, and each base-rule pattern defines a common attack,
wherein the base-rule patterns cover more types of computer-assets than the custom-rule patterns.

### Claim 2 (depends on 1)

The method of claim 1, wherein the base-rule patterns are periodically updated to respond to newly detected attack behaviors.

### Claim 3 (depends on 1)

The method of claim 1, wherein the base-rule patterns are used to cover a computer asset that is not presented in the network.

### Claim 4 (depends on 1)

The method of claim 1, wherein the attack prevention operation is performed to avoid that the protected computer-asset from being damaged when a requested service is executed in the protected computer-asset.

### Claim 5 (depends on 1)

The method of claim 1, wherein the service request comprises a layer 7 message.

### Claim 6 (depends on 1)

The method of claim 1, wherein each service request is carried by a Transmission Control Protocol/Internet Protocol (TCP/IP) packet, the method comprising:
caching the TCP/IP packet for each service request; and
forwarding a cached corresponding TCP/IP packet to the protected computer-asset when detecting each service request comprising any white-list pattern, or detecting each service request comprising none of the white-list patterns, the black-list patterns, the custom-rule patterns, and the base-rule patterns.

### Claim 7 (depends on 1)

The method of claim 1, wherein the attack prevention operation is performed to replace special characters to prevent strings from switching into any execution context, and forward a modified service request to the protected computer-asset.

### Claim 8 (depends on 1)

The method of claim 1, wherein the attack prevention operation is performed to drop the service request directly.

### Claim 9 (depends on 1)

The method of claim 1, wherein the attack prevention operation is performed to block the service request from being forwarded to the protected computer-asset, and respond with a message to the client system.

### Claim 10 (depends on 1)

The method of claim 1, wherein the attack prevention operation is performed to forward the service request to the protected computer-asset and record a log describing a detection time with a discovered custom-rule pattern or a discovered base-rule pattern.

### Claim 11 (depends on 1)

The method of claim 1, wherein the attack prevention operation is performed to respond to the client system with a uniform resource locator (url) linking to a warning web page.

### Claim 12 (depends on 1)

The method of claim 1, wherein the attack prevention operation is performed to forward the service request to a destination site of a sandbox.

### Claim 13

An apparatus for preventing computer attacks in two-phase filtering, comprising:
a storage device, storing a plurality of white-list patters, a plurality of black-list patterns, a plurality of custom-rule patterns, and a plurality of base-rule patterns; and
a processing unit, coupled to the storage device, configured to receive a plurality of service requests from a client system, wherein each service request requests for executing a service in a protected computer-asset in a network; perform a phase one filtering comprising a white-list judgment, a black-list judgment, and a custom-rule judgment on each service request, wherein each service request comprising any white-list pattern is forwarded to the protected computer-asset when the white-list judgment is executed, each service request comprising any black-list pattern is undergone an attack prevention operation when the black-list judgement is executed, and each service request comprising any custom-rule pattern is undergone an attack prevention operation when the custom-rule judgment is executed; and perform a phase two filtering comprising a base-rule judgement on each service request that has undergone the phase one filtering completely, hasn't been forwarded to the protected computer-asset in the phase one filtering, and hasn't been undergone the attack prevention operation in the phase one filtering, wherein each service request comprising any base-rule pattern is undergone the attack prevention operation when the base-rule judgment is executed, and each service request comprising none of base-rule patterns is forwarded to the protected computer-asset when the base-rule judgement is executed,
wherein the custom-rule judgment examines content of each service request to discover whether any custom-rule pattern is presented in each service request, and each custom-rule pattern defines a specific attack to an individual system or vulnerability,
wherein the base-rule judgment examines content of each service request to discover whether any base-rule pattern is presented in each service request, and each base-rule pattern defines a common attack,
wherein the base-rule patterns cover more types of computer-assets than the custom-rule patterns.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the base-rule patterns are periodically updated to respond to newly detected attack behaviors.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the base-rule patterns are used to cover a computer asset that is not presented in the network.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein the attack prevention operation is performed to replace special characters to prevent strings from switching into any execution context, and forward a modified service request to the protected computer-asset.

### Claim 17 (depends on 13)

The apparatus of claim 13, wherein the attack prevention operation is performed to drop the service request directly.

### Claim 18 (depends on 13)

The apparatus of claim 13, wherein the attack prevention operation is performed to block the service request from being forwarded to the protected computer-asset, and respond with a message to the client system.

### Claim 19 (depends on 13)

The apparatus of claim 13, wherein the attack prevention operation is performed to forward the service request to the protected computer-asset and record a log describing a detection time with a discovered custom-rule pattern or a discovered base-rule pattern.

### Claim 20 (depends on 13)

The apparatus of claim 13, wherein the attack prevention operation is performed to forward the service request to a destination site of a sandbox.
