YARA · Costin Raiu yararules
CRAIU_Crime_Lockbit3_Ransomware
Generic LockBit detection, also catches the version used in attacks in Indonesia.
- Autor
- Costin G. Raiu, TLPBLACK, craiu@noh.ro
- Fecha
- 2024-07-03
- Puntuación / Calidad
- 75 / 85
Qué detecta esta regla
Generic LockBit detection, also catches the version used in attacks in Indonesia.
Familia de malware asociada: Lockbit.
Objetivos: PE de Windows.
Define 6 patrones (0 de texto, 6 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule CRAIU_Crime_Lockbit3_Ransomware : FILE
{
meta:
= "Generic LockBit detection, also catches the version used in attacks in Indonesia."
= "Costin G. Raiu, TLPBLACK, craiu@noh.ro"
= "167788a4-a610-5770-9f51-aa4cc4d3d350"
= "2024-07-03"
= "2024-07-03"
= "https://www.bleepingcomputer.com/news/security/meet-brain-cipher-the-new-ransomware-behind-indonesia-data-center-attack/"
= "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/files/crime_lockbit3_ransomware.yara#L2-L32"
= "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/LICENSE"
= "eb82946fa0de261e92f8f60aa878c9fef9ebb34fdababa66995403b110118b12"
= "6e07da23603fbe5b26755df5b8fec19cadf1f7001b1558ea4f12e20271263417"
= "84efb899315379d85a03959359f89fbcb97cbb6477f1ec439380a4d15fed4f53"
= 75
= 85
= "FILE"
= "1.1"
strings:
$a1 = {C3 8BFF53 51 6A0158 0FA2F7C1000000400F95C0 84C074090FC7F0 0FC7F2 59 5B C3 }
$a2 = {C3 6A0758 33C90FA2F7C3000004000F95C0 84C074090FC7F8 0FC7FA 59 5B C3 }
$a3 = {C3 0F31 8BC8 C1C90D 0F31 8BD0 C1C20D 8BC1 59 5B C3 }
$a4 = {55 8BEC 51 52 56 33C0 8B550C 8B7508 AC 33C9 B930000000 8D0C4D01000000 02F1 2AF1 33C9 B906000000 8D0C4D01000000 D3CA 03D0 90 85C0}
$a5 = {E9 ?? ?? ?? ?? 6683F841 720C 6683F846 7706 6683E837 EB26 6683F861 720C 6683F866 7706 6683E857 EB14 6683F830 720C 6683F839 7706 6683E830 EB}
$a6 = {5D 8BC3 5F 5E 5B 5D C20C00 90 55 8BEC 53 56 57 33C0 8B5D14 33C9 33D2 8B750C 8B7D08 85F6 }
condition:
( filesize < 1MB ) and ( uint16( 0 ) == 0x5a4d ) and ( 2 of them )
}
Cadenas (6 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $a1 | hex | {C3 8BFF53 51 6A0158 0FA2F7C1000000400F95C0 84C074090FC7F0 0FC7F2 59 5B C3 } | |
| $a2 | hex | {C3 6A0758 33C90FA2F7C3000004000F95C0 84C074090FC7F8 0FC7FA 59 5B C3 } | |
| $a3 | hex | {C3 0F31 8BC8 C1C90D 0F31 8BD0 C1C20D 8BC1 59 5B C3 } | |
| $a4 | hex | {55 8BEC 51 52 56 33C0 8B550C 8B7508 AC 33C9 B930000000 8D0C4D01000000 02F1 2AF1 33C9 B906000000 8D0C4D01000000 D3CA 03D0 90 85C0} | |
| $a5 | hex | {E9 ?? ?? ?? ?? 6683F841 720C 6683F846 7706 6683E837 EB26 6683F861 720C 6683F866 7706 6683E857 EB14 6683F830 720C 6683F839 7706 6683E830 EB} | |
| $a6 | hex | {5D 8BC3 5F 5E 5B 5D C20C00 90 55 8BEC 53 56 57 33C0 8B5D14 33C9 33D2 8B750C 8B7D08 85F6 } |
Condición
( filesize < 1MB ) and ( uint16( 0 ) == 0x5a4d ) and ( 2 of them )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- El archivo debe ocupar menos de 1MB (un límite barato que descarta archivos grandes).
- Deben coincidir al menos 2 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.
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).
- eb82946fa0de261e92f8f60aa878c9fef9ebb34fdababa66995403b110118b12
- 6e07da23603fbe5b26755df5b8fec19cadf1f7001b1558ea4f12e20271263417
Licencia y atribución
Autor: Costin G. Raiu, TLPBLACK, craiu@noh.ro
Repositorio de origen: Costin Raiu yararules @ 23cf0ca220
Licencia: GNU General Public License v3.0 (licencia del repositorio)
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: 167788a4-a610-5770-9f51-aa4cc4d3d350
Metadatos
| version | 1.1 |
|---|
Etiquetas:FILE
Reglas relacionadas
- MalwareSignature Base (Florian Roth / Nextron)· 0x0d4y· 2024-02-16
- MalwareSignature Base (Florian Roth / Nextron)· 0x0d4y· 2024-02-16
- MalwareSignature Base (Florian Roth / Nextron)· 0x0d4y· 2024-02-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-15
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2023-11-23
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2023-11-23
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2023-11-23
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2023-11-23