Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Ktlvdoor

Detects KTLVdoor

MalwareKtlv DoorditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekshen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 73

Was diese Regel erkennt

Detects KTLVdoor

Zugehörige Malware-Familie: Ktlv Door.

Ziele: Windows-PE.

Sie definiert 26 Muster (24 Text, 0 Hex, 2 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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 ) )
}

Strings (26 Muster)

BezeichnerTypWertModifikatoren
$s1Text"/cmd/acc/agent_acc"ascii
$s2Text"main.DLLWMain"ascii
$s3Text"main.checkSilent"ascii
$h1Text".handleInteractiveShell"ascii
$h2Text".handleNetstat"ascii
$h3Text".handleProcess"ascii
$h4Text".handleRefreshHostInfo"ascii
$h5Text".handleTimestomp"ascii
$h6Text".handleSoInject"ascii
$h7Text".HandleRegInfo"ascii
$h8Text".handlePortscan"ascii
$h9Text".handleReflectDllInject"ascii
$h10Text".handleFileDownload"ascii
$f1Text".RdpWithNTLM."ascii
$f2Text".FingerPrintOs."ascii
$f3Text".ScanWMI."ascii
$f4Text".ScanWinRM."ascii
$f5Text".ScanWeb."ascii
$f6Text".ScanSmb2."ascii
$f7Text".ScanRDP."ascii
$f8Text".ScanPing."ascii
$f9Text".ScanOxid."ascii
$f10Text".ScanMssql."ascii
$f11Text".ScanBanner."ascii
$fr1Regex/\.proxy[CS]2[CS](TC|UD)P/ascii
$fr2Regex/\.Scan(WMI|WinRM|Web|Smb2|RDP|Ping|Oxid|Mssql|Banner)\./ascii

Bedingung

( 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 ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 6 Muster aus ( $h* ) müssen treffen.
  • Mindestens 12 Muster aus ( $f* ) müssen treffen.
  • Mindestens 2 Muster aus ( $h* ) müssen treffen.
  • Mindestens 4 Muster aus ( $f* ) müssen treffen.
  • Mindestens 1 Muster aus ( $s* ) müssen treffen.
  • Mindestens 4 Muster aus ( $h* ) müssen treffen.
  • Mindestens 13 Muster aus der Regel müssen treffen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: ditekshen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: f63ebd05-fb4b-50fb-887b-dacd379594a4

Tags:FILE