Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_EXPL_LNX_CUPS_CVE_2024_47177_Sep24

Detects suspicious FoomaticRIPCommandLine command in printer config, which could be used to exploit CUPS CVE-2024-47177

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth
Date
2024-09-27
Modified
2024-12-12
Score / Quality
65 / 85

What this rule detects

Detects suspicious FoomaticRIPCommandLine command in printer config, which could be used to exploit CUPS CVE-2024-47177

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

Summary generated from the rule's metadata and condition.

Rule source

susp-expl-lnx-cups-cve-2024-47177-sep24.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_EXPL_LNX_CUPS_CVE_2024_47177_Sep24 : CVE_2024_47177
{
	meta:
		description = "Detects suspicious FoomaticRIPCommandLine command in printer config, which could be used to exploit CUPS CVE-2024-47177"
		author = "Florian Roth"
		id = "cb76f1c7-6dc0-5fed-a970-2a4890db46d3"
		date = "2024-09-27"
		modified = "2024-12-12"
		reference = "https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_cups_sep24.yar#L17-L38"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "2158ca8a08cb7552e2a437de025e3aad63ddc5417245e6ede7283d3bd0fc159b"
		score = 65
		quality = 85
		tags = "CVE-2024-47177"

	strings:
		$ = "FoomaticRIPCommandLine: \"bash " ascii
		$ = "FoomaticRIPCommandLine: \"sh " ascii
		$ = "FoomaticRIPCommandLine: \"python " ascii
		$ = "FoomaticRIPCommandLine: \"perl " ascii
		$ = "FoomaticRIPCommandLine: \"echo " ascii
		$ = "FoomaticRIPCommandLine: \\\"bash " ascii
		$ = "FoomaticRIPCommandLine: \\\"sh " ascii
		$ = "FoomaticRIPCommandLine: \\\"python " ascii
		$ = "FoomaticRIPCommandLine: \\\"perl " ascii
		$ = "FoomaticRIPCommandLine: \\\"echo " ascii

	condition:
		1 of them
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$text"FoomaticRIPCommandLine: \"bash "ascii
$text"FoomaticRIPCommandLine: \"sh "ascii
$text"FoomaticRIPCommandLine: \"python "ascii
$text"FoomaticRIPCommandLine: \"perl "ascii
$text"FoomaticRIPCommandLine: \"echo "ascii
$text"FoomaticRIPCommandLine: \\\"bash "ascii
$text"FoomaticRIPCommandLine: \\\"sh "ascii
$text"FoomaticRIPCommandLine: \\\"python "ascii
$text"FoomaticRIPCommandLine: \\\"perl "ascii
$text"FoomaticRIPCommandLine: \\\"echo "ascii

Condition

1 of them

In plain words (Heuristic)

  • At least 1 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

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: cb76f1c7-6dc0-5fed-a970-2a4890db46d3

Tags:CVE_2024_47177