Malicious Office (OOXML) / .XLSX — malware analysis report

Static analysis result for SHA-256 77d993afc94b7c57…

MALICIOUS

Office (OOXML) / .XLSX

75.6 KB Created: 2021-10-27 10:31:49 UTC Authoring application: Microsoft Excel 12.0000
MD5: d09a5abe523dce433ad0553cea737472 SHA-1: 1017879fdd4afd7bc798ec92905d1743de77331a SHA-256: 77d993afc94b7c57c27d5da9a2f25e051f0fed6bcf38745c49a60dc6748accae
182 Risk Score

Malware Insights

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

The sample contains Excel 4.0 macros that reconstruct a command to execute 'mshta C:\ProgramData\excel.rtf'. This command is likely used to download and execute a second-stage payload from one of the embedded URLs. The macro's ability to reassemble a payload from split formulas and the use of `mshta` strongly indicate a downloader or initial execution stage.

Heuristics 4

  • 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. The macro sheet is stored as XLSB/BIFF12 binary content, which many XML-only OOXML scanners miss.
  • XLM payload reassembled from CHAR()/split formulas critical OOXML_XLM_REASSEMBLED_PAYLOAD
    An Excel 4.0 macro sheet builds its payload inside the formula token stream by concatenating per-character CHAR() calls and string fragments, so no WinAPI name, shell command, or URL is ever contiguous in the .bin for a literal-bytes scan to find. Reassembling the formulas recovered download/execute API names, LOLBin commands (regsvr32/rundll32/mshta/wmic/powershell), or a payload URL — the de-obfuscated download-and-run kill chain.
  • URL reconstructed from XLM cell array (3 URLs) critical OOXML_XLM_CELL_ARRAY_URL
    Excel 4.0 macro sheet stages its payload URL across individual numeric cells (one ASCII charcode per cell) or inside an embedded HTA that uses VBScript Chr()/&-concat obfuscation. The reconstructed URL is invisible to literal-bytes URL extraction because it is never contiguous in the workbook stream. URLs were recovered by walking the BIFF12 record stream of every worksheet and macrosheet part and decoding RK/inline-string cells in both row-major and column-major order.
  • 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://cdn.discordapp.com/attachments/905422350693048413/905450459551137842/xbvLgcnKeEZT.mp3
    • https://api.onedrive.com/v1.0/shares/u!aHR0cHM6Ly9vbmVkcml2ZS5saXZlLmNvbS9lbWJlZD9yZXNpZD0zNTkyMTNGRkJENjk1RUM5JTIxMTA1JmF1dGhrZXk9IUFJZTZuSVlWX19mQmRmOA/root/content
    • https://api.onedrive.com/v1.0/shares/u!aHR0cHM6Ly9vbmVkcml2ZS5saXZlLmNvbS9lbWJlZD9yZXNpZD1CNkMyQzYxQkZCMjEwRTQ2JTIxMTEyJmF1dGhrZXk9IUFEUkxINjFNNHJDbWJZVQ/root/content

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
xlm_sheet_00.bin
9377199986e4adc543629bede481a87405d93d30ec05b6a9528454cd24332a14
xlm-macrosheet OOXML XLM macro sheet: xl/macrosheets/sheet1.bin 99505 bytes