Skip to content

integrity detectors: complete the confusables table (UTS#39 skeleton) and digit swaps #1410

Closed

Description

@nc9

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)
  • The table is generated from the UTS fix(security): harden untrusted CLI inputs #39 data or the PR states why a hand list is enough
  • Russian, Spanish and German pages with a "Google" sign-in link do not fire

nik

Activity

  1. added
    size: S
    rules
    security
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. nc9 commented on Nov 4, 2026

    @nc9
    ContributorAuthor

    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.

    Ticked all four and closing.

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    rulessecuritysize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions