Skip to content

YARA · Volexity threat-intel

VOLEXITY_Apt_Win_Powerstar_Decrypt_Function

Detects PowerStar decrypt function, potentially downloaded standalone and then injected.

APT / threat actorVolexity threat-intelBSD 2-Clause LicenseCompiles with YARA-X
Author
threatintel@volexity.com
Date
2023-05-16
Modified
2023-09-20
Score / Quality
75 / 80

What this rule detects

Detects PowerStar decrypt function, potentially downloaded standalone and then injected.

It defines 7 patterns (7 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-win-powerstar-decrypt-function.yarBSD 2-Clause License
rule VOLEXITY_Apt_Win_Powerstar_Decrypt_Function : CHARMINGKITTEN
{
	meta:
		description = "Detects PowerStar decrypt function, potentially downloaded standalone and then injected."
		author = "threatintel@volexity.com"
		id = "1fbc2689-8169-53b1-b581-c41ab2b3a16f"
		date = "2023-05-16"
		modified = "2023-09-20"
		reference = "https://github.com/volexity/threat-intel"
		source_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2023/2023-06-28 POWERSTAR/indicators/rules.yar#L98-L121"
		license_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
		hash = "b79d28fe5e3c988bb5aadb12ce442d53291dbb9ede0c7d9d64eec078beba5585"
		logic_hash = "d022e363464488836a1c161f2b9c7463ac91ae6f60f14dfd574189233201c9aa"
		score = 75
		quality = 80
		tags = "CHARMINGKITTEN"
		memory_suitable = 1
		license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"

	strings:
		$f_1 = "function Borjol{"
		$s_1 = "$global:Domain = \""
		$s_2 = "$global:IP = \""
		$s_3 = "$global:yeolsoe"
		$s_4 = "$semii.Close()"
		$s_5 = "$cemii.Close()"
		$s_6 = "$memii.Close()"

	condition:
		any of ( $f_* ) or 2 of ( $s_* )
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$f_1text"function Borjol{"
$s_1text"$global:Domain = \""
$s_2text"$global:IP = \""
$s_3text"$global:yeolsoe"
$s_4text"$semii.Close()"
$s_5text"$cemii.Close()"
$s_6text"$memii.Close()"

Condition

any of ( $f_* ) or 2 of ( $s_* )

In plain words (Heuristic)

  • At least one pattern in ( $f_* ) must match.
  • At least 2 patterns in ( $s_* ) 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.

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • b79d28fe5e3c988bb5aadb12ce442d53291dbb9ede0c7d9d64eec078beba5585

Licence & attribution

Author: threatintel@volexity.com

Source repository: Volexity threat-intel @ 3a9d0b5245

Licence: BSD 2-Clause License (stated in the rule's own meta)

“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”

Copyright notice: Copyright 2022 by Volexity, Inc.

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 1fbc2689-8169-53b1-b581-c41ab2b3a16f

Metadata

memory_suitable1

Tags:CHARMINGKITTEN