• Sublime Core Feed
Medium Severity

Attachment: PDF with password in filename matching body text

Description

Detects messages containing a single PDF attachment where the filename includes a numeric password that is explicitly referenced in the message body text.

References

No references.

Sublime Security
Created Feb 19th, 2026 • Last updated Feb 19th, 2026
Source
type.inbound
and length(filter(attachments, .file_type == "pdf")) == 1
and any(regex.extract(body.current_thread.text, 'password is (?P<pw>[0-9]{1,})'),
        any(filter(attachments, .file_type == "pdf"),
            strings.contains(.file_name, ..named_groups["pw"])
        )
)
MQL Rule Console
DocsLearning Labs

Playground

Test against your own EMLs or sample data.

Share

Post about this on your socials.

Get Started. Today.

Managed or self-managed. No MX changes.

Deploy and integrate a free Sublime instance in minutes.
Get Started