content disarm and reconstruction

term

security

Kept in this browser · My desk

A defence that rebuilds incoming files from what their format defines, dropping active, unreferenced or hidden content instead of trying to detect it; abbreviated CDR.

MITRE D3FEND calls it content rebuild. The UK NCSC's guidance for importing data into sensitive systems turns complex formats into simple, verifiable ones, with the transformation on the less trusted side and a simpler verification engine after it. Mail and web gateways apply it to macros and scripts in documents.

What it does. Content disarm and reconstruction (CDR) turns the usual question around. Antivirus engines and sandboxes ask whether a file is malicious; CDR assumes that anything beyond what the format needs may be, parses the file, keeps the content a user needs and writes a new file from it. MITRE D3FEND, the defensive counterpart of the ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) knowledge base, defines Content Rebuild (D3-CNR), also called content reconstruction, as rebuilding a file according to its specification so that any unreferenced components or objects are removed, and lists Content Format Conversion beside it: a mechanical transformation from one format to another, such as normalization or flattening.

The principle in guidance. The United Kingdom's National Cyber Security Centre (NCSC) builds its advice for importing data into sensitive systems on the same idea. Complex data types are transformed into simple, verifiable ones; the transformation engine, which has to parse untrusted content, is assumed to be compromisable and sits on the less trusted side; a simpler verification engine checks the result as the final step, preferably in hardware, and its failures are monitored; nested content, such as documents inside archives, is expanded, transformed and verified the same way.

In products. Check Point's Threat Extraction blade, supported from release R77.30, either extracts exploitable content from a file or creates a safe copy by converting it to PDF (Portable Document Format), delivers the reconstructed file at once and blocks the original while Threat Emulation runs it in a sandbox in the background, in parallel from R80.10. It receives files from e-mail through the gateway's mail transfer agent (MTA), from web downloads and through an application programming interface (API). Its documentation lists what it treats as exploitable in Microsoft Office and PDF files: embedded objects, macros and JavaScript, hyperlinks, custom properties, automatic saves that keep deleted data, document statistics such as owner and dates, and, in PDF, launch, sound or movie actions, JavaScript actions, submit actions that send form fields to a web address and incremental updates that keep earlier versions. Fortinet's FortiMail 7.6 applies CDR to e-mail: it can remove or mitigate risky HTML (Hypertext Markup Language) tags, hyperlinks and JavaScript in the body and macros, links and other active content in Office and PDF attachments, then reconstruct and deliver the sanitized message without affecting the integrity of its text. Its attachment settings include removing all attachments, or disarming Office and PDF files and removing every type CDR does not support, and a verdict threshold above which attachments are disarmed; by default, when disarming succeeds, the FortiSandbox scan is skipped unless the administrator enables it.

Against hidden data. A rebuild removes data appended after a file's end and data in structures it does not carry over, such as comments, extra chunks, metadata and custom quantization tables, but a lossless rebuild of an image keeps every pixel value and so every least-significant-bit payload. Products therefore alter pixel values on purpose. OPSWAT, which says its Deep CDR handles more than 200 file types and lists steganography in images among the threats it treats, writes in the documentation for MetaDefender Core that Deep CDR decompresses an image to the raw data, adds noisy data to break potential steganography, discards unnecessary data and rebuilds the file from the processed pixels, which changes the file's size while, the vendor states, retaining at least 99% of image quality. Channels in markup, such as the order of attributes and the whitespace of a web page, disappear only if the markup is re-serialized.

The limits. CDR acts only where files pass through it: the mail gateway, an inspecting web proxy, a cross-domain boundary. A loader already inside the network that fetches an image over HTTPS (Hypertext Transfer Protocol Secure) from a trusted site sees the original, and so does a backdoor running on the mail server itself. What it removes, macros, embedded objects and hyperlinks, is sometimes what a legitimate document depends on, and it then arrives without them. And CDR says nothing about whether the original was malicious: the products pair it with sandbox analysis of the original, as Check Point does with Threat Emulation and Fortinet with FortiSandbox, for that verdict. Its neighbours are sandbox detonation, which detects; metadata stripping, which removes the descriptive data Check Point's list includes; data loss prevention; and steganalysis, which looks for what a rebuild would simply destroy.

Also known as: CDR, content reconstruction, content rebuild, desarme e reconstrução de conteúdo

Sources

← Back to C Back to the glossary