YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Tomiris
Detects Tomiris
- 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:
= "Detects Tomiris"
= "ditekSHen"
= "86efd4fb-3c76-504e-b367-132aee59e09a"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7955-L7978"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "1d9baeb6db2e849dd053c3fc735984e23b9cead39cf166f8a544ee5a439185d1"
= 75
= 75
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $f1 | text | "main.workPath" | ascii |
| $f2 | text | "main.selfName" | ascii |
| $f3 | text | "main.infoServerAddr" | ascii |
| $f4 | text | "main.configFileName" | ascii |
| $s1 | text | "C:/Projects/go/src/Tomiris/main.go" | ascii |
| $s2 | text | "C:/GO/go1.16.2/src/os/user/lookup_windows.go" | ascii |
| $s3 | text | "C:\\GO\\go1.16.2" | ascii |
| $s4 | text | ".html.jpeg.json.wasm.webp/p/gf/p/kk1562515" | ascii |
| $s5 | text | "\" /ST 10:00alarm clockassistQueueavx512vbmi2avx512vnniwbad" | ascii |
| $s6 | text | "write /TR \" Value addr= alloc base code= ctxt: curg= free goid jobs= list= m->p=" | ascii |
| $t1 | text | "SCHTASKS /DELETE /F /TN \"%s\"" | ascii |
| $t2 | text | "SCHTASKS /CREATE /SC DAILY /TN" | ascii |
| $t3 | text | "SCHTASKS /CREATE /SC ONCE /TN \"%s\" /TR \"%s\" /ST %s" | ascii |
| $t4 | text | "SCHTASKS /CREATE /SC ONCE /TN \"%s\" /TR \"'%s' %s\" /ST %s" | ascii |
| $r1 | text | "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones" | ascii |
| $r2 | text | "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.
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).
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
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06