Skip to content

fix(waf-detect): the /imperva/i content pattern attributes any page that mentions Imperva to Imperva #667

Closed

Description

@nc9

Summary. The waf-detect content pattern /imperva/i (packages/rules/src/waf-detect/providers.ts, around line 91) labels any page that mentions the word "Imperva" as an Imperva/Incapsula firewall, with high confidence. A blog post or a docs page about Imperva is enough.

Impact. A false WAF attribution appears in findings and can drop or reclassify pages. Related to the header-based detection in #604 and #646, which are about headers, not body text.

Acceptance Criteria

  • A page that only mentions "Imperva" in its body text is not attributed to Imperva.
  • A page with a real Imperva/Incapsula block or challenge signature (headers, cookies or the interstitial markup) is still detected.
  • Body-text patterns for other providers are checked for the same problem, and any that match plain mentions are tightened or listed as follow-ups.
  • Tests cover a mention-only page and a real block page.

Activity

  1. added
    bug
    P3
    size: S
    rules
    on Oct 11, 2026
  2. nc9 commented on Oct 12, 2026

    @nc9
    ContributorAuthor

    Fixed in # and merged to main. Every acceptance criterion is met per the PR description, with before and after evidence from the CLI on local fixtures, tests that fail on the old code, and review comments triaged. Criteria ticked.

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

    P3bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions