Saltar al contenido

YARA · Costin Raiu yararules

CRAIU_Susp_Ios_Shutdown

Detect shutdown.log files from sysdiags with suspicious entries

Sospechoso / huntingCostin Raiu yararulesGNU General Public License v3.0Compila con YARA-X
Autor
Costin G. Raiu, Art of Noh, craiu@noh.ro
Fecha
2023-12-28
Modificada
2024-03-05
Puntuación / Calidad
65 / 85

Qué detecta esta regla

Detect shutdown.log files from sysdiags with suspicious entries

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

susp-ios-shutdown.yarGNU General Public License v3.0
rule CRAIU_Susp_Ios_Shutdown
{
	meta:
		description = "Detect shutdown.log files from sysdiags with suspicious entries"
		author = "Costin G. Raiu, Art of Noh, craiu@noh.ro"
		id = "08aa1fb9-7af0-515a-91a8-09ed35e48155"
		date = "2023-12-28"
		modified = "2024-03-05"
		reference = "https://securelist.com/shutdown-log-lightweight-ios-malware-detection-method/111734/"
		source_url = "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/files/susp_ios_shutdown.yara#L2-L25"
		license_url = "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/LICENSE"
		logic_hash = "936101f2dddb73f6dda41be47d775199c458aa4fecdcf348ed479da620343ea1"
		score = 65
		quality = 85
		tags = ""
		version = "1.0"
		tlp = "TLP:CLEAR"

	strings:
		$a1 = "these clients are still here:"
		$b1 = "/private/var/db/"
		$b2 = "/private/var/tmp/"
		$c1 = "After "

	condition:
		($c1 at 0 ) and $a1 and ( any of ( $b* ) )
}

Cadenas (4 patrones)

IdentificadorTipoValorModificadores
$a1texto"these clients are still here:"
$b1texto"/private/var/db/"
$b2texto"/private/var/tmp/"
$c1texto"After "

Condición

($c1 at 0 ) and $a1 and ( any of ( $b* ) )

En palabras sencillas (Heurística)

  • Debe coincidir al menos un patrón de ( $b* ).
  • El patrón $c1 debe estar en el offset 0.
  • El patrón $a1 debe estar presente.

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: Costin G. Raiu, Art of Noh, craiu@noh.ro

Repositorio de origen: Costin Raiu yararules @ 23cf0ca220

Licencia: GNU General Public License v3.0 (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: 08aa1fb9-7af0-515a-91a8-09ed35e48155

Metadatos

version1.0
tlpTLP:CLEAR