Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Stealer_Win_Demotryspy

No description has been set in the source file - SEKOIA

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-02-09
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 7 patterns (7 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

stealer-win-demotryspy.yarDetection Rule License 1.1
rule SEKOIA_Stealer_Win_Demotryspy : FILE
{
	meta:
		description = "No description has been set in the source file - SEKOIA"
		author = "Sekoia.io"
		id = "70af0e40-b177-49a3-bff4-723f3f4aa375"
		date = "2024-02-09"
		modified = "2024-12-19"
		reference = "https://paper.seebug.org/3115/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/stealer_win_demotryspy.yar#L1-L22"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "b7a910e4d394d2122e6b4fe76daa6691a642396e27f7a47d09232f4b7eb424ee"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$demotry1 = "DemoTry.exe"
		$demotry2 = "DemoTry\\Release\\DemoTry.pdb"
		$wide1 = "\\loc.tmp" wide
		$wide2 = "\\log.tmp" wide
		$wide3 = "\\Google\\Chrome\\User Data" wide
		$wide4 = "\\Default\\Login data" wide
		$wide5 = "\\Local State" wide

	condition:
		uint16be( 0 ) == 0x4d5a and ( 1 of ( $demotry* ) or all of ( $wide* ) )
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$demotry1text"DemoTry.exe"
$demotry2text"DemoTry\\Release\\DemoTry.pdb"
$wide1text"\\loc.tmp"wide
$wide2text"\\log.tmp"wide
$wide3text"\\Google\\Chrome\\User Data"wide
$wide4text"\\Default\\Login data"wide
$wide5text"\\Local State"wide

Condition

uint16be( 0 ) == 0x4d5a and ( 1 of ( $demotry* ) or all of ( $wide* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $wide* ) must match.
  • At least 1 patterns in ( $demotry* ) 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: 70af0e40-b177-49a3-bff4-723f3f4aa375

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE