Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_LNX_Linux_Malware_Indicators_Aug20_1

Detects indicators often found in linux malware samples. Note: This detection is based on common characteristics typically associated with the mentioned threats, must be considered a clue and does not conclusively prove maliciousness.

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2020-08-03
Modified
2026-01-04
Score / Quality
65 / 85

What this rule detects

Detects indicators often found in linux malware samples. Note: This detection is based on common characteristics typically associated with the mentioned threats, must be considered a clue and does not conclusively prove maliciousness.

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

Summary generated from the rule's metadata and condition.

Rule source

susp-lnx-linux-malware-indicators-aug20-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_LNX_Linux_Malware_Indicators_Aug20_1 : FILE
{
	meta:
		description = "Detects indicators often found in linux malware samples. Note: This detection is based on common characteristics typically associated with the mentioned threats, must be considered a clue and does not conclusively prove maliciousness."
		author = "Florian Roth (Nextron Systems)"
		id = "9a1093a6-0239-5d1c-aa30-1ca725941583"
		date = "2020-08-03"
		modified = "2026-01-04"
		reference = "Internal Research"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_lnx_malware_indicators.yar#L1-L25"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "1d07d424f2a66b60e55d21dff6d4c4f9f2591c3ab622dcfbc1cd989d28b44017"
		score = 65
		quality = 85
		tags = "FILE"

	strings:
		$s1 = "&& chmod +x" ascii
		$s2 = "|base64 -" ascii
		$s3 = " /tmp" ascii
		$s4 = "|curl " ascii
		$s5 = "whoami" ascii fullword
		$fp1 = "WITHOUT ANY WARRANTY" ascii
		$fp2 = "postinst" ascii fullword
		$fp3 = "THIS SOFTWARE IS PROVIDED" ascii fullword
		$fp4 = "Free Software Foundation" ascii fullword
		$fp5 = "Too many sessions open! Use ssh_channel.close() or 'with'!"

	condition:
		filesize < 400KB and 3 of ( $s* ) and not 1 of ( $fp* )
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$s1text"&& chmod +x"ascii
$s2text"|base64 -"ascii
$s3text" /tmp"ascii
$s4text"|curl "ascii
$s5text"whoami"ascii fullword
$fp1text"WITHOUT ANY WARRANTY"ascii
$fp2text"postinst"ascii fullword
$fp3text"THIS SOFTWARE IS PROVIDED"ascii fullword
$fp4text"Free Software Foundation"ascii fullword
$fp5text"Too many sessions open! Use ssh_channel.close() or 'with'!"

Condition

filesize < 400KB and 3 of ( $s* ) and not 1 of ( $fp* )

In plain words (Heuristic)

  • The file must be smaller than 400KB (a cheap guard that skips large files).
  • At least 3 patterns in ( $s* ) must match.
  • At least 1 patterns in ( $fp* ) 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

Licence & attribution

Author: Florian Roth (Nextron Systems)

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: 9a1093a6-0239-5d1c-aa30-1ca725941583

Tags:FILE