Skip to content

security: fix in-code text misdescribing taint, centrality, extension mismatch, --paranoid (Part of #8435) - #8616

Merged
squid-shepherd[bot] merged 6 commits into
mainfrom
churn/8435-20261118T1624Z
Nov 18, 2026
Merged

squid-shepherd[bot] merged 6 commits into
mainfrom
churn/8435-20261118T1624Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Part of #8435 (security epic #8427). Docstring, description and log-line edits plus deleting the dead ThreatPolicy "paranoid" profile. No behaviour change.

Class / Sibling gaps

Class: in-code text (docstrings, descriptions, log/help lines, dead config) that misdescribes a security feature (taint, centrality, extension mismatch, --paranoid).

Member Status
SecurityLens class docstring (taint + centrality) fixed: taint removed (#3101), lens reads no centrality
SecurityLens.scan_content docstring fixed
SIGNAL_DESCRIPTIONS["sec_extension_mismatch"] fixed: set by the disguised-executable check (#4126)
SIGNAL_DESCRIPTIONS["sec_tainted_injection"] fixed: reason (#3101) stated
--paranoid log line ("ZERO-TRUST MODE ... maximum sensitivity") and argparse help ("flag more potential threats") NOT fixed here, see Remaining slices
standards/README.md "tighten the ThreatPolicy thresholds" fixed (sibling)
ThreatPolicy.PROFILES["paranoid"] deleted (baseline profile kept; class unused elsewhere)

Remaining slices: gitgalaxy/galaxyscope.py (1 file): reword the --paranoid log line (~4631) and help text (~4315) to say it changes secrets-exposure scoring only (paranoid_threshold/paranoid_slope, and signal_processor.py lifts the reflection cap). Blocked first by: any diff to galaxyscope.py makes CodeQL's new-alert gate report 5 py/clear-text-logging-sensitive-data results at galaxyscope.py:1871, 1881, 1891, 1927, 1935 (existing logger.critical(... {file_data.get('path')}) calls, absent from main's analysis; a reworded log line did not change it). Those 5 need handling in the same slice.

Sibling gaps (not fixed here; found by grepping "taint", "centrality", "zero-trust"):

  • galaxyscope.py ~1065 and ~1082 comments: say sec_tainted_injection is corroborated by detector and that position data fed an "internal taint check"; taint tracker no longer exists. Comment-only, wording needs checking against detector.py first.
  • galaxyscope.py ~1950 docstring: "a file's centrality influences its logic bomb threat weighting": verify against the XGBoost feature set before editing.
  • galaxyscope.py ~1625 "Zero-Trust execution validation" (SecurityLens construction), ~1503, ~2041 "Phase 5: Zero-Trust Guardrails", --ai-guardrails help (~4340), dev_agent_firewall.py:12, detector.py:5778: "zero-trust" used as a label for regex-signature sensors; marketing wording, owner call.
  • detector.py ~5797 comment lists "Taint Tracking (RCE Weaponization)" as relocated ([FEATURE/CORE-ENGINE] Extract a shared, scope-aware spatial correlation primitive and make threat_locations the persisted ledger #346); core/spatial_correlation.py:19 already says it is not taint tracking: check that these agree.
  • cobol_refractor_controller.py "Global Taint Tracking Target" and "Zero-Trust JCL": COBOL variable trace in a separate tool, not audited here.
  • docs/security_claims_inventory.md still lists these members as wrong: doc follow-up under docs: security claims inventory (112 claims vs code and tests) #8426.

Gates

  • ruff format --check on the 3 changed .py files: clean.
  • tests/tools/audit_check.py: all clear (ruff, mypy, dead-key, doc-refs, signal-coverage).
  • Targeted pytest (security_lens / description / analysis_lens selection): 5 passed. No test or fixture references SIGNAL_DESCRIPTIONS or ThreatPolicy; no golden bless run, none expected to move (strings only, one unused dict entry removed).
  • Not run: pr_gates --ratchets (left to CI).

3 hand-written files: security_lens.py, analysis_lens.py, standards/README.md.

🤖 Generated with Claude Code

… mismatch, --paranoid; drop dead ThreatPolicy paranoid profile (Part of #8435)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 18, 2026 16:27
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 16:31
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 18, 2026 16:37
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8616 @ 3f31660: 16 failed check(s)

== Analyze (python) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347569555/job/134954032275
repro: no local equivalent; read the check page
errors:
expect-error: false
##[error]Process completed with exit code 1.
log tail:
CODEQL_ACTION_SARIF_RESULTS_OUTPUT_DIR: codeql-results
CODEQL_UPLOAD_SARIF__LANGUAGE_PYTHON__CODEQL: CODEQL_UPLOAD_SARIF__LANGUAGE_PYTHON__CODEQL
CODEQL_ACTION_ANALYZE_DID_COMPLETE_SUCCESSFULLY: true
GH_TOKEN: ***
PR: 8616
REPO: squid-protocol/gitgalaxy
##[endgroup]
### CodeQL: 5 new result(s), 5 blocking (fails this PR)
PR analysis 481 results, main's 476. New means not on main, in a file this PR changed.
- py/clear-text-logging-sensitive-data: 5
| Level | Rule | Where |
|---|---|---|
| error | py/clear-text-logging-sensitive-data | gitgalaxy/galaxyscope.py:1871 |
| error | py/clear-text-logging-sensitive-data | gitgalaxy/galaxyscope.py:1881 |
| error | py/clear-text-logging-sensitive-data | gitgalaxy/galaxyscope.py:1891 |
| error | py/clear-text-logging-sensitive-data | gitgalaxy/galaxyscope.py:1927 |
| error | py/clear-text-logging-sensitive-data | gitgalaxy/galaxyscope.py:1935 |
##[error]Process completed with exit code 1.
Post job cleanup.
Post job cleanup.
Existing job run UUID is e8284faa-94cb-4d67-b576-d482ce96f5ed.
CodeQL job status was success.
Sending status report for init-post step.
Status report sent for init-post step.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/4dda0843-afb1-4046-86ff-65356e528ac0' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== crucible (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543761/job/134954032352
repro: tests/tools/box/heavy-run.sh python -m pytest -q tests/cics_crucible && tests/tools/box/heavy-run.sh python tests/tools/cics_crucible.py --ci --out /tmp/gitgalaxy-scratch/ci-digest/cics
log tail:
(log unavailable: gh: HTTP 404)

== db2 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347544196/job/134954029199
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== db2 ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543891/job/134954033298
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== full-suite (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543926/job/134954034303
repro: python -m pytest -q tests
log tail:
(log unavailable: gh: HTTP 404)

== full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543926/job/134954033278
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543721/job/134954043944
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth part ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543721/job/134954042034
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth-warm (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543721/job/134954040119
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543761/job/134954031402
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== publish-history (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543721/job/134954045127
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347544196/job/134954030022
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543891/job/134954031915
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543567/job/134954029122
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== store the suite's durations (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543926/job/134954034823
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== suite time budget (#5166) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44347543926/job/134954034784
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (28d79cc) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 18, 2026 16:49
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 18, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 18, 2026 16:51
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

3 similar comments
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 18, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (d410107) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 18, 2026 22:32
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 18, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 18, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (d410107) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 18, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 18, 2026 22:38
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 22:39
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant