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)
- Datum
- 2023-01-11
- Geändert
- 2023-12-05
- Score / Qualität
- 70 / 83
Was diese Regel erkennt
Detects suspicious file path pointing to the root of a folder easily accessible via environment variables
Ziele: Windows-PE.
Sie definiert 5 Muster (2 Text, 0 Hex, 3 Regex). Verwendete YARA-Module: pe.
YARA-X meldet: warning[deprecated_field]: field `number_of_signatures` is deprecated
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.
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
}
Strings (5 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $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 | Text | "perl -MCPAN " | ascii |
| $fp2 | Text | "CCleaner" | ascii |
Bedingung
filesize < 20MB and 1 of ( $x* ) and not 1 of ( $fp* ) and not pe.number_of_signatures > 0In Worten (Heuristik)
- Die Datei muss kleiner als 20MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 1 Muster aus ( $x* ) müssen treffen.
- Mindestens 1 Muster aus ( $fp* ) müssen treffen.
- Nutzt das Modul pe.
- Prüft die Authenticode-Signatur.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Lizenz & Namensnennung
Autor: Florian Roth (Nextron Systems)
Quell-Repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 6067d822-5c1b-5b86-863c-fdcfa37da665
Verwandte Regeln
- Verdächtig / HuntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-09-17
- Verdächtig / HuntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-04-06
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-10-11
- Verdächtig / HuntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-06-27
- Verdächtig / HuntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-06-10
- Verdächtig / HuntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-12-10
- Verdächtig / HuntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-10-12
- Verdächtig / HuntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-25