YARA · SEKOIA.IO Community
SEKOIA_Win_Loader_Astasialoader_Strings
AstasiaLoader strings
- Author
- Sekoia.io
- Date
- 2023-08-16
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
AstasiaLoader strings
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
win-loader-astasialoader-strings.yarDetection Rule License 1.1
rule SEKOIA_Win_Loader_Astasialoader_Strings : FILE
{
meta:
= "AstasiaLoader strings"
= "Sekoia.io"
= "8dfabf28-4b5a-43db-87e9-5b9080541ec3"
= "2023-08-16"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/win_loader_astasialoader_strings.yar#L1-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "44b6f7508a82ff6a4d65defc189303eeee393b5fd498de73d74d0a2c75c87401"
= "02a7bed506865d761ec03b8de4b7fc636b71f48c62e933013f2ffa23deabb62e"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1 = "newuploaders" wide
$s2 = "\\infected.exe" wide
$s3 = "AstasiaLoader" wide
$s4 = "Astasia.pdb" ascii
$s5 = "ip-api.com/line/?fields=hosting" wide
$s6 = "https://api.telegram.org/bot" wide
$s7 = "currentscript.txt" wide
$s8 = "sessionlog.txt" wide
condition:
uint16be( 0 ) == 0x4d5a and filesize > 50KB and filesize < 1MB and 5 of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "newuploaders" | wide |
| $s2 | text | "\\infected.exe" | wide |
| $s3 | text | "AstasiaLoader" | wide |
| $s4 | text | "Astasia.pdb" | ascii |
| $s5 | text | "ip-api.com/line/?fields=hosting" | wide |
| $s6 | text | "https://api.telegram.org/bot" | wide |
| $s7 | text | "currentscript.txt" | wide |
| $s8 | text | "sessionlog.txt" | wide |
Condition
uint16be( 0 ) == 0x4d5a and filesize > 50KB and filesize < 1MB and 5 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 1MB (a cheap guard that skips large files).
- The file must be larger than 50KB.
- At least 5 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.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 44b6f7508a82ff6a4d65defc189303eeee393b5fd498de73d74d0a2c75c87401
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: 8dfabf28-4b5a-43db-87e9-5b9080541ec3
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