Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Ratel_Strings

Detect RATel based on characteristic strings

MalwareRatelSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Sekoia.io
Datum
2023-04-24
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Detect RATel based on characteristic strings

Zugehörige Malware-Familie: Ratel.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

rat-win-ratel-strings.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Ratel_Strings : FILE
{
	meta:
		description = "Detect RATel based on characteristic strings"
		author = "Sekoia.io"
		id = "d0c8b89b-c811-47aa-9e03-717998c40d91"
		date = "2023-04-24"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_ratel_strings.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "ff5640b03ec3e535cdb86c2a0feb52d0c472928ff88a36ec9f66ac8aa07c9f69"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "[-] Error when changing folder." ascii
		$s2 = "cmd.exe" wide
		$s3 = "back slash find: " ascii
		$s4 = "MOD_ALL:" wide
		$s5 = "MOD_PERSISTENCE" wide
		$s6 = "MOD_DESTRUCTION:" wide
		$s7 = "MOD_RECONNECT" wide
		$s8 = "Software\\Microsoft\\Windows\\CurrentVersion\\Run" wide
		$s9 = "powershell.exe -command \"([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')\"" wide
		$s10 = "The command was executed successfully but no data was returned."
		$s11 = "[-] TIMEOUT IN CREATEPROCESS, but all the processes in the name of: " ascii
		$s12 = "we were well and truly killed." ascii

	condition:
		( uint16be( 0 ) == 0x4d5a ) and filesize > 500KB and filesize < 3MB and 8 of them
}

Strings (12 Muster)

BezeichnerTypWertModifikatoren
$s1Text"[-] Error when changing folder."ascii
$s2Text"cmd.exe"wide
$s3Text"back slash find: "ascii
$s4Text"MOD_ALL:"wide
$s5Text"MOD_PERSISTENCE"wide
$s6Text"MOD_DESTRUCTION:"wide
$s7Text"MOD_RECONNECT"wide
$s8Text"Software\\Microsoft\\Windows\\CurrentVersion\\Run"wide
$s9Text"powershell.exe -command \"([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltI …wide
$s10Text"The command was executed successfully but no data was returned."
$s11Text"[-] TIMEOUT IN CREATEPROCESS, but all the processes in the name of: "ascii
$s12Text"we were well and truly killed."ascii

Bedingung

( uint16be( 0 ) == 0x4d5a ) and filesize > 500KB and filesize < 3MB and 8 of them

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Die Datei muss kleiner als 3MB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Die Datei muss größer als 500KB sein.
  • Mindestens 8 Muster aus der Regel 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: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

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

Regel-ID: d0c8b89b-c811-47aa-9e03-717998c40d91

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE

Weitere Ratel-Regeln