YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Operationmagalenha_Vbs
Finds VBS file loading the PeepingTitle backdoor
- Author
- Sekoia.io
- Date
- 2023-05-31
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
Finds VBS file loading the PeepingTitle backdoor
It defines 23 patterns (23 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
loader-win-operationmagalenha-vbs.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Operationmagalenha_Vbs
{
meta:
= "Finds VBS file loading the PeepingTitle backdoor"
= "Sekoia.io"
= "b1f705d1-de3e-4ce6-9bb7-0e39b6e79add"
= "2023-05-31"
= "2024-12-19"
= "https://www.sentinelone.com/labs/operation-magalenha-long-running-campaign-pursues-portuguese-credentials-and-pii/"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_operationmagalenha_vbs.yar#L1-L39"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "bb1c48ea6a4d9f0bc04df558837f2d448b38eac920cb4030e01b915a4e442708"
= 75
= 78
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "'Skip to content" ascii
$str02 = "'Search" ascii
$str03 = "'Sign in" ascii
$str04 = "'Sign up" ascii
$str05 = "'Code" ascii
$str06 = "'Terms" ascii
$str07 = "'Privacy" ascii
$str08 = "'Security" ascii
$str09 = "'Status" ascii
$str10 = "'Docs" ascii
$str11 = "'Contact GitHub" ascii
$str12 = "'Pricing" ascii
$str13 = "'API" ascii
$str14 = "'Training" ascii
$str15 = "'Blog" ascii
$str16 = "'About" ascii
$vbs01 = "WScript.Sleep" ascii nocase
$vbs02 = "Set obj" ascii nocase
$vbs03 = "Dim obj" ascii nocase
$vbs04 = "https://tinyurl.com" ascii nocase
$vbs05 = "C:\\Users\\Public" ascii nocase
$vbs06 = "CreateObject(\"WScript.Shell\")" ascii nocase
$vbs07 = ".SaveToFile" ascii nocase
condition:
10 of ( $str* ) and 5 of ( $vbs* )
}
Strings (23 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "'Skip to content" | ascii |
| $str02 | text | "'Search" | ascii |
| $str03 | text | "'Sign in" | ascii |
| $str04 | text | "'Sign up" | ascii |
| $str05 | text | "'Code" | ascii |
| $str06 | text | "'Terms" | ascii |
| $str07 | text | "'Privacy" | ascii |
| $str08 | text | "'Security" | ascii |
| $str09 | text | "'Status" | ascii |
| $str10 | text | "'Docs" | ascii |
| $str11 | text | "'Contact GitHub" | ascii |
| $str12 | text | "'Pricing" | ascii |
| $str13 | text | "'API" | ascii |
| $str14 | text | "'Training" | ascii |
| $str15 | text | "'Blog" | ascii |
| $str16 | text | "'About" | ascii |
| $vbs01 | text | "WScript.Sleep" | ascii nocase |
| $vbs02 | text | "Set obj" | ascii nocase |
| $vbs03 | text | "Dim obj" | ascii nocase |
| $vbs04 | text | "https://tinyurl.com" | ascii nocase |
| $vbs05 | text | "C:\\Users\\Public" | ascii nocase |
| $vbs06 | text | "CreateObject(\"WScript.Shell\")" | ascii nocase |
| $vbs07 | text | ".SaveToFile" | ascii nocase |
Condition
10 of ( $str* ) and 5 of ( $vbs* )In plain words (Heuristic)
- At least 10 patterns in ( $str* ) must match.
- At least 5 patterns in ( $vbs* ) 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.
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: b1f705d1-de3e-4ce6-9bb7-0e39b6e79add
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
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