Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Loader_Fakebat_Powershell_Fingerprint_May24

Finds FakeBat PowerShell script fingerprinting the infected host.

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2024-06-21
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

Finds FakeBat PowerShell script fingerprinting the infected host.

Elle définit 11 motifs (11 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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
}

Chaînes (11 motifs)

IdentifiantTypeValeurModificateurs
$str01texte"Get-WmiObject Win32_ComputerSystem"ascii
$str02texte"-Class AntiVirusProduct"ascii
$str03texte"status = \"start\""ascii
$str04texte" | ConvertTo-Json"ascii
$str05texte".FromXmlString("ascii
$str06texte" = Invoke-RestMethod -Uri "ascii
$str07texte".Exception.Response.StatusCode -eq 'ServiceUnavailable'"ascii
$str08texte"Invoke-WebRequest -Uri $url -OutFile "ascii
$str09texte"--batch --yes --passphrase-fd"ascii
$str10texte"--decrypt --output"ascii
$str11texte"Invoke-Expression \"tar --extract --file="ascii

Condition

7 of them and filesize < 10KB and true

En clair (Heuristique)

  • Le fichier doit faire moins de 10KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Au moins 7 motifs de la règle doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : Sekoia.io

Dépôt source : SEKOIA.IO Community @ a438a5901a

Licence : Detection Rule License 1.1 (licence du dépôt)

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: 7efcf9cf-78fe-400e-abe3-6955c394e358

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE