Skip to content

[BUG/SUPPLY-CHAIN] APERTURE_CONFIG has no "TYPOSQUAT_WHITELIST" key -- the typosquat whitelist is always empty #375

Closed

Description

@squid-protocol

🛑 Problem Statement

Found by the dead key auditor (#325). gitgalaxy/galaxyscope.py:1796:

whitelist = APERTURE_CONFIG.get("TYPOSQUAT_WHITELIST", set())

APERTURE_CONFIG (gitgalaxy/standards/gitgalaxy_config.py) has no "TYPOSQUAT_WHITELIST" key at all -- unlike the other findings in this audit, this one fails in the safe/loud direction: the typosquat detector is always maximally strict rather than silently permissive, so this is a false-positive-rate issue (legitimate similarly-named packages get flagged), not a missed-detection one.

🎯 Objective

Give operators a real way to whitelist known-legitimate package name variants, as the code already assumes exists.

🛠️ Proposed Implementation

Add a "TYPOSQUAT_WHITELIST" entry to APERTURE_CONFIG (empty by default, to preserve today's behavior) so it's a real, documented, extensible config surface rather than a phantom key.

✅ Acceptance Criteria

  • APERTURE_CONFIG["TYPOSQUAT_WHITELIST"] exists and a package name added to it is provably excluded from typosquat flagging.

Activity

  1. added
    bug
    supply-chain
    threat: false-positive
    priority: low
    on Jul 24, 2026
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

    bugpriority: lowsupply-chainthreat: false-positive

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions