Skip to content

TypeScript/JavaScript rce_funnel: child_process has no left boundary, my_child_process.spawn("python") counts #9457

Backlog

Description

@squid-protocol

Found by the SOP-002 gap-cell decoy suite (protocol SOP-002-v1, epic #8863).

Construct: the rce_funnel rule in typescript.py and javascript.py, child_process\.(?:spawn|exec|execSync)\s*\(\s*['"](?:python|bash|sh|bun|node)\b, has no left word boundary before child_process, so a different object whose name ends in child_process counts.

Snippets: my_child_process.spawn("python"), xchild_process.exec("bash")
Expected: 0 rce_funnel hits. Actual: 51 each (1 rule hit plus the 50-weight spatial bonus in detector.py).

The positive control child_process.spawn("python", ["train.py"]); fires as it should.

Rules: gitgalaxy/standards/language_standards/languages/typescript.py and javascript.py, rce_funnel.

Locked in tests/decoys/test_decoy_typescript.py and tests/decoys/test_decoy_javascript.py as xfail(strict=True).

Activity

  1. added
    bug
    on Nov 26, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions