• Sublime Core Feed
High Severity

PDF attachment with Google (AE) redirecting to a php or zip file

Description

Detects a PDF attachment with a link that contains a Google.ae redirect URL.

Sublime Security
Created Aug 17th, 2023 • Last updated Sep 26th, 2023
Source
type.inbound
and any(attachments,
        .file_type == "pdf"
        and any(file.explode(.),
                any(.scan.pdf.urls,
                    // url encoded q=http
                    strings.starts_with(.query_params, "q=%68%74%74%70")
                    // url encoded .php or .zip
                    and (
                        strings.contains(.query_params, ".%70%68%70")
                        or strings.contains(.query_params, "%2e%7a%69%70")
                    )
                    and .domain.root_domain == "google.ae"
                )
        )
)
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