Aller au contenu

YARA · elceef yara-rulz

ELCEEF_HTML_Windows_Search_Abuse

Detects HTML files abusing Windows system functionalities to redirect and download malicious payloads

Génériqueelceef yara-rulzMIT LicenseCompile avec YARA-X
Auteur
marcin@ulikowski.pl
Date
2024-06-15
Modifiée
2024-06-16
Score / Qualité
75 / 73

Ce que détecte cette règle

Detects HTML files abusing Windows system functionalities to redirect and download malicious payloads

Elle définit 9 motifs (9 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

html-windows-search-abuse.yarMIT License
rule ELCEEF_HTML_Windows_Search_Abuse
{
	meta:
		description = "Detects HTML files abusing Windows system functionalities to redirect and download malicious payloads"
		author = "marcin@ulikowski.pl"
		id = "537cb46e-4cfc-517c-8d6d-0019f2c3e5ef"
		date = "2024-06-15"
		modified = "2024-06-16"
		reference = "https://github.com/elceef/yara-rulz"
		source_url = "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/rules/HTML_Windows_Search.yara#L1-L22"
		license_url = "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/LICENSE"
		hash = "d136dcfc355885c502ff2c3be229791538541b748b6c07df3ced95f9a7eb2f30"
		logic_hash = "6a0d490cf08ab0aad3c535645abe9ebc26d12768cf2a2e932cdb7ec93cf3e2bd"
		score = 75
		quality = 73
		tags = ""

	strings:
		$location1 = "location.href" wide ascii
		$location2 = "location.replace(" wide ascii
		$location3 = "location.assign(" wide ascii
		$metarefresh = "<meta http-equiv=\"refresh\"" nocase wide ascii
		$search1 = "\"search-ms:query=" wide ascii
		$search2 = "\"search:query=" wide ascii
		$search3 = "URL=search:query=" wide ascii
		$crumb1 = "&crumb=location:" wide ascii
		$crumb2 = "&amp;crumb=location:" wide ascii

	condition:
		( any of ( $location* ) or $metarefresh ) and any of ( $search* ) and any of ( $crumb* )
}

Chaînes (9 motifs)

IdentifiantTypeValeurModificateurs
$location1texte"location.href"wide ascii
$location2texte"location.replace("wide ascii
$location3texte"location.assign("wide ascii
$metarefreshtexte"<meta http-equiv=\"refresh\""nocase wide ascii
$search1texte"\"search-ms:query="wide ascii
$search2texte"\"search:query="wide ascii
$search3texte"URL=search:query="wide ascii
$crumb1texte"&crumb=location:"wide ascii
$crumb2texte"&amp;crumb=location:"wide ascii

Condition

( any of ( $location* ) or $metarefresh ) and any of ( $search* ) and any of ( $crumb* )

En clair (Heuristique)

  • Au moins un motif de ( $location* ) doit être trouvé.
  • Au moins un motif de ( $search* ) doit être trouvé.
  • Au moins un motif de ( $crumb* ) doit être trouvé.
  • Le motif $metarefresh doit être présent.

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

Hashes d’échantillons

Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).

  • d136dcfc355885c502ff2c3be229791538541b748b6c07df3ced95f9a7eb2f30

Licence et attribution

Auteur : marcin@ulikowski.pl

Dépôt source : elceef yara-rulz @ 5683b294a1

Licence : MIT License (licence du dépôt)

Mention de copyright : Copyright (c) 2022 Marcin Ulikowski

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: 537cb46e-4cfc-517c-8d6d-0019f2c3e5ef