Sublime Security high experimental mql

Brand impersonation: Github

Impersonation of Github.

View Source

Detection Logic

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 not (
  sender.email.domain.root_domain 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
  )
  and coalesce(headers.auth_summary.dmarc.pass, false)
)

// negate highly trusted sender domains unless they fail DMARC authentication
and not (
  sender.email.domain.root_domain in $high_trust_sender_root_domains
  and coalesce(headers.auth_summary.dmarc.pass, false)
)
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

Field Validations

Loading…

Comments (0)

Loading comments...