Skip to content

YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)

BLACKBERRY_Snake

Detects Snake

GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)Apache License 2.0Compiles with YARA-X
Author
BlackBerry Threat Research Team
Date
2022-06-03
Modified
2022-07-07
Score / Quality
75 / 85

What this rule detects

Detects Snake

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

Summary generated from the rule's metadata and condition.

Rule source

snake.yarApache License 2.0
rule BLACKBERRY_Snake : FILE
{
	meta:
		description = "Detects Snake"
		author = "BlackBerry Threat Research Team"
		id = "a8169a4e-4acd-5e54-915f-af1ff7f4cb1a"
		date = "2022-06-03"
		modified = "2022-07-07"
		reference = "https://blogs.blackberry.com/en/2022/06/threat-thursday-unique-delivery-method-for-snake-keylogger"
		source_url = "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/Snake.yar#L1-L19"
		license_url = "N/A"
		logic_hash = "70ba9a649f9926fd204d45eafd42ce639811552c132b743367d2ba8ebaf3ee63"
		score = 75
		quality = 85
		tags = "FILE"
		license = "This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team"

	strings:
		$s1 = "Game1Screen_Form_Load"
		$s2 = "get_KeyCode"
		$s3 = "Good luck mate"

	condition:
		filesize < 1000KB and all of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$s1text"Game1Screen_Form_Load"
$s2text"get_KeyCode"
$s3text"Good luck mate"

Condition

filesize < 1000KB and all of them

In plain words (Heuristic)

  • The file must be smaller than 1000KB (a cheap guard that skips large files).
  • All 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: BlackBerry Threat Research Team

Source repository: BlackBerry Research & Intelligence (via Open-Source-YARA-rules) @ ec0056f767

Licence: Apache License 2.0 (stated in the rule's own meta)

“This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team”

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: a8169a4e-4acd-5e54-915f-af1ff7f4cb1a

Tags:FILE

  • MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-04-06
  • MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-06-14
  • MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-06-14
  • GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-04-13
  • GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-05-22
  • MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-05-22
  • MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-05-22
  • GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-05-22