YARA · SEKOIA.IO Community
SEKOIA_Rat_Win_Ratel_Strings
Detect RATel based on characteristic strings
- Autor
- Sekoia.io
- Datum
- 2023-04-24
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detect RATel based on characteristic strings
Zugehörige Malware-Familie: Ratel.
Ziele: Windows-PE.
Sie definiert 12 Muster (12 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rat-win-ratel-strings.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Ratel_Strings : FILE
{
meta:
= "Detect RATel based on characteristic strings"
= "Sekoia.io"
= "d0c8b89b-c811-47aa-9e03-717998c40d91"
= "2023-04-24"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_ratel_strings.yar#L1-L28"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "ff5640b03ec3e535cdb86c2a0feb52d0c472928ff88a36ec9f66ac8aa07c9f69"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1 = "[-] Error when changing folder." ascii
$s2 = "cmd.exe" wide
$s3 = "back slash find: " ascii
$s4 = "MOD_ALL:" wide
$s5 = "MOD_PERSISTENCE" wide
$s6 = "MOD_DESTRUCTION:" wide
$s7 = "MOD_RECONNECT" wide
$s8 = "Software\\Microsoft\\Windows\\CurrentVersion\\Run" wide
$s9 = "powershell.exe -command \"([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')\"" wide
$s10 = "The command was executed successfully but no data was returned."
$s11 = "[-] TIMEOUT IN CREATEPROCESS, but all the processes in the name of: " ascii
$s12 = "we were well and truly killed." ascii
condition:
( uint16be( 0 ) == 0x4d5a ) and filesize > 500KB and filesize < 3MB and 8 of them
}
Strings (12 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $s1 | Text | "[-] Error when changing folder." | ascii |
| $s2 | Text | "cmd.exe" | wide |
| $s3 | Text | "back slash find: " | ascii |
| $s4 | Text | "MOD_ALL:" | wide |
| $s5 | Text | "MOD_PERSISTENCE" | wide |
| $s6 | Text | "MOD_DESTRUCTION:" | wide |
| $s7 | Text | "MOD_RECONNECT" | wide |
| $s8 | Text | "Software\\Microsoft\\Windows\\CurrentVersion\\Run" | wide |
| $s9 | Text | "powershell.exe -command \"([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltI … | wide |
| $s10 | Text | "The command was executed successfully but no data was returned." | |
| $s11 | Text | "[-] TIMEOUT IN CREATEPROCESS, but all the processes in the name of: " | ascii |
| $s12 | Text | "we were well and truly killed." | ascii |
Bedingung
( uint16be( 0 ) == 0x4d5a ) and filesize > 500KB and filesize < 3MB and 8 of themIn Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Die Datei muss kleiner als 3MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Die Datei muss größer als 500KB sein.
- Mindestens 8 Muster aus der Regel müssen treffen.
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.
Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.
Referenzen
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
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: d0c8b89b-c811-47aa-9e03-717998c40d91
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- HacktoolSignature Base (Florian Roth / Nextron)· Matthew @embee_research, Florian Roth· 2022-10-12
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20