Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Janelarat

Detects JanelaRAT

MalwareJanelaratditekSHen 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 JanelaRAT

Famille de malware associée : Janelarat.

Cibles : PE Windows.

Elle définit 13 motifs (13 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-janelarat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Janelarat : FILE
{
	meta:
		description = "Detects JanelaRAT"
		author = "ditekSHen"
		id = "6a49eeda-307f-5429-aa24-658223360239"
		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#L10919-L10939"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "9f10112b6ffa382b03511e7b6c8757438d5910ee2c24d650d05bb53abfff3860"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "<Janela>k__" ascii
		$x2 = "janela" fullword ascii
		$x3 = "\\CSHARP\\RAT\\" ascii
		$s1 = "<SystemInfos>k__" ascii
		$s2 = "<SendKeepAlives>b__" ascii
		$s3 = "hookStruct" fullword ascii
		$s4 = "[^a-zA-Z]" fullword wide
		$s5 = "GetRecycled" fullword ascii
		$s6 = "import \"bcl.proto\";" wide
		$s7 = "\\KL_FINAL\\" ascii
		$s8 = "\\KL_FASEAVAST" ascii
		$s9 = "\\kl c++" ascii
		$s10 = "VisaoAPP" ascii wide

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or ( 6 of ( $s* ) ) )
}

Chaînes (13 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"<Janela>k__"ascii
$x2texte"janela"fullword ascii
$x3texte"\\CSHARP\\RAT\\"ascii
$s1texte"<SystemInfos>k__"ascii
$s2texte"<SendKeepAlives>b__"ascii
$s3texte"hookStruct"fullword ascii
$s4texte"[^a-zA-Z]"fullword wide
$s5texte"GetRecycled"fullword ascii
$s6texte"import \"bcl.proto\";"wide
$s7texte"\\KL_FINAL\\"ascii
$s8texte"\\KL_FASEAVAST"ascii
$s9texte"\\kl c++"ascii
$s10texte"VisaoAPP"ascii wide

Condition

uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or ( 6 of ( $s* ) ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $x* ) doivent être trouvés.
  • Au moins 2 motifs de ( $x* ) doivent être trouvés.
  • Au moins 3 motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 6 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: 6a49eeda-307f-5429-aa24-658223360239

Tags:FILE