YARA · ditekSHen detection
DITEKSHEN_INDICATOR_TOOL_Sharpsqlpwn
Detects SharpSQLPwn
- 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:
= "Detects SharpSQLPwn"
= "ditekshen"
= "f99c0ddb-a073-5c15-9a7c-60f6766cd0a2"
= "2020-11-06"
= "2024-09-25"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L1874-L1891"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c811d4926c433c6521f4bbe03a1abf4a5b27b56931a18a8bb672f37fe4fccfb8"
= 75
= 75
= "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)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $s1 | Text | "smb_ip" | fullword ascii |
| $s2 | Text | "Recon" | fullword ascii |
| $s3 | Text | "UNCPathInjection" | fullword ascii |
| $s4 | Text | "from sys.server_principals" | wide |
| $s5 | Text | "EXEC sp_configure '" | wide |
| $s6 | Text | "EXEC ('sp_configure" | wide |
| $s7 | Text | "CREATE ASSEMBLY" | wide |
| $s8 | Text | "DROP ASSEMBLY" | wide |
| $s9 | Text | "FROM 0x" | wide |
| $s10 | Text | "EXEC master..xp_dirtree \"\\\\" | wide |
Bedingung
uint16( 0 ) == 0x5a4d and 7 of themIn 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.
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).
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
Verwandte Regeln
- Verdächtig / HuntingditekSHen detection· ditekshen· 2020-11-06
- Verdächtig / HuntingditekSHen detection· ditekshen· 2020-11-06
- Verdächtig / HuntingditekSHen detection· ditekshen· 2020-11-06
- Verdächtig / HuntingditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06