Skip to content

integrity/brand-impersonation: cue-bearing decoy controls spend the page window budget, and a control without a cue word is served last #1459

Closed

Description

@nc9

Found in the review of #1455. The page has 20,000 attribute windows to spend (half in order, half shared), and about 8 MB of cue-bearing decoy controls, under the 10 MB document cap, spend all of it. The control is then counted in controlsUnread and the info note is emitted, so nothing is silent, but a real control later in the page is not read past its first window.

A control whose attribute text has no sign-in or brand word as written (an obfuscated spelling the raw test misses) is served after the cue-bearing decoys, so the same decoys starve it first.

Acceptance Criteria

  • Every control keeps a floor of one or two windows past its first, outside the page budget, so no number of earlier controls can leave a later one with only its first window
  • A control whose raw text has no cue word is not served behind all cue-bearing controls: it gets the floor and a share of the budget
  • The floor is bounded (a page of 100,000 tiny controls costs no more than today)
  • A test with about 8 MB of cue-bearing decoys before a real padded control finds the real control, and another with an obfuscated real control after the decoys does too

Activity

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

    @nc9
    ContributorAuthor

    Shipped in v0.0.154 (983a006e, fa89ef49) and checked against main at v0.0.158: every acceptance criterion is met. Every control keeps a floor of 2 windows outside the page budgets, controls with no cue word as written are served first, and the floor is bounded (100,000 tiny controls before a real padded control: found in about 0.6 s). About 8.5 MB of cue-bearing decoys before, after or on both sides of a padded control, a fullwidth-obfuscated control or a zero-width-obfuscated control still find the real one in 0.7 to 1.8 s with the default rule budget, and the four decoy tests pass. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.154

    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: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions