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
36 changes: 36 additions & 0 deletions detection-rules/link_self_sender_ip_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Link: Self-sender with IP geolocation check and suspicious link behavior"
description: "Detects messages where the sender and recipient are the same address that access IP geolocation services (ipinfo.io) and exhibit suspicious behavior, such as randomization scripting or confirmed credential harvesting indicators."
type: "rule"
severity: "medium"
source: |
type.inbound
// self sender
and (
length(recipients.to) == 1
and recipients.to[0].email.email == sender.email.email
)
and any(body.current_thread.links,
.href_url.domain.root_domain != sender.email.domain.root_domain
and any(ml.link_analysis(.).unique_urls_accessed,
.url == 'https://ipinfo.io/json'
)
and (
strings.icontains(ml.link_analysis(.).final_dom.raw,
'Math.floor',
'Math.random'
)
or (
ml.link_analysis(.).credphish.disposition == "phishing"
and ml.link_analysis(.).credphish.confidence in ("medium", "high")
)
)
)
attack_types:
- "Credential Phishing"
tactics_and_techniques:
- "Evasion"
- "Social engineering"
detection_methods:
- "Sender analysis"
- "URL analysis"
id: "fa708c3c-c40f-5b0d-b9c4-e9512fb32629"
Loading