Detection rules › Sublime MQL
Brand impersonation: UPS
Detects messages impersonating UPS (United Parcel Service) through display name, email address patterns, subject content, or HTML styling that mimics UPS branding, while excluding legitimate UPS domains.
Threat classification
Sublime's own taxonomy (not MITRE ATT&CK).
| Category | Values |
|---|---|
| Attack types | Credential Phishing |
| Tactics and techniques | Impersonation: Brand, Lookalike domain, Social engineering |
Event coverage
Rule body MQL
type.inbound
and sender.email.domain.root_domain not in ("ups.com", "upsemail.com")
and (
sender.display_name in~ ("UPS My Choice", "UPS Services", "Ups.com")
or regex.icontains(sender.display_name, 'ups-\w+')
or strings.ilike(sender.email.local_part, "*united*parcel*service*")
or strings.ilike(sender.email.domain.domain, '*united*parcel*service*')
or strings.icontains(subject.subject, 'UPS delivery')
or sender.email.local_part =~ "ups"
or regex.icontains(sender.display_name,
"U[^a-zA-Z]P[^a-zA-Z]S(?:[^a-zA-Z]|$)"
)
or strings.icontains(body.html.raw, 'background-color:#351d20')
or strings.icontains(body.html.raw, 'background-color: #351d20')
)
and (
// Observed in the "footer" of impersation messages
// added this due to the UPS image not loading on some emails
strings.icontains(body.current_thread.text, "United Parcel Service of")
or regex.icontains(body.current_thread.text,
"(©|®).{0,15}(?:U.?P.?S.?|United Parcel Service)"
)
or any(ml.logo_detect(file.message_screenshot()).brands, .name is not null)
)
and sender.email.email not in $recipient_emails
// negate highly trusted sender domains unless they fail DMARC authentication
and (
(
sender.email.domain.root_domain in $high_trust_sender_root_domains
and not headers.auth_summary.dmarc.pass
)
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
)
Detection logic
Scope: inbound message.
Detects messages impersonating UPS (United Parcel Service) through display name, email address patterns, subject content, or HTML styling that mimics UPS branding, while excluding legitimate UPS domains.
- inbound message
- sender.email.domain.root_domain not in ('ups.com', 'upsemail.com')
any of:
- sender.display_name in ('UPS My Choice', 'UPS Services', 'Ups.com')
- sender.display_name matches 'ups-\\w+'
- sender.email.local_part matches '*united*parcel*service*'
- sender.email.domain.domain matches '*united*parcel*service*'
- subject.subject contains 'UPS delivery'
- sender.email.local_part is 'ups'
- sender.display_name matches 'U[^a-zA-Z]P[^a-zA-Z]S(?:[^a-zA-Z]|$)'
- body.html.raw contains 'background-color:#351d20'
- body.html.raw contains 'background-color: #351d20'
any of:
- body.current_thread.text contains 'United Parcel Service of'
- body.current_thread.text matches '(©|®).{0,15}(?:U.?P.?S.?|United Parcel Service)'
any of
ml.logo_detect(file.message_screenshot()).brandswhere:- .name is set
- sender.email.email not in $recipient_emails
any of:
all of:
- sender.email.domain.root_domain in $high_trust_sender_root_domains
not:
- headers.auth_summary.dmarc.pass
- sender.email.domain.root_domain not in $high_trust_sender_root_domains
Inspects: body.current_thread.text, body.html.raw, headers.auth_summary.dmarc.pass, sender.display_name, sender.email.domain.domain, sender.email.domain.root_domain, sender.email.email, sender.email.local_part, subject.subject, type.inbound. Sensors: file.message_screenshot, ml.logo_detect, regex.icontains, strings.icontains, strings.ilike. Reference lists: $high_trust_sender_root_domains, $recipient_emails.
Indicators matched (14)
| Field | Match | Value |
|---|---|---|
sender.email.domain.root_domain | member | ups.com |
sender.email.domain.root_domain | member | upsemail.com |
sender.display_name | member | UPS My Choice |
sender.display_name | member | UPS Services |
sender.display_name | member | Ups.com |
regex.icontains | regex | ups-\w+ |
strings.ilike | substring | *united*parcel*service* |
strings.icontains | substring | UPS delivery |
sender.email.local_part | equals | ups |
regex.icontains | regex | U[^a-zA-Z]P[^a-zA-Z]S(?:[^a-zA-Z]|$) |
strings.icontains | substring | background-color:#351d20 |
strings.icontains | substring | background-color: #351d20 |
2 more
strings.icontains | substring | United Parcel Service of |
regex.icontains | regex | (©|®).{0,15}(?:U.?P.?S.?|United Parcel Service) |