Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_TOITOIN_Downloader

Detects TOITOIN Downloader

MalwareTOITOINditekSHen 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 TOITOIN Downloader

Associated malware family: TOITOIN.

Targets: Windows PE.

It defines 3 patterns (1 text, 2 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-toitoin-downloader.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_TOITOIN_Downloader : FILE
{
	meta:
		description = "Detects TOITOIN Downloader"
		author = "ditekSHen"
		id = "0282ea26-e381-5c9a-9dad-c90246d8add0"
		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#L11143-L11154"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "d7e5e99c9266ec144152c3d1066e0e1a862f48ded17fab8f504192ca48219826"
		score = 75
		quality = 75
		tags = "FILE"
		clamav = "ditekSHen.MALWARE.Win.Trojan.TOITOIN"

	strings:
		$p1 = ":\\Trabalho_2023\\OFF_2023\\" ascii
		$s1 = { 20 2f 63 20 22 [6-15] 63 00 6d 00 64 00 00 00 6f 00 70 00 65 00 6e }
		$o1 = { 48 83 fa 10 72 34 48 8b 8d 10 ?? 00 00 48 ff c2 }

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

Strings (3 patterns)

IdentifierTypeValueModifiers
$p1text":\\Trabalho_2023\\OFF_2023\\"ascii
$s1hex{ 20 2f 63 20 22 [6-15] 63 00 6d 00 64 00 00 00 6f 00 70 00 65 00 6e }
$o1hex{ 48 83 fa 10 72 34 48 8b 8d 10 ?? 00 00 48 ff c2 }

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All 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: 0282ea26-e381-5c9a-9dad-c90246d8add0

Metadata

clamavditekSHen.MALWARE.Win.Trojan.TOITOIN

Tags:FILE