Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Matiex

Matiex/XetimaLogger keylogger payload

MalwareMatiexditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Matiex/XetimaLogger keylogger payload

Associated malware family: Matiex.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-matiex.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Matiex : FILE
{
	meta:
		description = "Matiex/XetimaLogger keylogger payload"
		author = "ditekSHen"
		id = "61803e0c-8f6a-5ded-855a-ff26eed1384f"
		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#L1768-L1788"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "62b45c43d99bef93a6c0e72200b869fdce331f8fa325640df7d8b72af56a3ef2"
		score = 75
		quality = 73
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.MatiexKeylogger"

	strings:
		$id = "--M-A-T-I-E-X--K-E-Y-L-O-G-E-R--" ascii wide
		$s1 = "StartKeylogger" fullword ascii
		$s2 = "_KeyboardLoggerTimer" ascii
		$s3 = "_ScreenshotLoggerTimer" ascii
		$s4 = "_VoiceRecordLogger" ascii
		$s5 = "_ClipboardLoggerTimer" ascii
		$s6 = "get_logins" fullword ascii
		$s7 = "get_processhackerFucked" fullword ascii
		$s8 = "_ThePSWDSenders" fullword ascii
		$pdb = "\\Before FprmT\\Document VB project\\FireFox Stub\\FireFox Stub\\obj\\Debug\\VNXT.pdb" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( $id or 4 of ( $s* ) or ( $pdb and 2 of them ) )
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$idtext"--M-A-T-I-E-X--K-E-Y-L-O-G-E-R--"ascii wide
$s1text"StartKeylogger"fullword ascii
$s2text"_KeyboardLoggerTimer"ascii
$s3text"_ScreenshotLoggerTimer"ascii
$s4text"_VoiceRecordLogger"ascii
$s5text"_ClipboardLoggerTimer"ascii
$s6text"get_logins"fullword ascii
$s7text"get_processhackerFucked"fullword ascii
$s8text"_ThePSWDSenders"fullword ascii
$pdbtext"\\Before FprmT\\Document VB project\\FireFox Stub\\FireFox Stub\\obj\\Debug\\VNXT.pdb"ascii

Condition

uint16( 0 ) == 0x5a4d and ( $id or 4 of ( $s* ) or ( $pdb and 2 of them ) )

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 the rule must match.
  • Pattern $id must be present.
  • Pattern $pdb must be present.

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: 61803e0c-8f6a-5ded-855a-ff26eed1384f

Metadata

clamav_sigMALWARE.Win.Trojan.MatiexKeylogger

Tags:FILE