YARA · SEKOIA.IO Community
SEKOIA_Tool_Pivotnacci_Webshell
Detects pivotnacci webshell
- Autor
- Sekoia.io
- Datum
- 2024-04-22
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects pivotnacci webshell
Sie definiert 9 Muster (9 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
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
}
Strings (9 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $ | Text | "if (cmd == SEND_OPERATION) {" | |
| $ | Text | "Response.BinaryWrite(newBuff)" | |
| $ | Text | "Request.Headers.Get(ID_HEADER)" | |
| $ | Text | "[$READ_BUFFER_SESSION_KEY . $connection_id]" | |
| $ | Text | "extract_session_readbuf($conn_id" | |
| $ | Text | "Failed connecting to target $addr:$port : $errstr" | |
| $ | Text | "void handle_post(String cmd)" | |
| $ | Text | "SocketChannel socketChannel = this.get_socket(socket_id" | |
| $ | Text | "this.get_svc().compareTo(this.get_hostname())" |
Bedingung
3 of them and filesize < 10KBIn Worten (Heuristik)
- Die Datei muss kleiner als 10KB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 3 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: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 729b6381-b59d-46fe-9ad4-b8b68fb0ceea
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- HacktoolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- HacktoolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-09-09