Skip to content

[BUGFIX] EntropySpam: catch mixed-case salad with short consonant runs (v13) - #82

Merged
svewap merged 1 commit into
release/v13from
bugfix/entropyspam-caseflip-syllable-gate-v13
Nov 15, 2026
Merged

svewap merged 1 commit into
release/v13from
bugfix/entropyspam-caseflip-syllable-gate-v13

Conversation

@svewap

@svewap svewap commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Port of #81 to release/v13. Validator change identical; v13 keeps its cases in EntropySpamValidatorTest instead of SpamCorpus, so the same samples and the adjusted consonant-run test live there.

Unit tests: EntropySpam 58/58 green locally. The 4 errors in ProcessFileListActionsEventListenerTest occur on the unmodified branch too (local vendor).

🤖 Generated with Claude Code

Random tokens drawn from both cases get a vowel ("y" included) every
few characters, so their longest consonant run stays at four or five
and the syllable gate let them through. Two contact-form submissions
of 11/2026 ("lCRRyywrOPYgKTeXYAzGy", "lwTehoSoWoWIJucUfHbOHPGF") passed
this way; the plausible e-mail, phone number and topic then kept the
share of the one other suspicious token below gibberishShare.

Tokens with at least caseFlipsWithoutSyllableGate (default 4)
lower-to-upper flips now count as gibberish without the consonant-run
gate. Three would also flag four-part names like iPhoneProMax,
WhatsAppBusinessApi or BürgerInnenServiceCenter; four flags none of 40
CamelCase and gender-inclusive names checked. Detection of uniform
random 15-25-letter tokens rises from 72 % to 93 %; false positives
against hunspell de_DE stay at 0.15 %.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@svewap
svewap merged commit 785cde6 into release/v13 Nov 15, 2026
@svewap
svewap deleted the bugfix/entropyspam-caseflip-syllable-gate-v13 branch November 15, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant