Securing file download by file in file embedding
Abstract
A system, method, and computer device are provided for securing downloaded files by embedding the original file within a sanitized version of the downloaded file, allowing a user to access the sanitized file without requiring separate remote storage of the original. The requested file is downloaded and subjected to threat extraction to produce a sanitized version of the original file. The sanitized file is then combined with the original file to form a file-in-file data structure, such that a user may access the sanitized file. When the user requests access to the original file, the system performs threat emulation within a sandboxed environment to determine whether the file is malicious. If found to be benign, unlocking information is provided so that the user can extract the original file from the sanitized file-in-file data structure, all without needing to maintain the original file on a separate system or device.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 0.
Claims (19 — 3 Independent, 16 Dependent)
- Claim 1Independent Claim
A system for securely accessing a downloaded file comprising: a threat detection and emulation system comprising an electronic device including computer circuitry configured to perform threat extraction by: receiving a requested file as an original file; generating from the original file a sanitized file; generating a file-in-file data structure by embedding the original file in the sanitized file comprising at least one of: obfuscating a location of the original file in the sanitized file; or encrypting the original file; outputting the generated file-in-file; a computer device including a memory and processor circuitry configured to: receive a request from a user for downloading a file from a remote source; send a request for threat detection of the requested file by the threat detection and emulation system; receive the file-in-file data structure output from the threat detection and emulation system; access the sanitized file via the file-in-file data structure; and request the original file; wherein the computer circuitry of the threat detection and emulation system is further configured to perform threat emulation by: receiving the request for the original file, wherein the request includes the file-in-file data structure; opening the original file included in the file-in-file data structure in a sandboxed environment; monitoring the sandboxed environment to detect whether the opening of the original file resulted in malicious behavior; when the monitoring of the sandboxed environment does not detect malicious behavior, identifying the original file as benign; when the monitoring of the sandboxed environment does detect malicious behavior, identifying the original file as malicious; when the original file is identified as benign, outputting unlocking information for extracting the original file from the file-in-file data structure; and when the original file is identified as malicious, withholding the unlocking information for extracting the original file from the file-in-file data structure; wherein the processor circuitry of the computer device is further configured to, when the original file is identified as benign: receive the unlocking information, wherein the unlocking information includes the location of the original file within the file-in-file data structure, thereby enabling extraction of the original file; extract the original file from the file-in-file data structure using the unlocking information; and store the extracted original file in the memory of the computer device.
- Claim 2Depends on #1
The system of claim 1, wherein the unlocking information includes a decryption key for decrypting the original file within the file-in-file data structure, thereby enabling extraction of the original file.
- Claim 3Depends on #1
The system of claim 1, further comprising an intermediary configured to: receive the requested file sent by the computer device for threat extraction; send the received requested file to the threat detection and emulation system for threat extraction; receive the file-in-file data structure output by the threat detection and emulation system; send the received file-in-file data structure to the computer device; receive the request for the original file from the computer device; send the received request to the threat detection and emulation system for threat emulation; and when the original file is identified as benign: receive the unlocking information output by the threat detection and emulation system; and send the received unlocking information to the computer device.
- Claim 4Depends on #3
The system of claim 3, wherein the intermediary comprises at least one of: a server including a computer processor; a software module executed by the computer circuitry of the threat detection and emulation system; or a browser extension or a mail client executed by the processor circuitry of the computer device.
- Claim 5Depends on #1
The system of claim 1, wherein: the request for the original file includes the received file-in-file data structure; and the computer circuitry of the threat detection and emulation system is configured to receive the request for the original file including the file-in-file data structure before opening the original file in the sandboxed environment, such that the threat emulation is performed upon receiving the request for the original file.
- Claim 6Depends on #1
The system of claim 1, wherein the computer circuitry of the threat detection and emulation system is configured to: perform threat emulation upon receiving the original file for threat extraction and before receiving the request for the original file, such that the threat emulation is initiated automatically; receive the request for the original file; and after receiving the request for the original file and when the original file is identified as benign, outputting the unlocking information.
- Claim 7Depends on #1
The system of claim 1, wherein: when the original file is identified as malicious, the computer circuitry is configured to output a notification that the original file has been identified as malicious.
- Claim 8Depends on #1
The system of claim 1, wherein the unlocking information specifies at least one of a byte offset, an embedded object identifier, or a reference to a specific file component that identifies the concealed original file within the file-in-file data structure.
- Claim 9Depends on #1
The system of claim 1, wherein: the sanitized file is a PDF file, and embedding comprises splitting the original file into multiple parts and embedding the multiple parts within the sanitized PDF file; and the unlocking information identifies respective locations of the multiple parts within the sanitized PDF file.
- Claim 10Depends on #1
The system of claim 1, wherein the sanitized file is a DOCX file, and embedding comprises unzipping the sanitized DOCX file and storing the original DOCX file within the sanitized DOCX file such that the sanitized DOCX file remains accessible as a normal DOCX file.
- Claim 11Independent Claim
A computer device for securely accessing a downloaded file by interfacing with a threat detection and emulation system, wherein the computer device comprises a memory and processor circuitry configured to: receive a request for downloading a file from a remote source; send a request for threat detection of the requested file by the threat detection and emulation system; receive a file-in-file data structure output from the threat detection and emulation system, wherein the file-in-file data structure includes: a sanitized version of the requested file generated by the threat detection and emulation system as a sanitized file; and the requested file as an original file embedded in the sanitized file, wherein the original file was embedded in the sanitized file by at least one of: obfuscating a location of the original file in the sanitized file; or encrypting the original file; access the sanitized file via the file-in-file data structure; send a request for the original file, including the file-in-file data structure, after threat emulation is performed by the threat detection and emulation system, such that the threat detection and emulation system: opens the original file included in the file-in-file data structure in a sandboxed environment; monitors the sandboxed environment to detect whether the opening of the original file resulted in malicious behavior; when the monitoring of the sandboxed environment does not detect malicious behavior, identifies the original file as benign and outputting unlocking information for extracting the original file from the file-in-file data structure; and when the monitoring of the sandboxed environment does detect malicious behavior, identifies the original file as malicious; and when the original file is identified as benign: receive unlocking information, wherein the unlocking information includes the location of the original file within the file-in-file data structure, thereby enabling extraction of the original file; extract the original file from the file-in-file data structure using the unlocking information; and store the extracted original file in the memory of the computer device.
- Claim 12Depends on #11
The computer device of claim 11, wherein the unlocking information includes at least one of: a location of the original file within the file-in-file data structure, thereby enabling extraction of the original file; or a decryption key for decrypting the original file within the file-in-file data structure, thereby enabling extraction of the original file.
- Claim 13Depends on #11
The computer device of claim 11, wherein: the request for the original file includes the received file-in-file data structure; and the threat detection and emulation system is configured to receive the request for the original file including the file-in-file data structure before opening the original file in the sandboxed environment, such that the threat emulation is performed upon receiving the request for the original file.
- Claim 14Depends on #11
The computer device of claim 11, wherein the threat detection and emulation system is configured to: receive the original file for threat extraction; perform threat emulation upon receiving the original file for threat extraction and before receiving the request for the original file, such that the threat emulation is initiated automatically; receive the request for the original file; and after receiving the request for the original file and when the original file is identified as benign, outputting the unlocking information.
- Claim 15Independent Claim
A method for securely accessing a downloaded file using a system including a computer device and a threat detection and emulation system, the method comprising: receiving with a processor circuitry of the computer device a request from a user for downloading a file from a remote source; sending with the processor circuitry a request for threat detection of the requested file by the threat detection and emulation system; a computer circuitry of the threat detection and emulation system performing threat extraction by: receiving the requested file as an original file; generating from the original file a sanitized file; generating a file-in-file data structure by embedding the original file in the sanitized file comprising at least one of: obfuscating a location of the original file in the sanitized file, or encrypting the original file; and outputting the generated file-in-file; receiving with the processor circuitry the file-in-file data structure output from the threat detection and emulation system; accessing with the processor circuitry the sanitized file via the file-in-file data structure; requesting the original file; the computer circuitry of the threat detection and emulation system performing threat emulation by: receiving the request for the original file, wherein the request includes the file-in-file data structure; opening the original file included in the file-in-file data structure in a sandboxed environment; monitoring the sandboxed environment to detect whether the opening of the original file resulted in malicious behavior; when the monitoring of the sandboxed environment does not detect malicious behavior, identifying the original file as benign; when the monitoring of the sandboxed environment does detect malicious behavior, identifying the original file as malicious; when the original file is identified as benign, outputting unlocking information for extracting the original file from the file-in-file data structure; and when the original file is identified as malicious, withholding the unlocking information for extracting the original file from the file-in-file data structure; when the original file is identified as benign, the processor circuitry: receiving the unlocking information, wherein the unlocking information includes the location of the original file within the file-in-file data structure, thereby enabling extraction of the original file; extracting the original file from the file-in-file data structure using the unlocking information; and storing the extracted original file in a memory of the computer device.
- Claim 16Depends on #15
The method of claim 15, wherein the unlocking information includes a decryption key for decrypting the original file within the file-in-file data structure, thereby enabling extraction of the original file.
- Claim 17Depends on #15
The method of claim 15, further comprising: receiving with an intermediary the requested file sent by the computer device for threat extraction; sending with the intermediary the received requested file to the threat detection and emulation system for threat extraction; receiving with the intermediary the file-in-file data structure output by the threat detection and emulation system; sending with the intermediary the received file-in-file data structure to the computer device; receiving with the intermediary the request for the original file from the computer device; sending with the intermediary the received request to the threat detection and emulation system for threat emulation; and when the original file is identified as benign, the intermediary: receiving the unlocking information output by the threat detection and emulation system; and sending the received unlocking information to the computer device.
- Claim 18Depends on #17
The method of claim 17, wherein the intermediary comprises at least one of: a server including a computer processor; a software module executed by the computer circuitry of the threat detection and emulation system; or a browser extension or a mail client executed by the processor circuitry of the computer device.
- Claim 19Depends on #15
The method of claim 15, wherein the computer circuitry of the threat detection and emulation system: receives the request for the original file including the file-in-file data structure before opening the original file in the sandboxed environment, such that the threat emulation is performed upon receiving the request for the original file; or performs threat emulation upon receiving the original file for threat extraction and before receiving the request for the original file, such that the threat emulation is initiated automatically.
Technical Overview & Description
TECHNICAL FIELD The present disclosure relates generally to threat prevention and more particularly to securing downloaded files. SUMMARY Cybersecurity solutions designed to prevent the introduction of malicious software into an organization's computing environment may rely on techniques such as threat extraction and threat emulation. Threat extraction generally involves scanning a file for potentially harmful elements, removing or sanitizing suspicious content, and generating a “ cleaned ” version of the file to the user. Threat emulation, on the other hand, typically involves opening or executing the file within a sandboxed environment to detect malicious activities. Although effective, existing solutions commonly require that the original file be temporarily stored on a remote server. This approach ensures that the original file remains accessible if a user requires it — such as in situations where legitimate content has been removed or when a digital signature must be verified. However, maintaining this storage introduces additional burdens, including increased use of server resources, additional compute and networking overhead, and potential privacy or security concerns associated with storing sensitive files remotely (i.e., away from a user's computer). Moreover, performing threat emulation immediately for every file is a resource-intensive process. Emulating each file in a sandbox environment consumes significant processor cycles and prolongs the time required before the user can access the file. While threat extraction alone can quickly deliver a sanitized version to the user, this sanitized version may omit certain critical content, prompting the user to request the original file. If the original file has been stored remotely, retrieving it incurs bandwidth usage, and the associated waiting time can degrade the user experience. Accordingly, there is a need for an improved method of file handling that optimizes resource usage, reduces reliance on remote file
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (2)
| Patent | Title | Year | Citations |
|---|