Skip to content

Update whitespace stuffing regex and generic document sharing thread exclusion#4556

Open
IndiaAce wants to merge 1 commit into
sublime-security:mainfrom
IndiaAce:india.fn.ESC-13584.update_whitespace_stuffing_thread_exclusion
Open

Update whitespace stuffing regex and generic document sharing thread exclusion#4556
IndiaAce wants to merge 1 commit into
sublime-security:mainfrom
IndiaAce:india.fn.ESC-13584.update_whitespace_stuffing_thread_exclusion

Conversation

@IndiaAce
Copy link
Copy Markdown
Member

@IndiaAce IndiaAce commented May 28, 2026

Description

Two updates to improve detection of compromised-account phishing that uses real thread history and whitespace padding:

  1. evasion_excessive_image_padding_cred_theft.yml — Add class-attributed div-br regex pattern to catch Outlook elementToProof whitespace stuffing variant. The existing regex only matches bare <div> or <div style=...> (style as first attribute), missing the common Outlook pattern <div class="elementToProof" style="..."><br></div> repeated 100+ times.

  2. credential_phishing_generic_document_sharing.yml — Add self-sender BCC carve-out to the previous_threads exclusion. Compromised accounts replay real thread history to bypass this check. The carve-out requires all three: length(recipients.to) == 1, length(recipients.cc) == 0, and sender.email.email == recipients.to[0].email.email.

Associated samples

Associated hunts

… account phishing

Add class-attributed div-br pattern to catch Outlook elementToProof whitespace
stuffing variant. Add self-sender BCC carve-out to generic document sharing rule
so compromised accounts replaying real threads aren't blanket-excluded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@IndiaAce IndiaAce requested a review from a team May 28, 2026 13:59
@IndiaAce IndiaAce requested a review from a team as a code owner May 28, 2026 13:59
@github-actions github-actions Bot added hunting-required Hunts needed to validate rule efficacy test-rules:excluded:link_analysis Link analysis in rule, excluding from test rules labels May 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Test Rules Sync - Excluded

This PR contains rules that use ml.link_analysis, which is not supported in the test-rules environment.

The hunting-required label has been applied. These rules will need to be tested through alternative methods.

@github-actions github-actions Bot added the in-test-rules PR is in our testing suite to collect telemetry label May 28, 2026
github-actions Bot added a commit that referenced this pull request May 28, 2026
github-actions Bot added a commit that referenced this pull request May 28, 2026
github-actions Bot added a commit that referenced this pull request May 28, 2026
@github-actions github-actions Bot added test-rules:excluded:manual Manually excluded from test-rules, either by adding this label or removing the in-test-rules label and removed in-test-rules PR is in our testing suite to collect telemetry labels May 28, 2026
github-actions Bot added a commit that referenced this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hunting-required Hunts needed to validate rule efficacy test-rules:excluded:link_analysis Link analysis in rule, excluding from test rules test-rules:excluded:manual Manually excluded from test-rules, either by adding this label or removing the in-test-rules label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant