Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Toxiceye

Detects ToxicEye / TelegramRAT. Observed used as the basis for many infostealers

MalwareToxiceyeditekSHen 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

Detects ToxicEye / TelegramRAT. Observed used as the basis for many infostealers

Associated malware family: Toxiceye.

Targets: Windows PE.

It defines 11 patterns (10 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-toxiceye.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Toxiceye : FILE
{
	meta:
		description = "Detects ToxicEye / TelegramRAT. Observed used as the basis for many infostealers"
		author = "ditekSHen"
		id = "99304f11-2444-5864-b174-514bb5bef0f7"
		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#L10955-L10973"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ee01c107dd295b923801c0d1a77b1534d3a5f2abf8d2cfa93c6786a1b0553504"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "[~] Handling command" wide
		$s2 = "[?] Sleeping {0}" wide
		$s3 = "GETPASSWORDS" wide
		$s4 = "FORKBOMB" wide
		$s5 = "SENDKEYPRESS" wide
		$s6 = "KEYLOGGER" wide
		$s7 = "/ToxicEye/master/TelegramRAT/" wide
		$s8 = "desktopScreenshot" ascii
		$s9 = "MeltFile" ascii
		$s10 = "AutoStealer" ascii
		$s11 = /\/LimerBoy\/(ToxicEye|Adamantium-Thief|hackpy)/ wide

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

Strings (11 patterns)

IdentifierTypeValueModifiers
$s1text"[~] Handling command"wide
$s2text"[?] Sleeping {0}"wide
$s3text"GETPASSWORDS"wide
$s4text"FORKBOMB"wide
$s5text"SENDKEYPRESS"wide
$s6text"KEYLOGGER"wide
$s7text"/ToxicEye/master/TelegramRAT/"wide
$s8text"desktopScreenshot"ascii
$s9text"MeltFile"ascii
$s10text"AutoStealer"ascii
$s11regex/\/LimerBoy\/(ToxicEye|Adamantium-Thief|hackpy)/wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 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: 99304f11-2444-5864-b174-514bb5bef0f7

Tags:FILE