YARA · SEKOIA.IO Community
SEKOIA_Backdoor_Powershellempire_Batlauchers
Detect BAT launchers for Empire
- Author
- Sekoia.io
- Date
- 2022-04-15
- Modified
- 2024-12-19
- Score / Quality
- 75 / 74
What this rule detects
Detect BAT launchers for Empire
It defines 3 patterns (3 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
backdoor-powershellempire-batlauchers.yarDetection Rule License 1.1
rule SEKOIA_Backdoor_Powershellempire_Batlauchers : FILE
{
meta:
= "Detect BAT launchers for Empire"
= "Sekoia.io"
= "ad371665-ec59-45c8-9d99-2a675842c384"
= "2022-04-15"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/backdoor_powershellempire_batlauchers.yar#L1-L17"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "0453c739ad936b0cc5ed2e36ba4a011a90600b74ca23c08165c23a3e63fe60e9"
= 75
= 74
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "powershell -noP -sta -w 1 -enc SQB" nocase wide ascii
$ = "powershell -ep bypass -noP -sta -w 1 -enc SQB" nocase wide ascii
$ = "-nol -nop -ep bypass \"[IO.File]::ReadAllText('%~f0')|iex" nocase wide ascii
condition:
any of them and filesize < 1MB
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "powershell -noP -sta -w 1 -enc SQB" | nocase wide ascii |
| $ | text | "powershell -ep bypass -noP -sta -w 1 -enc SQB" | nocase wide ascii |
| $ | text | "-nol -nop -ep bypass \"[IO.File]::ReadAllText('%~f0')|iex" | nocase wide ascii |
Condition
any of them and filesize < 1MBIn plain words (Heuristic)
- The file must be smaller than 1MB (a cheap guard that skips large files).
- At least one pattern 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.
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: ad371665-ec59-45c8-9d99-2a675842c384
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