You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: wiki 08-21 documents injection_surface / _calc_injection_surface as live; removed in #1020 #3020
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
fix(#3018,#3019,#3020): stop overclaiming SQL injection from co-locat…