Skip to content
Merged
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
21 changes: 4 additions & 17 deletions detection-rules/link_contains_punycode_characters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,13 @@ authors:
severity: "medium"
source: |
type.inbound
and any(body.links, .href_url.domain.punycode is not null and .href_url.domain.valid == true)
and (
(
// include automated emails
sender.display_name == "WordPress"
or sender.email.local_part == "wordpress"
)

or (
(
profile.by_sender().prevalence in ("new", "outlier")
and not profile.by_sender().solicited
)
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_messages_benign
)
any(body.links,
.href_url.domain.punycode is not null and .href_url.domain.valid == true
)
or any(body.links, strings.starts_with(.href_url.domain.domain, "xn--"))
)
and not profile.by_sender().any_messages_benign

tags:
- "Attack surface reduction"
attack_types:
Expand Down
Loading