YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_Ransom_Ragnarlocker_July_2020_1
Detects Ragnarlocker by strings (July 2020)
- Autor
- Arkbird_SOLG
- Datum
- 2020-07-30
- Geändert
- 2023-12-05
- Score / Qualität
- 75 / 83
Was diese Regel erkennt
Detects Ragnarlocker by strings (July 2020)
Zugehörige Malware-Familie: Ragnarlocker.
Ziele: Windows-PE.
Sie definiert 21 Muster (21 Text, 0 Hex, 0 Regex). Verwendete YARA-Module: pe.
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_MAL_Ransom_Ragnarlocker_July_2020_1 : FILE
{
meta:
= "Detects Ragnarlocker by strings (July 2020)"
= "Arkbird_SOLG"
= "60e09057-d9f8-5e89-8f47-c5dda32806c6"
= "2020-07-30"
= "2023-12-05"
= "https://twitter.com/JAMESWT_MHT/status/1288797666688851969"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/crime_ransom_ragna_locker.yar#L38-L70"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "04c9cc0d1577d5ee54a4e2d4dd12f17011d13703cdd0e6efd46718d14fd9aa87"
= "dc44da2f9023e0702afa8081e85ba817ebfde15f449261fae9de729d51262b04"
= 75
= 83
= "FILE"
strings:
$f1 = "bootfont.bin" fullword wide
$f2 = "bootmgr.efi" fullword wide
$f3 = "bootsect.bak" fullword wide
$r1 = "$!.txt" fullword wide
$r2 = "---BEGIN KEY R_R---" fullword ascii
$r3 = "!$R4GN4R_" wide
$r4 = "RAGNRPW" fullword ascii
$r5 = "---END KEY R_R---" fullword ascii
$a1 = "+RhRR!-uD8'O&Wjq1_P#Rw<9Oy?n^qSP6N{BngxNK!:TG*}\\|W]o?/]H*8z;26X0" fullword ascii
$a2 = "\\\\.\\PHYSICALDRIVE%d" fullword wide
$a3 = "WinSta0\\Default" fullword wide
$a4 = "%s-%s-%s-%s-%s" fullword wide
$a5 = "SOFTWARE\\Microsoft\\Cryptography" fullword wide
$c1 = "-backup" fullword wide
$c2 = "-force" fullword wide
$c3 = "-vmback" fullword wide
$c4 = "-list" fullword wide
$s1 = ".ragn@r_" wide
$s2 = "\\notepad.exe" wide
$s3 = "Opera Software" fullword wide
$s4 = "Tor browser" fullword wide
condition:
uint16( 0 ) == 0x5a4d and filesize < 30KB and ( pe.imphash ( ) == "2c2aab89a4cba444cf2729e2ed61ed4f" and ( ( 2 of ( $f* ) ) and ( 3 of ( $r* ) ) and ( 4 of ( $a* ) ) and ( 2 of ( $c* ) ) and ( 2 of ( $s* ) ) ) )
}
Strings (21 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $f1 | Text | "bootfont.bin" | fullword wide |
| $f2 | Text | "bootmgr.efi" | fullword wide |
| $f3 | Text | "bootsect.bak" | fullword wide |
| $r1 | Text | "$!.txt" | fullword wide |
| $r2 | Text | "---BEGIN KEY R_R---" | fullword ascii |
| $r3 | Text | "!$R4GN4R_" | wide |
| $r4 | Text | "RAGNRPW" | fullword ascii |
| $r5 | Text | "---END KEY R_R---" | fullword ascii |
| $a1 | Text | "+RhRR!-uD8'O&Wjq1_P#Rw<9Oy?n^qSP6N{BngxNK!:TG*}\\|W]o?/]H*8z;26X0" | fullword ascii |
| $a2 | Text | "\\\\.\\PHYSICALDRIVE%d" | fullword wide |
| $a3 | Text | "WinSta0\\Default" | fullword wide |
| $a4 | Text | "%s-%s-%s-%s-%s" | fullword wide |
| $a5 | Text | "SOFTWARE\\Microsoft\\Cryptography" | fullword wide |
| $c1 | Text | "-backup" | fullword wide |
| $c2 | Text | "-force" | fullword wide |
| $c3 | Text | "-vmback" | fullword wide |
| $c4 | Text | "-list" | fullword wide |
| $s1 | Text | ".ragn@r_" | wide |
| $s2 | Text | "\\notepad.exe" | wide |
| $s3 | Text | "Opera Software" | fullword wide |
| $s4 | Text | "Tor browser" | fullword wide |
Bedingung
uint16( 0 ) == 0x5a4d and filesize < 30KB and ( pe.imphash ( ) == "2c2aab89a4cba444cf2729e2ed61ed4f" and ( ( 2 of ( $f* ) ) and ( 3 of ( $r* ) ) and ( 4 of ( $a* ) ) and ( 2 of ( $c* ) ) and ( 2 of ( $s* ) ) ) )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Die Datei muss kleiner als 30KB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 2 Muster aus ( $f* ) müssen treffen.
- Mindestens 3 Muster aus ( $r* ) müssen treffen.
- Mindestens 4 Muster aus ( $a* ) müssen treffen.
- Mindestens 2 Muster aus ( $c* ) müssen treffen.
- Mindestens 2 Muster aus ( $s* ) müssen treffen.
- Nutzt das Modul pe.
- Prüft den PE-Import-Hash (imphash).
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.
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- 04c9cc0d1577d5ee54a4e2d4dd12f17011d13703cdd0e6efd46718d14fd9aa87
Lizenz & Namensnennung
Autor: Arkbird_SOLG
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: 60e09057-d9f8-5e89-8f47-c5dda32806c6
Tags:FILE
Verwandte Regeln
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareTrellix Advanced Research Center· McAfee ATR team· 2020-06-14
- MalwareSignature Base (Florian Roth / Nextron)· Arkbird_SOLG· 2020-06-18
- MalwareSignature Base (Florian Roth / Nextron)· Arkbird_SOLG· 2020-06-18
- HacktoolSignature Base (Florian Roth / Nextron)· Arkbird_SOLG· 2022-11-22
- APT / AkteurSignature Base (Florian Roth / Nextron)· Arkbird_SOLG· 2020-08-24
- ExploitSignature Base (Florian Roth / Nextron)· Arkbird_SOLG· 2021-05-04