Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Osx_Windtrail

Detects WindTrail OSX trojan

MalwareWindtrailditekSHen 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

Detects WindTrail OSX trojan

Associated malware family: Windtrail.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-osx-windtrail.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Osx_Windtrail : FILE
{
	meta:
		description = "Detects WindTrail OSX trojan"
		author = "ditekSHen"
		id = "abf7cd20-b37d-5d0a-8f3f-f4e491965713"
		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#L3189-L3206"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "291f919cb1e8c4b33960dd3f2c842b9efec04852bd5661543e3ee60bc0fc5ba6"
		score = 75
		quality = 73
		tags = "FILE"
		clamav_sig = "MALWARE.Osx.Trojan.WindTrail"

	strings:
		$s1 = "m_ComputerName_UserName" fullword ascii
		$s2 = "m_uploadURL" fullword ascii
		$s3 = "m_logString" fullword ascii
		$s4 = "GenrateDeviceName" fullword ascii
		$s5 = "open -a" fullword ascii
		$s6 = "AESEncryptFile:toFile:usingPassphrase:error:" fullword ascii
		$s7 = "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:" fullword ascii
		$s8 = "_kLSSharedFileListSessionLoginItems" fullword ascii
		$developerid = "Developer ID Application: warren portman (95RKE2AA8F)" ascii

	condition:
		uint16( 0 ) == 0xfacf and ( all of ( $s* ) or $developerid )
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"m_ComputerName_UserName"fullword ascii
$s2text"m_uploadURL"fullword ascii
$s3text"m_logString"fullword ascii
$s4text"GenrateDeviceName"fullword ascii
$s5text"open -a"fullword ascii
$s6text"AESEncryptFile:toFile:usingPassphrase:error:"fullword ascii
$s7text"scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"fullword ascii
$s8text"_kLSSharedFileListSessionLoginItems"fullword ascii
$developeridtext"Developer ID Application: warren portman (95RKE2AA8F)"ascii

Condition

uint16( 0 ) == 0xfacf and ( all of ( $s* ) or $developerid )

In plain words (Heuristic)

  • All patterns in ( $s* ) must match.
  • Pattern $developerid 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: abf7cd20-b37d-5d0a-8f3f-f4e491965713

Metadata

clamav_sigMALWARE.Osx.Trojan.WindTrail

Tags:FILE