Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_VULN_Python_Hack_Backdoored_Ctx_May21

Detects backdoored python ctx version

GenericSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Christian Burkard
Date
2022-05-24
Modified
2023-12-05
Score / Quality
75 / 85

What this rule detects

Detects backdoored python ctx version

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

Summary generated from the rule's metadata and condition.

Rule source

vuln-python-hack-backdoored-ctx-may21.yarDetection Rule License 1.1
rule SIGNATURE_BASE_VULN_Python_Hack_Backdoored_Ctx_May21 : FILE
{
	meta:
		description = "Detects backdoored python ctx version"
		author = "Christian Burkard"
		id = "55c1326a-6a5f-5d6f-b798-2c8516faffe2"
		date = "2022-05-24"
		modified = "2023-12-05"
		reference = "https://twitter.com/s0md3v/status/1529005758540808192"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/vul_backdoor_antitheftweb.yar#L16-L31"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "4fdfd4e647c106cef2a3b2503473f9b68259cae45f89e5b6c9272d04a1dfaeb0"
		hash = "b40297af54e3f99b02e105f013265fd8d0a1b1e1f7f0b05bcb5dbdc9125b3bb5"
		hash = "b7644fa1e0872780690ce050c98aa2407c093473031ab5f7a8ce35c0d2fc077e"
		logic_hash = "f8047eb4e0420e4ec01fb038acdc4abdcc3aa4dada5ce072d20f78acac942079"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$x1 = "requests.get(\"https://anti-theft-web.herokuapp.com/hacked/"

	condition:
		filesize < 10KB and $x1
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$x1text"requests.get(\"https://anti-theft-web.herokuapp.com/hacked/"

Condition

filesize < 10KB and $x1

In plain words (Heuristic)

  • The file must be smaller than 10KB (a cheap guard that skips large files).
  • Pattern $x1 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 4fdfd4e647c106cef2a3b2503473f9b68259cae45f89e5b6c9272d04a1dfaeb0
  • b40297af54e3f99b02e105f013265fd8d0a1b1e1f7f0b05bcb5dbdc9125b3bb5
  • b7644fa1e0872780690ce050c98aa2407c093473031ab5f7a8ce35c0d2fc077e

Licence & attribution

Author: Christian Burkard

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: 55c1326a-6a5f-5d6f-b798-2c8516faffe2

Tags:FILE