YARA · SEKOIA.IO Community
SEKOIA_Rat_Win_Ratel_Strings
Detect RATel based on characteristic strings
- Auteur
- Sekoia.io
- Date
- 2023-04-24
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detect RATel based on characteristic strings
Famille de malware associée : Ratel.
Cibles : PE Windows.
Elle définit 12 motifs (12 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
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
}
Chaînes (12 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "[-] Error when changing folder." | ascii |
| $s2 | texte | "cmd.exe" | wide |
| $s3 | texte | "back slash find: " | ascii |
| $s4 | texte | "MOD_ALL:" | wide |
| $s5 | texte | "MOD_PERSISTENCE" | wide |
| $s6 | texte | "MOD_DESTRUCTION:" | wide |
| $s7 | texte | "MOD_RECONNECT" | wide |
| $s8 | texte | "Software\\Microsoft\\Windows\\CurrentVersion\\Run" | wide |
| $s9 | texte | "powershell.exe -command \"([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltI … | wide |
| $s10 | texte | "The command was executed successfully but no data was returned." | |
| $s11 | texte | "[-] TIMEOUT IN CREATEPROCESS, but all the processes in the name of: " | ascii |
| $s12 | texte | "we were well and truly killed." | ascii |
Condition
( uint16be( 0 ) == 0x4d5a ) and filesize > 500KB and filesize < 3MB and 8 of themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Le fichier doit faire moins de 3MB (garde-fou peu coûteux qui écarte les gros fichiers).
- Le fichier doit faire plus de 500KB.
- Au moins 8 motifs de la règle doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.
Références
Licence et attribution
Auteur : Sekoia.io
Dépôt source : SEKOIA.IO Community @ a438a5901a
Licence : Detection Rule License 1.1 (licence du dépôt)
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: d0c8b89b-c811-47aa-9e03-717998c40d91
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- Outil offensifSignature 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