# US 2019/0297056 A1 · Methods for preventing or detecting computer attacks in a cloud-based environment 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 2019/0297056 A1
- Document ID: US20190297056A1
- Status: Published application
- Kind: A1
- Application number: 15/936,338
- Filed: 2018-03-26
- Published: 2019-09-26
- Earliest claimed: 2018-03-26
- Inventors: Kuo CHIANG
- Web page: https://patentgrep.com/patent/US20190297056A1

## CPC

- G06F 21/554: {involving event detection and direct action}
- H04L 63/0245: {Filtering by information in the payload}
- H04L 63/0281: {Proxies}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/1433: {Vulnerability analysis}
- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- 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 or detecting computer attacks in a cloud-based environment, performed by a processing unit of an apparatus, which contains at least the following steps. A first IP (Internet Protocol) packet is received from a client system through the Internet. A service request is acquired from the first IP packet, which requests service to a protected computer asset. It is determined whether the service request contains a computer attack. An attack prevention/detection operation is performed to prevent an attack from damaging the protected computer asset when the service request contains a computer attack.

## Claims

### Claim 1

A method for preventing or detecting computer attacks in a cloud-based environment, performed by a processing unit of an apparatus, comprising:
receiving a first IP (Internet Protocol) packet from a client system through Internet;
acquiring a service request from the first IP packet, which requests service to a protected computer asset;
determining whether the service request comprises a computer attack; and
performing an attack prevention/detection operation from damaging the protected computer asset when the service request comprises the computer attack.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
obtaining an IP address of the protected computer asset when the service request contains no computer attack; and
generating and transmitting a second IP packet, which carries the service request, to the protected computer asset through the Internet, wherein a source address of the second IP packet is an IP address of the apparatus and a destination address of the second IP packet is the IP address of the protected computer asset.

### Claim 3 (depends on 2)

The method of claim 2, wherein the IP address of the protected computer asset is read from a storage device of the apparatus.

### Claim 4 (depends on 2)

The method of claim 2, wherein the step for obtaining an IP address of the protected computer asset when the service request contains no computer attack comprises:
searching a table of a storage device of the apparatus to obtain the IP address of the protected computer asset according to a request type of the first IP packet, wherein the table stores a plurality of request types and each request type maps to one IP address.

### Claim 5 (depends on 4)

The method of claim 4, wherein the request type of the first IP packet is indicated by a destination port number, a source port number or a source IP address of the first IP packet.

### Claim 6 (depends on 2)

The method of claim 2, wherein a packet header or payload of the second IP packet comprises the IP address of the client system.

### Claim 7 (depends on 6)

The method of claim 6, comprising:
receiving a third IP packet carrying a response from the protected computer asset, wherein a packet header or payload comprises the IP address of the client system; and
generating and transmitting a fourth IP packet, which carries the response, to the client system through the Internet, wherein a source address of the fourth IP packet is the IP address of the apparatus and a destination address of the fourth IP packet is the IP address of the client system.

### Claim 8 (depends on 7)

The method of claim 7, wherein the fourth IP packet is generated by removing the IP address of the client system from the packet header or payload of the third IP packet, replacing a source address of the third IP packet with the IP address of the apparatus and replacing a destination address of the third IP packet with the IP address of the client system.

### Claim 9 (depends on 2)

The method of claim 2, wherein the step for determining whether the service request comprises a computer attack comprises:
determining that the service request contains no computer attack when discovering a white-list pattern from the service request in a phase-one filtering; and
performing a phase-two filtering subsequent to a completion of the phase-one filtering.

### Claim 10 (depends on 9)

The method of claim 9, wherein the step for determining whether the service request comprises a computer attack comprises:
providing a plurality of black-list patterns; and
determining that the service request comprises a computer attack when discovering that the service request comprises no white-list pattern but at least one black-list pattern in the phase-one filtering.

### Claim 11 (depends on 10)

The method of claim 10, wherein the step for determining whether the service request comprises a computer attack comprises:
providing a plurality of custom-rule patterns; and
determining that the service request comprises a computer attack when discovering that the service request comprises no white-list pattern but at least one custom-rule pattern in the phase-one filtering.

### Claim 12 (depends on 11)

The method of claim 11, wherein the step for performing a phase-two filtering further comprises:
providing a plurality of base-rule patterns; and
performing the attack prevention/detection operation when discovering that the service request comprises at least one base-rule pattern.

### Claim 13 (depends on 12)

The method of claim 12, wherein the base-rule patterns cover more types of protected computer assets than the custom-rule patterns.

### Claim 14 (depends on 13)

The method of claim 13, wherein the custom-rule patterns are specifically designed for an individual system or vulnerability and the base-rule patterns are designed to prevent common attacks.

### Claim 15 (depends on 1)

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

### Claim 16 (depends on 1)

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

### Claim 17 (depends on 1)

The method of claim 1, wherein the attack prevention/detection operation is performed to drop the service request, without forwarding the service request to the protected computer asset.

### Claim 18 (depends on 1)

The method of claim 1, wherein the attack prevention/detection 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 1)

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

### Claim 20 (depends on 1)

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

### Claim 21 (depends on 1)

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

### Claim 22 (depends on 1)

The method of claim 1, wherein the attack prevention/detection operation is performed to forward the service request to one or more protected computer assets to test if a protection alternative run on each protected computer asset receiving the service request can detect the computer attack.

### Claim 23 (depends on 1)

The method of claim 1, wherein the attack prevention/detection operation is performed to forward the service request to one or more protected computer assets with no protection to facilitate an examination of damaged scope.

### Claim 24

An apparatus for preventing or detecting computer attacks in a cloud-based environment, comprising:
a communications interface; and
a processing unit, coupled to the communications interface, receiving a first IP (Internet Protocol) packet from a client system through the Internet via the communications interface; acquiring a service request from the first IP packet, which requests service to a protected computer asset; determining whether the service request comprises a computer attack; and performing an attack prevention/detection operation from damaging the protected computer asset when the service request comprises the computer attack.

### Claim 25 (depends on 24)

The apparatus of claim 24, wherein the processing unit obtains an IP address of the protected computer asset when the service request contains no computer attack; and generates and transmits a second IP packet, which carries the service request, to the protected computer asset through the Internet via the communications interface, wherein a source address of the second IP packet is an IP address of the apparatus and a destination address of the second IP packet is the IP address of the protected computer asset.

### Claim 26 (depends on 24)

The apparatus of claim 24, comprising:
a storage device, storing an IP address of the protected computer asset,
wherein the processing unit reads the IP address of the protected computer asset from the storage device.

### Claim 27 (depends on 24)

The apparatus of claim 24, comprising:
a storage device, storing a table, wherein the table stores a plurality of request types and each request type maps to one IP address,
wherein the processing unit searches the table to obtain the IP address of the protected computer asset according to a request type of the first IP packet.

### Claim 28 (depends on 26)

The apparatus of claim 26, wherein the request type of the first IP packet is indicated by a destination port number, a source port number or a source IP address of the first IP packet.

### Claim 29 (depends on 25)

The apparatus of claim 25, wherein a packet header or payload of the second IP packet comprises the IP address of the client system.

### Claim 30 (depends on 29)

The apparatus of claim 29, wherein the processing unit receives a third IP packet carrying a response from the protected computer asset, wherein a packet header or payload comprises the IP address of the client system; and generates and transmits a fourth IP packet, which carries the response, to the client system through the Internet, wherein a source address of the fourth IP packet is the IP address of the apparatus and a destination address of the fourth IP packet is the IP address of the client system.

### Claim 31 (depends on 30)

The apparatus of claim 30, wherein the fourth IP packet is generated by removing the IP address of the client system from the packet header or payload of the third IP packet, replacing a source address of the third IP packet with the IP address of the apparatus and replacing a destination address of the third IP packet with the IP address of the client system.
