YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_SUSP_ENV_Folder_Root_File_Jan23_1
Detects suspicious file path pointing to the root of a folder easily accessible via environment variables
- Autor
- Florian Roth (Nextron Systems)
- Fecha
- 2023-01-11
- Modificada
- 2023-12-05
- Puntuación / Calidad
- 70 / 83
Qué detecta esta regla
Detects suspicious file path pointing to the root of a folder easily accessible via environment variables
Objetivos: PE de Windows.
Define 5 patrones (2 de texto, 0 hex, 3 regex). Módulos YARA usados: pe.
YARA-X dice: warning[deprecated_field]: field `number_of_signatures` is deprecated
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
Incluye los imports necesarios para compilarla por sí sola.
import "pe"
rule SIGNATURE_BASE_SUSP_ENV_Folder_Root_File_Jan23_1 : SCRIPT FILE
{
meta:
= "Detects suspicious file path pointing to the root of a folder easily accessible via environment variables"
= "Florian Roth (Nextron Systems)"
= "6067d822-5c1b-5b86-863c-fdcfa37da665"
= "2023-01-11"
= "2023-12-05"
= "Internal Research"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_susp_indicators.yar#L3-L22"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "5355ae567e6255e22f566bae9fe50f4995bafba07c261461d37d5b8ba200d33a"
= 70
= 83
= "SCRIPT, FILE"
strings:
$xr1 = /%([Aa]pp[Dd]ata|APPDATA)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ wide ascii
$xr2 = /%([Pp]ublic|PUBLIC)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ wide ascii
$xr4 = /%([Pp]rogram[Dd]ata|PROGRAMDATA)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ wide ascii
$fp1 = "perl -MCPAN " ascii
$fp2 = "CCleaner" ascii
condition:
filesize < 20MB and 1 of ( $x* ) and not 1 of ( $fp* ) and not pe.number_of_signatures > 0
}
Cadenas (5 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $xr1 | regex | /%([Aa]pp[Dd]ata|APPDATA)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ | wide ascii |
| $xr2 | regex | /%([Pp]ublic|PUBLIC)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ | wide ascii |
| $xr4 | regex | /%([Pp]rogram[Dd]ata|PROGRAMDATA)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ | wide ascii |
| $fp1 | texto | "perl -MCPAN " | ascii |
| $fp2 | texto | "CCleaner" | ascii |
Condición
filesize < 20MB and 1 of ( $x* ) and not 1 of ( $fp* ) and not pe.number_of_signatures > 0En palabras sencillas (Heurística)
- El archivo debe ocupar menos de 20MB (un límite barato que descarta archivos grandes).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 1 patrones de ( $fp* ).
- Usa el módulo pe.
- Comprueba la firma Authenticode.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Licencia y atribución
Autor: Florian Roth (Nextron Systems)
Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licencia: Detection Rule License 1.1 (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: 6067d822-5c1b-5b86-863c-fdcfa37da665
Reglas relacionadas
- Sospechoso / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-09-17
- Sospechoso / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-04-06
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-10-11
- Sospechoso / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-06-27
- Sospechoso / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-06-10
- Sospechoso / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-12-10
- Sospechoso / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-10-12
- Sospechoso / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-25