Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Torisma

Detects Torisma

MalwareTorismaditekSHen 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 Torisma

Associated malware family: Torisma.

Targets: Windows PE.

It defines 9 patterns (6 text, 3 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-torisma.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Torisma : FILE
{
	meta:
		description = "Detects Torisma"
		author = "ditekSHen"
		id = "e62a0f1c-4404-5da1-9c43-4cb58e735827"
		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#L4339-L4355"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "bd3823f8a91fdfc443e20bcb299a5103b7176a694f0d5328e7986de83f677a31"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "ACTION=PREVPAGE&CODE=C%s&RES=%d" fullword ascii
		$s2 = "ACTION=VIEW&PAGE=%s&CODE=%s&CACHE=%s&REQUEST=%d" fullword ascii
		$s3 = "ACTION=NEXTPAGE&CODE=S%s&CACHE=%s&RES=%d" fullword ascii
		$s4 = "Your request has been accepted. ClientID: {" ascii
		$s5 = "Proxy-Connection: Keep-Alive" fullword wide
		$s6 = "Content-Length: %d" fullword wide
		$o0 = { f7 f9 8b c2 89 44 24 34 48 63 44 24 34 48 8b 4c }
		$o1 = { 48 c7 00 ff ff ff ff 48 8b 84 24 90 }
		$o2 = { f3 aa 83 7c 24 30 01 75 34 c7 44 24 20 01 }

	condition:
		uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $o* ) and 3 of ( $s* ) )
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"ACTION=PREVPAGE&CODE=C%s&RES=%d"fullword ascii
$s2text"ACTION=VIEW&PAGE=%s&CODE=%s&CACHE=%s&REQUEST=%d"fullword ascii
$s3text"ACTION=NEXTPAGE&CODE=S%s&CACHE=%s&RES=%d"fullword ascii
$s4text"Your request has been accepted. ClientID: {"ascii
$s5text"Proxy-Connection: Keep-Alive"fullword wide
$s6text"Content-Length: %d"fullword wide
$o0hex{ f7 f9 8b c2 89 44 24 34 48 63 44 24 34 48 8b 4c }
$o1hex{ 48 c7 00 ff ff ff ff 48 8b 84 24 90 }
$o2hex{ f3 aa 83 7c 24 30 01 75 34 c7 44 24 20 01 }

Condition

uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $o* ) and 3 of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $o* ) must match.
  • At least 4 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $s* ) 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: e62a0f1c-4404-5da1-9c43-4cb58e735827

Tags:FILE