Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Tomiris

Detects Tomiris

MalwareTomirisditekSHen 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 Tomiris

Associated malware family: Tomiris.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-tomiris.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Tomiris : FILE
{
	meta:
		description = "Detects Tomiris"
		author = "ditekSHen"
		id = "86efd4fb-3c76-504e-b367-132aee59e09a"
		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#L7955-L7978"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1d9baeb6db2e849dd053c3fc735984e23b9cead39cf166f8a544ee5a439185d1"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$f1 = "main.workPath" ascii
		$f2 = "main.selfName" ascii
		$f3 = "main.infoServerAddr" ascii
		$f4 = "main.configFileName" ascii
		$s1 = "C:/Projects/go/src/Tomiris/main.go" ascii
		$s2 = "C:/GO/go1.16.2/src/os/user/lookup_windows.go" ascii
		$s3 = "C:\\GO\\go1.16.2" ascii
		$s4 = ".html.jpeg.json.wasm.webp/p/gf/p/kk1562515" ascii
		$s5 = "\" /ST 10:00alarm clockassistQueueavx512vbmi2avx512vnniwbad" ascii
		$s6 = "write /TR \" Value addr= alloc base  code= ctxt: curg= free  goid  jobs= list= m->p=" ascii
		$t1 = "SCHTASKS /DELETE /F /TN \"%s\"" ascii
		$t2 = "SCHTASKS /CREATE /SC DAILY /TN" ascii
		$t3 = "SCHTASKS /CREATE /SC ONCE /TN \"%s\" /TR \"%s\" /ST %s" ascii
		$t4 = "SCHTASKS /CREATE /SC ONCE /TN \"%s\" /TR \"'%s' %s\" /ST %s" ascii
		$r1 = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones" ascii
		$r2 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( ( all of ( $f* ) and 3 of ( $s* ) and 2 of ( $t* ) and 1 of ( $r* ) ) or ( 4 of ( $s* ) and 2 of ( $t* ) and 1 of ( $r* ) ) or 12 of them )
}

Strings (16 patterns)

IdentifierTypeValueModifiers
$f1text"main.workPath"ascii
$f2text"main.selfName"ascii
$f3text"main.infoServerAddr"ascii
$f4text"main.configFileName"ascii
$s1text"C:/Projects/go/src/Tomiris/main.go"ascii
$s2text"C:/GO/go1.16.2/src/os/user/lookup_windows.go"ascii
$s3text"C:\\GO\\go1.16.2"ascii
$s4text".html.jpeg.json.wasm.webp/p/gf/p/kk1562515"ascii
$s5text"\" /ST 10:00alarm clockassistQueueavx512vbmi2avx512vnniwbad"ascii
$s6text"write /TR \" Value addr= alloc base code= ctxt: curg= free goid jobs= list= m->p="ascii
$t1text"SCHTASKS /DELETE /F /TN \"%s\""ascii
$t2text"SCHTASKS /CREATE /SC DAILY /TN"ascii
$t3text"SCHTASKS /CREATE /SC ONCE /TN \"%s\" /TR \"%s\" /ST %s"ascii
$t4text"SCHTASKS /CREATE /SC ONCE /TN \"%s\" /TR \"'%s' %s\" /ST %s"ascii
$r1text"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones"ascii
$r2text"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"ascii

Condition

uint16( 0 ) == 0x5a4d and ( ( all of ( $f* ) and 3 of ( $s* ) and 2 of ( $t* ) and 1 of ( $r* ) ) or ( 4 of ( $s* ) and 2 of ( $t* ) and 1 of ( $r* ) ) or 12 of them )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $f* ) must match.
  • At least 3 patterns in ( $s* ) must match.
  • At least 2 patterns in ( $t* ) must match.
  • At least 1 patterns in ( $r* ) must match.
  • At least 4 patterns in ( $s* ) must match.
  • At least 12 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: 86efd4fb-3c76-504e-b367-132aee59e09a

Tags:FILE