YARA · SEKOIA.IO Community
SEKOIA_Apt_Coathanger_Beacon
Detects COATHANGER beacon
- Author
- Sekoia.io
- Date
- 2024-02-07
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects COATHANGER beacon
Targets: Linux ELF.
It defines 1 patterns (0 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-coathanger-beacon.yarDetection Rule License 1.1
rule SEKOIA_Apt_Coathanger_Beacon : FILE
{
meta:
= "Detects COATHANGER beacon"
= "Sekoia.io"
= "cc201479-016a-46d2-a9e2-41b4914ce618"
= "2024-02-07"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_coathanger_beacon.yar#L1-L21"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "e44496e62de8c885d5bd941819a97f4c0dd90ce2d0cfe9d042ab9590cc354ddb"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = {
48 B8 47 45 54 20 2F 20 48 54
48 89 45 B0 48 B8 54 50 2F 32 0A 48 6F 73
48 89 45 B8 48 B8 74 3A 20 77 77 77 2E 67
48 89 45 C0 48 B8 6F 6F 67 6C 65 2E 63 6F
}
condition:
uint32( 0 ) == 0x464c457f and filesize < 5MB and any of them
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | hex | { 48 B8 47 45 54 20 2F 20 48 54 48 89 45 B0 48 B8 54 50 2F 32 0A 48 6F 73 48 89 45 B8 48 B8 74 3A 20 77 77 77 2E 67 48 89 45 C0 … |
Condition
uint32( 0 ) == 0x464c457f and filesize < 5MB and any of themIn plain words (Heuristic)
- The file must start with the ELF header — a Linux/Unix executable.
- The file must be smaller than 5MB (a cheap guard that skips large files).
- At least one pattern in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: cc201479-016a-46d2-a9e2-41b4914ce618
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06