YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Solarmarker_Powershell
Finds SolarMarker PowerShell script based on characteristic strings
- Auteur
- Sekoia.io
- Date
- 2022-12-09
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Finds SolarMarker PowerShell script based on characteristic strings
Famille de malware associée : Solarmarker.
Elle définit 9 motifs (7 texte, 0 hex, 2 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
infostealer-win-solarmarker-powershell.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Solarmarker_Powershell : FILE
{
meta:
= "Finds SolarMarker PowerShell script based on characteristic strings"
= "Sekoia.io"
= "a2fe7f09-7134-4054-ba40-5ea66785a26d"
= "2022-12-09"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_solarmarker_powershell.yar#L1-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "32267cf7e03ed65da969aeeff5ef5d7291e47446ea11a4b391f085967e8aa67d"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$fun = "function " ascii
$ps0 = "return -join (0..(10..30|Get-Random)|%{[char]((65..90)+(97..122)|Get-Random)})" ascii
$ps1 = /new-item -path \$[a-zA-Z0-9_]* -itemtype registrykey -force;/
$ps2 = /set-item -path \$[a-zA-Z0-9_]* -value \$[a-zA-Z0-9_]*;/
$str0 = "[IO.File]::WriteAllText($" ascii
$str1 = "CreateShortcut($env:appdata+" ascii
$str2 = "Registry::HKEY_CURRENT_USER\\Software\\Classes\\" ascii
$str3 = "New-Object System.Security.Cryptography.AesCryptoServiceProvider" ascii
$str4 = "[Convert]::FromBase64String([IO.File]::ReadAllText(" ascii
condition:
$fun at 0 and 1 of ( $ps* ) and 2 of ( $str* )
}
Chaînes (9 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $fun | texte | "function " | ascii |
| $ps0 | texte | "return -join (0..(10..30|Get-Random)|%{[char]((65..90)+(97..122)|Get-Random)})" | ascii |
| $ps1 | regex | /new-item -path \$[a-zA-Z0-9_]* -itemtype registrykey -force;/ | |
| $ps2 | regex | /set-item -path \$[a-zA-Z0-9_]* -value \$[a-zA-Z0-9_]*;/ | |
| $str0 | texte | "[IO.File]::WriteAllText($" | ascii |
| $str1 | texte | "CreateShortcut($env:appdata+" | ascii |
| $str2 | texte | "Registry::HKEY_CURRENT_USER\\Software\\Classes\\" | ascii |
| $str3 | texte | "New-Object System.Security.Cryptography.AesCryptoServiceProvider" | ascii |
| $str4 | texte | "[Convert]::FromBase64String([IO.File]::ReadAllText(" | ascii |
Condition
$fun at 0 and 1 of ( $ps* ) and 2 of ( $str* )En clair (Heuristique)
- Au moins 1 motifs de ( $ps* ) doivent être trouvés.
- Au moins 2 motifs de ( $str* ) doivent être trouvés.
- Le motif $fun doit se trouver à l’offset 0.
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é.
Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.
Références
Licence et attribution
Auteur : Sekoia.io
Dépôt source : SEKOIA.IO Community @ a438a5901a
Licence : Detection Rule License 1.1 (licence du dépôt)
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: a2fe7f09-7134-4054-ba40-5ea66785a26d
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-12-09
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-12-28
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- RUSSIANPANDA_Solarmarker_Loader_PS2EXEMétadonnées seulesMalwareRussianPanda· RussianPanda· 2024-01-04
- RUSSIANPANDA_SolardropperMétadonnées seulesMalwareRussianPanda· RussianPanda· 2023-06-22
- RUSSIANPANDA_Solarmarker_LoaderMétadonnées seulesMalwareRussianPanda· RussianPanda· 2024-01-04
- RUSSIANPANDA_Solarmarker_First_Stage_PayloadMétadonnées seulesMalwareRussianPanda· RussianPanda· 2024-01-30
- Suspect / chasseEmbee Research· Matthew @ Embee_Research· 2023-09-10