Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Loader_Fakebat_Powershell_Fingerprint_May24

Finds FakeBat PowerShell script fingerprinting the infected host.

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
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:
		description = "Finds FakeBat PowerShell script fingerprinting the infected host."
		author = "Sekoia.io"
		id = "7efcf9cf-78fe-400e-abe3-6955c394e358"
		date = "2024-06-21"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_fakebat_powershell_fingerprint_may24.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "04e5c888e5f71873c4fa2d732fbd8e40be3edf406300e65e489e1fa378028c5f"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentificadorTipoValorModificadores
$str01texto"Get-WmiObject Win32_ComputerSystem"ascii
$str02texto"-Class AntiVirusProduct"ascii
$str03texto"status = \"start\""ascii
$str04texto" | ConvertTo-Json"ascii
$str05texto".FromXmlString("ascii
$str06texto" = Invoke-RestMethod -Uri "ascii
$str07texto".Exception.Response.StatusCode -eq 'ServiceUnavailable'"ascii
$str08texto"Invoke-WebRequest -Uri $url -OutFile "ascii
$str09texto"--batch --yes --passphrase-fd"ascii
$str10texto"--decrypt --output"ascii
$str11texto"Invoke-Expression \"tar --extract --file="ascii

Condición

7 of them and filesize < 10KB and true

En 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.

Abrir en el editor

Referencias

Licencia y atribución

Autor: Sekoia.io

Repositorio de origen: SEKOIA.IO Community @ a438a5901a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

Regla original

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

version1.0
classificationTLP:CLEAR

Etiquetas:FILE