YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Tefosteal
Tefosteal payload
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 71
What this rule detects
Tefosteal payload
Associated malware family: Tefosteal.
Targets: Windows PE.
It defines 13 patterns (13 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-tefosteal.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Tefosteal : FILE
{
meta:
= "Tefosteal payload"
= "ditekSHen"
= "56646933-3ed3-5b77-9135-993b57603490"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L653-L674"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a350863270cbe3349f271e55d66a2ebdd6406e8d122c11071de74a774eb77ebf"
= 75
= 71
= "FILE"
= "MALWARE.Win.Trojan.Tefosteal"
strings:
$s1 = "netsh wlan show networks mode=bssid" nocase fullword wide
$s2 = "LoginCredentialService.GetLoginCredentials$" ascii
$s3 = "DefaultLoginCredentials.LoginEventUsrPw$" ascii
$s4 = "SEC_E_NO_KERB_KEY" wide
$s5 = "TList<System.Zip.TZipHeader>." ascii
$s6 = "_Password.txt" fullword wide nocase
$s7 = "_Cookies.txt" fullword wide nocase
$f1 = "\\InfoPC\\BSSID.txt" wide
$f2 = "\\Files\\Telegram\\" wide
$f3 = "\\InfoPC\\Screenshot.png" wide
$f4 = "\\InfoPC\\Systeminfo.txt" wide
$f5 = "\\Steam\\config" wide
$f6 = "\\delete.vbs" wide
condition:
uint16( 0 ) == 0x5a4d and 4 of ( $s* ) and 2 of ( $f* )
}
Strings (13 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "netsh wlan show networks mode=bssid" | nocase fullword wide |
| $s2 | text | "LoginCredentialService.GetLoginCredentials$" | ascii |
| $s3 | text | "DefaultLoginCredentials.LoginEventUsrPw$" | ascii |
| $s4 | text | "SEC_E_NO_KERB_KEY" | wide |
| $s5 | text | "TList<System.Zip.TZipHeader>." | ascii |
| $s6 | text | "_Password.txt" | fullword wide nocase |
| $s7 | text | "_Cookies.txt" | fullword wide nocase |
| $f1 | text | "\\InfoPC\\BSSID.txt" | wide |
| $f2 | text | "\\Files\\Telegram\\" | wide |
| $f3 | text | "\\InfoPC\\Screenshot.png" | wide |
| $f4 | text | "\\InfoPC\\Systeminfo.txt" | wide |
| $f5 | text | "\\Steam\\config" | wide |
| $f6 | text | "\\delete.vbs" | wide |
Condition
uint16( 0 ) == 0x5a4d and 4 of ( $s* ) and 2 of ( $f* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 4 patterns in ( $s* ) must match.
- At least 2 patterns in ( $f* ) 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: 56646933-3ed3-5b77-9135-993b57603490
Metadata
| clamav_sig | MALWARE.Win.Trojan.Tefosteal |
|---|
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