Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Gravityrat

Detects GravityRAT

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

Ce que détecte cette règle

Detects GravityRAT

Famille de malware associée : Gravityrat.

Cibles : PE Windows.

Elle définit 15 motifs (15 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

malware-win-gravityrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Gravityrat : FILE
{
	meta:
		description = "Detects GravityRAT"
		author = "ditekSHen"
		id = "cb581dd6-15b2-54ae-9f27-30ec21554fb9"
		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#L6086-L6108"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a6b049dbf21f22f751c15da98536e9ef2a4ced7755ade0cc9904afddef1d3ae6"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "/GX/GX-Server.php?VALUE=2&Type=" wide
		$s2 = "&SIGNATUREHASH=" wide
		$s3 = "Error => CommonFunctionClass => Upload()" wide
		$s4 = "/GetActiveDomains.php" wide
		$s5 = "DetectVM" ascii wide
		$s6 = "/c {0} > {1}" wide
		$s7 = "DRIVEUPLOADCOMPLETED => TOTALFILES={0}, FILESUPLOADED={1}" wide
		$s8 = "Program => RunAFile()" wide
		$s9 = "DoViaCmd" ascii
		$s10 = ".msoftupdates.com:" wide
		$f1 = "<RootJob>b__" ascii
		$f2 = "<GetFiles>b__" ascii
		$f3 = "<UpdateServer>b__" ascii
		$f4 = "<EthernetId>b__" ascii
		$f5 = "<MatchMacAdd>b__" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or ( all of ( $f* ) and 1 of ( $s* ) ) )
}

Chaînes (15 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"/GX/GX-Server.php?VALUE=2&Type="wide
$s2texte"&SIGNATUREHASH="wide
$s3texte"Error => CommonFunctionClass => Upload()"wide
$s4texte"/GetActiveDomains.php"wide
$s5texte"DetectVM"ascii wide
$s6texte"/c {0} > {1}"wide
$s7texte"DRIVEUPLOADCOMPLETED => TOTALFILES={0}, FILESUPLOADED={1}"wide
$s8texte"Program => RunAFile()"wide
$s9texte"DoViaCmd"ascii
$s10texte".msoftupdates.com:"wide
$f1texte"<RootJob>b__"ascii
$f2texte"<GetFiles>b__"ascii
$f3texte"<UpdateServer>b__"ascii
$f4texte"<EthernetId>b__"ascii
$f5texte"<MatchMacAdd>b__"ascii

Condition

uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or ( all of ( $f* ) and 1 of ( $s* ) ) )

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 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $s* ) 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 : 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: cb581dd6-15b2-54ae-9f27-30ec21554fb9

Tags:FILE