Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Loader_Fakebat_Initial_Powershell_May24

Finds FakeBat initial PowerShell script downloading and executing the next-stage payload.

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Sekoia.io
Datum
2024-05-28
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Finds FakeBat initial PowerShell script downloading and executing the next-stage payload.

Sie definiert 4 Muster (4 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

loader-fakebat-initial-powershell-may24.yarDetection Rule License 1.1
rule SEKOIA_Loader_Fakebat_Initial_Powershell_May24 : FILE
{
	meta:
		description = "Finds FakeBat initial PowerShell script downloading and executing the next-stage payload."
		author = "Sekoia.io"
		id = "adf0e4fc-fa98-470b-9535-bd30d0bdb3aa"
		date = "2024-05-28"
		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_initial_powershell_may24.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "6a699df361b0cb2baf1d0b128f795aa9918ebe11daaeb1fa49aebf9320add762"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		modification_date = "2024-06-21"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "='http" wide
		$str02 = "=(iwr -Uri $" wide
		$str03 = " -UserAgent $" wide
		$str04 = " -UseBasicParsing).Content; iex $" wide

	condition:
		3 of ( $str* ) and filesize < 1KB and true
}

Strings (4 Muster)

BezeichnerTypWertModifikatoren
$str01Text"='http"wide
$str02Text"=(iwr -Uri $"wide
$str03Text" -UserAgent $"wide
$str04Text" -UseBasicParsing).Content; iex $"wide

Bedingung

3 of ( $str* ) and filesize < 1KB and true

In Worten (Heuristik)

  • Die Datei muss kleiner als 1KB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Mindestens 3 Muster aus ( $str* ) 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: adf0e4fc-fa98-470b-9535-bd30d0bdb3aa

Metadaten

version1.0
modification_date2024-06-21
classificationTLP:CLEAR

Tags:FILE