Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Ktlvdoor

Detects KTLVdoor

MalwareKtlv DoorditekSHen 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 KTLVdoor

Famille de malware associée : Ktlv Door.

Cibles : PE Windows.

Elle définit 26 motifs (24 texte, 0 hex, 2 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-ktlvdoor.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Ktlvdoor : FILE
{
	meta:
		description = "Detects KTLVdoor"
		author = "ditekshen"
		id = "f63ebd05-fb4b-50fb-887b-dacd379594a4"
		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#L11758-L11791"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "3ced9b558c7e17acd015cd2c9dd0c5d024bf9c31c7f2e7c9b7b937124109cf8b"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "/cmd/acc/agent_acc" ascii
		$s2 = "main.DLLWMain" ascii
		$s3 = "main.checkSilent" ascii
		$h1 = ".handleInteractiveShell" ascii
		$h2 = ".handleNetstat" ascii
		$h3 = ".handleProcess" ascii
		$h4 = ".handleRefreshHostInfo" ascii
		$h5 = ".handleTimestomp" ascii
		$h6 = ".handleSoInject" ascii
		$h7 = ".HandleRegInfo" ascii
		$h8 = ".handlePortscan" ascii
		$h9 = ".handleReflectDllInject" ascii
		$h10 = ".handleFileDownload" ascii
		$f1 = ".RdpWithNTLM." ascii
		$f2 = ".FingerPrintOs." ascii
		$f3 = ".ScanWMI." ascii
		$f4 = ".ScanWinRM." ascii
		$f5 = ".ScanWeb." ascii
		$f6 = ".ScanSmb2." ascii
		$f7 = ".ScanRDP." ascii
		$f8 = ".ScanPing." ascii
		$f9 = ".ScanOxid." ascii
		$f10 = ".ScanMssql." ascii
		$f11 = ".ScanBanner." ascii
		$fr1 = /\.proxy[CS]2[CS](TC|UD)P/ ascii
		$fr2 = /\.Scan(WMI|WinRM|Web|Smb2|RDP|Ping|Oxid|Mssql|Banner)\./ ascii

	condition:
		( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and ( ( 6 of ( $h* ) ) or ( 12 of ( $f* ) ) or ( 2 of ( $h* ) and 4 of ( $f* ) ) or ( 1 of ( $s* ) and ( 4 of ( $h* ) or 4 of ( $f* ) ) ) or ( 13 of them ) )
}

Chaînes (26 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"/cmd/acc/agent_acc"ascii
$s2texte"main.DLLWMain"ascii
$s3texte"main.checkSilent"ascii
$h1texte".handleInteractiveShell"ascii
$h2texte".handleNetstat"ascii
$h3texte".handleProcess"ascii
$h4texte".handleRefreshHostInfo"ascii
$h5texte".handleTimestomp"ascii
$h6texte".handleSoInject"ascii
$h7texte".HandleRegInfo"ascii
$h8texte".handlePortscan"ascii
$h9texte".handleReflectDllInject"ascii
$h10texte".handleFileDownload"ascii
$f1texte".RdpWithNTLM."ascii
$f2texte".FingerPrintOs."ascii
$f3texte".ScanWMI."ascii
$f4texte".ScanWinRM."ascii
$f5texte".ScanWeb."ascii
$f6texte".ScanSmb2."ascii
$f7texte".ScanRDP."ascii
$f8texte".ScanPing."ascii
$f9texte".ScanOxid."ascii
$f10texte".ScanMssql."ascii
$f11texte".ScanBanner."ascii
$fr1regex/\.proxy[CS]2[CS](TC|UD)P/ascii
$fr2regex/\.Scan(WMI|WinRM|Web|Smb2|RDP|Ping|Oxid|Mssql|Banner)\./ascii

Condition

( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and ( ( 6 of ( $h* ) ) or ( 12 of ( $f* ) ) or ( 2 of ( $h* ) and 4 of ( $f* ) ) or ( 1 of ( $s* ) and ( 4 of ( $h* ) or 4 of ( $f* ) ) ) or ( 13 of them ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 6 motifs de ( $h* ) doivent être trouvés.
  • Au moins 12 motifs de ( $f* ) doivent être trouvés.
  • Au moins 2 motifs de ( $h* ) doivent être trouvés.
  • Au moins 4 motifs de ( $f* ) doivent être trouvés.
  • Au moins 1 motifs de ( $s* ) doivent être trouvés.
  • Au moins 4 motifs de ( $h* ) doivent être trouvés.
  • Au moins 13 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: f63ebd05-fb4b-50fb-887b-dacd379594a4

Tags:FILE