Description

Detects inbound emails carrying at least one PDF attachment where the HTML body contains a bolded phrase with a distinct RGB color value, and where the text references an upcoming 'code' or 'password'.

References

No references.

Sublime Security
Created Sep 8th, 2026 • Last updated Sep 8th, 2026
Source
type.inbound
and length(filter(attachments, .file_type == "pdf")) >= 1
and any(html.xpath(body.html, '//div[span/b and span/following-sibling::span]').nodes,
        length(distinct(regex.extract(.raw, 'rgb\(.*?\)'), .full_match)) == 2
        and any(html.xpath(., './/span').nodes,
                regex.contains(.inner_text, 'following (code|password|pass):$')
        )
)
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