# US 2015/0150135 A1 · Content filtering of remote file-system access protocols

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

- Number: US 2015/0150135 A1
- Document ID: US20150150135A1
- Status: Published application
- Kind: A1
- Application number: 14/523,878
- Filed: 2014-10-25
- Published: 2015-05-28
- Earliest claimed: 2007-05-08
- Assignees: Fortinet, Inc.
- Applicants: Fortinet, Inc.
- Inventors: William Jeffrey Crawford
- Web page: https://patentgrep.com/patent/US20150150135A1

## CPC

- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 63/0245: {Filtering by information in the payload}
- H04L 63/0281: {Proxies}
- H04L 65/102: Gateways (arrangements for connecting between networks having differing types of switching systems, e.g. gateways, H04L12/66)
- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- G06F 11/00: Error detection; Error correction; Monitoring (error detection, correction or monitoring in information storage based on relative movement between record carrier and transducer G11B20/18; monitoring, i.e. supervising the progress of recording or reproducing G11B27/36; in static stores G11C29/00)
- G06F 16/00: Information retrieval; Database structures therefor; File system structures therefor
- G06F 21/00: Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- H04L 67/289: Intermediate processing functionally located close to the data consumer application, e.g. in same machine, in same home or in same sub-network
- H04L 67/56: Provisioning of proxy services (store-and-forward switching systems in data switching networks H04L12/54)
- 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

Methods and systems for content filtering of remote file-system access protocols are provided. According to one embodiment, a remote file-system access protocol response is received at a network device logically interposed between one or more clients and a server. The response represents a response to a request from one of the clients relating to a file associated with a share of the server. A determination is made whether a holding buffer corresponding to the file exists. If not, then one is created; otherwise, the existing holding buffer is used for any of the clients or processes running on the clients that access the file. Data read from or written to the file as a result of the request is buffered into the holding buffer. The existence or non-existence of malicious, dangerous or unauthorized content contained within the holding buffer is determined by performing content filtering on the holding buffer.

## Claims

### Claim 1

A method comprising:
receiving, at a network device, logically interposed between one or more clients and a server, a remote file-system access protocol response from the server, the remote file-system access protocol response representing a response to a remote file-system access protocol request relating to a file associated with a share of the server sent from a client of the one or more clients;
when the remote file-system access protocol request represents a request to access the file, then determining, by the network device, whether a holding buffer exists on the network device corresponding to the file;
when a result of said determining is negative, then creating, by the network device, the holding buffer on the network device;
when the result of said determining is affirmative, then using, by the network device, the holding buffer for any of the one or more clients or processes running on the one or more clients that access the file;
buffering, by the network device, into the holding buffer data being read from or written to the file as a result of the remote file-system access protocol request; and
determining, by the network device, the existence or non-existence of malicious, dangerous or unauthorized content contained within the holding buffer by performing content filtering on the holding buffer.

### Claim 2 (depends on 1)

The method of claim 1, wherein the remote file-system access protocol comprises Server Message Block (SMB)/Common Internet File System (CIFS).

### Claim 3 (depends on 1)

The method of claim 1, wherein the holding buffer is stored in a shared memory of the network device that is accessible by a plurality of processes running within the network device.

### Claim 4 (depends on 1)

The method of claim 1, further comprising tracking, by the network device, usage and modification of the holding buffer with a usage table.

### Claim 5 (depends on 4)

The method of claim 4, wherein the usage table contains information indicative of free and filled sections of the holding buffer.

### Claim 6 (depends on 5)

The method of claim 5, wherein the predetermined event comprises determining the holding buffer is full.

### Claim 7 (depends on 1)

The method of claim 1, further comprising recording, by the network device, data read from the server in a second holding buffer, wherein the second holding buffer is logically linked to the holding buffer.

### Claim 8 (depends on 7)

The method of claim 7, further comprising the tracking, by the network device, usage of the second holding buffer with a second usage table.

### Claim 9 (depends on 7)

The method of claim 7, further comprising restoring, by the network device, the file on the server from a clean copy of the file maintained in the second buffer.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
when the remote file-system access protocol request represents a request to open the file and when the holding buffer existed prior to the remote file-system access protocol request, then incrementing a reference count of the holding buffer; and
when the remote file-system access protocol request represents a request to close the file, then decrementing a reference count of the holding buffer.

### Claim 11

A network device comprising:
a memory having stored therein one or more routines;
one or more processors configured to perform a method of handling remote file-system access protocol requests issued by one or more clients to a server by executing the one or more routines, wherein the method comprises:
receiving a remote file-system access protocol response from the server, the remote file-system access protocol response representing a response to a remote file-system access protocol request for access to a file associated with a share of the server sent from a client of the one or more clients;
when the remote-file system access protocol request represents a request to access the file, then determining whether a holding buffer exists on the network device corresponding to the file;
when the holding buffer does not exist, then creating the holding buffer on the network device;
when the holding buffer does exist, then using the holding buffer for any of the one or more clients or processes running on the one or more clients that access the file;
buffering into the holding buffer data being read from or written to the file as a result of the remote file-system access protocol request; and
determining the existence or non-existence of malicious, dangerous or unauthorized content contained within the holding buffer by performing content filtering on the holding buffer.

### Claim 12 (depends on 11)

The network device of claim 11, wherein the remote file-system access protocol comprises Server Message Block (SMB)/Common Internet File System (CIFS).

### Claim 13 (depends on 11)

The network device of claim 11, wherein the holding buffer is stored in a shared memory of the network device that is accessible by a plurality of processes running within the network device.

### Claim 14 (depends on 11)

The network device of claim 11, wherein the method further comprises tracking usage and modification of the holding buffer with a usage table.

### Claim 15 (depends on 14)

The network device of claim 14, wherein the usage table contains information indicative of free and filled sections of the holding buffer.

### Claim 16 (depends on 15)

The network device of claim 15, wherein the predetermined event comprises determining the holding buffer is full.

### Claim 17 (depends on 11)

The network device of claim 11, wherein the method further comprises recording data read from the server in a second holding buffer, wherein the second holding buffer is logically linked to the holding buffer.

### Claim 18 (depends on 17)

The network device of claim 17, wherein the method further comprises tracking usage of the second holding buffer with a second usage table.

### Claim 19 (depends on 17)

The network device of claim 17, wherein the method further comprises restoring the file on the server from a clean copy of the file maintained in the second buffer.

### Claim 20 (depends on 11)

The network device of claim 11, wherein the method further comprises:
when the remote file-system access protocol request represents a request to open the file and when the holding buffer existed prior to the remote file-system access protocol request, then incrementing a reference count of the holding buffer; and
when the remote file-system access protocol request represents a request to close the file, then decrementing a reference count of the holding buffer.
