-
Notifications
You must be signed in to change notification settings - Fork 79
Create monday_infra_abuse.yml #2729
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
peterdj45
wants to merge
13
commits into
sublime-security:main
Choose a base branch
from
peterdj45:patch-12
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
70e2cf0
Create monday_infra_abuse.yml
peterdj45 af107e7
Auto add rule ID
4040432
Update monday_infra_abuse.yml
peterdj45 49dd2d7
Merge branch 'main' into patch-12
peterdj45 9165389
Update monday_infra_abuse.yml
peterdj45 92a010b
Auto add rule ID
4a9e003
Update monday_infra_abuse.yml
peterdj45 f873f43
Update monday_infra_abuse.yml
peterdj45 b4e2e83
Merge branch 'main' into patch-12
peterdj45 52f895e
Update monday_infra_abuse.yml
zoomequipd 3cc1731
rewrite to use beta functions
zoomequipd aacd6a4
Merge branch 'main' into patch-12
IndiaAce c7f250e
Update detection-rules/monday_infra_abuse.yml
peterdj45 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
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,131 @@ | ||
| name: "Monday.com link infrastructure abuse" | ||
| description: "Detects unauthorized use of Monday.com tracking links in messages, attachments, or QR codes from unusual senders who lack proper authentication. Excludes legitimate replies and messages from trusted domains with valid DMARC." | ||
| type: "rule" | ||
| severity: "high" | ||
| source: | | ||
| type.inbound | ||
| and ( | ||
| ( | ||
| length(body.links) < 15 | ||
| and any(body.links, .href_url.domain.domain == "trackingservice.monday.com") | ||
| ) | ||
| or ( | ||
| length(attachments) <= 3 | ||
| and ( | ||
| any(attachments, | ||
| (.file_type in $file_types_images or .file_type == "pdf") | ||
| and any(file.explode(.), | ||
| .scan.qr.type is not null | ||
| and .scan.qr.url.domain.domain == "trackingservice.monday.com" | ||
| // exclude images taken with mobile cameras and screenshots from android | ||
| and not any(.scan.exiftool.fields, | ||
| .key == "Model" | ||
| or ( | ||
| .key == "Software" | ||
| and strings.starts_with(.value, "Android") | ||
| ) | ||
| ) | ||
| // exclude images taken with mobile cameras and screenshots from Apple | ||
| and not any(.scan.exiftool.fields, | ||
| .key == "DeviceManufacturer" | ||
| and .value == "Apple Computer Inc." | ||
| ) | ||
| ) | ||
| ) | ||
| or ( | ||
| length(attachments) == 0 | ||
| and any(file.explode(beta.message_screenshot()), | ||
| .scan.exiftool.image_height < 2000 | ||
| and .scan.exiftool.image_width < 2000 | ||
| and .scan.qr.type is not null | ||
| and .scan.qr.url.domain.domain == "trackingservice.monday.com" | ||
| ) | ||
| ) | ||
| ) | ||
| ) | ||
| or ( | ||
| length(attachments) <= 3 | ||
| and ( | ||
| any(attachments, | ||
| ( | ||
| .file_type in ("pdf") | ||
| or .file_extension in ("pdf", "eml") | ||
| or .file_extension in $file_extensions_macros | ||
| or .content_type in ("message/rfc822") | ||
| ) | ||
| and any(file.explode(.), | ||
| any(.scan.url.urls, | ||
| .domain.domain == "trackingservice.monday.com" | ||
| ) | ||
| ) | ||
| ) | ||
| ) | ||
| ) | ||
| ) | ||
| and not ( | ||
| any(headers.domains, strings.ends_with(.domain, "mail.monday.com")) | ||
| or ( | ||
| headers.auth_summary.dmarc.details.from.root_domain == "monday.com" | ||
| and headers.auth_summary.spf.pass | ||
| and headers.auth_summary.dmarc.pass | ||
| ) | ||
| ) | ||
| // negating legit replies | ||
| and not ( | ||
| ( | ||
| strings.istarts_with(subject.subject, "RE:") | ||
| or strings.istarts_with(subject.subject, "FW:") | ||
| or strings.istarts_with(subject.subject, "FWD:") | ||
| or strings.istarts_with(subject.subject, "Automatic reply:") | ||
| ) | ||
| and ( | ||
| length(headers.references) > 0 | ||
| and any(headers.hops, any(.fields, strings.ilike(.name, "In-Reply-To"))) | ||
| ) | ||
| ) | ||
| // negate graymail and newsletters with a benign NLU intent | ||
| and not ( | ||
| any(ml.nlu_classifier(body.current_thread.text).topics, | ||
| .name in~ ( | ||
| "Advertising and Promotions", | ||
| "B2B Cold Outreach", | ||
| "Newsletters and Digests", | ||
| "Events and Webinars" | ||
| ) | ||
| and .confidence == "high" | ||
| ) | ||
| and any(ml.nlu_classifier(body.current_thread.text).intents, | ||
| .name == "benign" and .confidence == "high" | ||
| ) | ||
| ) | ||
|
|
||
| // negate highly trusted sender domains unless they fail DMARC authentication | ||
| and ( | ||
| ( | ||
| ( | ||
| ( | ||
| sender.email.domain.root_domain in $high_trust_sender_root_domains | ||
| and not headers.auth_summary.dmarc.pass | ||
| ) | ||
| or sender.email.domain.root_domain not in $high_trust_sender_root_domains | ||
| ) | ||
| and profile.by_sender().prevalence in ("new", "outlier", "rare") | ||
| ) | ||
| // salesforce has been abused to send phishing campaigns leveraging monday.com infrastructure abuse | ||
| or sender.email.domain.root_domain == "salesforce.com" | ||
| ) | ||
|
|
||
| attack_types: | ||
| - "Credential Phishing" | ||
| tactics_and_techniques: | ||
| - "Evasion" | ||
| - "Social engineering" | ||
| - "QR code" | ||
| detection_methods: | ||
| - "Content analysis" | ||
| - "File analysis" | ||
| - "Header analysis" | ||
| - "QR code analysis" | ||
| - "Sender analysis" | ||
| - "URL analysis" | ||
| id: "a346e3b1-603e-5ef0-8547-d40ba4282352" | ||
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.