Skip to content

Siblings of #4548: security lens reads raw text without comment/language awareness or locations #4987

Closed

Description

@squid-protocol

Siblings: #4548 (PR #4983)

Class: the security lens (gitgalaxy/security/security_lens.py) reads raw text with no language or comment awareness and records no location. PR #4983 moved the behaviour signals onto the comment-blanked code_stream, skipped code-behaviour signals on prose files, tightened dead_code http, assert (PHP form only), and the COBOL secrets alternative, and added (line, col) sites for SARIF. These members of the same class are still open:

  • dead_code: bash, eval, curl, base64 in comment prose still fire (only http was tightened)
  • dead_code: one // curl http://… line counts twice
  • safety_bypasses, reflection_metaprogramming, homoglyphs still scan comments (needs a per-signal decision: comments can carry real hidden-text attacks); safety_bypasses is also not skipped on prose files
  • threat_locations records line numbers for only four keys (io, high_risk_execution, db_hooks, hardcoded_secrets); the new sites data covers only the three snippets kept per key
  • Recorders other than SARIF: audit for hardcoded positions
  • Aperture secrets shunt: a key/cert file over 64 KB, or binary DER (.cer, .p12, .pfx), stays a leak candidate
  • COBOL secrets: a data item with no level number on its line (continuation line) is no longer matched

Not a gap: non-lens SARIF findings (ML, agent-vulnerability, guardrail) are file-level and use start_line; no column exists for them.

Remaining items 3–7 of #4548 itself stay on #4548.

Activity

  1. added
    bug
    threat: false-positive
    on Oct 12, 2026
  2. added
    security
    on Oct 12, 2026
  3. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Sibling gaps from #5074 (review at d0f4018), same class (secrets lens / aperture shunt decide from a bounded, line-bound view), still open here:

  4. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    All seven boxes are ticked and the last PR (#5074) is merged, so the acceptance is met. Closing.

  5. added
    scope:infra
    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

    bugdata-qualitypriority: mediumscope:infrasecuritythreat: false-positive

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions