Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_WSHRAT

Detects WASHRAT

MalwareWSHRATditekSHen 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 WASHRAT

Zugehörige Malware-Familie: WSHRAT.

Ziele: Windows-PE.

Sie definiert 11 Muster (10 Text, 0 Hex, 1 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-wshrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_WSHRAT : FILE
{
	meta:
		description = "Detects WASHRAT"
		author = "ditekSHen"
		id = "e7940b7f-51dd-5a32-899b-64310f27bf3e"
		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#L10582-L10600"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "297bfe65815637a464e2a8fc23570c6e79694ffe0467d5898b7c845f1450de95"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "WSH Rat v" wide
		$x2 = "SOFTWARE\\WSHRat" wide
		$x3 = "WSH Remote" wide nocase
		$x4 = "WSHRAT" wide nocase
		$s1 = "shellobj.regwrite \"HKEY_" ascii nocase
		$s2 = "shellobj.run(\"%comspec% /c" ascii nocase
		$s3 = "objhttpdownload.setrequestheader \"user-agent:\"," ascii nocase
		$s4 = "WScript.CreateObject(\"Shell.Application\").ShellExecute" ascii nocase
		$s5 = "objwmiservice.ExecQuery(\"select" ascii nocase
		$s6 = "httpobj.open(\"post\",\"http" ascii nocase
		$s7 = /(rdp|keylogger|get-pass|uvnc)\|http/ wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and 1 of ( $s* ) ) or ( 6 of ( $s* ) ) )
}

Strings (11 Muster)

BezeichnerTypWertModifikatoren
$x1Text"WSH Rat v"wide
$x2Text"SOFTWARE\\WSHRat"wide
$x3Text"WSH Remote"wide nocase
$x4Text"WSHRAT"wide nocase
$s1Text"shellobj.regwrite \"HKEY_"ascii nocase
$s2Text"shellobj.run(\"%comspec% /c"ascii nocase
$s3Text"objhttpdownload.setrequestheader \"user-agent:\","ascii nocase
$s4Text"WScript.CreateObject(\"Shell.Application\").ShellExecute"ascii nocase
$s5Text"objwmiservice.ExecQuery(\"select"ascii nocase
$s6Text"httpobj.open(\"post\",\"http"ascii nocase
$s7Regex/(rdp|keylogger|get-pass|uvnc)\|http/wide

Bedingung

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and 1 of ( $s* ) ) or ( 6 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 2 Muster aus ( $x* ) müssen treffen.
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 1 Muster aus ( $s* ) müssen treffen.
  • Mindestens 6 Muster aus ( $s* ) 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: e7940b7f-51dd-5a32-899b-64310f27bf3e

Tags:FILE

Weitere WSHRAT-Regeln