Skip to content
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

TEST - Update suspicious_request_for_quote_or_purchase.yml #921

Closed
wants to merge 1 commit into from
Closed
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
52 changes: 43 additions & 9 deletions detection-rules/suspicious_request_for_quote_or_purchase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,27 @@ type: "rule"
severity: "medium"
source: |
type.inbound
and 1 of (
(
(length(recipients.to) == 0 or all(recipients.to, .display_name == "Undisclosed recipients"))
and length(recipients.cc) == 0
and length(recipients.bcc) == 0
),
and (
(
length(recipients.to) == 0
or all(recipients.to,
.display_name == "Undisclosed recipients"
and length(recipients.cc) == 0
and length(recipients.bcc) == 0
)
)
or (
sender.email.domain.root_domain in $free_email_providers
and any(headers.reply_to, .email.email != sender.email.email)
and any(headers.reply_to, .email.email not in $recipient_emails)
)
or (
profile.by_sender().prevalence in ("new", "outlier")
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_false_positives
)
)
)
and 2 of (
(
Expand All @@ -29,9 +39,21 @@ source: |
'(sign(ed?)|view).{0,10}(purchase order)|Request for a Quot(e|ation)'
)
),
(regex.icontains(coalesce(body.html.display_text, body.plain.raw), '(please|kindly).{0,30}quote')),
(regex.icontains(subject.subject, '(request for (purchase|quot(e|ation))|\bRFQ\b|\bRFP\b)')),
(any(attachments, regex.icontains(.file_name, "(purchase.?order|Quot(e|ation))"))),
(
regex.icontains(coalesce(body.html.display_text, body.plain.raw),
'(please|kindly).{0,30}quote'
)
),
(
regex.icontains(subject.subject,
'(request for (purchase|quot(e|ation))|\bRFQ\b|\bRFP\b)'
)
),
(
any(attachments,
regex.icontains(.file_name, "(purchase.?order|Quot(e|ation))")
)
),
(
any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities,
.name == "request"
Expand All @@ -46,6 +68,18 @@ source: |
)
)
)
// negate highly trusted sender domains unless they fail DMARC authentication
and (
(
sender.email.domain.root_domain in $high_trust_sender_root_domains
and (
any(distinct(headers.hops, .authentication_results.dmarc is not null),
strings.ilike(.authentication_results.dmarc, "*fail")
)
)
)
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
)
attack_types:
- "BEC/Fraud"
tactics_and_techniques:
Expand Down
Loading