YARA · SEKOIA.IO Community
SEKOIA_Tool_Pivotnacci_Webshell
Detects pivotnacci webshell
- Auteur
- Sekoia.io
- Date
- 2024-04-22
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects pivotnacci webshell
Elle définit 9 motifs (9 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
tool-pivotnacci-webshell.yarDetection Rule License 1.1
rule SEKOIA_Tool_Pivotnacci_Webshell : FILE
{
meta:
= "Detects pivotnacci webshell"
= "Sekoia.io"
= "729b6381-b59d-46fe-9ad4-b8b68fb0ceea"
= "2024-04-22"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_pivotnacci_webshell.yar#L1-L23"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "a57792915b4c888547ebe0b08b928e4bc32b3526c98a3ccc9fca0193cedee20a"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "if (cmd == SEND_OPERATION) {"
$ = "Response.BinaryWrite(newBuff)"
$ = "Request.Headers.Get(ID_HEADER)"
$ = "[$READ_BUFFER_SESSION_KEY . $connection_id]"
$ = "extract_session_readbuf($conn_id"
$ = "Failed connecting to target $addr:$port : $errstr"
$ = "void handle_post(String cmd)"
$ = "SocketChannel socketChannel = this.get_socket(socket_id"
$ = "this.get_svc().compareTo(this.get_hostname())"
condition:
3 of them and filesize < 10KB
}
Chaînes (9 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | "if (cmd == SEND_OPERATION) {" | |
| $ | texte | "Response.BinaryWrite(newBuff)" | |
| $ | texte | "Request.Headers.Get(ID_HEADER)" | |
| $ | texte | "[$READ_BUFFER_SESSION_KEY . $connection_id]" | |
| $ | texte | "extract_session_readbuf($conn_id" | |
| $ | texte | "Failed connecting to target $addr:$port : $errstr" | |
| $ | texte | "void handle_post(String cmd)" | |
| $ | texte | "SocketChannel socketChannel = this.get_socket(socket_id" | |
| $ | texte | "this.get_svc().compareTo(this.get_hostname())" |
Condition
3 of them and filesize < 10KBEn clair (Heuristique)
- Le fichier doit faire moins de 10KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 3 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 : Sekoia.io
Dépôt source : SEKOIA.IO Community @ a438a5901a
Licence : Detection Rule License 1.1 (licence du dépôt)
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: 729b6381-b59d-46fe-9ad4-b8b68fb0ceea
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2022-09-09