Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_EXPL_LOG_Cacti_Commandinjection_CVE_2022_46169_Dec22_1

Detects potential exploitation attempts that target the Cacti Command Injection CVE-2022-46169

ExploitSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Nasreddine Bencherchali
Date
2022-12-27
Modified
2023-12-05
Score / Quality
70 / 85

What this rule detects

Detects potential exploitation attempts that target the Cacti Command Injection CVE-2022-46169

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

Summary generated from the rule's metadata and condition.

Rule source

expl-log-cacti-commandinjection-cve-2022-46169-dec22-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_EXPL_LOG_Cacti_Commandinjection_CVE_2022_46169_Dec22_1 : CVE_2022_46169
{
	meta:
		description = "Detects potential exploitation attempts that target the Cacti Command Injection CVE-2022-46169"
		author = "Nasreddine Bencherchali"
		id = "c799a419-87ed-55ea-8ebb-d4da901be4ad"
		date = "2022-12-27"
		modified = "2023-12-05"
		reference = "https://github.com/Cacti/cacti/security/advisories/GHSA-6p93-p743-35gf"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_cve_2022_46169_cacti.yar#L1-L13"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "6ccd3b830deb5c5d65519274c4c528203a2a14a177382334da87e288174e2cfe"
		score = 70
		quality = 85
		tags = "CVE-2022-46169"

	strings:
		$xr1 = /\/remote_agent\.php.{1,300}(whoami|\/bin\/bash|\/bin\/sh|\bwget\b|powershell|cmd \/c|cmd\.exe \/c).{1,300} 200 / ascii

	condition:
		$xr1
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$xr1regex/\/remote_agent\.php.{1,300}(whoami|\/bin\/bash|\/bin\/sh|\bwget\b|powershell|cmd \/c|cmd\.exe \/c).{1,300} 200 /ascii

Condition

$xr1

In plain words (Heuristic)

  • Pattern $xr1 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

Licence & attribution

Author: Nasreddine Bencherchali

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: c799a419-87ed-55ea-8ebb-d4da901be4ad

Tags:CVE_2022_46169