Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Sectoprat

Detects SectopRAT

MalwareSectopratditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 75

Was diese Regel erkennt

Detects SectopRAT

Zugehörige Malware-Familie: Sectoprat.

Ziele: Windows-PE.

Sie definiert 18 Muster (18 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-sectoprat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Sectoprat : FILE
{
	meta:
		description = "Detects SectopRAT"
		author = "ditekSHen"
		id = "d6594834-24d7-5e86-84b5-5a7920e7bc89"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7904-L7929"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b4048f837c02560a8b650247173be25893b466e5cec8f2784eea58172f973822"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "\\\\.\\root\\cimv2:Win32_Process" wide
		$s2 = "\\\\.\\root\\cimv2:CIM_DataFile.Name=" wide
		$s3 = "^.*(?=Windows)" fullword wide
		$s4 = "C:\\Windows\\System32\\cmd.exe" wide
		$s5 = "C:\\Windows\\explorer.exe" wide
		$s6 = "Disabling IE protection" wide
		$s7 = "stream started succces" wide
		$b1 = "/C start Firefox" wide
		$b2 = "/C start chrome" wide
		$b3 = "/C start iexplore" wide
		$m1 = "DefWindowProc" fullword ascii
		$m2 = "AuthStream" fullword ascii
		$m3 = "KillBrowsers" fullword ascii
		$m4 = "GetAllNetworkInterfaces" fullword ascii
		$m5 = "EnumDisplayDevices" fullword ascii
		$m6 = "RemoteClient.Packets" fullword ascii
		$m7 = "IServerPacket" fullword ascii
		$m8 = "keybd_event" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( ( 5 of ( $s* ) and 2 of ( $b* ) ) or all of ( $s* ) or ( all of ( $b* ) and ( 4 of ( $s* ) or 5 of ( $m* ) ) ) )
}

Strings (18 Muster)

BezeichnerTypWertModifikatoren
$s1Text"\\\\.\\root\\cimv2:Win32_Process"wide
$s2Text"\\\\.\\root\\cimv2:CIM_DataFile.Name="wide
$s3Text"^.*(?=Windows)"fullword wide
$s4Text"C:\\Windows\\System32\\cmd.exe"wide
$s5Text"C:\\Windows\\explorer.exe"wide
$s6Text"Disabling IE protection"wide
$s7Text"stream started succces"wide
$b1Text"/C start Firefox"wide
$b2Text"/C start chrome"wide
$b3Text"/C start iexplore"wide
$m1Text"DefWindowProc"fullword ascii
$m2Text"AuthStream"fullword ascii
$m3Text"KillBrowsers"fullword ascii
$m4Text"GetAllNetworkInterfaces"fullword ascii
$m5Text"EnumDisplayDevices"fullword ascii
$m6Text"RemoteClient.Packets"fullword ascii
$m7Text"IServerPacket"fullword ascii
$m8Text"keybd_event"fullword ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( ( 5 of ( $s* ) and 2 of ( $b* ) ) or all of ( $s* ) or ( all of ( $b* ) and ( 4 of ( $s* ) or 5 of ( $m* ) ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $s* ) müssen treffen.
  • Alle Muster aus ( $b* ) müssen treffen.
  • Mindestens 5 Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus ( $b* ) müssen treffen.
  • Mindestens 4 Muster aus ( $s* ) müssen treffen.
  • Mindestens 5 Muster aus ( $m* ) müssen treffen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: ditekSHen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: d6594834-24d7-5e86-84b5-5a7920e7bc89

Tags:FILE