Aller au contenu

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_Ransom_Ragnarlocker_July_2020_1

Detects Ragnarlocker by strings (July 2020)

MalwareRagnarlockerSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compile avec YARA-X
Auteur
Arkbird_SOLG
Date
2020-07-30
Modifiée
2023-12-05
Score / Qualité
75 / 83

Ce que détecte cette règle

Detects Ragnarlocker by strings (July 2020)

Famille de malware associée : Ragnarlocker.

Cibles : PE Windows.

Elle définit 21 motifs (21 texte, 0 hex, 0 regex). Modules YARA utilisés : pe.

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

Source de la règle

Inclut les imports nécessaires pour la compiler seule.

mal-ransom-ragnarlocker-july-2020-1.yarDetection Rule License 1.1
import "pe"

rule SIGNATURE_BASE_MAL_Ransom_Ragnarlocker_July_2020_1 : FILE
{
	meta:
		description = "Detects Ragnarlocker by strings (July 2020)"
		author = "Arkbird_SOLG"
		id = "60e09057-d9f8-5e89-8f47-c5dda32806c6"
		date = "2020-07-30"
		modified = "2023-12-05"
		reference = "https://twitter.com/JAMESWT_MHT/status/1288797666688851969"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/crime_ransom_ragna_locker.yar#L38-L70"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "04c9cc0d1577d5ee54a4e2d4dd12f17011d13703cdd0e6efd46718d14fd9aa87"
		logic_hash = "dc44da2f9023e0702afa8081e85ba817ebfde15f449261fae9de729d51262b04"
		score = 75
		quality = 83
		tags = "FILE"

	strings:
		$f1 = "bootfont.bin" fullword wide
		$f2 = "bootmgr.efi" fullword wide
		$f3 = "bootsect.bak" fullword wide
		$r1 = "$!.txt" fullword wide
		$r2 = "---BEGIN KEY R_R---" fullword ascii
		$r3 = "!$R4GN4R_" wide
		$r4 = "RAGNRPW" fullword ascii
		$r5 = "---END KEY R_R---" fullword ascii
		$a1 = "+RhRR!-uD8'O&Wjq1_P#Rw<9Oy?n^qSP6N{BngxNK!:TG*}\\|W]o?/]H*8z;26X0" fullword ascii
		$a2 = "\\\\.\\PHYSICALDRIVE%d" fullword wide
		$a3 = "WinSta0\\Default" fullword wide
		$a4 = "%s-%s-%s-%s-%s" fullword wide
		$a5 = "SOFTWARE\\Microsoft\\Cryptography" fullword wide
		$c1 = "-backup" fullword wide
		$c2 = "-force" fullword wide
		$c3 = "-vmback" fullword wide
		$c4 = "-list" fullword wide
		$s1 = ".ragn@r_" wide
		$s2 = "\\notepad.exe" wide
		$s3 = "Opera Software" fullword wide
		$s4 = "Tor browser" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 30KB and ( pe.imphash ( ) == "2c2aab89a4cba444cf2729e2ed61ed4f" and ( ( 2 of ( $f* ) ) and ( 3 of ( $r* ) ) and ( 4 of ( $a* ) ) and ( 2 of ( $c* ) ) and ( 2 of ( $s* ) ) ) )
}

Chaînes (21 motifs)

IdentifiantTypeValeurModificateurs
$f1texte"bootfont.bin"fullword wide
$f2texte"bootmgr.efi"fullword wide
$f3texte"bootsect.bak"fullword wide
$r1texte"$!.txt"fullword wide
$r2texte"---BEGIN KEY R_R---"fullword ascii
$r3texte"!$R4GN4R_"wide
$r4texte"RAGNRPW"fullword ascii
$r5texte"---END KEY R_R---"fullword ascii
$a1texte"+RhRR!-uD8'O&Wjq1_P#Rw<9Oy?n^qSP6N{BngxNK!:TG*}\\|W]o?/]H*8z;26X0"fullword ascii
$a2texte"\\\\.\\PHYSICALDRIVE%d"fullword wide
$a3texte"WinSta0\\Default"fullword wide
$a4texte"%s-%s-%s-%s-%s"fullword wide
$a5texte"SOFTWARE\\Microsoft\\Cryptography"fullword wide
$c1texte"-backup"fullword wide
$c2texte"-force"fullword wide
$c3texte"-vmback"fullword wide
$c4texte"-list"fullword wide
$s1texte".ragn@r_"wide
$s2texte"\\notepad.exe"wide
$s3texte"Opera Software"fullword wide
$s4texte"Tor browser"fullword wide

Condition

uint16( 0 ) == 0x5a4d and filesize < 30KB and ( pe.imphash ( ) == "2c2aab89a4cba444cf2729e2ed61ed4f" and ( ( 2 of ( $f* ) ) and ( 3 of ( $r* ) ) and ( 4 of ( $a* ) ) and ( 2 of ( $c* ) ) and ( 2 of ( $s* ) ) ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Le fichier doit faire moins de 30KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Au moins 2 motifs de ( $f* ) doivent être trouvés.
  • Au moins 3 motifs de ( $r* ) doivent être trouvés.
  • Au moins 4 motifs de ( $a* ) doivent être trouvés.
  • Au moins 2 motifs de ( $c* ) doivent être trouvés.
  • Au moins 2 motifs de ( $s* ) doivent être trouvés.
  • Utilise le module pe.
  • Vérifie le hash des imports PE (imphash).

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

Hashes d’échantillons

Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).

  • 04c9cc0d1577d5ee54a4e2d4dd12f17011d13703cdd0e6efd46718d14fd9aa87

Licence et attribution

Auteur : Arkbird_SOLG

Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 60e09057-d9f8-5e89-8f47-c5dda32806c6

Tags:FILE

Plus de règles Ragnarlocker