Skip to content

docs: wiki 08-21 documents injection_surface / _calc_injection_surface as live; removed in #1020 #3020

Closed

Description

@squid-protocol

Summary

docs/wiki/08-21-injection-surface-exposure.md documents Injection Surface Exposure as a
live GitGalaxy metric, complete with its formula, weight table, sigmoid thresholds, and a
full source listing of _calc_injection_surface.

That metric and that function were deleted by #1020 ("Remove AST-dependent Security &
Vulnerability metrics"). Neither exists anywhere in the engine today:

$ grep -rn "_calc_injection_surface\|injection_surface" --include=*.py gitgalaxy/
(no matches)

injection_surface is not in RISK_SCHEMA, there is no risk_injection_surface column, and
nothing computes an injection score.

Why it matters

The doc is not merely stale, it is actively misleading in the one area the repo is most careful
about. It presents as shipped behaviour:

  • a +500.0 "Confirmed SQLi Spike" driven by sec_amplified_sql_injection
  • a +500.0 "Confirmed Taint Spike" driven by sec_tainted_injection
  • a "Verified data flow path from input source to dynamic execution sink"

#1020 removed these precisely because an AST-less engine cannot verify a data-flow path.
A reader (or an LLM consuming the wiki) reasonably concludes GitGalaxy performs taint-verified
SQLi detection that it does not perform. README's own framing -- structural signatures, not a
definitive SAST scanner -- is contradicted by this page.

Proposed fix

Rewrite the page as a historical record: state plainly that the metric was removed in #1020,
why (no data-flow analysis, no CFG, so co-occurring regexes cannot prove exploitability), and
point at what does still exist and what it honestly means -- the sec_* observer counts now
persisted to file_data by #3017. Keep the formula only as an explicit "removed, for the
record" appendix so the reasoning survives, rather than deleting the page and losing the history.

Related: #3018 (the threat_sql_injection name makes the same overclaim in the schema) and
#3019 (db_hooks, the sensor underneath both).

Activity

  1. added
    documentation
    on Sep 14, 2026
  2. added a commit that references this issue on Sep 14, 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

    documentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions