Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 56a5ce0f4c377eb4…

MALICIOUS

Office (OOXML)

67.9 KB Created: 2012-10-19 22:33:57 UTC Authoring application: Microsoft Excel 12.0000
MD5: a1d74525e1e608e110e12892b06bd284 SHA-1: 36a5fea6b5cecc4a8fb13b89cef9b2fcab18d6b4 SHA-256: 56a5ce0f4c377eb4d1cee96628f0f3d66c282b2a3d89e5c7983e3138af23e99d
208 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder T1036.005 Match Legitimate Name or Location

The sample is an Excel document containing a Workbook_Open VBA macro. This macro utilizes CreateObject to interact with the file system and attempts to write a file named 'qInsertDeleteCells.xsl' to the 'C:\ProgramData\' directory. It also appears to attempt to establish persistence by creating a registry key that points to this file, likely to execute a second-stage payload. The use of 'Environ("ALLUSERSPROFILE")' and the creation of a file with a '.xsl' extension in a common program data location suggest an attempt to masquerade as a legitimate system file.

Heuristics 6

  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • VBA project inside OOXML medium OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
84842bce573ff8887ced2812ca6b416fc62c033acf90432a5255aabfef85344d
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 3703 bytes
vbaProject_00.bin
e26622e3e809ada497a15f305bf5cf578a50f7c6e380ac09e0427a55660967ef
vba-project OOXML VBA project: xl/vbaProject.bin 16896 bytes