YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lastconn
Detects LastConn
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects LastConn
Familia de malware asociada: Lastconn.
Objetivos: PE de Windows.
Define 14 patrones (12 de texto, 2 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
malware-win-lastconn.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lastconn : FILE
{
meta:
= "Detects LastConn"
= "ditekSHen"
= "18727c30-d84d-5ffa-acd4-2cc54e553604"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6865-L6894"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "94f5874353d0fb475595373c06a0de91603cad9b435d35dc00febf90608d6b5a"
= 75
= 75
= "FILE"
strings:
$s1 = "System.Net.Http.SysSR" fullword wide
$s2 = "System.Net.Http.WrSR" fullword wide
$s3 = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK" fullword wide
$s4 = { 63 00 6f 00 6e 00 74 00 65 00 6e 00 74 00 0c 6e
00 6f 00 74 00 69 00 66 00 79 00 04 06 12 80 e8
05 00 00 12 80 e8 08 75 00 73 00 65 00 72 00 08
74 00 65 00 61 00 6d 00 06 61 00 70 00 70 00 0c
6e 00 6f 00 61 00 75 00 74 00 68 00 }
$s5 = { 68 00 69 00 64 00 64 00 65 00 6e 00 10 64 00 69
00 73 00 61 00 6c 00 6c 00 6f 00 77 00 0e 65 00
78 00 74 00 65 00 6e 00 64 00 73 00 04 69 00 64
00 16 75 00 6e 00 69 00 71 00 75 00 65 00 49 00
74 00 65 00 6d 00 73 }
$s6 = "<RunFileOnes>d__" ascii
$s7 = "<UploadFile>d__" ascii
$s8 = "<ChunkUpload>d__" ascii
$s9 = "<StartFolder>d__" ascii
$s10 = "<ReadFileAlw>d__" ascii
$s12 = "<WriteFileToD>d__" ascii
$s13 = "<ReadFile>d__" ascii
$s14 = "<GetUpload>d__" ascii
$s15 = "CDropbox.Api.DropboxRequestHandler+<RequestJsonStringWithRetry>d__" ascii
condition:
uint16( 0 ) == 0x5a4d and 12 of them
}
Cadenas (14 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "System.Net.Http.SysSR" | fullword wide |
| $s2 | texto | "System.Net.Http.WrSR" | fullword wide |
| $s3 | texto | "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK" | fullword wide |
| $s4 | hex | { 63 00 6f 00 6e 00 74 00 65 00 6e 00 74 00 0c 6e 00 6f 00 74 00 69 00 66 00 79 00 04 06 12 80 e8 05 00 00 12 80 e8 08 75 00 73 00 … | |
| $s5 | hex | { 68 00 69 00 64 00 64 00 65 00 6e 00 10 64 00 69 00 73 00 61 00 6c 00 6c 00 6f 00 77 00 0e 65 00 78 00 74 00 65 00 6e 00 64 00 73 … | |
| $s6 | texto | "<RunFileOnes>d__" | ascii |
| $s7 | texto | "<UploadFile>d__" | ascii |
| $s8 | texto | "<ChunkUpload>d__" | ascii |
| $s9 | texto | "<StartFolder>d__" | ascii |
| $s10 | texto | "<ReadFileAlw>d__" | ascii |
| $s12 | texto | "<WriteFileToD>d__" | ascii |
| $s13 | texto | "<ReadFile>d__" | ascii |
| $s14 | texto | "<GetUpload>d__" | ascii |
| $s15 | texto | "CDropbox.Api.DropboxRequestHandler+<RequestJsonStringWithRetry>d__" | ascii |
Condición
uint16( 0 ) == 0x5a4d and 12 of themEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 12 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.
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).
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: 18727c30-d84d-5ffa-acd4-2cc54e553604
Etiquetas:FILE
Reglas relacionadas
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06