YARA · SEKOIA.IO Community
SEKOIA_Loader_Fakebat_Powershell_Fingerprint_May24
Finds FakeBat PowerShell script fingerprinting the infected host.
- Autor
- Sekoia.io
- Fecha
- 2024-06-21
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Finds FakeBat PowerShell script fingerprinting the infected host.
Define 11 patrones (11 de texto, 0 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
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
}
Cadenas (11 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $str01 | texto | "Get-WmiObject Win32_ComputerSystem" | ascii |
| $str02 | texto | "-Class AntiVirusProduct" | ascii |
| $str03 | texto | "status = \"start\"" | ascii |
| $str04 | texto | " | ConvertTo-Json" | ascii |
| $str05 | texto | ".FromXmlString(" | ascii |
| $str06 | texto | " = Invoke-RestMethod -Uri " | ascii |
| $str07 | texto | ".Exception.Response.StatusCode -eq 'ServiceUnavailable'" | ascii |
| $str08 | texto | "Invoke-WebRequest -Uri $url -OutFile " | ascii |
| $str09 | texto | "--batch --yes --passphrase-fd" | ascii |
| $str10 | texto | "--decrypt --output" | ascii |
| $str11 | texto | "Invoke-Expression \"tar --extract --file=" | ascii |
Condición
7 of them and filesize < 10KB and trueEn palabras sencillas (Heurística)
- El archivo debe ocupar menos de 10KB (un límite barato que descarta archivos grandes).
- Deben coincidir al menos 7 patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.
Referencias
Licencia y atribución
Autor: Sekoia.io
Repositorio de origen: SEKOIA.IO Community @ a438a5901a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: 7efcf9cf-78fe-400e-abe3-6955c394e358
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- 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