SBN

Stopping AI-Driven Penetration Testing Tools at the Edge: How Imperva Detects and Blocks Tools like Artex


Executive Summary

AI-driven penetration testing tools can probe a website for weaknesses far faster and stealthier than a human can, and attackers can use the same techniques. To see how well Imperva handles this, we tested one such tool, Artex, against an Imperva-protected application in a controlled and explicitly authorized engagement.

The outcome: with the hardened protection enabled, Imperva stopped effectively every attack, and the tool could not find a way around the defenses. No application was compromised in any test.

What does it mean for you?

  • Applications protected by Imperva with the recommended settings are well defended against AI-driven attack tools, including tools that try to disguise themselves as normal visitors.
  • Imperva’s default settings already stop most attacks. The recommended settings close the remaining gaps.
  • Advanced Bot Protection adds an extra layer by recognizing and stopping automated tools before they can do harm.

Recommended Next Steps

  • Review your configuration. Check which of the recommended protections are active on your applications today.
  • Gradually apply the recommendations. Enable the hardened settings in monitoring mode first, starting with your most exposed or business-critical applications. After validating the results, move them to challenge or block mode.
  • Consider Advanced Bot Protection. Add Advanced Bot Protection where automated or AI-driven attacks are a concern.
  • Monitor activity. Review Imperva’s event logs regularly to see what is being detected and blocked.
  • Validate and get support. Re-test after configuration changes and contact your Imperva representative for a configuration review.

Test Approach and Results

To validate Imperva against this class of tool, Artex, an AI-driven penetration testing tool, was run against an Imperva-protected web application in a controlled and explicitly authorized engagement. Four tests crossed two variables: the tool’s own behavior (default versus advanced) and the Imperva configuration (default WAF, hardened WAF & Advanced Bot Protection).

  • Advanced configuration included IP rotation, session rotation, evasion techniques when getting blocked, and changing web clients and network location (described under “Why this class of tool is hard to stop”).
  Default WAF Hardened WAF Default WAF+ABP
Default Artex Partial Coverage Full Coverage Full Coverage
Advanced Artex Partial Coverage Full Coverage Full Coverage

 

The outcome: with recommended hardening enabled or Advanced Bot Protection, Imperva blocked effectively every attack payload, and stopped the tool’s advanced evasion techniques entirely. Fresh connections were challenged on first contact, before an attack payload could be delivered. No application-layer exploitation was achieved in any test.

Why this class of tool is hard to stop

AI-driven testing tools differ from traditional scanners in ways that undermine single-control defenses:

  • Dynamic payloads. It doesn’t need to solely rely on static payloads, it can generate new payloads on the fly
  • In testing, the tool sent hundreds of requests in under ten seconds, compared with about five minutes in its default mode.
  • Session rotation. It can discard its cookie jar and open a fresh session every one or two payloads, which defeats defenses that track behavior per session.
  • Browser impersonation. It can send traffic through browser automation tools and impersonate a legitimate browser with realistic User-Agent strings and browser properties.
  • Paced traffic. It can insert deliberate delays to stay below rate-limit thresholds, so rate limiting alone is not a reliable control.
  • Changing network location. It can be routed through proxy services and rotating IP addresses across many countries and hosting providers, so each attempt appears to come from a different place.

Defense in Layers

The layers act one after another within the same session, so an attacker that gets past one meets the next:

  • Layer 1: IP reputation inspection
    • Any request to the application can be checked against high/ medium/ low risk IPs (custom rule). It can also be checked together with other conditions if required.
  • Layer 2: Client inspection
    • The first request to an HTML page returns a small JavaScript challenge. A client that cannot run JavaScript or returns a suspicious response cannot proceed, so no payload is delivered.
  • Layer 3: Rate limit
    • Under load, the traffic rate to the application is checked against a normal baseline
  • Layer 4: Signature inspection
    • Request payload is checked against all types of OWASP top 10 risks (SQLi, XSS, RCE etc.)
  • Layer 5: Session inspection
    • When too many violations happen within a session, the protection escalates from blocking individual requests to blocking the offending session.
  • Layer 5: Behavior inspection
    • Requests from same user are being checked for suspicious behaviors (e.g. account takeover, scraping, scalping etc.)

Imperva provides protection in each layer independently, as well as combinations between them.

Hardened WAF Configuration

  • Change the default security policy to challenge unknown clients
  • Add custom rule to challenge clients classified as potential hacking tools

How Imperva Detects and Blocks These AI Tools

Imperva combines essential bot protection (WAF), Advanced Bot Protection (ABP), active challenges, custom security rules, and WAF signature inspection. The table summarizes each layer and what it did in testing.

Detection layer How it works Observed against Artex
Default configuration
ABP Evaluates client capabilities and request characteristics, such as JavaScript support , browser properties and behavior, to classify automation. Classified as a bad bot: the tool either does not execute JavaScript or returns a response that indicates non legitimate automation
WAF signature engine Inspects request bodies, query strings, and headers for XSS, SQLi, NoSQLi, LFI, command injection, and SSTI. Most of the payloads are blocked out of the box. Some aren’t, as they closely resemble legitimate traffic and could potentially lead to false positives.
WAF Progressive lockout and Session-level enforcement Escalates from blocking individual requests to blocking the offending session. On the default configuration, enforcement moved to the session level, so new requests were blocked on arrival.
With Hardening
WAF tool level configuration – security policy challenge unknown clients Issues a JavaScript challenge to any web client that cannot be positively identified as a legitimate browser. On advanced configuration, every new session received a JS challenge on first contact and failed to complete it
WAF tool level & WAF custom security rule: ClientType == Hacking Tool Allows you to apply a mitigation action, such as a JavaScript challenge, CAPTCHA challenge, or block, to traffic classified as originating from a hacking tool. On advanced configuration, a challenge was served and could not be solved, so the request was suspended.

Evasion attempts and how they fared

Evasion technique Result
Masking the client fingerprint so the client appears legitimate Imperva WAF either classifies it as a Hacking Tool or falls back to challenging unknown clients with a JavaScript challenge the tool cannot solve. Imperva ABP detects it as a bad bot by default.
IP and Session rotation (fresh cookies and a warm-up request for every 1–2 payloads) 100% of fresh connections were blocked immediately. This held after waiting up to three minutes between attempts and across different IPs and request tools. Effective payload throughput was zero.
Different payload content and locations (User-Agent, Referer, X-Forwarded-For) All injection points are covered by the WAF signature inspection.

Conclusion

Imperva employs a multi-layered defense strategy rather than relying on a single detection method. Advanced Bot Protection identifies automated traffic, active challenges help distinguish legitimate browsers from automated clients, custom rules enable granular control over mitigation actions, and the WAF signature engine inspects the attack payloads themselves.

Against AI-driven penetration testing tools, such as Artex, which are designed to rotate identities and impersonate legitimate browsers, these complementary layers provide effective protection across multiple stages of an attack. In our testing, this approach effectively blocked all malicious payloads and prevented new automated sessions from progressing to attack execution.