Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_EXPL_Gitlab_CE_RCE_CVE_2021_22205

Detects signs of exploitation of GitLab CE CVE-2021-22205

ExploitSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2021-10-26
Modified
2023-12-05
Score / Quality
70 / 85

What this rule detects

Detects signs of exploitation of GitLab CE CVE-2021-22205

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

Summary generated from the rule's metadata and condition.

Rule source

expl-gitlab-ce-rce-cve-2021-22205.yarDetection Rule License 1.1
rule SIGNATURE_BASE_EXPL_Gitlab_CE_RCE_CVE_2021_22205 : CVE_2021_22205
{
	meta:
		description = "Detects signs of exploitation of GitLab CE CVE-2021-22205"
		author = "Florian Roth (Nextron Systems)"
		id = "21cc6fa7-e50d-5b8e-815d-27315ab5635d"
		date = "2021-10-26"
		modified = "2023-12-05"
		reference = "https://security.humanativaspa.it/gitlab-ce-cve-2021-22205-in-the-wild/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/exploit_gitlab_cve_2021_22205.yar#L2-L27"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "54b841716a6bd56706c1c38fcda9a27ffd7feba2660602b191e8e347983e578d"
		score = 70
		quality = 85
		tags = "CVE-2021-22205"

	strings:
		$sa1 = "VXNlci5maW5kX2J5KHVzZXJuYW1l" ascii
		$sa2 = "VzZXIuZmluZF9ieSh1c2VybmFtZ" ascii
		$sa3 = "Vc2VyLmZpbmRfYnkodXNlcm5hbW" ascii
		$sb1 = "dXNlci5hZG1pb" ascii
		$sb2 = "VzZXIuYWRtaW" ascii
		$sb3 = "1c2VyLmFkbWlu" ascii
		$sc1 = "dXNlci5zYXZlI" ascii
		$sc2 = "VzZXIuc2F2ZS" ascii
		$sc3 = "1c2VyLnNhdmUh" ascii

	condition:
		1 of ( $sa* ) and 1 of ( $sb* ) and 1 of ( $sc* )
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$sa1text"VXNlci5maW5kX2J5KHVzZXJuYW1l"ascii
$sa2text"VzZXIuZmluZF9ieSh1c2VybmFtZ"ascii
$sa3text"Vc2VyLmZpbmRfYnkodXNlcm5hbW"ascii
$sb1text"dXNlci5hZG1pb"ascii
$sb2text"VzZXIuYWRtaW"ascii
$sb3text"1c2VyLmFkbWlu"ascii
$sc1text"dXNlci5zYXZlI"ascii
$sc2text"VzZXIuc2F2ZS"ascii
$sc3text"1c2VyLnNhdmUh"ascii

Condition

1 of ( $sa* ) and 1 of ( $sb* ) and 1 of ( $sc* )

In plain words (Heuristic)

  • At least 1 patterns in ( $sa* ) must match.
  • At least 1 patterns in ( $sb* ) must match.
  • At least 1 patterns in ( $sc* ) 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: 21cc6fa7-e50d-5b8e-815d-27315ab5635d

Tags:CVE_2021_22205