Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Tool_Win_Sharpshares

Finds sharpshares EXE based on strings

Herramienta ofensivaSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2024-06-10
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Finds sharpshares EXE based on strings

Objetivos: PE de Windows.

Define 11 patrones (11 de texto, 0 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

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
}

Cadenas (11 patrones)

IdentificadorTipoValorModificadores
$str01texto"<GetAllShares>b__0"ascii
$str02texto"<SearchLDAP>b__0_0"ascii
$str03texto"get_AccessControlType"ascii
$str04texto"get_IdentityReference"ascii
$str05texto"get_PropertiesToLoad"ascii
$str06texto"SharpShares\\obj\\Release\\SharpShares.pdb"ascii
$str07texto"/filter:SYSVOL,NETLOGON,IPC$,PRINT$"wide
$str08texto"/threads:50 /ldap:servers"wide
$str09texto"SharpShares.exe"ascii wide
$str10texto"[+] LDAP Search Results:"wide
$str11texto"[+] Finished Enumerating Shares"wide

Condición

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

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 6 patrones de la regla.

Prueba esta regla en tu navegador

Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

Referencias

Licencia y atribución

Autor: Sekoia.io

Repositorio de origen: SEKOIA.IO Community @ a438a5901a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

Regla original

Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.

Id de la regla: ef90d573-12f8-4216-9a9e-96e7d1e841d0

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE