Description

Detects inbound messages impersonating SAM.gov or the Small Business Administration by matching sender display names against known spoofed naming patterns (e.g. sba-support, sam registration/renewal) or by identifying sam.gov references paired with an embedded 'renew entity' image lure. Legitimate senders from verified sba.gov, sam.gov, or other high-trust domains that pass DMARC authentication are excluded.

References

No references.

Sublime Security
Created Aug 12th, 2026 • Last updated Sep 11th, 2026
Source
type.inbound
and (
  regex.icontains(sender.display_name,
                  '^sam(?:\.gov\b|\s(?:renew|compliance))',
                  'final\ssam\.gov',
                  '^sba[\s-]?(?:e[fd]|[\.,]gov)',
                  '^sba[\s-](?:connect|invoice|admin|eidl|profile)\b',
                  '^sba[\s-]support[\s-]\w+'
  )
  or (
    strings.icontains(body.current_thread.text,
                      'sam.gov',
                      'system for award management'
    )
    and (
      any(html.xpath(body.html, '//img/@src').nodes,
          strings.icontains(.raw, 'sam%20renew%20entity')
          or regex.icontains(.raw, '[./]sam[a-z]{3,}\.com')
      )
      or regex.icontains(subject.base,
                         'cage\s+code\s+[a-z0-9]{5}',
                         'sam\s(?:renew|status)'
      )
    )
  )
)
and not (
  sender.email.domain.root_domain in $high_trust_sender_root_domains
  and coalesce(headers.auth_summary.dmarc.pass, false)
)
MQL Rule Console
DocsLearning Labs

Playground

Test against your own EMLs or sample data.

Share

Post about this on your socials.

Get Started. Today.

Managed or self-managed. No MX changes.

Deploy and integrate a free Sublime instance in minutes.
Get Started