Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Jssloader

Detects JSSLoader RAT/backdoor

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

Ce que détecte cette règle

Detects JSSLoader RAT/backdoor

Famille de malware associée : Jssloader.

Cibles : PE Windows.

Elle définit 23 motifs (23 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-jssloader.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Jssloader : FILE
{
	meta:
		description = "Detects JSSLoader RAT/backdoor"
		author = "ditekSHen"
		id = "ef710c21-5c64-513e-b882-b5768478976e"
		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#L3722-L3752"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "91764dabfb40cb51914110de229ddb00cd565078fef83c825f7a86fa502fda37"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$cmd1 = "Cmd_UPDATE" fullword ascii
		$cmd2 = "Cmd_IDLE" fullword ascii
		$cmd3 = "Cmd_EXE" fullword ascii
		$cmd4 = "Cmd_VBS" fullword ascii
		$cmd5 = "Cmd_JS" fullword ascii
		$cmd6 = "Cmd_PWS" fullword ascii
		$cmd7 = "Cmd_RAT" fullword ascii
		$cmd8 = "Cmd_UNINST" fullword ascii
		$cmd9 = "Cmd_RunDll" fullword ascii
		$s1 = "ANSWER_OK" fullword ascii
		$s2 = "GatherDFiles" ascii
		$s3 = "CommandCd" fullword ascii
		$s4 = "URL_GetCmd" fullword ascii
		$s5 = "\"host\": \"{0}\", \"domain\": \"{1}\", \"user\": \"{2}\"" wide
		$s6 = "pc_dns_host_name" wide
		$s7 = "\"adinfo\": { \"adinformation\":" wide
		$e1 = "//e:vbscript" wide
		$e2 = "//e:jscript" wide
		$e3 = "/c rundll32.exe" wide
		$e4 = "/C powershell" wide
		$e5 = "C:\\Windows\\System32\\cmd.exe" wide
		$e6 = "echo del /f" wide
		$e7 = "AT.U() {0}. format" wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 5 of ( $cmd* ) or 5 of ( $s* ) or all of ( $e* ) or 7 of them )
}

Chaînes (23 motifs)

IdentifiantTypeValeurModificateurs
$cmd1texte"Cmd_UPDATE"fullword ascii
$cmd2texte"Cmd_IDLE"fullword ascii
$cmd3texte"Cmd_EXE"fullword ascii
$cmd4texte"Cmd_VBS"fullword ascii
$cmd5texte"Cmd_JS"fullword ascii
$cmd6texte"Cmd_PWS"fullword ascii
$cmd7texte"Cmd_RAT"fullword ascii
$cmd8texte"Cmd_UNINST"fullword ascii
$cmd9texte"Cmd_RunDll"fullword ascii
$s1texte"ANSWER_OK"fullword ascii
$s2texte"GatherDFiles"ascii
$s3texte"CommandCd"fullword ascii
$s4texte"URL_GetCmd"fullword ascii
$s5texte"\"host\": \"{0}\", \"domain\": \"{1}\", \"user\": \"{2}\""wide
$s6texte"pc_dns_host_name"wide
$s7texte"\"adinfo\": { \"adinformation\":"wide
$e1texte"//e:vbscript"wide
$e2texte"//e:jscript"wide
$e3texte"/c rundll32.exe"wide
$e4texte"/C powershell"wide
$e5texte"C:\\Windows\\System32\\cmd.exe"wide
$e6texte"echo del /f"wide
$e7texte"AT.U() {0}. format"wide

Condition

uint16( 0 ) == 0x5a4d and ( 5 of ( $cmd* ) or 5 of ( $s* ) or all of ( $e* ) or 7 of them )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $e* ) doivent être trouvés.
  • Au moins 5 motifs de ( $cmd* ) doivent être trouvés.
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 7 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 : 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: ef710c21-5c64-513e-b882-b5768478976e

Tags:FILE

Plus de règles Jssloader