Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Uac0099_Lonepage

Detects LonePage vbs malware

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Detects LonePage vbs malware"
		author = "Sekoia.io"
		id = "007f62f5-da5c-4df7-8b5c-5ed815ce6993"
		date = "2024-01-08"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_uac0099_lonepage.yar#L1-L30"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "479f438acb63c76e09722640b973e76d1f1924bf24db477ca6898d123091d5f8"
		score = 75
		quality = 76
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$s0text"dim r, c"ascii fullword
$s1text"= createobject(\"WScript.Shell\")"ascii fullword
$s2text"r.Run c, 0, false"ascii fullword
$t1text"GetHostAddresses"ascii fullword nocase
$t2text"upgrade.txt"ascii fullword nocase
$t3text"net.webclient"ascii fullword nocase
$t4text"downloaddata"ascii fullword nocase
$t5text"[System.Environment]::NewLine"ascii fullword nocase
$t6text".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.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

version1.0
classificationTLP:CLEAR

Tags:FILE