Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Pcrat

Detects PCRat / Gh0st

MalwarePcratditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 75

Was diese Regel erkennt

Detects PCRat / Gh0st

Zugehörige Malware-Familie: Pcrat.

Ziele: Windows-PE.

Sie definiert 20 Muster (20 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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

Strings (20 Muster)

BezeichnerTypWertModifikatoren
$s1Text"ClearEventLogA"fullword ascii
$s2Text"NetUserAdd"fullword ascii
$s3Text"<H1>403 Forbidden</H1>"fullword ascii
$s4Text":]%d-%d-%d %d:%d:%d"fullword ascii
$s5Text"Mozilla/4.0 (compatible)"fullword ascii
$s6Text"<Enter>"fullword ascii
$s7Text"\\cmd.exe"fullword ascii
$s8Text"Program Files\\Internet Explorer\\IEXPLORE.EXE"fullword ascii
$s9Text"Collegesoft ScenicPlayer"fullword wide
$a1Text"360tray.exe"fullword ascii
$a2Text"avp.exe"fullword ascii
$a3Text"RavMonD.exe"fullword ascii
$a4Text"360sd.exe"fullword ascii
$a5Text"Mcshield.exe"fullword ascii
$a6Text"egui.exe"fullword ascii
$a7Text"kxetray.exe"fullword ascii
$a8Text"knsdtray.exe"fullword ascii
$a9Text"TMBMSRV.exe"fullword ascii
$a10Text"avcenter.exe"fullword ascii
$a11Text"ashDisp.exe"fullword ascii

Bedingung

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

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 5 Muster aus ( $s* ) müssen treffen.
  • Mindestens 6 Muster aus ( $a* ) 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: de5b3e08-16da-56e2-a0a4-d8bed5840804

Tags:FILE