Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_PE_Discord_Attachment_Oct21_1

Detects suspicious executable with reference to a Discord attachment (often used for malware hosting on a legitimate FQDN)

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2021-10-12
Modified
2025-03-21
Score / Quality
70 / 85

What this rule detects

Detects suspicious executable with reference to a Discord attachment (often used for malware hosting on a legitimate FQDN)

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

susp-pe-discord-attachment-oct21-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_PE_Discord_Attachment_Oct21_1 : FILE
{
	meta:
		description = "Detects suspicious executable with reference to a Discord attachment (often used for malware hosting on a legitimate FQDN)"
		author = "Florian Roth (Nextron Systems)"
		id = "7c217350-4a35-505d-950d-1bc989c14bc2"
		date = "2021-10-12"
		modified = "2025-03-21"
		reference = "Internal Research"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_suspicious_strings.yar#L415-L429"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "4d84ec50738f4c7aca8e77c3aabdcd77f3071733a2245a58283f070f2b220599"
		score = 70
		quality = 85
		tags = "FILE"

	strings:
		$x1 = "https://cdn.discordapp.com/attachments/" ascii wide

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 5000KB and 1 of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$x1text"https://cdn.discordapp.com/attachments/"ascii wide

Condition

uint16( 0 ) == 0x5a4d and filesize < 5000KB and 1 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 5000KB (a cheap guard that skips large files).
  • At least 1 patterns in the rule 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: 7c217350-4a35-505d-950d-1bc989c14bc2

Tags:FILE