YARA · SEKOIA.IO Community
SEKOIA_Loader_Fakebat_Powershell_Fingerprint_May24
Finds FakeBat PowerShell script fingerprinting the infected host.
- Autor
- Sekoia.io
- Datum
- 2024-06-21
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Finds FakeBat PowerShell script fingerprinting the infected host.
Sie definiert 11 Muster (11 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
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
}
Strings (11 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $str01 | Text | "Get-WmiObject Win32_ComputerSystem" | ascii |
| $str02 | Text | "-Class AntiVirusProduct" | ascii |
| $str03 | Text | "status = \"start\"" | ascii |
| $str04 | Text | " | ConvertTo-Json" | ascii |
| $str05 | Text | ".FromXmlString(" | ascii |
| $str06 | Text | " = Invoke-RestMethod -Uri " | ascii |
| $str07 | Text | ".Exception.Response.StatusCode -eq 'ServiceUnavailable'" | ascii |
| $str08 | Text | "Invoke-WebRequest -Uri $url -OutFile " | ascii |
| $str09 | Text | "--batch --yes --passphrase-fd" | ascii |
| $str10 | Text | "--decrypt --output" | ascii |
| $str11 | Text | "Invoke-Expression \"tar --extract --file=" | ascii |
Bedingung
7 of them and filesize < 10KB and trueIn Worten (Heuristik)
- Die Datei muss kleiner als 10KB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 7 Muster aus der Regel müssen treffen.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.
Referenzen
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 7efcf9cf-78fe-400e-abe3-6955c394e358
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- 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