Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Stealer_Win_Mgbot_Credential_Stealer

Detect MgBot credential stealer plugin

MalwareMgbotSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Detect MgBot credential stealer plugin"
		author = "Sekoia.io"
		id = "e06501c1-c842-43f7-a429-9026bc0a4fd4"
		date = "2024-03-20"
		modified = "2024-12-19"
		reference = "https://www.welivesecurity.com/2023/04/26/evasive-panda-apt-group-malware-updates-popular-chinese-software/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/stealer_win_mgbot_credential_stealer.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "174a62201c7e2af67b7ad37bf7935f064a379f169cf257ca16e912a46ecc9841"
		hash = "cb7d9feda7d8ebfba93ec428d5a8a4382bf58e5a70e4b51eb1938d2691d5d4a5"
		logic_hash = "27f1b0ac818753804f0e67ac158d9376ab6beff8613ef94a1aa6cf8dd6815d49"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$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 them

In 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.

Open in editor

References

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)

Original rule

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

version1.0
classificationTLP:CLEAR

Tags:FILE

More Mgbot rules