Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Redline_Strings

Finds Redline samples based on characteristic strings

MalwareRedLineSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2022-09-07
Modificada
2024-12-19
Puntuación / Calidad
75 / 78

Qué detecta esta regla

Finds Redline samples based on characteristic strings

Familia de malware asociada: RedLine.

Objetivos: PE de Windows.

Define 31 patrones (31 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-redline-strings.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Redline_Strings : FILE
{
	meta:
		description = "Finds Redline samples based on characteristic strings"
		author = "Sekoia.io"
		id = "0c9fcb0e-ce8f-44f4-90b2-abafcdd6c02e"
		date = "2022-09-07"
		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_redline_strings.yar#L1-L47"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "44443e16b788231b3f256b4d1e91c458c33963d5737d69fc5850f6b0efa7726b"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$gen01 = "ChromeGetRoamingName" ascii
		$gen02 = "ChromeGetLocalName" ascii
		$gen03 = "get_UserDomainName" ascii
		$gen04 = "get_encrypted_key" ascii
		$gen05 = "browserPaths" ascii
		$gen06 = "GetBrowsers" ascii
		$gen07 = "get_InstalledInputLanguages" ascii
		$gen08 = "BCRYPT_INIT_AUTH_MODE_INFO_VERSION" ascii
		$spe0 = "Profile_encrypted_value" wide
		$spe1 = "[AString-ZaString-z\\d]{2String4}\\.[String\\w-]{String6}\\.[\\wString-]{2String7}" wide
		$spe2 = "AFileSystemntivFileSystemirusPrFileSystemoduFileSystemct|AntiFileSystemSpyWFileSystemareProFileSystemduct|FireFileSystemwallProdFileSystemuct" wide
		$spe3 = "OpHandlerenVPHandlerN ConHandlernect%DSK_23%Opera GXcookies" wide
		$spe4 = "//settinString.Removeg[@name=\\PasswString.Removeord\\]/valuString.RemoveeROOT\\SecurityCenter" wide
		$spe5 = "ROOT\\SecurityCenter2Web DataSteamPath" wide
		$spe6 = "windows-1251, CommandLine:" wide
		$spe7 = "OFileInfopeFileInfora GFileInfoX StabFileInfole" wide
		$spe8 = "ApGenericpDaGenericta\\RGenericoamiGenericng\\" wide
		$spe9 = "*wallet*" wide
		$typ01 = "359A00EF6C789FD4C18644F56C5D3F97453FFF20" ascii
		$typ02 = "F413CEA9BAA458730567FE47F57CC3C94DDF63C0" ascii
		$typ03 = "A937C899247696B6565665BE3BD09607F49A2042" ascii
		$typ04 = "D67333042BFFC20116BF01BC556566EC76C6F7E2" ascii
		$typ05 = "4E3D7F188A5F5102BEC5B820632BBAEC26839E63" ascii
		$typ06 = "FB10FF1AD09FE8F5CA3A85B06BC96596AF83B350" ascii
		$typ07 = "77A9683FAF2EC9EC3DABC09D33C3BD04E8897D60" ascii
		$typ08 = "A8F9B62160DF085B926D5ED70E2B0F6C95A25280" ascii
		$typ09 = "718D1294A5C2D3F3D70E09F2F473155C4F567201" ascii
		$typ10 = "2FBDC611D3D91C142C969071EA8A7D3D10FF6301" ascii
		$typ11 = "2A19BFD7333718195216588A698752C517111B02" ascii
		$typ12 = "EB7EF1973CDC295B7B08FE6D82B9ECDAD1106AF2" ascii
		$typ13 = "04EC68A0FC7D9B6A255684F330C28A4DCAB91F13" ascii

	condition:
		uint16( 0 ) == 0x5A4D and ( 7 of ( $gen* ) or 3 of ( $spe* ) or 2 of ( $typ* ) )
}

Cadenas (31 patrones)

IdentificadorTipoValorModificadores
$gen01texto"ChromeGetRoamingName"ascii
$gen02texto"ChromeGetLocalName"ascii
$gen03texto"get_UserDomainName"ascii
$gen04texto"get_encrypted_key"ascii
$gen05texto"browserPaths"ascii
$gen06texto"GetBrowsers"ascii
$gen07texto"get_InstalledInputLanguages"ascii
$gen08texto"BCRYPT_INIT_AUTH_MODE_INFO_VERSION"ascii
$spe0texto"Profile_encrypted_value"wide
$spe1texto"[AString-ZaString-z\\d]{2String4}\\.[String\\w-]{String6}\\.[\\wString-]{2String7}"wide
$spe2texto"AFileSystemntivFileSystemirusPrFileSystemoduFileSystemct|AntiFileSystemSpyWFileSystemareProFileSystemduct|FireFileSystemwallProdFileSystemuct"wide
$spe3texto"OpHandlerenVPHandlerN ConHandlernect%DSK_23%Opera GXcookies"wide
$spe4texto"//settinString.Removeg[@name=\\PasswString.Removeord\\]/valuString.RemoveeROOT\\SecurityCenter"wide
$spe5texto"ROOT\\SecurityCenter2Web DataSteamPath"wide
$spe6texto"windows-1251, CommandLine:"wide
$spe7texto"OFileInfopeFileInfora GFileInfoX StabFileInfole"wide
$spe8texto"ApGenericpDaGenericta\\RGenericoamiGenericng\\"wide
$spe9texto"*wallet*"wide
$typ01texto"359A00EF6C789FD4C18644F56C5D3F97453FFF20"ascii
$typ02texto"F413CEA9BAA458730567FE47F57CC3C94DDF63C0"ascii
$typ03texto"A937C899247696B6565665BE3BD09607F49A2042"ascii
$typ04texto"D67333042BFFC20116BF01BC556566EC76C6F7E2"ascii
$typ05texto"4E3D7F188A5F5102BEC5B820632BBAEC26839E63"ascii
$typ06texto"FB10FF1AD09FE8F5CA3A85B06BC96596AF83B350"ascii
$typ07texto"77A9683FAF2EC9EC3DABC09D33C3BD04E8897D60"ascii
$typ08texto"A8F9B62160DF085B926D5ED70E2B0F6C95A25280"ascii
$typ09texto"718D1294A5C2D3F3D70E09F2F473155C4F567201"ascii
$typ10texto"2FBDC611D3D91C142C969071EA8A7D3D10FF6301"ascii
$typ11texto"2A19BFD7333718195216588A698752C517111B02"ascii
$typ12texto"EB7EF1973CDC295B7B08FE6D82B9ECDAD1106AF2"ascii
$typ13texto"04EC68A0FC7D9B6A255684F330C28A4DCAB91F13"ascii

Condición

uint16( 0 ) == 0x5A4D and ( 7 of ( $gen* ) or 3 of ( $spe* ) or 2 of ( $typ* ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 7 patrones de ( $gen* ).
  • Deben coincidir al menos 3 patrones de ( $spe* ).
  • Deben coincidir al menos 2 patrones de ( $typ* ).

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: 0c9fcb0e-ce8f-44f4-90b2-abafcdd6c02e

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de RedLine