YARA · SEKOIA.IO Community
SEKOIA_Stealer_Win_Mgbot_Credential_Stealer
Detect MgBot credential stealer plugin
- Author
- Sekoia.io
- Date
- 2024-03-20
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect MgBot credential stealer plugin
Associated malware family: Mgbot.
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
stealer-win-mgbot-credential-stealer.yarDetection Rule License 1.1
rule SEKOIA_Stealer_Win_Mgbot_Credential_Stealer : FILE
{
meta:
= "Detect MgBot credential stealer plugin"
= "Sekoia.io"
= "e06501c1-c842-43f7-a429-9026bc0a4fd4"
= "2024-03-20"
= "2024-12-19"
= "https://www.welivesecurity.com/2023/04/26/evasive-panda-apt-group-malware-updates-popular-chinese-software/"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/stealer_win_mgbot_credential_stealer.yar#L1-L21"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "174a62201c7e2af67b7ad37bf7935f064a379f169cf257ca16e912a46ecc9841"
= "cb7d9feda7d8ebfba93ec428d5a8a4382bf58e5a70e4b51eb1938d2691d5d4a5"
= "27f1b0ac818753804f0e67ac158d9376ab6beff8613ef94a1aa6cf8dd6815d49"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "Software\\Aerofox\\Foxmail\\Indenties" wide
$ = "Software\\Aerofox\\FoxmailPreview" wide
$ = "IMAP Password" wide
$ = "POP3 Password" wide
condition:
uint16be( 0 ) == 0x4d5a and all of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "Software\\Aerofox\\Foxmail\\Indenties" | wide |
| $ | text | "Software\\Aerofox\\FoxmailPreview" | wide |
| $ | text | "IMAP Password" | wide |
| $ | text | "POP3 Password" | wide |
Condition
uint16be( 0 ) == 0x4d5a and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 174a62201c7e2af67b7ad37bf7935f064a379f169cf257ca16e912a46ecc9841
- cb7d9feda7d8ebfba93ec428d5a8a4382bf58e5a70e4b51eb1938d2691d5d4a5
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: e06501c1-c842-43f7-a429-9026bc0a4fd4
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- 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