Skip to content

Update abuse_quickbooks_suspicious_comments.yml #2852

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

Merged
merged 2 commits into from
Jul 2, 2025
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
34 changes: 23 additions & 11 deletions detection-rules/abuse_quickbooks_suspicious_comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,36 @@ source: |

// Legitimate Intuit sending infratructure
and sender.email.email == "[email protected]"
and headers.auth_summary.spf.pass
and headers.auth_summary.dmarc.pass
and strings.ends_with(headers.auth_summary.spf.details.designator,
'.intuit.com'
)

// remove payment confirmation messages
and not strings.starts_with(subject.subject, 'Payment confirmation:')

and body.html.raw is not null
// Comments contains suspicious phrases
and (
// three different templates where commonly observed, on regex for each template
// this could optionally be converted into a "2 of" logic against current_thread if FN are discovered
regex.icontains(body.html.raw, '<div class="condensed-email-message-section" style="font-size: 1em; line-height: 1.5em; text-align: center; margin: 2.25em 0;">\s*<span id="condensedEmailMessageSectionContentWebPlayer">.*\b(?:your subscription renewal|couldn.?t be processed|trouble renewing subscription|update your details|just update your|continue your subscription|prefer to use EFT|change payment method|verify your account|suspended due to issue|payment declined notice|account needs verification|confirm your billing|immediate action required|failed payment notification|billing information update|service interruption warning|unable to process payment|subscription payment failed|action needed now|update banking information|subscription expiration notice|payment method change)\b.*</span></div>')
or regex.icontains(body.html.raw, '<div id="emailContainer" class="emailContainer" style="font-size: 18px; line-height: 1.5; text-align: left; padding-left: 20px; margin-left: 20px;">.*\b(?:your subscription renewal|couldn.?t be processed|trouble renewing subscription|update your details|just update your|continue your subscription|prefer to use EFT|change payment method|verify your account|suspended due to issue|payment declined notice|account needs verification|confirm your billing|immediate action required|failed payment notification|billing information update|service interruption warning|unable to process payment|subscription payment failed|action needed now|update banking information|subscription expiration notice|payment method change)\b.*</div>')
or regex.icontains(body.html.raw, '<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin-bottom:10px; font-family:Arial, Helvetica, sans-serif; font-size:12px\">(?:\s*<tbody>)?\s*<tr>\s*<td>\s*.*\b(?:your subscription renewal|couldn.?t be processed|trouble renewing subscription|update your details|just update your|continue your subscription|prefer to use EFT|change payment method|verify your account|suspended due to issue|payment declined notice|account needs verification|confirm your billing|immediate action required|failed payment notification|billing information update|service interruption warning|unable to process payment|subscription payment failed|action needed now|update banking information|subscription expiration notice|payment method change)\b.*</td>')
)
// several different templates where commonly observed, run regex for each template
any([
html.xpath(body.html,
'//span[@id="condensedEmailMessageSectionContentWebPlayer"]'
).nodes,
html.xpath(body.html, '//div[@id="emailContainer"]').nodes,
html.xpath(body.html, '//table[@width="700"][1]//tr/td').nodes,
html.xpath(body.html, '//tr[@class="email-header"]').nodes,
html.xpath(body.html, '//tr[@class="email-center"]').nodes,
html.xpath(body.html, '//div[@class="mlr22"]').nodes,
html.xpath(body.html, '//td[@class="itemDesc"]//div').nodes,
html.xpath(body.html, '//td[@class="shippingContent"]//div').nodes
],
any(.,
regex.icontains(.inner_text,
// subscription, renewals, verificaitons, etc
'(?:your subscription renewal|couldn.?t be processed|trouble renewing subscription|update your details|just update your|continue your subscription|prefer to use EFT|change payment method|verify your account|suspended due to issue|payment declined notice|account needs verification|confirm your billing|immediate action required|failed payment notification|billing information update|service interruption warning|unable to process payment|subscription payment failed|action needed now|update banking information|subscription expiration notice|payment method change)',
// callback wording
'recognize this seller?|For more info.{0,25}Call|To cancel.{0,25}Call|did not authorize',
)
)
)
)
attack_types:
- "Callback Phishing"
- "Credential Phishing"
Expand Down
Loading