YARA · SEKOIA.IO Community
SEKOIA_Loader_Fakebat_Powershell_Fingerprint_May24
Finds FakeBat PowerShell script fingerprinting the infected host.
- Auteur
- Sekoia.io
- Date
- 2024-06-21
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Finds FakeBat PowerShell script fingerprinting the infected host.
Elle définit 11 motifs (11 texte, 0 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
loader-fakebat-powershell-fingerprint-may24.yarDetection Rule License 1.1
rule SEKOIA_Loader_Fakebat_Powershell_Fingerprint_May24 : FILE
{
meta:
= "Finds FakeBat PowerShell script fingerprinting the infected host."
= "Sekoia.io"
= "7efcf9cf-78fe-400e-abe3-6955c394e358"
= "2024-06-21"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_fakebat_powershell_fingerprint_may24.yar#L1-L27"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "04e5c888e5f71873c4fa2d732fbd8e40be3edf406300e65e489e1fa378028c5f"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "Get-WmiObject Win32_ComputerSystem" ascii
$str02 = "-Class AntiVirusProduct" ascii
$str03 = "status = \"start\"" ascii
$str04 = " | ConvertTo-Json" ascii
$str05 = ".FromXmlString(" ascii
$str06 = " = Invoke-RestMethod -Uri " ascii
$str07 = ".Exception.Response.StatusCode -eq 'ServiceUnavailable'" ascii
$str08 = "Invoke-WebRequest -Uri $url -OutFile " ascii
$str09 = "--batch --yes --passphrase-fd" ascii
$str10 = "--decrypt --output" ascii
$str11 = "Invoke-Expression \"tar --extract --file=" ascii
condition:
7 of them and filesize < 10KB and true
}
Chaînes (11 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $str01 | texte | "Get-WmiObject Win32_ComputerSystem" | ascii |
| $str02 | texte | "-Class AntiVirusProduct" | ascii |
| $str03 | texte | "status = \"start\"" | ascii |
| $str04 | texte | " | ConvertTo-Json" | ascii |
| $str05 | texte | ".FromXmlString(" | ascii |
| $str06 | texte | " = Invoke-RestMethod -Uri " | ascii |
| $str07 | texte | ".Exception.Response.StatusCode -eq 'ServiceUnavailable'" | ascii |
| $str08 | texte | "Invoke-WebRequest -Uri $url -OutFile " | ascii |
| $str09 | texte | "--batch --yes --passphrase-fd" | ascii |
| $str10 | texte | "--decrypt --output" | ascii |
| $str11 | texte | "Invoke-Expression \"tar --extract --file=" | ascii |
Condition
7 of them and filesize < 10KB and trueEn clair (Heuristique)
- Le fichier doit faire moins de 10KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 7 motifs de la règle doivent être trouvés.
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: 7efcf9cf-78fe-400e-abe3-6955c394e358
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20