Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Klingonrat

Detects KlingonRAT

MalwareKlingonratditekSHen 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 KlingonRAT

Famille de malware associée : Klingonrat.

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-klingonrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Klingonrat : FILE
{
	meta:
		description = "Detects KlingonRAT"
		author = "ditekSHen"
		id = "bea50bce-b38c-50a0-902a-1014615bd9b8"
		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#L6405-L6427"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "2abfbfc1b67f931f15bfdfd2cd4ba7821e62eb8c518bbc04629c0dd694bbd9c1"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$go = "Go build ID:" ascii
		$s1 = "/UCRelease/src/client/uac/once/"
		$s2 = "%T\\AppData\\Local\\Windows Update\\"
		$s3 = "%TSoftware\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\"
		$s4 = "wmic /namespace:'\\\\root\\subscription' PATH"
		$s5 = "C:\\Windows\\System32\\fodhelper.exeCaption,ParentProcessId,ProcessId"
		$s6 = "ldpro.exelsass.exeluall.exeluspt.exe"
		$s7 = "scangui.exedeps/lsass.exeetrustcipe.exefile"
		$s8 = "alogserv.exeaplica32.exeapvxdwin.exeatro55en.exeautodown.exeavconsol.exeavgserv9.exeavkwctl9.exeavltmain.exeavpdos32.exeavsynmgr.exeavwupd32.exeavwupsrv.exe"
		$c1 = "%s/keyLogger?machineId=%s" ascii
		$c2 = "%s/stealer?machineId=%s" ascii
		$c3 = "%s/lsass?machineId=%s" ascii
		$c4 = "%s/logger?machineId=%s" ascii
		$c5 = "%s/machineInfo?machineId=%s" ascii
		$c6 = "failurehttps://%s:%d/botif-modified-sinceillegal" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( $go ) and ( 3 of ( $c* ) or 5 of ( $s* ) or ( 3 of ( $s* ) and 1 of ( $c* ) ) )
}

Chaînes (15 motifs)

IdentifiantTypeValeurModificateurs
$gotexte"Go build ID:"ascii
$s1texte"/UCRelease/src/client/uac/once/"
$s2texte"%T\\AppData\\Local\\Windows Update\\"
$s3texte"%TSoftware\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\"
$s4texte"wmic /namespace:'\\\\root\\subscription' PATH"
$s5texte"C:\\Windows\\System32\\fodhelper.exeCaption,ParentProcessId,ProcessId"
$s6texte"ldpro.exelsass.exeluall.exeluspt.exe"
$s7texte"scangui.exedeps/lsass.exeetrustcipe.exefile"
$s8texte"alogserv.exeaplica32.exeapvxdwin.exeatro55en.exeautodown.exeavconsol.exeavgserv9.exeavkwctl9.exeavltmain.exeavpdos32.exeavsynmgr.exeavwupd32.exeavwupsrv.exe"
$c1texte"%s/keyLogger?machineId=%s"ascii
$c2texte"%s/stealer?machineId=%s"ascii
$c3texte"%s/lsass?machineId=%s"ascii
$c4texte"%s/logger?machineId=%s"ascii
$c5texte"%s/machineInfo?machineId=%s"ascii
$c6texte"failurehttps://%s:%d/botif-modified-sinceillegal"ascii

Condition

uint16( 0 ) == 0x5a4d and ( $go ) and ( 3 of ( $c* ) or 5 of ( $s* ) or ( 3 of ( $s* ) and 1 of ( $c* ) ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 3 motifs de ( $c* ) doivent être trouvés.
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 3 motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $c* ) 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: bea50bce-b38c-50a0-902a-1014615bd9b8

Tags:FILE