Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions detection-rules/spam_porkbun_newly_registered_domain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Spam: Cold outreach from PorkBun-hosted newly registered domain"
description: "Detects inbound messages from domains registered less than 365 days ago using PorkBun (porkbun.com) nameservers, where the message content is classified as B2B cold outreach by NLU analysis. The rule only flags senders who are either unsolicited or have a history of malicious/spam activity without any benign messages."
type: "rule"
severity: "low"
source: |
type.inbound
// newly registered sender domain
and network.whois(sender.email.domain).days_old < 365

// there are 4 name servers which have subdomains containing .ns
and length(network.whois(sender.email.domain).name_servers) == 4
and all(network.whois(sender.email.domain).name_servers,
strings.iends_with(.subdomain, 'ns') and .root_domain == 'porkbun.com'
)

// nlu topic
and any(ml.nlu_classifier(body.current_thread.text).topics,
.name == 'B2B Cold Outreach'
)

// sender profiles
and (
not profile.by_sender_email().solicited
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_messages_benign
)
)

tags:
- "Attack surface reduction"
attack_types:
- "Spam"
tactics_and_techniques:
- "Social engineering"
detection_methods:
- "Whois"
- "Natural Language Understanding"
- "Sender analysis"
id: "985ac6a6-1dfd-5330-9bda-36da0da45f27"