An email can carry no executable at all and still leave one on your disk: packed inside a document as hexadecimal text, and unpacked by Windows when the document opens. This is episode 15 of File Security 101, our series on file-based threats your anti-malware does not see.
The video explains it in about two minutes.
The article adds the details and the research behind it.
The mail has one attachment, an RTF file. Mail gateways often block executables and scripts by type; an RTF document passes. Word opens it and shows a short letter. Somewhere in the text sits a small icon that looks like a PDF, and the letter asks the reader to open it.
RTF is a text format, and it can embed objects from other applications through OLE (Object Linking and Embedding). An embedded object is written as an \object group with the control word \objemb, a class name in {\*\objclass ...} and the object's data in {\*\objdata ...}, encoded as hexadecimal text. The data begins with an OLE 1.0 header that repeats the class name.
The class Package is the simplest of all: a wrapper around an arbitrary file. It stores the file's content, its name, a path and an icon. When the document is displayed, the object appears as that icon. The Windows component Packager (packager.dll) unpacks and opens the file.
The attacker packs a program into a Package object and gives it a name that looks harmless, for example Invoice.pdf.exe, with a PDF icon. The document needs no macro and no exploit. In 2014, McAfee researcher Haifei Li reported that merely opening such an RTF dropped the embedded file into the user's temporary folder, with a file name and content the RTF controls, on Windows 7 and 8, and even in WordPad. The file was removed when the document closed (McAfee). While the document is open, the program sits on disk, and a double-click on the icon starts it. A file at a predictable path is also useful to other exploits, which then only need to run it.
The packaged program is malware, so why does it get through? It never crosses the gateway as a file. It travels as hexadecimal text inside an object inside a document. To find it, a filter must parse the RTF, decode every object and recognize the Package format, and RTF parsers differ in what malformed input they accept. Only Packager turns the text back into a program, on the user's computer, after every check at the gateway has passed.
bowbridge Content Disarm and Reconstruct removes the whole \object group from an RTF: the Package data, the file it carries and the icon reference. The rebuilt document keeps its text; no file is extracted to disk. A document whose only purpose is an embedded object loses that object, because the file it carries is the attack.
Join the bowbridge CDR beta program