YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Xenorat
Detects Blacksuit
- Author
- ditekshen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Blacksuit
Associated malware family: Xenorat.
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-xenorat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Xenorat : FILE
{
meta:
= "Detects Blacksuit"
= "ditekshen"
= "7f27ebef-8a0e-591a-a926-ac950db86053"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11805-L11820"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "487046464f545fb9e4a1d6e277cdc010eac6886583f0b388555a483d9021191b"
= 75
= 75
= "FILE"
strings:
$x1 = "xeno rat client" wide
$x2 = "xeno_rat_client." ascii
$x3 = "xeno rat client" ascii
$s1 = "+<AddToStartupNonAdmin>" ascii
$s2 = "+<ConnectAndSetupAsync>" ascii
$s3 = "+<SendUpdateInfo>" ascii
$s4 = "+<RecvAllAsync_ddos_" ascii
$s5 = "Plugin.Chromium+<Get" ascii
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or ( 4 of ( $s* ) ) or ( 2 of ( $x* ) ) )
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "xeno rat client" | wide |
| $x2 | text | "xeno_rat_client." | ascii |
| $x3 | text | "xeno rat client" | ascii |
| $s1 | text | "+<AddToStartupNonAdmin>" | ascii |
| $s2 | text | "+<ConnectAndSetupAsync>" | ascii |
| $s3 | text | "+<SendUpdateInfo>" | ascii |
| $s4 | text | "+<RecvAllAsync_ddos_" | ascii |
| $s5 | text | "Plugin.Chromium+<Get" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or ( 4 of ( $s* ) ) or ( 2 of ( $x* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in ( $x* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 4 patterns in ( $s* ) must match.
- At least 2 patterns in ( $x* ) 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: 7f27ebef-8a0e-591a-a926-ac950db86053
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-02-09
- 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