Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Implant_Win_Havoc_Default_Strings

Finds Havoc implants based on the embedded default strings

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

Qué detecta esta regla

Finds Havoc implants based on the embedded default strings

Familia de malware asociada: Havoc.

Objetivos: PE de Windows.

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

implant-win-havoc-default-strings.yarDetection Rule License 1.1
rule SEKOIA_Implant_Win_Havoc_Default_Strings : FILE
{
	meta:
		description = "Finds Havoc implants based on the embedded default strings"
		author = "Sekoia.io"
		id = "955c2211-4502-4258-ba4c-0d96a5624283"
		date = "2022-10-07"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/implant_win_havoc_default_strings.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "dbf17e579071f265961657d73c6a2e51630b23e80376491df2e631cee5ffb1b4"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "C:\\Windows\\System32\\notepad.exe" ascii
		$str02 = "C:\\Windows\\SysWOW64\\notepad.exe" ascii
		$str03 = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" ascii
		$str04 = "POST" wide
		$str05 = "\\??\\C:\\Windows\\System32\\ntdll.dll" wide
		$str06 = "X-Havoc: true" ascii
		$str07 = "X-Havoc-Agent: Demon" ascii
		$str08 = "/text.gif" ascii
		$str09 = "SeImpersonatePrivilege" ascii

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

Cadenas (9 patrones)

IdentificadorTipoValorModificadores
$str01texto"C:\\Windows\\System32\\notepad.exe"ascii
$str02texto"C:\\Windows\\SysWOW64\\notepad.exe"ascii
$str03texto"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"ascii
$str04texto"POST"wide
$str05texto"\\??\\C:\\Windows\\System32\\ntdll.dll"wide
$str06texto"X-Havoc: true"ascii
$str07texto"X-Havoc-Agent: Demon"ascii
$str08texto"/text.gif"ascii
$str09texto"SeImpersonatePrivilege"ascii

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: 955c2211-4502-4258-ba4c-0d96a5624283

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de Havoc