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

Static analysis result for SHA-256 b2f4e1676bbb2221…

MALICIOUS

Office (OOXML) / .DOCX

14.7 KB Created: 2022-08-25 20:41:00 UTC Authoring application: Microsoft Office Word 12.0000 First seen: 2026-06-28
MD5: fc14155a3cf8d8bdf813286e7a622029 SHA-1: 7ef6b8dbc9b4057f3bb72cb55f25865493ecb9ef SHA-256: b2f4e1676bbb2221376726f3922f3ee162d7e2e6335cf6ce37d4a25f4794ae44
352 Risk Score

Heuristics 9

  • ClamAV: Doc.Downloader.Pwshell-10001336-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Pwshell-10001336-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")
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
    PScommand = "powershell.exe -Command Add-Type -AssemblyName PresentationFramework;[System.Windows.MessageBox]::Show('I solemnly swear that I am up to no good!')"
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set objShell = CreateObject("WScript.Shell")
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Suspicious extracted artifact info 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.
  • 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/markup-compatibility/2006 In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)

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) 844 bytes
SHA-256: bc17194783cb9810ca410beaade70752547ff4dc74f2ffac22a0d4d5a8aee6ff
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "NewMacros"
Sub AutoOpen()
MischiefManaged
End Sub

Sub MischiefManaged()
Dim objShell, PScommand
Set objShell = CreateObject("WScript.Shell")
PScommand = "powershell.exe -Command Add-Type -AssemblyName PresentationFramework;[System.Windows.MessageBox]::Show('I solemnly swear that I am up to no good!')"
objShell.Run PScommand, 0

'TXIgTW9vbnkgcHJlc2VudHMgaGlzIGNvbXBsaW1lbnRzIHRvIFByb2Zlc3NvciBTbmFwZSwgYW5kIGtpbmRseSBhc2sgaGltIHRvIGtlZXAgaGlzIGlucXVpc2l0aXZlIG5vc2Ugb3V0IG9mIG90aGVyIHBlb3BsZeKAmXMgYnVzaW5lc3Mu

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 9728 bytes
SHA-256: 1e50d99992d6fdab4a9a9d7b119ab0f2ab0fe9270d2666ee4554cdfaab3344ed
Detection
ClamAV: Doc.Downloader.Pwshell-10001336-0
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).