Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Vanillarat

Detects VanillaRAT

MalwareVanillaratditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X (avertissements)
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 75

Ce que détecte cette règle

Detects VanillaRAT

Famille de malware associée : Vanillarat.

Cibles : PE Windows.

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

YARA-X indique : warning[unintended_pattern_in_set]: pattern `$stub` may be unintendedly or redundantly included in pattern set `$s*`

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

Source de la règle

malware-win-vanillarat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Vanillarat : FILE
{
	meta:
		description = "Detects VanillaRAT"
		author = "ditekSHen"
		id = "70c2cd1a-a6d4-562e-a6fc-c16a9e87c6b7"
		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#L7882-L7902"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "d7b90ac88a50693ec4bb0676c04f5d161f04f67970ea60d80e79d774da75bfdc"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$stub = "VanillaStub." ascii wide
		$s1 = "Client.Send: " wide
		$s2 = "Connected to chat" fullword wide
		$s3 = "GetStoredPasswords" fullword wide
		$s4 = "Started screen locker." fullword wide
		$s5 = "[<\\MOUSE>]" fullword wide
		$s6 = "YOUR SCREEN HAS BEEN LOCKED!" fullword wide
		$s7 = "record recsound" fullword wide
		$f1 = "<StartRemoteDestkop>d__" ascii
		$f2 = "<ConnectLoop>d__" ascii
		$f3 = "<Scan0>k__" ascii
		$f4 = "<RemoteShellActive>k__" ascii
		$f5 = "KillClient" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( ( $stub and ( 2 of ( $s* ) or 2 of ( $f* ) ) ) or 6 of ( $s* ) or all of ( $f* ) )
}

Chaînes (13 motifs)

IdentifiantTypeValeurModificateurs
$stubtexte"VanillaStub."ascii wide
$s1texte"Client.Send: "wide
$s2texte"Connected to chat"fullword wide
$s3texte"GetStoredPasswords"fullword wide
$s4texte"Started screen locker."fullword wide
$s5texte"[<\\MOUSE>]"fullword wide
$s6texte"YOUR SCREEN HAS BEEN LOCKED!"fullword wide
$s7texte"record recsound"fullword wide
$f1texte"<StartRemoteDestkop>d__"ascii
$f2texte"<ConnectLoop>d__"ascii
$f3texte"<Scan0>k__"ascii
$f4texte"<RemoteShellActive>k__"ascii
$f5texte"KillClient"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( ( $stub and ( 2 of ( $s* ) or 2 of ( $f* ) ) ) or 6 of ( $s* ) or all of ( $f* ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $f* ) doivent être trouvés.
  • Au moins 2 motifs de ( $s* ) doivent être trouvés.
  • Au moins 2 motifs de ( $f* ) doivent être trouvés.
  • Au moins 6 motifs de ( $s* ) doivent être trouvés.
  • Le motif $stub doit être présent.

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 : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: 70c2cd1a-a6d4-562e-a6fc-c16a9e87c6b7

Tags:FILE