Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Rustystealer

Detect Rusty / Luca stealer

MalwareRustystealerditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detect Rusty / Luca stealer

Associated malware family: Rustystealer.

Targets: Windows PE.

It defines 16 patterns (15 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-rustystealer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Rustystealer : FILE
{
	meta:
		description = "Detect Rusty / Luca stealer"
		author = "ditekSHen"
		id = "af39f88c-e0df-51f6-bb11-f3a7231180d0"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10602-L10625"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e60e66360c8f97a31e75cd90a12519f75f3a672874fc985a8da1d4d02e185b4d"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "EdgeMicrosoftedgechromiumChromium7star7StaramigoAmigobraveBrave" ascii
		$s2 = "BrowserchromeChromekometaKometaorbitumOrbitumsputnikSputniktorchTorchucozmediaUranuCozMediavivaldiVivaldiatom" ascii
		$s3 = ".kdbx.pdf.doc.docx.xls.xlsx.ppt.pptx.odt.odp\\logscx\\sensfiles.zip" ascii
		$s4 = "dumper.rs" ascii
		$s5 = "decryption_core.rs" ascii
		$s6 = "anti_emulation.rs" ascii
		$s7 = "discord.rs" ascii
		$s8 = /\\logscx\\(passwords_|cookies_|creditcards_)/ ascii
		$s9 = "VirtualBoxVBoxVMWareVMCountry" ascii
		$s10 = "New Log From ( /  )" ascii
		$s11 = "BrowserChromeKometaOrbitumSputnikTorchUranuCozMediaVivaldiAtomMail" ascii
		$s12 = "BrowserBraveSoftwareCentBrowserChedotChrome" ascii
		$s13 = "ChromeKometaOrbitumSputnikTorchUranuCozMediaVivaldi" ascii
		$s14 = "hostnameencryptedUsernameencryptedPasswordstruct" ascii
		$s15 = "encryptedPassword" fullword ascii
		$s16 = "AutoFill@~" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and 6 of them
}

Strings (16 patterns)

IdentifierTypeValueModifiers
$s1text"EdgeMicrosoftedgechromiumChromium7star7StaramigoAmigobraveBrave"ascii
$s2text"BrowserchromeChromekometaKometaorbitumOrbitumsputnikSputniktorchTorchucozmediaUranuCozMediavivaldiVivaldiatom"ascii
$s3text".kdbx.pdf.doc.docx.xls.xlsx.ppt.pptx.odt.odp\\logscx\\sensfiles.zip"ascii
$s4text"dumper.rs"ascii
$s5text"decryption_core.rs"ascii
$s6text"anti_emulation.rs"ascii
$s7text"discord.rs"ascii
$s8regex/\\logscx\\(passwords_|cookies_|creditcards_)/ascii
$s9text"VirtualBoxVBoxVMWareVMCountry"ascii
$s10text"New Log From ( / )"ascii
$s11text"BrowserChromeKometaOrbitumSputnikTorchUranuCozMediaVivaldiAtomMail"ascii
$s12text"BrowserBraveSoftwareCentBrowserChedotChrome"ascii
$s13text"ChromeKometaOrbitumSputnikTorchUranuCozMediaVivaldi"ascii
$s14text"hostnameencryptedUsernameencryptedPasswordstruct"ascii
$s15text"encryptedPassword"fullword ascii
$s16text"AutoFill@~"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and 6 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 6 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: af39f88c-e0df-51f6-bb11-f3a7231180d0

Tags:FILE