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
[BUG/DATA-INTEGRITY] record_keeper.py's "has_credentials" SQLite column is always False -- no producer exists #367
bugUnintended behavior or logic failure in the enginedata-integrityIssues relating to RAM state or SQLite database fidelitypriority: highCore feature broken, but workarounds existschemaData schema updates for JSON outputs or SQLite tables
Unlike is_malware (#366, a near-miss rename), there is no producer at all for file_data["has_credentials"] anywhere in gitgalaxy/. The has_credentials INTEGER SQLite column is permanently 0 for every file, even though the engine already has a real hardcoded-secrets signal (sec_hardcoded_secrets, populated by security_lens.py and correlated in galaxyscope.py's Active Hemorrhage step, #348).
Related: #366/#367/#368 -- the same table's other security flag columns.
🎯 Objective
The SQLite has_credentials column should reflect real hardcoded-credential detections.
🛠️ Proposed Implementation
Thread a boolean off the existing sec_hardcoded_secrets equation (e.g. file_data["has_credentials"] = equations.get("sec_hardcoded_secrets", 0) > 0) into file_data before record_keeper.py reads it, or clarify if has_credentials was meant to signal something narrower (e.g. only exposed, unredacted credentials) that genuinely doesn't exist yet.
✅ Acceptance Criteria
A file with a detected hardcoded secret produces has_credentials = 1 in the SQLite output, proven by a real test.
Regression found via population-scale validation (#1144)
This was closed via #381 with a passing unit test, but a full v2.4.7 run against 718 real repos
(1,201,836 files) shows has_credentials is still 100% zero across every file, despite real
underlying signal existing: risk_secrets_risk has genuine nonzero values for 437 files in the
same dataset.
Root cause appears to be that #381's fix reads file_data.get("equations", {}).get("sec_hardcoded_secrets", 0)
in record_keeper.py, and the merged #381 test validated that arithmetic by handing the function
a hand-built equations dict directly -- it never proved the real pipeline populates file_data["equations"] the same way by the time record_keeper.py reads it. equations does
get set in multiple places in galaxyscope.py (lines ~434, ~1100, ~1913), so this needs a real
end-to-end trace of whether that dict (and the sec_hardcoded_secrets key specifically) survives
intact from wherever it's computed to wherever record_keeper.py reads it for a given file --
not just re-verified with another synthetic mock.
Reopening. See #1144 for the full validation methodology and the other
findings from the same run.
bugUnintended behavior or logic failure in the enginedata-integrityIssues relating to RAM state or SQLite database fidelitypriority: highCore feature broken, but workarounds existschemaData schema updates for JSON outputs or SQLite tables
Activity
Fix record_keeper.py's four dead security-flag SQLite columns (#366-3…
squid-protocol commentedon Jul 24, 2026
Fixed in #381 (merged).
squid-protocol commentedon Aug 7, 2026
Regression found via population-scale validation (#1144)
This was closed via #381 with a passing unit test, but a full v2.4.7 run against 718 real repos
(1,201,836 files) shows
has_credentialsis still 100% zero across every file, despite realunderlying signal existing:
risk_secrets_riskhas genuine nonzero values for 437 files in thesame dataset.
Root cause appears to be that #381's fix reads
file_data.get("equations", {}).get("sec_hardcoded_secrets", 0)in
record_keeper.py, and the merged #381 test validated that arithmetic by handing the functiona hand-built
equationsdict directly -- it never proved the real pipeline populatesfile_data["equations"]the same way by the timerecord_keeper.pyreads it.equationsdoesget set in multiple places in
galaxyscope.py(lines ~434, ~1100, ~1913), so this needs a realend-to-end trace of whether that dict (and the
sec_hardcoded_secretskey specifically) survivesintact from wherever it's computed to wherever
record_keeper.pyreads it for a given file --not just re-verified with another synthetic mock.
Reopening. See #1144 for the full validation methodology and the other
findings from the same run.
fix(#368): make scan_binary's findings reach the binary_anomaly column (