YARA · ditekSHen detection
DITEKSHEN_MALWARE_Osx_Windtrail
Detects WindTrail OSX trojan
- 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:
= "Detects WindTrail OSX trojan"
= "ditekSHen"
= "abf7cd20-b37d-5d0a-8f3f-f4e491965713"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3189-L3206"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "291f919cb1e8c4b33960dd3f2c842b9efec04852bd5661543e3ee60bc0fc5ba6"
= 75
= 73
= "FILE"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "m_ComputerName_UserName" | fullword ascii |
| $s2 | text | "m_uploadURL" | fullword ascii |
| $s3 | text | "m_logString" | fullword ascii |
| $s4 | text | "GenrateDeviceName" | fullword ascii |
| $s5 | text | "open -a" | fullword ascii |
| $s6 | text | "AESEncryptFile:toFile:usingPassphrase:error:" | fullword ascii |
| $s7 | text | "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:" | fullword ascii |
| $s8 | text | "_kLSSharedFileListSessionLoginItems" | fullword ascii |
| $developerid | text | "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.
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: abf7cd20-b37d-5d0a-8f3f-f4e491965713
Metadata
| clamav_sig | MALWARE.Osx.Trojan.WindTrail |
|---|
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