Skip to content

feat(security): Implement $O(N)$ raw literal fallback screen for heavily minified payloads #121

Closed

Description

@squid-protocol

The pipeline intelligently passes minified/vendor files into the SecurityLens to scan for obscured execution or I/O hooks before setting their risk vectors to 100.0. However, the anti-ReDoS armor strips out any lines over 250 characters, meaning the safe_content buffer for a minified one-line JavaScript file evaluates as empty. This ensures no regex timeouts occur, but it inadvertently zeroes out the threat mass. A blazing-fast O(N) literal string search must be applied against the raw byte buffer to restore visibility on blatant execution hooks without risking OOM crashes

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

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions