Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Agrat

No description has been set in the source file - SEKOIA

GenericSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-06-01
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

infostealer-win-agrat.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Agrat : FILE
{
	meta:
		description = "No description has been set in the source file - SEKOIA"
		author = "Sekoia.io"
		id = "472effe8-5044-4ca1-88e0-3e19d445b9d1"
		date = "2022-06-01"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_agrat.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "5b02880dbc75d9e4d95ec55c8e8630a47198ee4cc25e3ff79c93e9fe634fadca"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str00 = "Vault.txt" wide
		$str01 = "Credman.txt" wide
		$str02 = "[Networks] {0}" wide
		$str03 = "[Screenshot] {0}" wide
		$str04 = "[Twitch] {0}" wide
		$str05 = "Servers.txt" wide
		$str06 = "[WindscribeVPN] {0}" wide
		$str07 = "[{0}] Thread finished!" wide
		$str08 = "[ERROR] Unable to enumerate vaults. Error (0x" wide
		$str09 = "snowflake-ssh" wide
		$str10 = "//setting[@name='Password']/value" wide
		$str11 = "MakeScreenshot" ascii
		$sys = "System.Collections.Generic.IEnumerator<Stealer." ascii

	condition:
		uint16( 0 ) == 0x5A4D and all of them and #sys > 10
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$str00text"Vault.txt"wide
$str01text"Credman.txt"wide
$str02text"[Networks] {0}"wide
$str03text"[Screenshot] {0}"wide
$str04text"[Twitch] {0}"wide
$str05text"Servers.txt"wide
$str06text"[WindscribeVPN] {0}"wide
$str07text"[{0}] Thread finished!"wide
$str08text"[ERROR] Unable to enumerate vaults. Error (0x"wide
$str09text"snowflake-ssh"wide
$str10text"//setting[@name='Password']/value"wide
$str11text"MakeScreenshot"ascii
$systext"System.Collections.Generic.IEnumerator<Stealer."ascii

Condition

uint16( 0 ) == 0x5A4D and all of them and #sys > 10

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in the rule must match.
  • Pattern $sys must occur > 10 times.

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: 472effe8-5044-4ca1-88e0-3e19d445b9d1

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE