Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Millenium

Finds MilleniumRAT samples based on the specific strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-11-16
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds MilleniumRAT samples based on the specific strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

rat-win-millenium.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Millenium : FILE
{
	meta:
		description = "Finds MilleniumRAT samples based on the specific strings"
		author = "Sekoia.io"
		id = "91320924-5c74-457a-8601-29c4e4034761"
		date = "2023-11-16"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_millenium.yar#L1-L30"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "bcf4158b9bfee65cd9bd74163ac108ea1de8ec0e9ad066e77bec788ae6fb7283"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "Millenium RAT, version:" wide
		$str02 = "Coded by @shinyenigma" wide
		$str03 = "*gift*<NEW TOKEN>*<NEW CHAT ID>*<message> - gift this bot to another user, his telegram bot has to be started" wide
		$str04 = "*historyForce - grab more browser history by killing browser processes, use carefully" wide
		$str05 = "*download - victim`s PC downloads a file attached to this message, if it is a picture it should also be attached as a file" wide
		$str06 = "No keylogs recorded!" wide
		$str07 = "Successfully added RAT to startup" wide
		$str08 = "You`ve gifted gifted a bot:" wide
		$str09 = "Incorrect agrument, please enter 0/90/180/270" wide
		$str10 = "SELECT action_url, username_value, password_value FROM logins" wide
		$str11 = "Yandex\\YandexBrowser\\User Data\\Default" wide
		$str12 = "Millenium-rat-CSharp (main project)" ascii
		$str13 = "get_BatteryLifePercent" ascii
		$str14 = "get_ExpirationMonth" ascii
		$str15 = "sqlite3_extension_init " ascii

	condition:
		uint16( 0 ) == 0x5A4D and 10 of ( $str* )
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$str01text"Millenium RAT, version:"wide
$str02text"Coded by @shinyenigma"wide
$str03text"*gift*<NEW TOKEN>*<NEW CHAT ID>*<message> - gift this bot to another user, his telegram bot has to be started"wide
$str04text"*historyForce - grab more browser history by killing browser processes, use carefully"wide
$str05text"*download - victim`s PC downloads a file attached to this message, if it is a picture it should also be attached as a file"wide
$str06text"No keylogs recorded!"wide
$str07text"Successfully added RAT to startup"wide
$str08text"You`ve gifted gifted a bot:"wide
$str09text"Incorrect agrument, please enter 0/90/180/270"wide
$str10text"SELECT action_url, username_value, password_value FROM logins"wide
$str11text"Yandex\\YandexBrowser\\User Data\\Default"wide
$str12text"Millenium-rat-CSharp (main project)"ascii
$str13text"get_BatteryLifePercent"ascii
$str14text"get_ExpirationMonth"ascii
$str15text"sqlite3_extension_init "ascii

Condition

uint16( 0 ) == 0x5A4D and 10 of ( $str* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 10 patterns in ( $str* ) 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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

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: 91320924-5c74-457a-8601-29c4e4034761

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE