YARA · SEKOIA.IO Community
SEKOIA_Apt_Coathanger_Files
Detects COATHANGER files
- Autor
- Sekoia.io
- Datum
- 2024-02-07
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects COATHANGER files
Ziele: Linux-ELF.
Sie definiert 9 Muster (9 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
apt-coathanger-files.yarDetection Rule License 1.1
rule SEKOIA_Apt_Coathanger_Files : FILE
{
meta:
= "Detects COATHANGER files"
= "Sekoia.io"
= "615f5ac1-14bc-4f5b-a02e-7b13cd179917"
= "2024-02-07"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_coathanger_files.yar#L1-L24"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "5406d8a99e16f08f1ffca548ea1dd1e27e7707506e796e0fc263bcdbb681632d"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "/data2/"
$ = "/httpsd"
$ = "/preload.so"
$ = "/authd"
$ = "/tmp/packfile"
$ = "/smartctl"
$ = "/etc/ld.so.preload"
$ = "/newcli"
$ = "/bin/busybox"
condition:
( uint32( 0 ) == 0x464c457f or uint32( 4 ) == 0x464c457f ) and filesize < 5MB and 4 of them
}
Strings (9 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $ | Text | "/data2/" | |
| $ | Text | "/httpsd" | |
| $ | Text | "/preload.so" | |
| $ | Text | "/authd" | |
| $ | Text | "/tmp/packfile" | |
| $ | Text | "/smartctl" | |
| $ | Text | "/etc/ld.so.preload" | |
| $ | Text | "/newcli" | |
| $ | Text | "/bin/busybox" |
Bedingung
( uint32( 0 ) == 0x464c457f or uint32( 4 ) == 0x464c457f ) and filesize < 5MB and 4 of themIn Worten (Heuristik)
- Die Datei muss mit dem ELF-Header beginnen — eine Linux/Unix-Programmdatei.
- Die Datei muss kleiner als 5MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 4 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: 615f5ac1-14bc-4f5b-a02e-7b13cd179917
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