YARA · SEKOIA.IO Community
SEKOIA_Apt_Uac0099_Lonepage
Detects LonePage vbs malware
- Author
- Sekoia.io
- Date
- 2024-01-08
- Modified
- 2024-12-19
- Score / Quality
- 75 / 76
What this rule detects
Detects LonePage vbs malware
It defines 9 patterns (9 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-uac0099-lonepage.yarDetection Rule License 1.1
rule SEKOIA_Apt_Uac0099_Lonepage : FILE
{
meta:
= "Detects LonePage vbs malware"
= "Sekoia.io"
= "007f62f5-da5c-4df7-8b5c-5ed815ce6993"
= "2024-01-08"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_uac0099_lonepage.yar#L1-L30"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "479f438acb63c76e09722640b973e76d1f1924bf24db477ca6898d123091d5f8"
= 75
= 76
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s0 = "dim r, c" ascii fullword
$s1 = "= createobject(\"WScript.Shell\")" ascii fullword
$s2 = "r.Run c, 0, false" ascii fullword
$t1 = "GetHostAddresses" ascii fullword nocase
$t2 = "upgrade.txt" ascii fullword nocase
$t3 = "net.webclient" ascii fullword nocase
$t4 = "downloaddata" ascii fullword nocase
$t5 = "[System.Environment]::NewLine" ascii fullword nocase
$t6 = ".uploaddata('" ascii nocase
condition:
true and filesize < 10KB and ( ( $s1 at 0x10 and $s0 at 0 and $s2 and 2 of ( $t* ) ) or ( all of ( $t* ) and any of ( $s* ) ) )
}
Strings (9 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s0 | text | "dim r, c" | ascii fullword |
| $s1 | text | "= createobject(\"WScript.Shell\")" | ascii fullword |
| $s2 | text | "r.Run c, 0, false" | ascii fullword |
| $t1 | text | "GetHostAddresses" | ascii fullword nocase |
| $t2 | text | "upgrade.txt" | ascii fullword nocase |
| $t3 | text | "net.webclient" | ascii fullword nocase |
| $t4 | text | "downloaddata" | ascii fullword nocase |
| $t5 | text | "[System.Environment]::NewLine" | ascii fullword nocase |
| $t6 | text | ".uploaddata('" | ascii nocase |
Condition
true and filesize < 10KB and ( ( $s1 at 0x10 and $s0 at 0 and $s2 and 2 of ( $t* ) ) or ( all of ( $t* ) and any of ( $s* ) ) )In plain words (Heuristic)
- The file must be smaller than 10KB (a cheap guard that skips large files).
- All patterns in ( $t* ) must match.
- At least one pattern in ( $s* ) must match.
- At least 2 patterns in ( $t* ) must match.
- Pattern $s1 must be found at offset 0x10.
- Pattern $s0 must be found at offset 0.
- Pattern $s2 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: 007f62f5-da5c-4df7-8b5c-5ed815ce6993
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