You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
integrity detectors: complete the confusables table (UTS#39 skeleton) and digit swaps #1410
Follow-up to #784 (PR #1399). The look-alike table that folds a label to Latin before matching sign in with google covers NFKC forms, accents, small capitals and the common Cyrillic, Greek and Armenian letters. Not folded:
U+03F2 Greek lunate sigma (c), U+0269 (i), Cyrillic п (n) and г (r)
digit swaps: S1gn 1n w1th G00gle
U+2800 braille blank as a splice
A complete answer is the UTS fix(security): harden untrusted CLI inputs #39 confusables skeleton; the rules read ASCII cues only, so no false positive was seen on Russian or Spanish pages ("Войти через Google", "Iniciar sesión con Google").
Acceptance Criteria
The letters above fold to their Latin look-alike and each has a test with the full cue
Digit swaps (1/l/i, 0/o, 5/s, 3/e) match inside a word of the cue without turning an ordinary number into a cue (tests with Sign 1n, and a page with prices and years that does not fire)
Acceptance check against main 7c31d5b (first released in v0.0.160, included in v0.0.161):
#
Criterion
Result
Evidence
1
Letters fold to Latin, each with a full-cue test
PASS
packages/rules/src/integrity/confusables.ts; confusables-1410.test.ts "U+03F2 (c), U+0269 (i), Cyrillic п (n) and г (r), each inside the full cue" and "a braille blank spliced into the cue is removed"
2
Digit swaps match inside a cue word, ordinary numbers do not
PASS
"the leetspeak spellings of the cue" (S1gn 1n w1th G00gle, Sign 1n with Google and others) and "an ordinary number in a word is not a cue: prices, years, versions, codes"
3
Table generated from UTS #39 or the PR states why a hand list is enough
PASS
the table stays a hand list and the reason is stated in PR #1541 (cues are ASCII words, the full skeleton is about six thousand entries mostly for scripts no cue contains), in the header comment of confusables.ts, and on the rule page docs/rules/integrity/brand-impersonation.mdx ("The look-alike table is a hand list, not the whole Unicode UTS #39 skeleton ... a look-alike nobody has listed is a way past the match")
4
Russian, Spanish and German "Google" sign-in links do not fire
PASS
"other scripts: a Google sign-in link on a Russian, Spanish or German page does not fire" (five labels, to an off-brand host and to Google)
Tests run on this main: confusables-1410.test.ts 18 pass, integrity-fold-budget-1410.test.ts 17 pass, 0 fail. The fold is bounded (16,000 characters a label, a page pool) and the docs say a control not folded in full is counted in controlsUnread.
Activity
fix(rules): integrity cue fold completes the confusables (U+03F2, U+0…
fix(rules): integrity digit fold: cue read as written and folded, bou…
fix(rules): integrity digit fold: each control keeps its first 300 ch…
fix(rules): integrity cue fold completes the confusables (U+03F2, U+0…
fix(rules): integrity digit fold: cue read as written and folded, bou…
fix(rules): integrity digit fold: each control keeps its first 300 ch…
nc9 commentedon Nov 4, 2026
Acceptance check against main 7c31d5b (first released in v0.0.160, included in v0.0.161):
packages/rules/src/integrity/confusables.ts;confusables-1410.test.ts"U+03F2 (c), U+0269 (i), Cyrillic п (n) and г (r), each inside the full cue" and "a braille blank spliced into the cue is removed"S1gn 1n w1th G00gle,Sign 1n with Googleand others) and "an ordinary number in a word is not a cue: prices, years, versions, codes"confusables.ts, and on the rule pagedocs/rules/integrity/brand-impersonation.mdx("The look-alike table is a hand list, not the whole Unicode UTS #39 skeleton ... a look-alike nobody has listed is a way past the match")Tests run on this main:
confusables-1410.test.ts18 pass,integrity-fold-budget-1410.test.ts17 pass, 0 fail. The fold is bounded (16,000 characters a label, a page pool) and the docs say a control not folded in full is counted incontrolsUnread.Ticked all four and closing.
nik