Skip to content

Siblings of #4547: typosquat radar tests non-package names (project paths, stdlib modules, stages, classes) #4982

Closed

Description

@squid-protocol

Siblings of #4547. The class is typosquat radar tests names that are not registry packages. PR #4981 fixes C/C++/POSIX/Win32/GL headers, Rust in-crate modules, -/_ folding and parse-artifact tokens. The members below still fire in the golden alerts. #4547's acceptance also says "never intra-project paths", so it stays open until these are fixed.

  • Intra-project relative paths: javascript/threejs math/Vector2.js / Vector4.js ~ Vector3.js (the prefix is stripped, so these read as packages)
  • Ada child units of the project's own hierarchy: ada/alire Alire/Roots ~ Alire/Root (needs the project's unit set)
  • Dockerfile build-stage names: dockerfile/moby COPY --from=registry ~ registry2 (--from=<stage> names an AS stage, not an image)
  • Java/Groovy class names: groovy/gradle InputFiles ~ InputFile
  • Python/MicroPython stdlib modules: python/numpy builtins ~ builtin; embedded_python ubinascii ~ binascii
  • Mainframe dataset/include names: jcl DSNC10/SDSNLOD2 ~ SDSNLOAD; pli S001A* / S001V0

Most of these share one mechanism: before the radar compares names, decide whether the token resolves to the project itself or to the language's stdlib. Same-mechanism boxes go in one PR.

Siblings: #4547

🤖 Generated with Claude Code

Activity

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

    @squid-protocol
    OwnerAuthor

    PR #5027 (reviewed by churn) fixes four boxes: relative paths, Ada child units, Dockerfile stages, Python/MicroPython stdlib. The Java/Groovy class-name box and the JCL/PLI dataset box stay open. The worker's class sweep found one more member, added here:

  4. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Review of #5080: every box on this issue is fixed there. The worker's class sweep found more members with the same mechanism, a stdlib token tested as a registry package. They are left open because no golden alert shows them firing yet:

    • Ruby stdlib
    • PHP built-in extensions
    • Perl core modules
    • Lua stdlib
    • Dart dart: libraries
    • Swift system frameworks
    • C# System.*
    • Haskell base / boot packages
    • java.* / javax.* for JVM importers

    Each one is a frozen set in stdlib_modules.py plus tests, following the pattern in #5080.

  5. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    All six boxes are ticked and PR #5080 (the last of them) is merged. Remaining stdlib families (Ruby, PHP, Perl, Lua, Dart, Swift, C#, Haskell) have no evidence in the golden alerts. #4547 stays open on its own acceptance.

  6. 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