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 not strings.ilike(sender.display_name,
'*course*',
'*bootcamp*',
'*training*'
)
and (
strings.ilike(sender.display_name, '*github*')
or strings.ilike(sender.email.email, '*github*')
or strings.ilevenshtein(sender.email.domain.sld, 'github') <= 1
)
// negating listservs
and not (
any(headers.hops, any(.fields, .name == "List-Unsubscribe"))
and (
strings.contains(sender.display_name, "via")
or strings.icontains(subject.subject, "monitor")
)
)
and not (
any(headers.hops, any(.fields, .name == "X-GitHub-Reason"))
and headers.auth_summary.dmarc.pass
)
and sender.email.domain.root_domain not in (
'github.com',
'thegithubshop.com',
'gitlab.com',
'itthub.net',
'githubsupport.com',
'gtmhub.com',
'githubstatus.com',
'githubnext.com',
'lithub.com',
'icims.com',
'bithub.email',
'goldcast.io',
'luma-mail.com', // GitHub's event invitation software
'github.events' // GitHub event newsletters
)
// 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
)
and (
not profile.by_sender().solicited
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_messages_benign
)
)
and not profile.by_sender().any_messages_benign
Detection logic
Scope: inbound message.
Impersonation of Github.
- inbound message
not:
sender.display_name matches any of 3 patterns
*course**bootcamp**training*
any of:
- sender.display_name matches '*github*'
- sender.email.email matches '*github*'
- sender.email.domain.sld is similar to 'github'
not:
all of:
any of
headers.hopswhere:any of
.fieldswhere:- .name is 'List-Unsubscribe'
any of:
- sender.display_name contains 'via'
- subject.subject contains 'monitor'
not:
all of:
any of
headers.hopswhere:any of
.fieldswhere:- .name is 'X-GitHub-Reason'
- headers.auth_summary.dmarc.pass
- sender.email.domain.root_domain not in ('github.com', 'thegithubshop.com', 'gitlab.com', 'itthub.net', 'githubsupport.com', 'gtmhub.com', 'githubstatus.com', 'githubnext.com', 'lithub.com', 'icims.com', 'bithub.email', 'goldcast.io', 'luma-mail.com', 'github.events')
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
any of:
not:
- profile.by_sender().solicited
all of:
- profile.by_sender().any_messages_malicious_or_spam
not:
- profile.by_sender().any_messages_benign
not:
- profile.by_sender().any_messages_benign
Inspects: headers.auth_summary.dmarc.pass, headers.hops, headers.hops[].fields, headers.hops[].fields[].name, sender.display_name, sender.email.domain.root_domain, sender.email.domain.sld, sender.email.email, subject.subject, type.inbound. Sensors: profile.by_sender, strings.contains, strings.icontains, strings.ilevenshtein, strings.ilike. Reference lists: $high_trust_sender_root_domains.
Indicators matched (23)
| Field | Match | Value |
|---|---|---|
strings.ilike | substring | *course* |
strings.ilike | substring | *bootcamp* |
strings.ilike | substring | *training* |
strings.ilike | substring | *github* |
strings.ilevenshtein | fuzzy | github |
headers.hops[].fields[].name | equals | List-Unsubscribe |
strings.contains | substring | via |
strings.icontains | substring | monitor |
headers.hops[].fields[].name | equals | X-GitHub-Reason |
sender.email.domain.root_domain | member | github.com |
sender.email.domain.root_domain | member | thegithubshop.com |
sender.email.domain.root_domain | member | gitlab.com |
11 more
sender.email.domain.root_domain | member | itthub.net |
sender.email.domain.root_domain | member | githubsupport.com |
sender.email.domain.root_domain | member | gtmhub.com |
sender.email.domain.root_domain | member | githubstatus.com |
sender.email.domain.root_domain | member | githubnext.com |
sender.email.domain.root_domain | member | lithub.com |
sender.email.domain.root_domain | member | icims.com |
sender.email.domain.root_domain | member | bithub.email |
sender.email.domain.root_domain | member | goldcast.io |
sender.email.domain.root_domain | member | luma-mail.com |
sender.email.domain.root_domain | member | github.events |