Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_TOOL_Sharpsqlpwn

Detects SharpSQLPwn

Verdächtig / HuntingditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekshen
Datum
2020-11-06
Geändert
2024-09-25
Score / Qualität
75 / 75

Was diese Regel erkennt

Detects SharpSQLPwn

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

indicator-tool-sharpsqlpwn.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_TOOL_Sharpsqlpwn : FILE
{
	meta:
		description = "Detects SharpSQLPwn"
		author = "ditekshen"
		id = "f99c0ddb-a073-5c15-9a7c-60f6766cd0a2"
		date = "2020-11-06"
		modified = "2024-09-25"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L1874-L1891"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c811d4926c433c6521f4bbe03a1abf4a5b27b56931a18a8bb672f37fe4fccfb8"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "smb_ip" fullword ascii
		$s2 = "Recon" fullword ascii
		$s3 = "UNCPathInjection" fullword ascii
		$s4 = "from sys.server_principals" wide
		$s5 = "EXEC sp_configure '" wide
		$s6 = "EXEC ('sp_configure" wide
		$s7 = "CREATE ASSEMBLY" wide
		$s8 = "DROP ASSEMBLY" wide
		$s9 = "FROM 0x" wide
		$s10 = "EXEC master..xp_dirtree \"\\\\" wide

	condition:
		uint16( 0 ) == 0x5a4d and 7 of them
}

Strings (10 Muster)

BezeichnerTypWertModifikatoren
$s1Text"smb_ip"fullword ascii
$s2Text"Recon"fullword ascii
$s3Text"UNCPathInjection"fullword ascii
$s4Text"from sys.server_principals"wide
$s5Text"EXEC sp_configure '"wide
$s6Text"EXEC ('sp_configure"wide
$s7Text"CREATE ASSEMBLY"wide
$s8Text"DROP ASSEMBLY"wide
$s9Text"FROM 0x"wide
$s10Text"EXEC master..xp_dirtree \"\\\\"wide

Bedingung

uint16( 0 ) == 0x5a4d and 7 of them

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 7 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: f99c0ddb-a073-5c15-9a7c-60f6766cd0a2

Tags:FILE