Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Ratel_Strings

Detect RATel based on characteristic strings

MalwareRatelSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2023-04-24
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

Detect RATel based on characteristic strings

Famille de malware associée : Ratel.

Cibles : PE Windows.

Elle définit 12 motifs (12 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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
}

Chaînes (12 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"[-] Error when changing folder."ascii
$s2texte"cmd.exe"wide
$s3texte"back slash find: "ascii
$s4texte"MOD_ALL:"wide
$s5texte"MOD_PERSISTENCE"wide
$s6texte"MOD_DESTRUCTION:"wide
$s7texte"MOD_RECONNECT"wide
$s8texte"Software\\Microsoft\\Windows\\CurrentVersion\\Run"wide
$s9texte"powershell.exe -command \"([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltI …wide
$s10texte"The command was executed successfully but no data was returned."
$s11texte"[-] TIMEOUT IN CREATEPROCESS, but all the processes in the name of: "ascii
$s12texte"we were well and truly killed."ascii

Condition

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

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Le fichier doit faire moins de 3MB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Le fichier doit faire plus de 500KB.
  • Au moins 8 motifs de la règle doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : Sekoia.io

Dépôt source : SEKOIA.IO Community @ a438a5901a

Licence : Detection Rule License 1.1 (licence du dépôt)

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: d0c8b89b-c811-47aa-9e03-717998c40d91

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE

Plus de règles Ratel