Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Loader_Fakebat_Powershell_Fingerprint_May24

Finds FakeBat PowerShell script fingerprinting the infected host.

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
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:
		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
}

Strings (11 Muster)

BezeichnerTypWertModifikatoren
$str01Text"Get-WmiObject Win32_ComputerSystem"ascii
$str02Text"-Class AntiVirusProduct"ascii
$str03Text"status = \"start\""ascii
$str04Text" | ConvertTo-Json"ascii
$str05Text".FromXmlString("ascii
$str06Text" = Invoke-RestMethod -Uri "ascii
$str07Text".Exception.Response.StatusCode -eq 'ServiceUnavailable'"ascii
$str08Text"Invoke-WebRequest -Uri $url -OutFile "ascii
$str09Text"--batch --yes --passphrase-fd"ascii
$str10Text"--decrypt --output"ascii
$str11Text"Invoke-Expression \"tar --extract --file="ascii

Bedingung

7 of them and filesize < 10KB and true

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

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

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

version1.0
classificationTLP:CLEAR

Tags:FILE