Medium Severity

Link: Mismatched Shopify template button href

Description

Flags inbound messages where the sender's display name contains a space and the HTML body includes a styled table cell with a linked button whose title attribute reveals a leftover Shopify CDN file path, but the button's actual href does not point to that same path on cdn.shopify.com. This mismatch suggests a hijacked or repurposed Shopify email template being used to redirect recipients to an unintended destination. Messages from highly trusted sender domains that pass DMARC authentication are excluded.

References

No references.

Sublime Security
Created Aug 20th, 2026 • Last updated Aug 20th, 2026
Source
type.inbound
and strings.icontains(sender.display_name, ' ')
and any(html.xpath(body.html,
                   '//td[contains(@style, "background-color")]//a[@title and @href]'
        ).nodes,
        // the leftover template title advertises a shopify file path...
        any(regex.iextract(.raw,
                           'title="https://cdn\.shopify\.com(?P<tpath>/s/files/\d+/\d+/\d+/\d+/)'
            ),
            // ...that the button's actual href doesn't point to
            not any(..links,
                    .href_url.domain.domain == "cdn.shopify.com"
                    and strings.istarts_with(.href_url.path,
                                             ..named_groups["tpath"]
                    )
            )
        )
)
// negate highly trusted sender domains unless they fail DMARC authentication
and not (
  sender.email.domain.root_domain in $high_trust_sender_root_domains
  and coalesce(headers.auth_summary.dmarc.pass, false)
)
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