YARA · ditekSHen detection
DITEKSHEN_INDICATOR_TOOL_Sharpsqlpwn
Detects SharpSQLPwn
- Auteur
- ditekshen
- Date
- 2020-11-06
- Modifiée
- 2024-09-25
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects SharpSQLPwn
Cibles : PE Windows.
Elle définit 10 motifs (10 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
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
}
Chaînes (10 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "smb_ip" | fullword ascii |
| $s2 | texte | "Recon" | fullword ascii |
| $s3 | texte | "UNCPathInjection" | fullword ascii |
| $s4 | texte | "from sys.server_principals" | wide |
| $s5 | texte | "EXEC sp_configure '" | wide |
| $s6 | texte | "EXEC ('sp_configure" | wide |
| $s7 | texte | "CREATE ASSEMBLY" | wide |
| $s8 | texte | "DROP ASSEMBLY" | wide |
| $s9 | texte | "FROM 0x" | wide |
| $s10 | texte | "EXEC master..xp_dirtree \"\\\\" | wide |
Condition
uint16( 0 ) == 0x5a4d and 7 of themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 7 motifs de la règle doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.
Références
Licence et attribution
Auteur : ditekshen
Dépôt source : ditekSHen detection @ e76c93dcde
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: f99c0ddb-a073-5c15-9a7c-60f6766cd0a2
Tags:FILE
Règles liées
- Suspect / chasseditekSHen detection· ditekshen· 2020-11-06
- Suspect / chasseditekSHen detection· ditekshen· 2020-11-06
- Suspect / chasseditekSHen detection· ditekshen· 2020-11-06
- Suspect / chasseditekSHen 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