YARA · SEKOIA.IO Community
SEKOIA_Rat_Win_Millenium
Finds MilleniumRAT samples based on the specific strings
- 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:
= "Finds MilleniumRAT samples based on the specific strings"
= "Sekoia.io"
= "91320924-5c74-457a-8601-29c4e4034761"
= "2023-11-16"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_millenium.yar#L1-L30"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "bcf4158b9bfee65cd9bd74163ac108ea1de8ec0e9ad066e77bec788ae6fb7283"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "Millenium RAT, version:" | wide |
| $str02 | text | "Coded by @shinyenigma" | wide |
| $str03 | text | "*gift*<NEW TOKEN>*<NEW CHAT ID>*<message> - gift this bot to another user, his telegram bot has to be started" | wide |
| $str04 | text | "*historyForce - grab more browser history by killing browser processes, use carefully" | wide |
| $str05 | text | "*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 | text | "No keylogs recorded!" | wide |
| $str07 | text | "Successfully added RAT to startup" | wide |
| $str08 | text | "You`ve gifted gifted a bot:" | wide |
| $str09 | text | "Incorrect agrument, please enter 0/90/180/270" | wide |
| $str10 | text | "SELECT action_url, username_value, password_value FROM logins" | wide |
| $str11 | text | "Yandex\\YandexBrowser\\User Data\\Default" | wide |
| $str12 | text | "Millenium-rat-CSharp (main project)" | ascii |
| $str13 | text | "get_BatteryLifePercent" | ascii |
| $str14 | text | "get_ExpirationMonth" | ascii |
| $str15 | text | "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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20