Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Linux_PLEAD

PLEAD Linux payload

MalwarePleadditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

PLEAD Linux payload

Associated malware family: Plead.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-linux-plead.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Linux_PLEAD : FILE
{
	meta:
		description = "PLEAD Linux payload"
		author = "ditekSHen"
		id = "07aa0561-d6d9-53b6-97ac-670cdf04335d"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1896-L1920"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "539998248ded0eb8ea1702c527804f89cfd55412f17ec699bd0af801f4fba673"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Linux.Trojan.PLEAD"

	strings:
		$x1 = "CFileTransfer" ascii
		$x2 = "CFileManager" ascii
		$x3 = "CPortForward" ascii
		$x4 = "CPortForwardManager" ascii
		$x5 = "CRemoteShell" ascii
		$x6 = "CSockClient" ascii
		$s1 = "/proc/self/exe" fullword ascii
		$s2 = "/bin/sh" fullword ascii
		$s3 = "echo -e '" ascii
		$s4 = "%s    <DIR>    %s" ascii
		$s5 = "%s    %lld    %s" ascii
		$s6 = "Files: %d        Size: %lld" ascii
		$s7 = "Dirs: %d" ascii
		$s8 = "%s(%s)/" ascii
		$s9 = "%s %s %s %s" ascii

	condition:
		uint16( 0 ) == 0x457f and ( all of ( $x* ) or all of ( $s* ) or 12 of them )
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$x1text"CFileTransfer"ascii
$x2text"CFileManager"ascii
$x3text"CPortForward"ascii
$x4text"CPortForwardManager"ascii
$x5text"CRemoteShell"ascii
$x6text"CSockClient"ascii
$s1text"/proc/self/exe"fullword ascii
$s2text"/bin/sh"fullword ascii
$s3text"echo -e '"ascii
$s4text"%s <DIR> %s"ascii
$s5text"%s %lld %s"ascii
$s6text"Files: %d Size: %lld"ascii
$s7text"Dirs: %d"ascii
$s8text"%s(%s)/"ascii
$s9text"%s %s %s %s"ascii

Condition

uint16( 0 ) == 0x457f and ( all of ( $x* ) or all of ( $s* ) or 12 of them )

In plain words (Heuristic)

  • All patterns in ( $x* ) must match.
  • All patterns in ( $s* ) must match.
  • At least 12 patterns 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.

Open in editor

References

Licence & attribution

Author: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 07aa0561-d6d9-53b6-97ac-670cdf04335d

Metadata

clamav_sigMALWARE.Linux.Trojan.PLEAD

Tags:FILE