YARA · SEKOIA.IO Community
SEKOIA_Platypus_Winlinmac_Strings
Catch Platypus based on strings
- Author
- Sekoia.io
- Date
- 2023-12-07
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Catch Platypus based on strings
Targets: Linux ELF.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
platypus-winlinmac-strings.yarDetection Rule License 1.1
rule SEKOIA_Platypus_Winlinmac_Strings : FILE
{
meta:
= "Catch Platypus based on strings"
= "Sekoia.io"
= "4519448d-b91b-4794-9521-359b8cf4af78"
= "2023-12-07"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/platypus_winlinmac_strings.yar#L1-L22"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "3c8e928fb8328381997230d4b60de20d07a9a3aee006aad9fc0b67fcfe61a63b"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$pl1 = "platypus.go" ascii
$pl2 = "Platypus/lib/context/server.go" ascii
$pl3 = "Platypus/lib/context/context.go" ascii
$pl4 = "Platypus/lib/context/client.go" ascii
$pl5 = "github.com/WangYihang/" ascii
$f1 = "reflection/reflection.go" ascii
$f2 = "socksUsernamePassword" ascii
$go = "/golang" ascii
condition:
uint32( 0 ) == 0x464c457f and 4 of ( $pl* ) and 1 of ( $f* ) and #go > 30
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $pl1 | text | "platypus.go" | ascii |
| $pl2 | text | "Platypus/lib/context/server.go" | ascii |
| $pl3 | text | "Platypus/lib/context/context.go" | ascii |
| $pl4 | text | "Platypus/lib/context/client.go" | ascii |
| $pl5 | text | "github.com/WangYihang/" | ascii |
| $f1 | text | "reflection/reflection.go" | ascii |
| $f2 | text | "socksUsernamePassword" | ascii |
| $go | text | "/golang" | ascii |
Condition
uint32( 0 ) == 0x464c457f and 4 of ( $pl* ) and 1 of ( $f* ) and #go > 30In plain words (Heuristic)
- The file must start with the ELF header — a Linux/Unix executable.
- At least 4 patterns in ( $pl* ) must match.
- At least 1 patterns in ( $f* ) must match.
- Pattern $go must occur > 30 times.
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: 4519448d-b91b-4794-9521-359b8cf4af78
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