Repository navigation
[BUGFIX] EntropySpam: catch mixed-case salad with short consonant runs - #81
Merged
Merged
Conversation
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>
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.
Problem
Two contact-form submissions on wappler.systems (14.11.2026) passed
EntropySpamwith the currentrelease/v14:lCRRyywrOPYgKTeXYAzGylwTehoSoWoWIJucUfHbOHPGFMPUjyeEejiAlzedeysqZbfoIBaUjxDSNPmphwUyRandom draws from both cases get a vowel (
yincluded) every few characters, so the syllable gate (maximumConsonantRun5) waves them through. The one token that is caught made up 21 % of the characters; e-mail, phone number and topic diluted it belowgibberishShare(25 %).Change
New option
caseFlipsWithoutSyllableGate(default 4): a letter-only token with at least this many lower-to-upper flips counts as gibberish without the consonant-run gate.Threshold chosen by measurement (uniform random tokens, 15–25 letters, n = 5000; 40 CamelCase / gender-inclusive names):
iPhoneProMax,WhatsAppBusinessApi,BürgerInnenServiceCenter, …)hunspell de_DE false-positive rate unchanged at 0.15 % (
Build/Scripts/measure-entropy-spam-false-positives.php).Tests
SpamCorpus::botTokens(), the full 14.11. submission as its own test.humanSubmissions()to pin the threshold.raisingTheConsonantRunThresholdLetsGibberishThroughdisables the new bypass so it keeps testing the consonant run (its sample has six flips).v13 port: separate PR against
release/v13.🤖 Generated with Claude Code