-
Notifications
You must be signed in to change notification settings - Fork 86
Create link_self_sender_containing_sender_identifiers.yml #3742
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
Closed
D-Bolton
wants to merge
10
commits into
main
from
daniel.fn.3185.Credential-phishing-using-business-document-lure
Closed
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0f6d54e
new rule
D-Bolton 7905ae9
Auto add rule ID
e527cf5
Update link_self_sender_containing_sender_identifiers.yml (#3752)
zoomequipd e99049c
Just look at the first link
D-Bolton c9b50af
not registration
D-Bolton baa4b5f
Update detection-rules/link_self_sender_containing_sender_identifiers…
D-Bolton a9281d3
Merge branch 'main' into daniel.fn.3185.Credential-phishing-using-bus…
D-Bolton a00dfda
Auto-format MQL and add rule IDs
13ff080
Merge branch 'main' into daniel.fn.3185.Credential-phishing-using-bus…
aidenmitchell 3e370ac
Update detection-rules/link_self_sender_containing_sender_identifiers…
D-Bolton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
detection-rules/link_self_sender_containing_sender_identifiers.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: "Link: Self-sent message with suspicious link containing sender identifiers" | ||
| description: "Detects messages where the sender emails themselves with a single suspicious link that contains the sender's local part or domain in the URL path and the link display text matches the subject line." | ||
| type: "rule" | ||
| severity: "medium" | ||
| source: | | ||
| type.inbound | ||
| // self sender | ||
| and ( | ||
| length(recipients.to) == 1 | ||
| and length(recipients.cc) == 0 | ||
| and length(recipients.bcc) == 0 | ||
| and sender.email.email == recipients.to[0].email.email | ||
| ) | ||
| // first link is not related to the sender via sld (to account for orgs that have multiple tlds) | ||
| and ( | ||
| body.current_thread.links[0].href_url.domain.sld != sender.email.domain.sld | ||
| and body.current_thread.links[0].href_url.domain.domain != 'aka.ms' | ||
| ) | ||
| and | ||
| // display text is contained in the subject | ||
| strings.icontains(body.current_thread.links[0].display_text, subject.base) | ||
| // path has sender elements in it | ||
| and ( | ||
| strings.icontains(body.current_thread.links[0].href_url.path, | ||
| sender.email.local_part | ||
| ) | ||
| or ( | ||
| strings.icontains(body.current_thread.links[0].href_url.path, | ||
| sender.email.domain.sld | ||
| ) | ||
| and not strings.icontains(body.current_thread.links[0].href_url.path, | ||
| 'registration' | ||
| ) | ||
| ) | ||
| ) | ||
| attack_types: | ||
| - "Credential Phishing" | ||
| - "BEC/Fraud" | ||
| tactics_and_techniques: | ||
| - "Social engineering" | ||
| - "Evasion" | ||
| detection_methods: | ||
| - "URL analysis" | ||
| - "Sender analysis" | ||
| id: "4f1b23f7-65e9-580c-bde4-b7f2b780af01" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.