Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_Payload_F5_BIG_IP_Exploitations_Jul20_1

Detects code found in report on exploits against CVE-2020-5902 F5 BIG-IP vulnerability by NCC group

MalwareSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2020-06-07
Modified
2023-12-05
Score / Quality
75 / 85

What this rule detects

Detects code found in report on exploits against CVE-2020-5902 F5 BIG-IP vulnerability by NCC group

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

Summary generated from the rule's metadata and condition.

Rule source

mal-payload-f5-big-ip-exploitations-jul20-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_Payload_F5_BIG_IP_Exploitations_Jul20_1 : CVE_2020_5902 FILE
{
	meta:
		description = "Detects code found in report on exploits against CVE-2020-5902 F5 BIG-IP vulnerability by NCC group"
		author = "Florian Roth (Nextron Systems)"
		id = "57705ba1-c0ad-5ca6-8539-44d9da6b5942"
		date = "2020-06-07"
		modified = "2023-12-05"
		reference = "https://research.nccgroup.com/2020/07/05/rift-f5-networks-k52145254-tmui-rce-vulnerability-cve-2020-5902-intelligence/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_f5_bigip_expl_payloads.yar#L2-L23"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "a3651081bb09452d80cba9f673a7b61c8ee2f47a12fb64d975eb63867688ee3b"
		score = 75
		quality = 85
		tags = "CVE-2020-5902, FILE"

	strings:
		$x1 = "rm -f /etc/ld.so.preload" ascii fullword
		$x2 = "echo \"* * * * * $LDR" ascii
		$x3 = ".sh -o /tmp/in.sh" ascii
		$x4 = "chmod a+x /etc/.modules/.tmp" ascii
		$x5 = "chmod +x /var/log/F5-logcheck"
		$s1 = "ulimit -n 65535" ascii fullword
		$s2 = "-s /usr/bin/wget " ascii
		$s3 = ".sh | sh" ascii

	condition:
		filesize < 300KB and ( 1 of ( $x* ) or 3 of them )
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$x1text"rm -f /etc/ld.so.preload"ascii fullword
$x2text"echo \"* * * * * $LDR"ascii
$x3text".sh -o /tmp/in.sh"ascii
$x4text"chmod a+x /etc/.modules/.tmp"ascii
$x5text"chmod +x /var/log/F5-logcheck"
$s1text"ulimit -n 65535"ascii fullword
$s2text"-s /usr/bin/wget "ascii
$s3text".sh | sh"ascii

Condition

filesize < 300KB and ( 1 of ( $x* ) or 3 of them )

In plain words (Heuristic)

  • The file must be smaller than 300KB (a cheap guard that skips large files).
  • At least 1 patterns in ( $x* ) must match.
  • At least 3 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: 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: 57705ba1-c0ad-5ca6-8539-44d9da6b5942

Tags:CVE_2020_5902FILE