Impersonation: SAM/SBA federal registration
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.
Sublime rule (View on GitHub)
1name: "Impersonation: SAM/SBA federal registration"
2description: "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."
3type: "rule"
4severity: "high"
5source: |
6 type.inbound
7 and (
8 regex.icontains(sender.display_name,
9 '^sam(?:\.gov\b|\s(?:renew|compliance))',
10 'final\ssam\.gov',
11 '^sba[\s-]?(?:e[fd]|[\.,]gov)',
12 '^sba[\s-](?:connect|invoice|admin|eidl|profile)\b',
13 '^sba[\s-]support[\s-]\w+'
14 )
15 or (
16 (
17 strings.icontains(body.current_thread.text,
18 'sam.gov',
19 'system for award management'
20 )
21 or any(ml.nlu_classifier(body.current_thread.text).entities,
22 .name == "org"
23 and regex.icontains(.text, '\bsba.gov', 'small business admin')
24 )
25 )
26 and (
27 any(html.xpath(body.html, '//img/@src').nodes,
28 strings.icontains(.raw, 'sam%20renew%20entity')
29 or regex.icontains(.raw, '[./]sam[a-z]{3,}\.com')
30 )
31 or regex.icontains(subject.base,
32 'cage\s+code\s+[a-z0-9]{5}',
33 'sam\s(?:renew|status)'
34 )
35 or any(regex.iextract(body.current_thread.text,
36 'cage\s+code:?\s*([a-z0-9]{5})'
37 ),
38 strings.icontains(subject.base, .groups[0])
39 )
40 )
41 )
42 )
43 and not (
44 sender.email.domain.root_domain in $high_trust_sender_root_domains
45 and coalesce(headers.auth_summary.dmarc.pass, false)
46 )
47attack_types:
48 - "Credential Phishing"
49 - "BEC/Fraud"
50tactics_and_techniques:
51 - "Impersonation: Brand"
52 - "Social engineering"
53 - "Image as content"
54detection_methods:
55 - "Sender analysis"
56 - "Content analysis"
57 - "HTML analysis"
58 - "Header analysis"
59id: "057ad471-4564-584c-a700-bba6e0c6eea9"