Skip to content

Create link_pdf_to_free_file_host.yml #3038

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 2 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
33 changes: 33 additions & 0 deletions detection-rules/link_pdf_to_free_file_host.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Link: PDF display text to free file host from unknown sender"
description: "Detects messages containing a single link with PDF-named display text that redirects to a free file hosting service, sent from unknown or free email providers without previous message threads."
type: "rule"
severity: "high"
source: |
type.inbound
// the display_text ends in .pdf and goes to a free file host
and any(body.links,
strings.iends_with(.display_text, '.pdf')
and .href_url.domain.domain in $free_file_hosts
)
// there is only a single link to the free file host
and length(filter(body.links, .href_url.domain.domain in $free_file_hosts)) == 1
// the sender is not well known, or is from free mail
and (
sender.email.domain.root_domain not in $tranco_1m
or sender.email.domain.root_domain in $free_email_providers
or sender.email.domain.root_domain == "onmicrosoft.com"
)
// the message does not contain previous threads
and length(body.previous_threads) == 0

attack_types:
- "Credential Phishing"
tactics_and_techniques:
- "Free file host"
- "Free email provider"
- "Social engineering"
detection_methods:
- "Content analysis"
- "Sender analysis"
- "URL analysis"
id: "b010740b-a462-5dcd-acf9-877783a84534"