Skip to content

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

BLACKBERRY_Eternityworm

Detects Eternity Worm

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

What this rule detects

Detects Eternity Worm

Targets: Windows PE.

It defines 6 patterns (6 text, 0 hex, 0 regex). YARA modules used: pe.

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

eternityworm.yarApache License 2.0
import "pe"

rule BLACKBERRY_Eternityworm : FILE
{
	meta:
		description = "Detects Eternity Worm"
		author = "BlackBerry Threat Research Team"
		id = "46860918-2c6e-528e-807c-ef6cf6c4f89b"
		date = "2022-05-22"
		modified = "2022-07-07"
		reference = "https://blogs.blackberry.com/en/2022/06/threat-spotlight-eternity-project-maas-goes-on-and-on"
		source_url = "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/EternityWorm.yar#L4-L31"
		license_url = "N/A"
		logic_hash = "6d944eddc1cc5acbeab1a8c85f16380b22467a069f91e7e8dd0b682d98e71976"
		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 = "Eternity 2022" wide
		$s2 = "Eternity" wide
		$s3 = "Anal Worm" wide
		$s4 = "Made in Heaven" wide
		$s5 = "Van Darkholme" wide
		$s6 = "EternityWorm.exe" wide

	condition:
		( uint16( 0 ) == 0x5a4d and pe.imphash ( ) == "f34d5f2d4577ed6d9ceec516c1f5a744" and all of ( $s* ) )
}

Strings (6 patterns)

IdentifierTypeValueModifiers
$s1text"Eternity 2022"wide
$s2text"Eternity"wide
$s3text"Anal Worm"wide
$s4text"Made in Heaven"wide
$s5text"Van Darkholme"wide
$s6text"EternityWorm.exe"wide

Condition

( uint16( 0 ) == 0x5a4d and pe.imphash ( ) == "f34d5f2d4577ed6d9ceec516c1f5a744" and all of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $s* ) must match.
  • Uses the pe module.
  • Checks the PE import hash (imphash).

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: 46860918-2c6e-528e-807c-ef6cf6c4f89b

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-06-03