Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_Email_Suspicious_Onenote_Attachment_Jan23_1

Detects suspicious OneNote attachment that embeds suspicious payload, e.g. an executable (FPs possible if the PE is attached separately)

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2023-01-27
Modified
2023-12-05
Score / Quality
65 / 85

What this rule detects

Detects suspicious OneNote attachment that embeds suspicious payload, e.g. an executable (FPs possible if the PE is attached separately)

It defines 18 patterns (18 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

susp-email-suspicious-onenote-attachment-jan23-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_Email_Suspicious_Onenote_Attachment_Jan23_1 : FILE
{
	meta:
		description = "Detects suspicious OneNote attachment that embeds suspicious payload, e.g. an executable (FPs possible if the PE is attached separately)"
		author = "Florian Roth (Nextron Systems)"
		id = "492b74c2-3b81-5dff-9244-8528565338c6"
		date = "2023-01-27"
		modified = "2023-12-05"
		reference = "Internal Research"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_onenote_phish.yar#L2-L39"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "c7c5fc86f1dbe54da2d3ff8f039c5e53c3d1f67c9271cb467b2318310f744f93"
		score = 65
		quality = 85
		tags = "FILE"

	strings:
		$ge1 = "5xbjvWUmEUWkxI1NC3qer"
		$ge2 = "cW471lJhFFpMSNTQt6nq"
		$ge3 = "nFuO9ZSYRRaTEjU0Lep6s"
		$sp1 = "VGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZG"
		$sp2 = "RoaXMgcHJvZ3JhbSBjYW5ub3QgYmUgcnVuIGluIERPUyBtb2Rl"
		$sp3 = "UaGlzIHByb2dyYW0gY2Fubm90IGJlIHJ1biBpbiBET1MgbW9kZ"
		$sp4 = "VGhpcyBwcm9ncmFtIG11c3QgYmUgcnVuIHVuZGVy"
		$sp5 = "RoaXMgcHJvZ3JhbSBtdXN0IGJlIHJ1biB1bmRlc"
		$sp6 = "UaGlzIHByb2dyYW0gbXVzdCBiZSBydW4gdW5kZX"
		$se1 = "QGVjaG8gb2Zm"
		$se2 = "BlY2hvIG9mZ"
		$se3 = "AZWNobyBvZm"
		$se4 = "PEhUQTpBUFBMSUNBVElPTi"
		$se5 = "xIVEE6QVBQTElDQVRJT04g"
		$se6 = "8SFRBOkFQUExJQ0FUSU9OI"
		$se7 = "TAAAAAEUAg"
		$se8 = "wAAAABFAIA"
		$se9 = "MAAAAARQCA"

	condition:
		filesize < 5MB and 1 of ( $ge* ) and 1 of ( $s* )
}

Strings (18 patterns)

IdentifierTypeValueModifiers
$ge1text"5xbjvWUmEUWkxI1NC3qer"
$ge2text"cW471lJhFFpMSNTQt6nq"
$ge3text"nFuO9ZSYRRaTEjU0Lep6s"
$sp1text"VGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZG"
$sp2text"RoaXMgcHJvZ3JhbSBjYW5ub3QgYmUgcnVuIGluIERPUyBtb2Rl"
$sp3text"UaGlzIHByb2dyYW0gY2Fubm90IGJlIHJ1biBpbiBET1MgbW9kZ"
$sp4text"VGhpcyBwcm9ncmFtIG11c3QgYmUgcnVuIHVuZGVy"
$sp5text"RoaXMgcHJvZ3JhbSBtdXN0IGJlIHJ1biB1bmRlc"
$sp6text"UaGlzIHByb2dyYW0gbXVzdCBiZSBydW4gdW5kZX"
$se1text"QGVjaG8gb2Zm"
$se2text"BlY2hvIG9mZ"
$se3text"AZWNobyBvZm"
$se4text"PEhUQTpBUFBMSUNBVElPTi"
$se5text"xIVEE6QVBQTElDQVRJT04g"
$se6text"8SFRBOkFQUExJQ0FUSU9OI"
$se7text"TAAAAAEUAg"
$se8text"wAAAABFAIA"
$se9text"MAAAAARQCA"

Condition

filesize < 5MB and 1 of ( $ge* ) and 1 of ( $s* )

In plain words (Heuristic)

  • The file must be smaller than 5MB (a cheap guard that skips large files).
  • At least 1 patterns in ( $ge* ) must match.
  • At least 1 patterns in ( $s* ) must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

Licence & attribution

Author: Florian Roth (Nextron Systems)

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 492b74c2-3b81-5dff-9244-8528565338c6

Tags:FILE