Content Disarm and Reconstruction
Rebuild every incoming file from its legitimate specification
- Difficulty
- Advanced
- Time to result
- ~months to results
- Steps
- 5
- Confidence
- 99%
Content Disarm and Reconstruction treats every incoming file as untrusted rather than trying only to recognize known malware. The system decomposes the file, removes anything potentially malicious, and validates its structure against the manufacturer's legitimate specification for that format. It then reconstructs the document and returns a clean version that should remain usable without the recipient noticing a meaningful difference. This changes the security mechanism from signature or heuristic detection to deterministic rebuilding: safety comes from allowing only valid structure, not from successfully naming every threat. The approach applies across formats such as PDF, Microsoft Office documents, and images, although each format requires its own structural understanding.
Origin
Glasswall developed its expertise in Content Disarm and Reconstruction over decades of file-based security work in the UK and US.
Core principles
- 01Trust no incoming file
- 02Treat the legitimate file specification as the standard
- 03Remove risk rather than merely scoring it
- 04Return a usable file without visible disruption
How to run it
- 1
Assume the file is untrusted
Apply a zero-trust posture regardless of the file's sender or apparent legitimacy. Route it through reconstruction before use.
Pro tip Apply the same policy consistently across email, collaboration tools, and other file-entry points.
Watch out A familiar source does not guarantee a clean file.
- 2
Decompose the file
Break the file into its structural elements so its contents can be analyzed and unsafe material removed.
Watch out Different file types have radically different structures and need format-specific handling.
- 3
Validate the structure
Compare the decomposed elements with the manufacturer's legitimate file specification. Reject or remove content that does not conform.
Pro tip Use the specification, rather than prior threat signatures, as the source of truth.
- 4
Reconstruct a clean file
Rebuild the document from the validated elements into a pristine, specification-conforming file.
- 5
Return the usable result
Deliver the reconstructed file to the user while preserving the expected document experience.
Pro tip Aim for a result where the user should not notice a difference.
In the wild
A company receives a PDF through email from an external source. Instead of relying only on antivirus signatures, its CDR layer decomposes the PDF, validates its elements against the PDF specification, removes nonconforming content, and reconstructs a clean document before releasing it to the employee.
→ The employee receives a usable, specification-conforming PDF without depending on recognition of a known malware signature.
Common mistakes
Treating detection as deterministic safety
Signature and heuristic tools can detect many threats, but they do not provide the same guarantee as reconstructing a file from valid elements.
Using one parser for every format
PDFs, Word documents, spreadsheets, and images differ structurally, so each format needs appropriate specification knowledge.
Is it for you?
Best for
It is best for organizations that exchange many files and require clean, usable documents regardless of origin.
Not ideal for
It is not ideal when preserving every unsupported or nonconforming element matters more than deterministic file safety.
From the transcript
“So you decompose it completely, validate the file, and then what you deliver to the user is a clean, pristine file which is completely free…”
“And it's a deterministic guarantee that the file is safe to use regardless of where it came from.”
“you don't trust any kind of files or anything that you interact with, you simply clean it, cleanse it, reconstruct it and give it back…”
From the episode
S12 Bonus: Fusing AI-Powered Predictive Malware Inference with Content Disarmament and Reconstruction (CDR) to Neutralize Silent File Attacks with Dr. Aqib Rashid, Applied AI Lead at Glasswall
Dr. Aqib Rashid