Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Chinotto

Detects Chinotto

MalwareChinottoditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 73

Qué detecta esta regla

Detects Chinotto

Familia de malware asociada: Chinotto.

Objetivos: PE de Windows.

Define 20 patrones (19 de texto, 1 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

malware-win-chinotto.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Chinotto : FILE
{
	meta:
		description = "Detects Chinotto"
		author = "ditekSHen"
		id = "e66703d4-c9c6-5bb4-9e07-11dc89b0a034"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8702-L8754"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "92f37bdc4cf17e07bb556c60e3bde4547c34f67a2fb5c806000d9cb2446adff1"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "xxxchinotto" ascii wide
		$x2 = "\\Chinotto.pdb" ascii wide
		$x3 = { 50 4f 53 54 20 25 73 20 48 54 54 50 2f 31 2e 31
                0d 0a 41 63 63 65 70 74 2d 45 6e 63 6f 64 69 6e
                67 3a 20 67 7a 69 70 2c 20 64 65 66 6c 61 74 65
                0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 4d 6f
                7a 69 6c 6c 61 2f 34 2e 30 28 63 6f 6d 70 61 74
                69 62 6c 65 3b 20 4d 53 49 45 20 36 2e 30 3b 20
                57 69 6e 64 6f 77 73 20 4e 54 20 35 2e 31 3b 20
                53 56 31 29 0d 0a 41 63 63 65 70 74 3a 20 69 6d
                61 67 65 2f 67 69 66 2c 20 69 6d 61 67 65 2f 78
                2d 78 62 69 74 6d 61 70 2c 20 69 6d 61 67 65 2f
                6a 70 65 67 2c 20 69 6d 61 67 65 2f 70 6a 70 65
                67 2c 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78
                2d 73 68 6f 63 6b 77 61 76 65 2d 66 6c 61 73 68
                2c 20 2a 0d 0a 41 63 63 65 70 74 2d 4c 61 6e 67
                75 61 67 65 3a 20 65 6e 2d 75 73 0d 0a 43 6f 6e
                74 65 6e 74 2d 54 79 70 65 3a 20 6d 75 6c 74 69
                70 61 72 74 2f 66 6f 72 6d 2d 64 61 74 61 3b 62
                6f 75 6e 64 61 72 79 3d 25 73 0d 0a 48 6f 73 74
                3a 20 25 73 3a 25 64 0d 0a 43 6f 6e 74 65 6e 74
                2d 4c 65 6e 67 74 68 3a 20 25 64 0d 0a 43 6f 6e
                6e 65 63 74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c
                69 76 65 0d 0a 43 61 63 68 65 2d 43 6f 6e 74 72
                6f 6c 3a 20 6e 6f 2d 63 61 63 68 65 0d 0a 0d 0a
                00 00 00 00 48 54 54 50 2f 31 2e 31 20 32 30 30
                20 4f 4b 00 0d 0a 0d 0a 00 00 00 00 65 72 72 6f
                72 3c 2f 62 3e }
		$s1 = "Run /v xxxzexs /t REG_SZ /d %s /f" ascii wide
		$s2 = "ShellExecute Error, ret" ascii wide
		$s3 = "Run app succeed" ascii
		$s4 = "cleartemp:" fullword ascii
		$s5 = "wakeup:" fullword ascii
		$s6 = "updir:" fullword ascii
		$s7 = "regstart:" fullword ascii
		$s8 = "chdec:" fullword ascii
		$s9 = "cmd:" fullword ascii
		$s10 = "error</b>" fullword ascii
		$c1 = "Host: %s:%d" ascii wide
		$c2 = "Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.1; SV1)" ascii wide
		$c3 = "Mozilla/5.0(Windows NT 10.0; Win64; x64)AppleWebKit/537.36(KHTML, like Gecko)Chrome/78.0.3904.108 Safari/537.36" ascii wide
		$c4 = "id=%s&type=hello&direction=send" ascii wide
		$c5 = "id=%s&type=command&direction=receive" ascii wide
		$c6 = "id=%s&type=file&direction=" ascii wide
		$c7 = "id=%s&type=result&direction=" ascii wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 2 of ( $c* ) ) ) or 4 of ( $c* ) or 5 of ( $s* ) )
}

Cadenas (20 patrones)

IdentificadorTipoValorModificadores
$x1texto"xxxchinotto"ascii wide
$x2texto"\\Chinotto.pdb"ascii wide
$x3hex{ 50 4f 53 54 20 25 73 20 48 54 54 50 2f 31 2e 31 0d 0a 41 63 63 65 70 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 2c 20 64 …
$s1texto"Run /v xxxzexs /t REG_SZ /d %s /f"ascii wide
$s2texto"ShellExecute Error, ret"ascii wide
$s3texto"Run app succeed"ascii
$s4texto"cleartemp:"fullword ascii
$s5texto"wakeup:"fullword ascii
$s6texto"updir:"fullword ascii
$s7texto"regstart:"fullword ascii
$s8texto"chdec:"fullword ascii
$s9texto"cmd:"fullword ascii
$s10texto"error</b>"fullword ascii
$c1texto"Host: %s:%d"ascii wide
$c2texto"Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.1; SV1)"ascii wide
$c3texto"Mozilla/5.0(Windows NT 10.0; Win64; x64)AppleWebKit/537.36(KHTML, like Gecko)Chrome/78.0.3904.108 Safari/537.36"ascii wide
$c4texto"id=%s&type=hello&direction=send"ascii wide
$c5texto"id=%s&type=command&direction=receive"ascii wide
$c6texto"id=%s&type=file&direction="ascii wide
$c7texto"id=%s&type=result&direction="ascii wide

Condición

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 2 of ( $c* ) ) ) or 4 of ( $c* ) or 5 of ( $s* ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 2 patrones de ( $x* ).
  • Deben coincidir al menos 1 patrones de ( $x* ).
  • Deben coincidir al menos 2 patrones de ( $s* ).
  • Deben coincidir al menos 2 patrones de ( $c* ).
  • Deben coincidir al menos 4 patrones de ( $c* ).
  • Deben coincidir al menos 5 patrones de ( $s* ).

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: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: e66703d4-c9c6-5bb4-9e07-11dc89b0a034

Etiquetas:FILE

Más reglas de Chinotto