YARA · SEKOIA.IO Community
SEKOIA_Launcher_Win_Stealthmutant_Bat_Launcher
StealthMutant/StealthVector bat launcher
- Author
- Sekoia.io
- Date
- 2021-08-26
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
StealthMutant/StealthVector bat launcher
It defines 7 patterns (7 text, 0 hex, 0 regex).
YARA-X says: warning[unintended_pattern_in_set]: pattern `$start` may be unintendedly or redundantly included in pattern set `$s*`
Summary generated from the rule's metadata and condition.
Rule source
launcher-win-stealthmutant-bat-launcher.yarDetection Rule License 1.1
rule SEKOIA_Launcher_Win_Stealthmutant_Bat_Launcher : FILE
{
meta:
= "StealthMutant/StealthVector bat launcher"
= "Sekoia.io"
= "7452291f-2244-469e-bb7c-5eff1ca17aa2"
= "2021-08-26"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/launcher_win_stealthmutant_bat_launcher.yar#L1-L26"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "06ae4bc3ed938738dfca10c182a6a2363aa6aa70e730aefd41f6fe73c675785d"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1 = "set \"WORK_DIR=" ascii
$s2 = "set \"DLL_NAME=" ascii
$s3 = "set \"SERVICE_NAME=" ascii
$s4 = "set \"DISPLAY_NAME=" ascii
$s5 = "set \"DESCRIPTION=" ascii
$start = "@echo off" ascii
$end = "net start \"%SERVICE_NAME%\"" ascii
condition:
uint16( 0 ) != 0x5A4D and all of ( $s* ) and filesize < 2KB and $start at 0 and $end in ( filesize -30 .. filesize )
}
Strings (7 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "set \"WORK_DIR=" | ascii |
| $s2 | text | "set \"DLL_NAME=" | ascii |
| $s3 | text | "set \"SERVICE_NAME=" | ascii |
| $s4 | text | "set \"DISPLAY_NAME=" | ascii |
| $s5 | text | "set \"DESCRIPTION=" | ascii |
| $start | text | "@echo off" | ascii |
| $end | text | "net start \"%SERVICE_NAME%\"" | ascii |
Condition
uint16( 0 ) != 0x5A4D and all of ( $s* ) and filesize < 2KB and $start at 0 and $end in ( filesize -30 .. filesize )In plain words (Heuristic)
- The file must be smaller than 2KB (a cheap guard that skips large files).
- All patterns in ( $s* ) must match.
- Pattern $start must be found at offset 0.
- Pattern $end must be found within the range filesize -30 .. filesize.
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: 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: 7452291f-2244-469e-bb7c-5eff1ca17aa2
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06