YARA · SEKOIA.IO Community
SEKOIA_Rat_Win_Xworm_V3
Finds XWorm (version XClient, v3) samples based on characteristic strings
- Author
- Sekoia.io
- Date
- 2023-03-03
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds XWorm (version XClient, v3) samples based on characteristic strings
Targets: Windows PE.
It defines 13 patterns (13 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SEKOIA_Rat_Win_Xworm_V3 : FILE
{
meta:
= "Finds XWorm (version XClient, v3) samples based on characteristic strings"
= "Sekoia.io"
= "5fb1cbd3-1e37-43b9-9606-86d896f2150b"
= "2023-03-03"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_xworm_v3.yar#L1-L30"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "0016647c3c7031e744c0af6f9eadb73ab5cab1ca4f8ce7633f4aa069b62755cd"
= "07e747a9313732d2dcf7609b6a09ac58d38f5643299440b827ec55f260e33c12"
= "de0127ba872c0677c3594c66b2298edea58d097b5fa697302a16b1689147b147"
= "9a50f41f6c295f48597f6db3f5d9141345b3711ef110a0f925c881f3a75580ca"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "$VB$Local_Port" ascii
$str02 = "$VB$Local_Host" ascii
$str03 = "get_Jpeg" ascii
$str04 = "get_ServicePack" ascii
$str05 = "Select * from AntivirusProduct" wide
$str06 = "PCRestart" wide
$str07 = "shutdown.exe /f /r /t 0" wide
$str08 = "StopReport" wide
$str09 = "StopDDos" wide
$str10 = "sendPlugin" wide
$str11 = "OfflineKeylogger Not Enabled" wide
$str12 = "-ExecutionPolicy Bypass -File \"" wide
$str13 = "Content-length: 5235" wide
condition:
uint16( 0 ) == 0x5A4D and 8 of them
}
Strings (13 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "$VB$Local_Port" | ascii |
| $str02 | text | "$VB$Local_Host" | ascii |
| $str03 | text | "get_Jpeg" | ascii |
| $str04 | text | "get_ServicePack" | ascii |
| $str05 | text | "Select * from AntivirusProduct" | wide |
| $str06 | text | "PCRestart" | wide |
| $str07 | text | "shutdown.exe /f /r /t 0" | wide |
| $str08 | text | "StopReport" | wide |
| $str09 | text | "StopDDos" | wide |
| $str10 | text | "sendPlugin" | wide |
| $str11 | text | "OfflineKeylogger Not Enabled" | wide |
| $str12 | text | "-ExecutionPolicy Bypass -File \"" | wide |
| $str13 | text | "Content-length: 5235" | wide |
Condition
uint16( 0 ) == 0x5A4D and 8 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 8 patterns in the rule 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.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 0016647c3c7031e744c0af6f9eadb73ab5cab1ca4f8ce7633f4aa069b62755cd
- 07e747a9313732d2dcf7609b6a09ac58d38f5643299440b827ec55f260e33c12
- de0127ba872c0677c3594c66b2298edea58d097b5fa697302a16b1689147b147
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 5fb1cbd3-1e37-43b9-9606-86d896f2150b
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20