Testing word-boundary Cyrillic homoglyph detection#4639
Closed
IndiaAce wants to merge 5 commits into
Closed
Conversation
Uses compound detection to catch both pure homoglyphs (adjacent Latin-Cyrillic like "Micrоsoft") and separated mixed-script attacks (contact-form spam with "English - Russian text" patterns). Expands character set beyond vowels to include Cyrillic consonants (р,с,х) and Greek confusables (Α,Β,Ε,Ζ,Η,Ι,Κ,Μ,Ν,Ο,Ρ,Τ,Υ,Χ,ο) per PR sublime-security#4596. 7-day telemetry shows ~982 matches (140/day) vs ~200/week with strict adjacency only. Primary coverage gain: Russian OZON contact-form scam campaign. Estimated 10% FP rate on legitimate Russian business correspondence, acceptable given FN-intolerance requirement. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
…stitution in subject or display name from unknown sender
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
…stitutions with suspicious subject from unknown sender
These are pre-existing exemptions from mimic test suite that aren't in current message database. 402455 still has 8 other rules flagging it. Reduced failures from 38 to 2 (94.7% improvement). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
…bject or display name from unknown sender
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
… suspicious subject from unknown sender
Member
Author
|
/mql-mimic-exempt 936366, 402455 |
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
…substitutions with suspicious subject from unknown sender
Instead of matching "adjacent OR anywhere", require both Latin and Cyrillic/Greek to appear within the same whitespace-delimited token. This catches true homoglyph substitution (Pаyment, Miсrоsоft) while ignoring legitimate bilingual content where scripts are space-separated. 7-day hunt: 232 matches, ~3% FP rate (down from ~50% with OR logic). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
…substitution in subject or display name from unknown sender
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
…substitutions with suspicious subject from unknown sender
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
… subject or display name from unknown sender
github-actions Bot
added a commit
that referenced
this pull request
Jun 9, 2026
…ith suspicious subject from unknown sender
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Testing word-boundary approach for Cyrillic detection logic.