Service abuse: Supmailer sent via Gmail infrastructure
Detects inbound messages where the mailer header matches 'supmailer*' and the message originates from or is routed through Gmail infrastructure, either via the first hop server being smtp.gmail.com or the return path domain resolving to gmail.com or googlemail.com. This pattern indicates abuse of a third-party mailer service leveraging Gmail's sending infrastructure.
Sublime rule (View on GitHub)
1name: "Service abuse: Supmailer sent via Gmail infrastructure"
2description: "Detects inbound messages where the mailer header matches 'supmailer*' and the message originates from or is routed through Gmail infrastructure, either via the first hop server being smtp.gmail.com or the return path domain resolving to gmail.com or googlemail.com. This pattern indicates abuse of a third-party mailer service leveraging Gmail's sending infrastructure."
3type: "rule"
4severity: "medium"
5source: |
6 type.inbound
7 and strings.ilike(headers.mailer, "supmailer*")
8 and (
9 any(headers.hops, .index == 0 and .received.server.raw == "smtp.gmail.com")
10 or headers.return_path.domain.root_domain in ("gmail.com", "googlemail.com")
11 )
12attack_types:
13 - "BEC/Fraud"
14tactics_and_techniques:
15 - "Free email provider"
16detection_methods:
17 - "Header analysis"
18id: "b0b8b538-7bad-56da-94a1-2a53e8af0248"