Medium Severity

Attachment: PDF Link With Valueless Base64 Query Parameter

Description

Detects PDF attachments containing embedded URLs whose query strings are base64-like tokens that decode to a single, empty-valued parameter.

References

No references.

Sublime Security
Created Oct 6th, 2026 • Last updated Oct 6th, 2026
Source
type.inbound
and any(attachments,
        (.file_type == "pdf" or .file_extension == "pdf")
        and any(file.explode(.),
                any(.scan.pdf.urls,
                    .path == '/'
                    and regex.imatch(.query_params, '[A-Fa-f0-9+/]{8}')
                    and length(.query_params_decoded) == 1
                    and all(flatten(values(.query_params_decoded)), . == '')
                )
        )
)
MQL Rule Console
•Docs•Learning 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