YARA · Volexity threat-intel
VOLEXITY_Apt_Win_Powerstar_Memonly
Detects the initial stage of the memory only variant of PowerStar.
- Auteur
- threatintel@volexity.com
- Date
- 2023-05-16
- Modifiée
- 2023-09-20
- Score / Qualité
- 75 / 78
Ce que détecte cette règle
Detects the initial stage of the memory only variant of PowerStar.
Elle définit 27 motifs (26 texte, 1 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
rule VOLEXITY_Apt_Win_Powerstar_Memonly : CHARMINGKITTEN
{
meta:
= "Detects the initial stage of the memory only variant of PowerStar."
= "threatintel@volexity.com"
= "469fc433-da9e-55ed-99fb-9560ec86a179"
= "2023-05-16"
= "2023-09-20"
= "https://github.com/volexity/threat-intel"
= "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2023/2023-06-28 POWERSTAR/indicators/rules.yar#L20-L65"
= "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
= "977cf5cc1d0c61b7364edcf397e5c67d910fac628c6c9a41cf9c73b3720ce67f"
= "d790ff204e4e8adeb3e887d9ebce743e958b523c48317d017487b1b0c6aebc11"
= 75
= 78
= "CHARMINGKITTEN"
= 1
= "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
strings:
$s_1 = "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($in.substring(3)))"
$s_2 = "[Convert]::ToByte(([Convert]::ToString(-bnot ($text_bytes[$i])"
$s_3 = "$Exec=[System.Text.Encoding]::UTF8.GetString($text_bytes)"
$s_4 = "((65..90) + (97..122) | Get-Random -Count 16 | % {[char]$_})"
$f_1 = "function Gorjol{"
$f_2 = "Borjol \"$"
$f_3 = "Gorjol -text"
$f_4 = "function Borjoly{"
$f_6 = "$filename = $env:APPDATA+\"\\Microsoft\\Windows\\DocumentPreview.pdf\";"
$f_7 = "$env:APPDATA+\"\\Microsoft\\Windows\\npv.txt\""
$f_8 = "\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\brt8ts74e.bat"
$f_9 = "\\Microsoft\\Windows\\s7qe52.txt"
$f_10 = "$yeolsoe2 = $yeolsoe"
$f_11 = "setRequestHeader(\"Content-DPR\""
$f_12 = "getResponseHeader(\"Content-DPR\")"
$f_13 = {24 43 6f 6d 6d 61 6e 64 50 61 72 74 73 20 3d 24 53 65 73 73 69 6f 6e 52 65 73 70 6f 6e 73 65 2e 53 70 6c 69 74 28 22 b6 22 29}
$f_14 = "$language -like \"*shar*\""
$f_15 = "$language -like \"*owers*\""
$alias_1 = "(gcm *v????E?P?e*)"
$alias_2 = "&(gcm *ke-e*) $Command"
$key = "T2r0y1M1e1n1o0w1"
$args_1 = "$sem.Close()"
$args_2 = "$cem.Close()"
$args_3 = "$mem.Close()"
$command_1 = "_____numone_____"
$command_2 = "_____mac2_____"
$command_3 = "_____yeolsoe_____"
condition:
2 of ( $s_* ) or any of ( $f_* ) or 2 of ( $alias_* ) or $key or all of ( $args_* ) or any of ( $command_* )
}
Chaînes (27 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s_1 | texte | "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($in.substring(3)))" | |
| $s_2 | texte | "[Convert]::ToByte(([Convert]::ToString(-bnot ($text_bytes[$i])" | |
| $s_3 | texte | "$Exec=[System.Text.Encoding]::UTF8.GetString($text_bytes)" | |
| $s_4 | texte | "((65..90) + (97..122) | Get-Random -Count 16 | % {[char]$_})" | |
| $f_1 | texte | "function Gorjol{" | |
| $f_2 | texte | "Borjol \"$" | |
| $f_3 | texte | "Gorjol -text" | |
| $f_4 | texte | "function Borjoly{" | |
| $f_6 | texte | "$filename = $env:APPDATA+\"\\Microsoft\\Windows\\DocumentPreview.pdf\";" | |
| $f_7 | texte | "$env:APPDATA+\"\\Microsoft\\Windows\\npv.txt\"" | |
| $f_8 | texte | "\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\brt8ts74e.bat" | |
| $f_9 | texte | "\\Microsoft\\Windows\\s7qe52.txt" | |
| $f_10 | texte | "$yeolsoe2 = $yeolsoe" | |
| $f_11 | texte | "setRequestHeader(\"Content-DPR\"" | |
| $f_12 | texte | "getResponseHeader(\"Content-DPR\")" | |
| $f_13 | hex | {24 43 6f 6d 6d 61 6e 64 50 61 72 74 73 20 3d 24 53 65 73 73 69 6f 6e 52 65 73 70 6f 6e 73 65 2e 53 70 6c 69 74 28 22 b6 22 29} | |
| $f_14 | texte | "$language -like \"*shar*\"" | |
| $f_15 | texte | "$language -like \"*owers*\"" | |
| $alias_1 | texte | "(gcm *v????E?P?e*)" | |
| $alias_2 | texte | "&(gcm *ke-e*) $Command" | |
| $key | texte | "T2r0y1M1e1n1o0w1" | |
| $args_1 | texte | "$sem.Close()" | |
| $args_2 | texte | "$cem.Close()" | |
| $args_3 | texte | "$mem.Close()" | |
| $command_1 | texte | "_____numone_____" | |
| $command_2 | texte | "_____mac2_____" | |
| $command_3 | texte | "_____yeolsoe_____" |
Condition
2 of ( $s_* ) or any of ( $f_* ) or 2 of ( $alias_* ) or $key or all of ( $args_* ) or any of ( $command_* )En clair (Heuristique)
- Tous les motifs de ( $args_* ) doivent être trouvés.
- Au moins un motif de ( $f_* ) doit être trouvé.
- Au moins un motif de ( $command_* ) doit être trouvé.
- Au moins 2 motifs de ( $s_* ) doivent être trouvés.
- Au moins 2 motifs de ( $alias_* ) doivent être trouvés.
- Le motif $key doit être présent.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Références
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 977cf5cc1d0c61b7364edcf397e5c67d910fac628c6c9a41cf9c73b3720ce67f
Licence et attribution
Auteur : threatintel@volexity.com
Dépôt source : Volexity threat-intel @ 3a9d0b5245
Licence : BSD 2-Clause License (indiquée dans les métadonnées de la règle)
“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”
Mention de copyright : Copyright 2022 by Volexity, Inc.
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 469fc433-da9e-55ed-99fb-9560ec86a179
Métadonnées
| memory_suitable | 1 |
|---|
Tags:CHARMINGKITTEN
Règles liées
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-05-16
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-05-16
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-05-16
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-05-16
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2021-10-13
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2024-07-30
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-07-21
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-08-17