High Severity

Link: WordPress admin targeting with recipient identifier in URL parts

Description

Detects messages containing links to WordPress administrative paths (wp-admin, wp-content, wp-includes, etc.) where the URL fragment or query param values contains base64-encoded data that includes the recipient's email address, indicating potential targeted compromise attempts.

References

No references.

Sublime Security
Created Apr 16th, 2026 • Last updated Jun 29th, 2026
Source
type.inbound
and recipients.to[0].email.domain.valid
and any(body.links,
        regex.icontains(.href_url.path,
                        '^\/(?:wp-(?:admin|includes|content|login|json|signup|activate|cron|mail)|xmlrpc\.php)'
        )
        and (
          // fragments base64 encoded
          any(strings.scan_base64(.href_url.fragment),
              strings.icontains(., recipients.to[0].email.email)
          )
          // fragments not base64 encoded
          or strings.icontains(.href_url.fragment, recipients.to[0].email.email)
          // query param values are exactly the recipient
          or (
            any(flatten(values(.href_url.query_params_decoded)),
                . == recipients.to[0].email.email
                or any(strings.scan_base64(.),
                       . == recipients.to[0].email.email
                )
            )
            // not an unsub URL
            and not strings.icontains(.href_url.url, 'unsub')
            // less than two query_params
            and length(keys(.href_url.query_params_decoded)) <= 2
          )
        )
)
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