YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Batloader_Scripts
Finds BatLoader samples based on the specific download URL
- Author
- Sekoia.io
- Date
- 2022-11-30
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds BatLoader samples based on the specific download URL
It defines 15 patterns (14 text, 0 hex, 1 regex).
Summary generated from the rule's metadata and condition.
Rule source
loader-win-batloader-scripts.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Batloader_Scripts : FILE
{
meta:
= "Finds BatLoader samples based on the specific download URL"
= "Sekoia.io"
= "31a04ad3-74f8-4aa5-b3fc-df792bdc71b5"
= "2022-11-30"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_batloader_scripts.yar#L1-L30"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "aab6c7780bbc7bed8994b4e70129107bb7b719642fae92b1d3f9146eb11efabc"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$url = /https?:\/\/[^\s]{15,35}\/index\/[^\s]{1,40}servername=msi/ ascii wide
$str00 = "Invoke-WebRequest" ascii wide
$str01 = "PSScriptRoot" ascii wide
$str02 = "Add-MpPreference" ascii wide
$str03 = "Install-GnuPG" ascii wide
$str04 = "wmic computersystem get domain" ascii wide
$str05 = "ArpInfo" ascii wide
$str06 = "$script:List_ProccesCheck" ascii wide
$str07 = "Get-Process -Name" ascii wide
$str08 = "f001_SetProcessList" ascii wide
$str09 = "var WshShell" ascii wide
$str10 = "WScript.Sleep" ascii wide
$str11 = "WshShell.Run" ascii wide
$str12 = "powershell Invoke-WebRequest" ascii wide
$str13 = "-nop -w hidden " ascii wide
condition:
$url and 2 of ( $str* ) and filesize < 50KB
}
Strings (15 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $url | regex | /https?:\/\/[^\s]{15,35}\/index\/[^\s]{1,40}servername=msi/ | ascii wide |
| $str00 | text | "Invoke-WebRequest" | ascii wide |
| $str01 | text | "PSScriptRoot" | ascii wide |
| $str02 | text | "Add-MpPreference" | ascii wide |
| $str03 | text | "Install-GnuPG" | ascii wide |
| $str04 | text | "wmic computersystem get domain" | ascii wide |
| $str05 | text | "ArpInfo" | ascii wide |
| $str06 | text | "$script:List_ProccesCheck" | ascii wide |
| $str07 | text | "Get-Process -Name" | ascii wide |
| $str08 | text | "f001_SetProcessList" | ascii wide |
| $str09 | text | "var WshShell" | ascii wide |
| $str10 | text | "WScript.Sleep" | ascii wide |
| $str11 | text | "WshShell.Run" | ascii wide |
| $str12 | text | "powershell Invoke-WebRequest" | ascii wide |
| $str13 | text | "-nop -w hidden " | ascii wide |
Condition
$url and 2 of ( $str* ) and filesize < 50KBIn plain words (Heuristic)
- The file must be smaller than 50KB (a cheap guard that skips large files).
- At least 2 patterns in ( $str* ) must match.
- Pattern $url 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: 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: 31a04ad3-74f8-4aa5-b3fc-df792bdc71b5
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