Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_LNX_Stackstring_Technique_Jan25

Detects suspicious Linux binaries using stack-based string manipulation techniques, which are often used to generate PTY (pseudo-terminal) device names for stealth or persistence, seen being used by SEASPY and Bluez backdoors

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
MalGamy (Nextron System)
Date
2025-01-23
Modified
2025-03-20
Score / Quality
75 / 85

What this rule detects

Detects suspicious Linux binaries using stack-based string manipulation techniques, which are often used to generate PTY (pseudo-terminal) device names for stealth or persistence, seen being used by SEASPY and Bluez backdoors

Targets: Linux ELF.

It defines 1 patterns (0 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

susp-lnx-stackstring-technique-jan25.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_LNX_Stackstring_Technique_Jan25 : FILE
{
	meta:
		description = "Detects suspicious Linux binaries using stack-based string manipulation techniques, which are often used to generate PTY (pseudo-terminal) device names for stealth or persistence, seen being used by SEASPY and Bluez backdoors"
		author = "MalGamy (Nextron System)"
		id = "6c81d8c1-0cfa-54d9-89d3-2b025cc22f13"
		date = "2025-01-23"
		modified = "2025-03-20"
		reference = "https://www.securityweek.com/newly-discovered-turla-malware-targets-linux-systems/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/seaspy_backdoor_jan25.yar#L24-L45"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "0e65a80c6331a0e8d7df05ac217a8a7fe03b88f1d304f2ff0a26b92ed89153f3"
		hash = "3e0312ce8d0c1e5c192dbb93cac4770a1205c56dc9d02a0510c7e10a15251de5"
		hash = "301d58a6a1819466e77209dbf8ca635cbee3b45516e5ee228fea50ae4a27b7d5"
		hash = "957c0c135b50d1c209840ec7ead60912a5ccefd2873bf5722cb85354cea4eb37"
		hash = "5e3c128749f7ae4616a4620e0b53c0e5381724a790bba8314acb502ce7334df2"
		hash = "654b7c5b667e4d70ebb5fb1807dcd1ee5b453f45424eb59a287d86ad8d0598a1"
		hash = "ac6a8ec0b92935b7faab05ca21a42ed9eecdc9243fcf1449cc8f050de38e4c4f"
		logic_hash = "6efc2d7bd6ba1f39554bd6c378e5adb209419c90192fcba0a676b557e5b920b5"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$op1 = {C7 45 E0 70 71 72 73 C7 45 E4 74 75 76 77 C7 45 E8 78 79 7A 61 C7 45 EC 62 63 64 65 C6 45 F0 00 C7 45 C0 30 31 32 33 C7 45 C4 34 35 36 37 C7 45 C8 38 39 61 62 C7 45 CC 63 64 65 66}

	condition:
		uint32be( 0 ) == 0x7f454c46 and filesize < 4MB and $op1
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$op1hex{C7 45 E0 70 71 72 73 C7 45 E4 74 75 76 77 C7 45 E8 78 79 7A 61 C7 45 EC 62 63 64 65 C6 45 F0 00 C7 45 C0 30 31 32 33 C7 45 C4 34 35 36 37 C7 45 C8 38 39 61 62 …

Condition

uint32be( 0 ) == 0x7f454c46 and filesize < 4MB and $op1

In plain words (Heuristic)

  • The file must start with the ELF header — a Linux/Unix executable.
  • The file must be smaller than 4MB (a cheap guard that skips large files).
  • Pattern $op1 must be present.

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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 0e65a80c6331a0e8d7df05ac217a8a7fe03b88f1d304f2ff0a26b92ed89153f3
  • 3e0312ce8d0c1e5c192dbb93cac4770a1205c56dc9d02a0510c7e10a15251de5
  • 301d58a6a1819466e77209dbf8ca635cbee3b45516e5ee228fea50ae4a27b7d5
  • 957c0c135b50d1c209840ec7ead60912a5ccefd2873bf5722cb85354cea4eb37
  • 5e3c128749f7ae4616a4620e0b53c0e5381724a790bba8314acb502ce7334df2
  • 654b7c5b667e4d70ebb5fb1807dcd1ee5b453f45424eb59a287d86ad8d0598a1
  • ac6a8ec0b92935b7faab05ca21a42ed9eecdc9243fcf1449cc8f050de38e4c4f

Licence & attribution

Author: MalGamy (Nextron System)

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 6c81d8c1-0cfa-54d9-89d3-2b025cc22f13

Tags:FILE