YARA · SEKOIA.IO Community
SEKOIA_Apt_Toneshell_Shellcode
Detects first bytes of ToneShell used to call the shellcode or the code to check the MagicNumber (0x17 0x03 0x03)
- Autor
- Sekoia.io
- Datum
- 2024-10-02
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects first bytes of ToneShell used to call the shellcode or the code to check the MagicNumber (0x17 0x03 0x03)
Sie definiert 2 Muster (0 Text, 2 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rule SEKOIA_Apt_Toneshell_Shellcode : FILE
{
meta:
= "Detects first bytes of ToneShell used to call the shellcode or the code to check the MagicNumber (0x17 0x03 0x03)"
= "Sekoia.io"
= "5ac8d2e9-dbeb-42f9-8343-1281510d4411"
= "2024-10-02"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_toneshell_shellcode.yar#L1-L34"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "0e164677681dce2aa75d3621d9f3df1449c3e67a3551817693856d80ccc48eca"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$code = {55 8b ec 83 ec 0c e8 85 00 00 00 6a 00 6a 00 6a 02 6a 00 6a 00 68 00 00 00 10}
$MagicNumberParser = {
B8 01 00 00 00
6B C8 00
8B 55 ??
0F BE 04 0A
83 F8 17
75 ??
B9 01 00 00 00
C1 E1 00
8B 55 ??
0F BE 04 0A
83 F8 03
75 ??
B9 01 00 00 00
D1 E1
8B 55 ??
0F BE 04 0A
83 F8 03
}
condition:
any of them and filesize < 1MB
}
Strings (2 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $code | Hex | {55 8b ec 83 ec 0c e8 85 00 00 00 6a 00 6a 00 6a 02 6a 00 6a 00 68 00 00 00 10} | |
| $MagicNumberParser | Hex | { B8 01 00 00 00 6B C8 00 8B 55 ?? 0F BE 04 0A 83 F8 17 75 ?? B9 01 00 00 00 C1 E1 00 8B … |
Bedingung
any of them and filesize < 1MBIn Worten (Heuristik)
- Die Datei muss kleiner als 1MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens ein Muster aus der Regel muss 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.
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: 5ac8d2e9-dbeb-42f9-8343-1281510d4411
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-03-06