Skip to content

Typosquat detector flags standard headers (strings.h~string.h, dirent.h~direct.h, ...) at CRITICAL; 27/27 false on the Doom corpus #4547

Closed

Description

@squid-protocol

Problem

The typosquatting detector flags standard system headers and ordinary identifiers, and logs each hit at CRITICAL. On 14 Doom repos it produced 27 unique hits, all false.

Evidence

  • Headers: strings.hstring.h, dirent.hdirect.h, cstringstring, xinput.hdinput.h, winsock.hwinsock2.h, mmintrin.hemmintrin.h, sys/timeb.hsys/time.h, utime.htime.h, GL/glx.hGL/gl.h, limitsclimits.
  • Rust: math::set_prndindexmath::get_prndindex, SndServerRxSndServerTx.
    The hits go into threat_homoglyphs / repo_data.typosquat_hits. Logic: galaxyscope.py ~L2835-2880.

Acceptance criteria

  • Typosquat checks apply to package/dependency names from manifests (and third-party imports), never to system or standard-library headers (allowlist the C/C++/POSIX/Win32/GL standard headers) or to intra-project paths.
  • The level matches confidence (no CRITICAL without a manifest-level match).
  • A test proves the 27 hits are gone and a real typosquat fixture still fires.

Evidence: /srv/storage_16tb/projects/gitgalaxy/doom-study/ (gitgalaxy_issues.md; scans at engine a8510fc). Found by the Doom source-port study (2026-10-06): https://claude.ai/code/artifact/bc877518-b326-4889-9d15-d99287f4f3fc

🤖 Generated with Claude Code

Activity

  1. added
    bug
    threat: false-positive
    security
    on Oct 6, 2026
  2. squid-protocol commented on Oct 12, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: #4982 (remaining non-package members; PR #4981 covers headers/Rust/folding/artifacts)

  3. added
    scope:infra
    on Oct 16, 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: mediumscope:infrasecuritythreat: false-positive

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions