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
- Author
- marcin@ulikowski.pl
- Date
- 2023-01-22
- Modified
- 2023-02-21
- Score / Quality
- 65 / 75
What this rule detects
Detects OneNote documents with FileDataStoreObject structure containing: PE32, shortcut files (*.lnk), encoded JS, Windows Help File (*.chm), or batch script
It defines 6 patterns (0 text, 6 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule ELCEEF_Suspicious_Onenote
{
meta:
= "Detects OneNote documents with FileDataStoreObject structure containing: PE32, shortcut files (*.lnk), encoded JS, Windows Help File (*.chm), or batch script"
= "marcin@ulikowski.pl"
= "57f6fc7f-666f-5887-ac97-513588415757"
= "2023-01-22"
= "2023-02-21"
= "https://github.com/elceef/yara-rulz"
= "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/rules/Suspicious_OneNote.yara#L1-L23"
= "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/LICENSE"
= "f408ef3fa89546483ba63f58be3f27a98795655eb4b9b6217cbe302a5ba9d5f7"
= "5306fa7940b4d67dfb031fd315b661cecb2ce81e2f34c9393e1826df0f0bbdc5"
= "e1d34ad42938a777d80f3ee4c206de14021f13ab79600168b85894fdb0867b3e"
= "9e89231578d8b9b190de3288fd10f43cf11a24963a8b0a76f0c46170deda59fd"
= "6778c59a29e25d722230163bea272ece58d2d3696fbce4347c20104e8fb735dc"
= "b65f0976b71c1e827ecce09f0c435d9ffa6a5d3b3a41401efc6a14b6259af4ad"
= 65
= 75
= ""
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_* )
}
Strings (6 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $magic | hex | { ae b1 53 78 d0 29 96 d3 } | |
| $fdso_pe32 | hex | { a4 c4 8d 4d 0b 7a 9e ac [20] 4d 5a } | |
| $fdso_bat | hex | { a4 c4 8d 4d 0b 7a 9e ac [20] 40 65 63 68 6f 20 6f 66 66 } | |
| $fdso_lnk | hex | { a4 c4 8d 4d 0b 7a 9e ac [20] 4c 00 00 00 01 14 02 00 } | |
| $fdso_jse | hex | { a4 c4 8d 4d 0b 7a 9e ac [20] 23 40 7e 5e } | |
| $fdso_chm | hex | { a4 c4 8d 4d 0b 7a 9e ac [20] 49 54 53 46 03 } |
Condition
$magic at 8 and 1 of ( $fdso_* )In plain words (Heuristic)
- At least 1 patterns in ( $fdso_* ) must match.
- Pattern $magic must be found at offset 8.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- f408ef3fa89546483ba63f58be3f27a98795655eb4b9b6217cbe302a5ba9d5f7
- 5306fa7940b4d67dfb031fd315b661cecb2ce81e2f34c9393e1826df0f0bbdc5
- e1d34ad42938a777d80f3ee4c206de14021f13ab79600168b85894fdb0867b3e
- 9e89231578d8b9b190de3288fd10f43cf11a24963a8b0a76f0c46170deda59fd
- 6778c59a29e25d722230163bea272ece58d2d3696fbce4347c20104e8fb735dc
Licence & attribution
Author: marcin@ulikowski.pl
Source repository: elceef yara-rulz @ 5683b294a1
Licence: MIT License (repository licence)
Copyright notice: Copyright (c) 2022 Marcin Ulikowski
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 57f6fc7f-666f-5887-ac97-513588415757
Related rules
- Suspicious / huntingelceef yara-rulz· marcin@ulikowski.pl· 2023-05-01
- Suspicious / huntingelceef yara-rulz· marcin@ulikowski.pl· 2023-06-02
- Suspicious / huntingelceef yara-rulz· marcin@ulikowski.pl· 2023-02-01
- Suspicious / huntingelceef yara-rulz· marcin@ulikowski.pl· 2023-04-04
- Exploitelceef yara-rulz· marcin@ulikowski.pl· 2025-08-18
- Genericelceef yara-rulz· marcin@ulikowski.pl· 2024-04-10
- Genericelceef yara-rulz· marcin@ulikowski.pl· 2023-05-05
- Genericelceef yara-rulz· marcin@ulikowski.pl· 2023-04-17