# US 2019/0173895 A1 · Resisting the spread of unwanted code and data

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

- Number: US 2019/0173895 A1
- Document ID: US20190173895A1
- Status: Published application
- Kind: A1
- Application number: 16/267,189
- Filed: 2019-02-04
- Published: 2019-06-06
- Earliest claimed: 2005-06-09
- Assignees: Glasswall (IP) Limited
- Applicants: Glasswall (IP) Limited
- Inventors: Nicholas John Scales
- Web page: https://patentgrep.com/patent/US20190173895A1

## CPC

- G06F 21/568: {eliminating virus, restoring damaged files}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- H04L 51/04: Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L 51/063: Content adaptation, e.g. replacement of unsuitable content
- H04L 51/212: using filtering or selective blocking
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- G06F 2221/034: Test or assess a computer or a system
- 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

A method of processing an electronic file to create a substitute electronic file containing only allowable content data, the method includes receiving, at a computer system, an incoming electronic file containing content data encoded and arranged in accordance with a predetermined file type, determining a purported predetermined file type of the incoming electronic file based upon the encoded and arranged content data, and an associated set of rules specifying allowable content data for the purported predetermined file type, determining nonconforming data in the content data that does not conform to the predetermined data format, determining that the nonconforming data is authorized, extracting, from the incoming electronic file, the nonconforming data, regenerating the nonconforming data to create the substitute electronic file in the purported file type, said substitute regenerated electronic file containing the nonconforming content data, if the nonconforming data is determined to be authorized, wherein the incoming electronic file is not scanned for unwanted code.

## Claims

### Claim 1

A method of processing an electronic file to create a substitute electronic file containing only allowable content data, the method comprising:
receiving, at a computer system, an incoming electronic file containing content data encoded and arranged in accordance with a predetermined file type;
determining a purported predetermined file type of the incoming electronic file based upon the encoded and arranged content data, and an associated set of rules specifying allowable content data for the purported predetermined file type;
determining nonconforming data in the content data that does not conform to the predetermined data format;
determining that the nonconforming data is authorized;
extracting, from the incoming electronic file, the nonconforming data; and
regenerating the nonconforming data to create the substitute electronic file in the purported file type, said substitute regenerated electronic file containing the nonconforming content data, if the nonconforming data is determined to be authorized,
wherein the incoming electronic file is not scanned for unwanted code.

### Claim 2 (depends on 1)

A method according to claim 1 in which the data format corresponds to a subset of the predetermined set of rules for each file type.

### Claim 3 (depends on 1)

A method according to claim 1, further comprising:
determining conforming data in the content data that conforms to the predetermined data format, including determining whether the conforming content data conforms to prior known examples of acceptable data.

### Claim 4 (depends on 3)

A method according to claim 3 in which the data format only includes allowable control characters.

### Claim 5 (depends on 3)

A method according to claim 3 in which the data format contains a plurality of data items, each with an associated predetermined size limit.

### Claim 6 (depends on 5)

A method according to claim 5 wherein the predetermined size limit is the size of a line in an image file.

### Claim 7 (depends on 1)

A method according to claim 1, wherein:
the method further comprises storing the incoming electronic file in a scrambled format in memory;
parsing the content data includes parsing the content data in the scrambled format in the memory in accordance with the predetermined data format comprising the set of rules corresponding to the determined purported predetermined file type; and
determining nonconforming data in the content data includes determining the nonconforming data in the content data in the scrambled format in the memory that does not conform to the predetermined data format.

### Claim 8 (depends on 7)

A method according to claim 7, wherein each byte of data is stored in a bit reversed order.

### Claim 9 (depends on 7)

A method according to claim 7, wherein the data is stored such that each pair of data bytes received is placed in a reversed memory order.

### Claim 10 (depends on 1)

A method according to claim 1, further comprising forwarding the substitute regenerated electronic file only if the content data from within the electronic file is authorized.

### Claim 11 (depends on 10)

A method according to claim 10 further comprising forwarding the incoming electronic file if a portion, part or whole of the content data does not conform only when the intended recipient of the electronic file has pre-approved the sender of the electronic file.

### Claim 12 (depends on 1)

A method according to claim 1, further comprising replacing any content data that does not conform to the predetermined format with warning text.

### Claim 13 (depends on 1)

A method according to claim 1, wherein the incoming electronic file is an e-mail and the method further comprises forwarding the regenerated e-mail to the intended recipient if the content data is authorized.

### Claim 14 (depends on 13)

A method according to claim 13, wherein the substitute regenerated e-mail is forwarded from an e-mail client to a hard disk drive.

### Claim 15 (depends on 13)

A method according to claim 13, wherein the substitute regenerated e-mail is forwarded from an Internet server provider server to an e-mail client server.

### Claim 16 (depends on 1)

A method according to claim 1, further comprising receiving the incoming electronic file from a removable memory device, and forwarding the substitute regenerated electronic file to a computing device.

### Claim 17

A non-transitory computer readable medium comprising a computer program adapted to cause a processor to perform:
receiving, at the processor, an incoming electronic file containing content data encoded and arranged in accordance with a predetermined file type;
determining a purported predetermined file type of the incoming electronic file based upon the encoded and arranged content data, and an associated set of rules specifying allowable content data for the purported predetermined file type;
determining nonconforming data in the content data that does not conform to the predetermined data format;
determining that the nonconforming data is authorized;
extracting, from the incoming electronic file, the nonconforming data; and
regenerating the nonconforming data to create the substitute electronic file in the purported file type, said substitute regenerated electronic file containing the nonconforming content data, if the nonconforming data is determined to be authorized,
wherein the incoming electronic file is not scanned for unwanted code.

### Claim 18

A semiconductor device comprising a memory including instructions for performing:
receiving, at the computer system, an incoming electronic file containing content data encoded and arranged in accordance with a predetermined file type;
determining a purported predetermined file type of the incoming electronic file based upon the encoded and arranged content data, and an associated set of rules specifying allowable content data for the purported predetermined file type;
determining nonconforming data in the content data that does not conform to the predetermined data format;
determining that the nonconforming data is authorized;
extracting, from the incoming electronic file, the nonconforming data; and
regenerating the nonconforming data to create the substitute electronic file in the purported file type, said substitute regenerated electronic file containing the nonconforming content data, if the nonconforming data is determined to be authorized,
wherein the incoming electronic file is not scanned for unwanted code.

### Claim 19 (depends on 18)

A semiconductor device according to claim 18, wherein the semiconductor device is a semi-permanent or permanent memory device.

### Claim 20

A network card comprising a semiconductor device including a memory including instructions to cause a processor to:
receiving, at the computer system, an incoming electronic file containing content data encoded and arranged in accordance with a predetermined file type;
determining a purported predetermined file type of the incoming electronic file based upon the encoded and arranged content data, and an associated set of rules specifying allowable content data for the purported predetermined file type;
determining nonconforming data in the content data that does not conform to the predetermined data format;
determining that the nonconforming data is authorized;
extracting, from the incoming electronic file, the nonconforming data; and
regenerating the nonconforming data to create the substitute electronic file in the purported file type, said substitute regenerated electronic file containing the nonconforming content data, if the nonconforming data is determined to be authorized,
wherein the incoming electronic file is not scanned for unwanted code.

### Claim 21 (depends on 1)

A method according to claim 1, further comprising:
determining conforming data in the content data that conforms to the predetermined data format;
determining the conforming data to be free of viral and otherwise unwanted code and data and suitable for regeneration; and
adding the conforming data to the substitute regenerated electronic file.
