Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Platypus_Winlinmac_Strings

Catch Platypus based on strings

GenericSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Catch Platypus based on strings"
		author = "Sekoia.io"
		id = "4519448d-b91b-4794-9521-359b8cf4af78"
		date = "2023-12-07"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/platypus_winlinmac_strings.yar#L1-L22"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "3c8e928fb8328381997230d4b60de20d07a9a3aee006aad9fc0b67fcfe61a63b"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$pl1text"platypus.go"ascii
$pl2text"Platypus/lib/context/server.go"ascii
$pl3text"Platypus/lib/context/context.go"ascii
$pl4text"Platypus/lib/context/client.go"ascii
$pl5text"github.com/WangYihang/"ascii
$f1text"reflection/reflection.go"ascii
$f2text"socksUsernamePassword"ascii
$gotext"/golang"ascii

Condition

uint32( 0 ) == 0x464c457f and 4 of ( $pl* ) and 1 of ( $f* ) and #go > 30

In 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.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

version1.0
classificationTLP:CLEAR

Tags:FILE