Sublime Security medium experimental mql

Link: Invalid reply-to with recipient details in subject, body, and encoded link

Detects inbound messages with an invalid reply-to address where the recipient's domain SLD appears in the subject, the recipient's local part and domain SLD appear in the body, and the recipient's full email address is base64-encoded within a link fragment.

View Source

Detection Logic

type.inbound
// Invalid reply-to address
and any(headers.reply_to, not .email.domain.valid)
and strings.icontains(subject.base, recipients.to[0].email.domain.sld)
and strings.icontains(body.current_thread.text,
                      recipients.to[0].email.local_part
)
and strings.icontains(body.current_thread.text,
                      recipients.to[0].email.domain.sld
)
and any(body.current_thread.links,
        any(strings.scan_base64(.href_url.fragment),
            . == recipients.to[0].email.email
        )
)

Field Validations

Loading…

Comments (0)

Loading comments...