Skip to content

# [EPIC/FEATURE] Integrate O(1) Spatial Taint Tracker for High-Precision AppSec Heuristics #102

Closed
2 of 2 issues completed

Description

@squid-protocol

V2.5.0

I added the taint tracker (line counter association) between keywords instead of lumping the two keywords by the entire file, this will drastically reduce false positives. It's been implemented sporadically so some features use while others dont. It's time to fully integrate this feature into the system.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    appsec
    epic
    on Jul 5, 2026
  2. added
    core-engine
    on Jul 11, 2026
  3. squid-protocol commented on Jul 24, 2026

    @squid-protocol
    OwnerAuthor

    Scoped out the work needed to fully integrate the spatial correlation system, rather than keep adding one-off _correlate_signals calls per feature (which is the "sporadic" state described in this epic). Filed three new issues ahead of #105/#106:

    Suggested landing order: #344 → #346 → #105 → #106.

  4. squid-protocol commented on Jul 24, 2026

    @squid-protocol
    OwnerAuthor

    Both tracked sub-issues (#105, #106) are closed, and before closing this epic out I audited the codebase for the "sporadic" gap this issue's own description called out -- other correlate() sites that hadn't adopted the taint tracker's spatial correlation.

    Found one: the Exfiltration Distance Check (memory_scraping -> exfiltration_camouflage) was a 7th correlate() pair that #346/#348 missed when they enumerated and scoped the other six -- it was still running on the old flat 200-character radius. Fixed in #361: migrated it into apply_amplifier_correlations() alongside the RCE taint and OOM Bomb pairs, so every correlate() call in the pipeline now shares the same same-function scoping semantics.

    Full landing history for this epic:

    One related item intentionally left out of scope: ai_appsec_sensor.py doesn't use spatial correlation at all (old or new style) -- it's a coarser whole-file boolean sensor. That's a different, aspirational future improvement, not a regression of something this epic had already built, so I'm not blocking this closure on it. Happy to file it separately if useful.

    Closing.

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

    appseccore-engineepic

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions