Skip to content

Remove AST-dependent Security & Vulnerability metrics (Injection, RCE, Memory) #1020

Closed

Description

@squid-protocol

Remove AST-dependent Security & Vulnerability metrics (Injection, RCE, Memory)

Description

Continuing the cleanup of overreaching semantic heuristics, we need to remove the remaining metrics in the "Security & Vulnerability Lens" (prompt_injection, agentic_rce, injection_surface, obscured_payload, memory_corruption).

Because GitGalaxy is an AST-less engine, it operates entirely without Data Flow Analysis (Taint Tracking) or a Control Flow Graph. This means it is structurally impossible for the engine to prove that untrusted input data actually flows into a sensitive execution context.

Why they are broken

Currently, the engine hallucinates these critical threats by simply checking if two completely disconnected regex signatures fired within the same file:

  • prompt_injection & agentic_rce: Flags a file as an AI exploit surface simply because it contains a regex hit for an LLM API alongside a regex hit for external I/O or system execution. There is zero proof the data flows between them.
  • injection_surface: Claims weaponizable XSS or SQLi exists just because database/DOM regexes and network I/O regexes co-exist in the same block.
  • obscured_payload: Treats standard dynamic metaprogramming (e.g., Python's getattr, JavaScript reflection) as deliberate "Malware Evasion."
  • memory_corruption: Flags standard C/Rust pointer arithmetic and memory allocations as weaponizable exploits.

Action Items

  • Remove prompt_injection, agentic_rce, injection_surface, obscured_payload, and memory_corruption from RISK_SCHEMA and SIGNAL_SCHEMA in gitgalaxy/standards/analysis_lens.py.
  • Remove the corresponding risk calculation logic from gitgalaxy/metrics/signal_processor.py.
  • Strip these categories from the LLM Recorder and UI mappings.
  • Explicitly reframe the engine as a Structural & Topography mapper rather than a definitive SAST vulnerability scanner.

Activity

  1. added 5 commits that reference this issue on Sep 5, 2026
  2. added
    scope:frontier
    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

    scope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions