Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Pcrat

Detects PCRat / Gh0st

MalwarePcratditekSHen 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 PCRat / Gh0st

Famille de malware associée : Pcrat.

Cibles : PE Windows.

Elle définit 20 motifs (20 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-pcrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Pcrat : FILE
{
	meta:
		description = "Detects PCRat / Gh0st"
		author = "ditekSHen"
		id = "de5b3e08-16da-56e2-a0a4-d8bed5840804"
		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#L8534-L8561"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ad56d7d6a2bb6d09bc4530c31b51456b6bbca5def1810449fd2a31973cce18f8"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "ClearEventLogA" fullword ascii
		$s2 = "NetUserAdd" fullword ascii
		$s3 = "<H1>403 Forbidden</H1>" fullword ascii
		$s4 = ":]%d-%d-%d  %d:%d:%d" fullword ascii
		$s5 = "Mozilla/4.0 (compatible)" fullword ascii
		$s6 = "<Enter>" fullword ascii
		$s7 = "\\cmd.exe" fullword ascii
		$s8 = "Program Files\\Internet Explorer\\IEXPLORE.EXE" fullword ascii
		$s9 = "Collegesoft ScenicPlayer" fullword wide
		$a1 = "360tray.exe" fullword ascii
		$a2 = "avp.exe" fullword ascii
		$a3 = "RavMonD.exe" fullword ascii
		$a4 = "360sd.exe" fullword ascii
		$a5 = "Mcshield.exe" fullword ascii
		$a6 = "egui.exe" fullword ascii
		$a7 = "kxetray.exe" fullword ascii
		$a8 = "knsdtray.exe" fullword ascii
		$a9 = "TMBMSRV.exe" fullword ascii
		$a10 = "avcenter.exe" fullword ascii
		$a11 = "ashDisp.exe" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and 5 of ( $s* ) and 6 of ( $a* )
}

Chaînes (20 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"ClearEventLogA"fullword ascii
$s2texte"NetUserAdd"fullword ascii
$s3texte"<H1>403 Forbidden</H1>"fullword ascii
$s4texte":]%d-%d-%d %d:%d:%d"fullword ascii
$s5texte"Mozilla/4.0 (compatible)"fullword ascii
$s6texte"<Enter>"fullword ascii
$s7texte"\\cmd.exe"fullword ascii
$s8texte"Program Files\\Internet Explorer\\IEXPLORE.EXE"fullword ascii
$s9texte"Collegesoft ScenicPlayer"fullword wide
$a1texte"360tray.exe"fullword ascii
$a2texte"avp.exe"fullword ascii
$a3texte"RavMonD.exe"fullword ascii
$a4texte"360sd.exe"fullword ascii
$a5texte"Mcshield.exe"fullword ascii
$a6texte"egui.exe"fullword ascii
$a7texte"kxetray.exe"fullword ascii
$a8texte"knsdtray.exe"fullword ascii
$a9texte"TMBMSRV.exe"fullword ascii
$a10texte"avcenter.exe"fullword ascii
$a11texte"ashDisp.exe"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and 5 of ( $s* ) and 6 of ( $a* )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 6 motifs de ( $a* ) 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: de5b3e08-16da-56e2-a0a4-d8bed5840804

Tags:FILE