Skip to content

Density Dilution Bug (Critical Security Bypass) #160

Closed

Description

@squid-protocol

The firewall artificially pads the lines of code (LOC) by adding 150 before calculating the threat density. This completely sabotages the mathematical thresholds for small build scripts (which is exactly where supply chain attacks live).

For example, if a 5-line postinstall.js script contains a logic bomb, its 1 threat hit is multiplied by 10 (the build-time multiplier). If passed the padded safe_loc (155), the density is 10 / 155 = 6.4%—completely bypassing the 20% paranoid threshold. If passed the raw loc (5), the density is 10 / 5 = 200%, instantly triggering the firewall.

This was done because small LOCs were artificially inflating the results and causing false positives. Please explore how to more accurately and heuristically solve this issue.

Activity

  1. added
    supply-chain
    bug
    threat: false-negative
    priority: critical
    on Jul 11, 2026
  2. added this to the v2.4.0 milestone on Jul 11, 2026
  3. added a commit that references this issue on Jul 20, 2026
    524c1f6
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

    bugpriority: criticalsupply-chainthreat: false-negative

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions