Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Stealer_Win_Mgbot_Credential_Stealer

Detect MgBot credential stealer plugin

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

Qué detecta esta regla

Detect MgBot credential stealer plugin

Familia de malware asociada: Mgbot.

Objetivos: PE de Windows.

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

stealer-win-mgbot-credential-stealer.yarDetection Rule License 1.1
rule SEKOIA_Stealer_Win_Mgbot_Credential_Stealer : FILE
{
	meta:
		description = "Detect MgBot credential stealer plugin"
		author = "Sekoia.io"
		id = "e06501c1-c842-43f7-a429-9026bc0a4fd4"
		date = "2024-03-20"
		modified = "2024-12-19"
		reference = "https://www.welivesecurity.com/2023/04/26/evasive-panda-apt-group-malware-updates-popular-chinese-software/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/stealer_win_mgbot_credential_stealer.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "174a62201c7e2af67b7ad37bf7935f064a379f169cf257ca16e912a46ecc9841"
		hash = "cb7d9feda7d8ebfba93ec428d5a8a4382bf58e5a70e4b51eb1938d2691d5d4a5"
		logic_hash = "27f1b0ac818753804f0e67ac158d9376ab6beff8613ef94a1aa6cf8dd6815d49"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "Software\\Aerofox\\Foxmail\\Indenties" wide
		$ = "Software\\Aerofox\\FoxmailPreview" wide
		$ = "IMAP Password" wide
		$ = "POP3 Password" wide

	condition:
		uint16be( 0 ) == 0x4d5a and all of them
}

Cadenas (4 patrones)

IdentificadorTipoValorModificadores
$texto"Software\\Aerofox\\Foxmail\\Indenties"wide
$texto"Software\\Aerofox\\FoxmailPreview"wide
$texto"IMAP Password"wide
$texto"POP3 Password"wide

Condición

uint16be( 0 ) == 0x4d5a and all of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los 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

Hashes de muestras

Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).

  • 174a62201c7e2af67b7ad37bf7935f064a379f169cf257ca16e912a46ecc9841
  • cb7d9feda7d8ebfba93ec428d5a8a4382bf58e5a70e4b51eb1938d2691d5d4a5

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: e06501c1-c842-43f7-a429-9026bc0a4fd4

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de Mgbot