Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Tefosteal

Tefosteal payload

MalwareTefostealditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Tefosteal payload"
		author = "ditekSHen"
		id = "56646933-3ed3-5b77-9135-993b57603490"
		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#L653-L674"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a350863270cbe3349f271e55d66a2ebdd6406e8d122c11071de74a774eb77ebf"
		score = 75
		quality = 71
		tags = "FILE"
		clamav_sig = "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)

IdentifierTypeValueModifiers
$s1text"netsh wlan show networks mode=bssid"nocase fullword wide
$s2text"LoginCredentialService.GetLoginCredentials$"ascii
$s3text"DefaultLoginCredentials.LoginEventUsrPw$"ascii
$s4text"SEC_E_NO_KERB_KEY"wide
$s5text"TList<System.Zip.TZipHeader>."ascii
$s6text"_Password.txt"fullword wide nocase
$s7text"_Cookies.txt"fullword wide nocase
$f1text"\\InfoPC\\BSSID.txt"wide
$f2text"\\Files\\Telegram\\"wide
$f3text"\\InfoPC\\Screenshot.png"wide
$f4text"\\InfoPC\\Systeminfo.txt"wide
$f5text"\\Steam\\config"wide
$f6text"\\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.

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: 56646933-3ed3-5b77-9135-993b57603490

Metadata

clamav_sigMALWARE.Win.Trojan.Tefosteal

Tags:FILE