Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Tool_Win_Sharpshares

Finds sharpshares EXE based on strings

HacktoolSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Sekoia.io
Datum
2024-06-10
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Finds sharpshares EXE based on strings

Ziele: Windows-PE.

Sie definiert 11 Muster (11 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

tool-win-sharpshares.yarDetection Rule License 1.1
rule SEKOIA_Tool_Win_Sharpshares : FILE
{
	meta:
		description = "Finds sharpshares EXE based on strings"
		author = "Sekoia.io"
		id = "ef90d573-12f8-4216-9a9e-96e7d1e841d0"
		date = "2024-06-10"
		modified = "2024-12-19"
		reference = "https://github.com/mitchmoser/SharpShares/releases"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_win_sharpshares.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "6aa96d7c24638451bde98497cc7c844c87612d81cc7826113729c80bd5180442"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "<GetAllShares>b__0" ascii
		$str02 = "<SearchLDAP>b__0_0" ascii
		$str03 = "get_AccessControlType" ascii
		$str04 = "get_IdentityReference" ascii
		$str05 = "get_PropertiesToLoad" ascii
		$str06 = "SharpShares\\obj\\Release\\SharpShares.pdb" ascii
		$str07 = "/filter:SYSVOL,NETLOGON,IPC$,PRINT$" wide
		$str08 = "/threads:50 /ldap:servers" wide
		$str09 = "SharpShares.exe" ascii wide
		$str10 = "[+] LDAP Search Results:" wide
		$str11 = "[+] Finished Enumerating Shares" wide

	condition:
		uint16( 0 ) == 0x5A4D and 6 of them
}

Strings (11 Muster)

BezeichnerTypWertModifikatoren
$str01Text"<GetAllShares>b__0"ascii
$str02Text"<SearchLDAP>b__0_0"ascii
$str03Text"get_AccessControlType"ascii
$str04Text"get_IdentityReference"ascii
$str05Text"get_PropertiesToLoad"ascii
$str06Text"SharpShares\\obj\\Release\\SharpShares.pdb"ascii
$str07Text"/filter:SYSVOL,NETLOGON,IPC$,PRINT$"wide
$str08Text"/threads:50 /ldap:servers"wide
$str09Text"SharpShares.exe"ascii wide
$str10Text"[+] LDAP Search Results:"wide
$str11Text"[+] Finished Enumerating Shares"wide

Bedingung

uint16( 0 ) == 0x5A4D and 6 of them

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 6 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: ef90d573-12f8-4216-9a9e-96e7d1e841d0

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE