Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Tool_Pivotnacci_Webshell

Detects pivotnacci webshell

HacktoolSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
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:
		description = "Detects pivotnacci webshell"
		author = "Sekoia.io"
		id = "729b6381-b59d-46fe-9ad4-b8b68fb0ceea"
		date = "2024-04-22"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_pivotnacci_webshell.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "a57792915b4c888547ebe0b08b928e4bc32b3526c98a3ccc9fca0193cedee20a"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

BezeichnerTypWertModifikatoren
$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 < 10KB

In 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.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

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

version1.0
classificationTLP:CLEAR

Tags:FILE