Skip to content

Create link_romance_suspicious.yml #2872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
35 changes: 35 additions & 0 deletions detection-rules/link_romance_suspicious.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Link: Romance/Sexual Language With Suspicious Link"
description: "Detects messages containing romantic or adult-themed language, combined with links to newly registered domains or suspicious reply-to addresses."
type: "rule"
severity: "low"
source: |
type.inbound
and any(beta.ml_topic(body.current_thread.text).topics,
.name in ("Romance", "Sexually Explicit Messages")
and .confidence == "high"
)
and 1 of (
any(body.links, network.whois(.href_url.domain).days_old < 30),
any(headers.reply_to, network.whois(.email.domain).days_old < 30),
any(headers.reply_to,
.email.domain.root_domain != sender.email.domain.root_domain
)
)
and 0 < length(distinct(body.links,
.href_url.domain.root_domain not in ("aka.ms")
)
) < 3
and all(body.links,
.href_url.domain.root_domain != sender.email.domain.root_domain
)

attack_types:
- "Spam"
tactics_and_techniques:
- "Social engineering"
detection_methods:
- "Content analysis"
- "Header analysis"
- "URL analysis"
- "Whois"
id: "d5694cae-bee8-588e-8123-2c3e3459118b"
Loading