Analyze Suspected Malware Documents: QuickSand

ID N0WHERE:144056
Type n0where
Reporter N0where
Modified 2016-12-19T05:28:37


Analyze Suspected Malware Documents

QuickSand is a compact C framework to analyze suspected malware documents to 1) identify exploits in streams of different encodings, 2) locate and extract embedded executables. By having the ability to locate embedded obfuscated executables, QuickSand could detect documents that contain zero-day or unknown obfuscated exploits.

File Formats For Exploit and Active Content Detection

  • doc, docx, docm, rtf, etc
  • ppt, pptx, pps, ppsx, etc
  • xls, xlsx, etc
  • mime mso
  • eml email

File Formats For Executable Detection

  • All of the above, plus PDF.
  • Any document format such as HWP.

Lite Version – Mplv2 License

  • Key dictionary up to 256 byte XOR
  • Bitwise ROL, ROR, NOT
  • Addition or substraction math cipher
  • Executable extraction: Windows, Mac, Linux, VBA
  • Exploit search
  • RTF pre processing
  • Hex stream extract
  • Base 64 Stream extract
  • Embedded Zip extract
  • ExOleObjStgCompressedAtom extract
  • zLib Decode
  • Mime Mso xml Decoding
  • OpenXML decode (unzip)
  • Yara signatures included: Executables, active content, exploits CVE 2014 and earlier

Example results and more info blog post


  • Yara 3.4+
  • zlib
  • libzip

Quick Start

  • ./
  • ./quicksand.out -h
  • ./quicksand.out malware.doc

Analyze Suspected Malware Documents: QuickSand Documentation

Analyze Suspected Malware Documents: QuickSand Download