Aller au contenu

YARA · elceef yara-rulz

ELCEEF_Suspicious_Onenote

Detects OneNote documents with FileDataStoreObject structure containing: PE32, shortcut files (*.lnk), encoded JS, Windows Help File (*.chm), or batch script

Suspect / chasseelceef yara-rulzMIT LicenseCompile avec YARA-X
Auteur
marcin@ulikowski.pl
Date
2023-01-22
Modifiée
2023-02-21
Score / Qualité
65 / 75

Ce que détecte cette règle

Detects OneNote documents with FileDataStoreObject structure containing: PE32, shortcut files (*.lnk), encoded JS, Windows Help File (*.chm), or batch script

Elle définit 6 motifs (0 texte, 6 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

suspicious-onenote.yarMIT License
rule ELCEEF_Suspicious_Onenote
{
	meta:
		description = "Detects OneNote documents with FileDataStoreObject structure containing: PE32, shortcut files (*.lnk), encoded JS, Windows Help File (*.chm), or batch script"
		author = "marcin@ulikowski.pl"
		id = "57f6fc7f-666f-5887-ac97-513588415757"
		date = "2023-01-22"
		modified = "2023-02-21"
		reference = "https://github.com/elceef/yara-rulz"
		source_url = "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/rules/Suspicious_OneNote.yara#L1-L23"
		license_url = "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/LICENSE"
		hash = "f408ef3fa89546483ba63f58be3f27a98795655eb4b9b6217cbe302a5ba9d5f7"
		hash = "5306fa7940b4d67dfb031fd315b661cecb2ce81e2f34c9393e1826df0f0bbdc5"
		hash = "e1d34ad42938a777d80f3ee4c206de14021f13ab79600168b85894fdb0867b3e"
		hash = "9e89231578d8b9b190de3288fd10f43cf11a24963a8b0a76f0c46170deda59fd"
		hash = "6778c59a29e25d722230163bea272ece58d2d3696fbce4347c20104e8fb735dc"
		logic_hash = "b65f0976b71c1e827ecce09f0c435d9ffa6a5d3b3a41401efc6a14b6259af4ad"
		score = 65
		quality = 75
		tags = ""

	strings:
		$magic = { ae b1 53 78 d0 29 96 d3 }
		$fdso_pe32 = { a4 c4 8d 4d 0b 7a 9e ac [20] 4d 5a }
		$fdso_bat = { a4 c4 8d 4d 0b 7a 9e ac [20] 40 65 63 68 6f 20 6f 66 66 }
		$fdso_lnk = { a4 c4 8d 4d 0b 7a 9e ac [20] 4c 00 00 00 01 14 02 00 }
		$fdso_jse = { a4 c4 8d 4d 0b 7a 9e ac [20] 23 40 7e 5e }
		$fdso_chm = { a4 c4 8d 4d 0b 7a 9e ac [20] 49 54 53 46 03 }

	condition:
		$magic at 8 and 1 of ( $fdso_* )
}

Chaînes (6 motifs)

IdentifiantTypeValeurModificateurs
$magichex{ ae b1 53 78 d0 29 96 d3 }
$fdso_pe32hex{ a4 c4 8d 4d 0b 7a 9e ac [20] 4d 5a }
$fdso_bathex{ a4 c4 8d 4d 0b 7a 9e ac [20] 40 65 63 68 6f 20 6f 66 66 }
$fdso_lnkhex{ a4 c4 8d 4d 0b 7a 9e ac [20] 4c 00 00 00 01 14 02 00 }
$fdso_jsehex{ a4 c4 8d 4d 0b 7a 9e ac [20] 23 40 7e 5e }
$fdso_chmhex{ a4 c4 8d 4d 0b 7a 9e ac [20] 49 54 53 46 03 }

Condition

$magic at 8 and 1 of ( $fdso_* )

En clair (Heuristique)

  • Au moins 1 motifs de ( $fdso_* ) doivent être trouvés.
  • Le motif $magic doit se trouver à l’offset 8.

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

  • f408ef3fa89546483ba63f58be3f27a98795655eb4b9b6217cbe302a5ba9d5f7
  • 5306fa7940b4d67dfb031fd315b661cecb2ce81e2f34c9393e1826df0f0bbdc5
  • e1d34ad42938a777d80f3ee4c206de14021f13ab79600168b85894fdb0867b3e
  • 9e89231578d8b9b190de3288fd10f43cf11a24963a8b0a76f0c46170deda59fd
  • 6778c59a29e25d722230163bea272ece58d2d3696fbce4347c20104e8fb735dc

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: 57f6fc7f-666f-5887-ac97-513588415757