Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Stealc_Str_Oct24

Finds Stealc standalone samples (or dumps) based on the strings

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

Qué detecta esta regla

Finds Stealc standalone samples (or dumps) based on the strings

Familia de malware asociada: Stealc.

Objetivos: PE de Windows.

Define 13 patrones (13 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

infostealer-win-stealc-str-oct24.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Stealc_Str_Oct24 : FILE
{
	meta:
		description = "Finds Stealc standalone samples (or dumps) based on the strings"
		author = "Sekoia.io"
		id = "7448fafe-206c-4f9c-b5a3-cbabec12a45b"
		date = "2024-10-20"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_stealc_str_oct24.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "4f7fece81c3fe1e56b57aed4030b48331b53443a200799046fe84c895b591a71"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "-nop -c \"iex(New-Object Net.WebClient).DownloadString(" ascii
		$str02 = "Azure\\.IdentityService" ascii
		$str03 = "steam_tokens.txt" ascii
		$str04 = "\"encrypted_key\":\"" ascii
		$str05 = "prefs.js" ascii
		$str06 = "browser: FileZilla" ascii
		$str07 = "profile: null" ascii
		$str08 = "url:" ascii
		$str09 = "login:" ascii
		$str10 = "password:" ascii
		$str11 = "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe" ascii
		$str12 = "ChromeFuckNewCookies" ascii
		$str13 = "/c timeout /t 10 & del /f /q \"" ascii

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

Cadenas (13 patrones)

IdentificadorTipoValorModificadores
$str01texto"-nop -c \"iex(New-Object Net.WebClient).DownloadString("ascii
$str02texto"Azure\\.IdentityService"ascii
$str03texto"steam_tokens.txt"ascii
$str04texto"\"encrypted_key\":\""ascii
$str05texto"prefs.js"ascii
$str06texto"browser: FileZilla"ascii
$str07texto"profile: null"ascii
$str08texto"url:"ascii
$str09texto"login:"ascii
$str10texto"password:"ascii
$str11texto"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"ascii
$str12texto"ChromeFuckNewCookies"ascii
$str13texto"/c timeout /t 10 & del /f /q \""ascii

Condición

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

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 9 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: 7448fafe-206c-4f9c-b5a3-cbabec12a45b

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de Stealc