Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Sugardump_Credentials_Stealer_Http

No description has been set in the source file - SEKOIA

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-08-23
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

No description has been set in the source file - SEKOIA

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-sugardump-credentials-stealer-http.yarDetection Rule License 1.1
rule SEKOIA_Apt_Sugardump_Credentials_Stealer_Http : FILE
{
	meta:
		description = "No description has been set in the source file - SEKOIA"
		author = "Sekoia.io"
		id = "47d01ba8-9fdd-42d5-9f10-115f982dc133"
		date = "2022-08-23"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_sugardump_credentials_stealer_http.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "8d1725da41704fd534d3438021a98d0fb9b9b5bfdc63cc3144c4957954be1870"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "\\Google\\Chrome\\User Data" wide
		$ = "\\DebugLogWindowsDefender.txt" wide
		$ = "Opera Software\\Opera Stable" wide
		$ = "Microsoft\\Edge\\User Data" wide
		$ = "\"encrypted_key\":\"(.*?)\\" wide
		$ = "Url:" wide
		$ = "Username:" wide
		$ = "Password:" wide
		$ = "Application:" wide
		$ = "BCrypt.BCryptDecrypt" wide
		$ = "C:\\Users\\User\\" wide
		$ = "_CorExeMain"
		$ = "http://" wide

	condition:
		uint16be( 0 ) == 0x4d5a and filesize < 1MB and 10 of them
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$text"\\Google\\Chrome\\User Data"wide
$text"\\DebugLogWindowsDefender.txt"wide
$text"Opera Software\\Opera Stable"wide
$text"Microsoft\\Edge\\User Data"wide
$text"\"encrypted_key\":\"(.*?)\\"wide
$text"Url:"wide
$text"Username:"wide
$text"Password:"wide
$text"Application:"wide
$text"BCrypt.BCryptDecrypt"wide
$text"C:\\Users\\User\\"wide
$text"_CorExeMain"
$text"http://"wide

Condition

uint16be( 0 ) == 0x4d5a and filesize < 1MB and 10 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 1MB (a cheap guard that skips large files).
  • At least 10 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

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: 47d01ba8-9fdd-42d5-9f10-115f982dc133

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE