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 }}
integrity/brand-impersonation: one attribute full of repeated sign-in text spends the per-attribute window cap before the brand phrase is read #1458
Found in the review of #1455. Brand-impersonation reads a long attribute label in overlapping windows, at most 40 cue-bearing windows per attribute (its first ones and its last). The cap counts windows that hold any sign-in cue, brand or not, so one attribute can fill it with auth-only text.
Repro (synthetic)
One 16 KB aria-label on a link to another host: about 7,000 characters of repeated sign in, then real-character padding, then Sign in with Google. The 40-window cap is spent on the repeated sign in windows, the window that holds the Google phrase is not read, and the check is an info note with controlsUnread: 1 instead of a finding. The #1454 version of the change found it.
Acceptance Criteria
The repro above is found as Google brand impersonation
When an attribute has more cue windows than the cap, windows that hold a brand phrase (a lexicon phrase of any brand, not only the auth cues) are kept before windows that hold only an auth cue
An attribute whose cue windows are cut is still counted in controlsUnread
A test covers the repro and an auth-only attribute that is cut and counted
Shipped in v0.0.154 (the window cap and floor are in 983a006e and fa89ef49, both in that tag) and checked against main at v0.0.158: every acceptance criterion is met. A 16 KB label with about 7,000 characters of repeated sign in text, then padding, then Sign in with Google is found in aria-label and title; windows holding a brand word are kept ahead of auth-only windows when an attribute is over the 40-window cap; a cut attribute is counted in controlsUnread (a 16 KB auth-only label gives scanTruncated with one unread control); and the evasions and budget tests pass. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.154
Activity
fix(integrity): window cap prefers brand windows, floor of windows pe…
fix(integrity): window cap prefers brand windows, floor of windows pe…
fix(integrity): window cap prefers brand windows, floor of windows pe…
nc9 commentedon Nov 1, 2026
Shipped in v0.0.154 (the window cap and floor are in
983a006eandfa89ef49, both in that tag) and checked against main at v0.0.158: every acceptance criterion is met. A 16 KB label with about 7,000 characters of repeatedsign intext, then padding, thenSign in with Googleis found inaria-labelandtitle; windows holding a brand word are kept ahead of auth-only windows when an attribute is over the 40-window cap; a cut attribute is counted incontrolsUnread(a 16 KB auth-only label givesscanTruncatedwith one unread control); and the evasions and budget tests pass. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.154nik