AI-based pentest orchestrators coordinate agents that run reconnaissance, enumeration, and vulnerability validation in parallel, adjusting each step based on what they find. To protect applications against coordinated attacks by AI agents on Azion’s distributed infrastructure, three controls form the foundation: Origin Shield, to block direct access to the origin; Web Application Firewall (WAF) in Blocking mode, to block identified threats; and Bot Manager, to stop malicious automation on critical endpoints. The sections below explain how these attacks work and how to apply each control, along with rate limiting, access restrictions, API validation, and event correlation.
What has changed in automated attacks?
Pentest tools based on Large Language Models (LLMs) are changing how vulnerabilities are identified and exploited. Instead of running only predefined scripts and signatures, these systems coordinate specialized agents that map environments, identify exposed services, test vulnerabilities, and adapt their next actions based on the results.
ARTEX is one example of this new generation: a pentest framework based on AI agents, with an architecture that combines traditional security tools, coordinates tasks, and runs different reconnaissance and exploitation stages in parallel.
Beyond request volume, pentest frameworks built on AI agents can connect findings from different stages of an attack and turn seemingly isolated pieces of information into exploitation paths. An application may receive a sequence of requests that look harmless one by one but that, analyzed together, amount to reconnaissance, enumeration, and preparation for exploitation.
For security teams, this changes the dynamics of defense, because rules based only on known signatures and manual analysis leave gaps against tools that continuously adapt their execution patterns.
How do AI pentest orchestrators work?
Pentest orchestrators use AI agents to run the stages of a reconnaissance and exploitation process. An operation can involve:
- Reconnaissance: identifying exposed domains, IP addresses, applications, services, and technologies.
- Enumeration: discovering available endpoints, parameters, directories, and resources.
- Vulnerability identification: looking for misconfigurations, authentication flaws, and unexpected behavior.
- Validation: testing hypotheses and confirming whether a vulnerability can be exploited.
- Exploitation: combining vulnerabilities and credentials to gain access.
- Post-exploitation: investigating permissions, persistence, and lateral movement possibilities.
What sets them apart is the ability to connect these stages: one agent can identify an exposed admin endpoint while another investigates that endpoint’s authentication mechanism and a third tests exploitation possibilities. This architecture introduces three important changes:
- Parallelism: multiple agents investigate different parts of the environment at the same time.
- Adaptation: the next steps depend on the results found.
- Scale: one operator can coordinate operations against different applications and organizations at the same time.
That is why defense needs to account for the initial vulnerability and also for the impact a compromised credential or an exposed service can have.
Which controls to apply at each stage of the attack?
On Azion, the defense against these attacks combines origin protection, application inspection, bot management, traffic control, and observability, in six practices that act on different stages of the attack cycle. This combination is necessary because, when the attacker can alter requests, distribute sources, and combine findings automatically, blocking a known signature covers only part of the problem.
1. Eliminate direct access to the origin with Origin Shield
Priority: prevent attackers from bypassing Azion’s security controls.
One of the first hardening measures for any application published behind Azion is to prevent direct connections to the origin infrastructure.
When a server keeps a reachable public IP address, an attacker can try to discover that address through historical DNS, infrastructure reconnaissance, certificates, configuration leaks, or other sources. With that address in hand, they reach the origin directly and bypass Azion’s security rules, even if the application has WAF, Bot Manager, and rate limiting correctly configured.
Azion Origin Shield lets you restrict connections to the origin to the IP addresses used by Azion’s infrastructure.
How to configure the origin
- Configure the origin firewall to accept connections only from the IPv4 and IPv6 prefixes published in the Azion Origin Shield Network List.
- Deny connections from any other source.
- Apply the same restriction to Security Groups, Network ACLs, network firewalls, and load balancers, depending on the architecture.
- Remove old rules that allow unrestricted public access.
- Keep a controlled administrative exception when direct access is needed for operations and maintenance.
- Monitor refused connection attempts on the origin infrastructure.
How to keep the allowlist up to date
The Azion Origin Shield list can change as Azion’s infrastructure evolves. New prefixes stay on hold for seven days before they start communicating with origins, which gives you time to update the allowlist before the new addresses go into production.
This update should be automated through the API or the CLI, with periodic runs and validation of every prefix, including IPv6, instead of relying only on a manual change after the email notification. The recommended flow is:
- Periodically query the Azion Origin Shield Network List.
- Compare the published prefixes with the infrastructure allowlist.
- Update the access rules automatically.
- Validate that the configuration was applied.
- Log changes and alert on any mismatch.
How to validate the restriction
Try to access the origin directly, from outside Azion’s infrastructure. The connection must be refused.
What this solves: it prevents attackers from bypassing WAF, Bot Manager, and Azion’s other controls through direct connections to the backend.
2. Run the WAF in Blocking mode in production
Priority: block exploitation attempts before they reach the application.
The WAF is one of the main controls against attacks that exploit vulnerabilities in HTTP requests, and these requests are exactly where pentest orchestrators vary parameters, headers, HTTP methods, and payloads to test different exploitation possibilities.
Azion’s WAF identifies threats across eight attack families, including SQL Injection, Cross-Site Scripting (XSS), Directory Traversal, and Remote File Inclusion, and can run in two modes:
| Mode | Behavior |
|---|---|
| Logging | Identifies and logs threats, but lets the request continue to the application |
| Blocking | Blocks requests that reach the configured detection thresholds |
Logging mode is for observing traffic, calibrating sensitivity, and identifying false positives, but it does not protect against the threats it identifies. That is why the recommendation is to use Logging during the initial calibration phase and move to Blocking in production.
Recommended rollout process
- Enable the WAF in Logging. Associate a WAF Rule Set with the Firewall rules that protect the application’s paths.
- Observe real traffic. Analyze the logged events and identify which legitimate requests would be classified as threats.
- Tune sensitivity and exceptions. Review the threat families and create specific exceptions when needed, avoiding broad exceptions that disable inspection of significant parts of the application.
- Move to Blocking. After calibration, change the Set WAF behavior to Blocking. As an operational reference, consider the switch after at least three days of observation with no false positives affecting legitimate requests, and extend that period when there is seasonality or rarely used paths.
- Monitor continuously. Track blocked events, changes in the traffic profile, and possible false positives, since changes in the application may require policy adjustments.
Best practices for production
- Use Blocking as the default mode for production applications after calibration, and avoid keeping applications in Logging permanently for operational convenience.
- Apply the WAF to every path that receives user-controlled data.
- Do not leave admin endpoints or APIs out of inspection without a technical justification.
- Use sensitivity levels suited to each application’s profile.
- Keep exceptions specific, documented, and reviewed periodically.
- Validate WAF behavior in regression tests before relevant changes to the application.
Because inspection happens on Azion’s distributed infrastructure, a request blocked by the WAF does not reach the origin server.
What this solves: it reduces the possibility of exploiting known vulnerabilities and prevents requests identified as malicious from reaching the application.
3. Use Bot Manager to identify and block malicious automation
Priority: identify automated agents before they abuse the application’s features.
Azion Bot Manager evaluates signals associated with request behavior to identify different types of automation. This behavioral analysis is necessary because AI agents can use automated browsers, change User-Agents, distribute requests across different IP addresses, and reproduce browsing patterns similar to those of legitimate users, which makes it insufficient to identify automation by User-Agent or IP address reputation alone.
The highest-risk scenarios include:
- Credential stuffing: automated use of compromised credentials to access accounts.
- Brute force: systematic attempts to discover passwords or credentials.
- Scraping: automated extraction of data and content.
- Reconnaissance: systematic identification of exposed endpoints and resources.
- Feature abuse: automated use of legitimate operations to consume resources or manipulate processes.
That is why Bot Manager should be applied mainly to the endpoints with the highest risk of abuse, such as login, sign-up, password recovery, search, checkout, and public APIs.
Configuration best practices
- Enable protection on critical endpoints. Do not limit Bot Manager to the home page: identify the highest-risk paths and configure the rules to evaluate the corresponding requests.
- Use behavioral classification. Consider the automation signals identified by Bot Manager, without relying only on IP, User-Agent, or request frequency.
- Configure blocking actions. Identifying a bot is not enough: configure the actions that match the classification thresholds to stop malicious automation from continuing to access protected resources.
- Tell legitimate bots apart from malicious ones. Authorized crawlers, integrations, and legitimate agents need specific policies, so you do not block all automated traffic indiscriminately.
- Monitor the results. Use Bot Manager events and Real-Time Metrics to track request classification and the actions taken.
- Review policies continuously. New automation techniques and changes in user behavior may require adjustments to the criteria and actions applied.
WAF and Bot Manager have different responsibilities and should work together under the Firewall rules: the WAF identifies exploitation patterns in request content, and Bot Manager identifies behavior associated with automation.
What this solves: it reduces automated abuse of applications and makes reconnaissance, scraping, and attacks against authentication mechanisms harder.
4. Reduce the attack surface and restrict access
Priority: prevent an exposed credential from opening the way to other services and environments.
Reducing the attack surface should consider both service exposure and credential scope, because one of the most relevant consequences of AI-coordinated attacks is the ability to turn initial access into a chain of compromises. An exposed credential, for example, can lead an attacker to admin APIs, development environments, and other internal services.
The measures include:
- Do not expose admin services directly to the internet.
- Restrict management endpoints to authorized networks and identities.
- Use strong authentication and MFA.
- Apply access controls based on identity and context.
- Use tokens with the minimum scope needed.
- Set credential expiration and rotation.
- Avoid static and shared credentials in CI/CD pipelines.
- Separate permissions across development, staging, and production.
Azion’s Firewall can apply traffic restrictions and protect application entry points. For identity and authorization controls, it needs to be integrated with the architecture’s IAM mechanisms and identity providers, so a compromised credential does not grant unrestricted access to all of the organization’s resources.
What this solves: it reduces the impact of exposed credentials and makes it harder for an attack to move between applications and environments.
5. Validate requests and apply explicit controls to APIs
Priority: reject requests outside the expected contract before they reach business logic.
APIs are an important surface for pentest orchestrators, because they expose operations and features that HTTP requests can reach directly. An API may accept technically valid requests that should not be allowed for a given consumer or context, so, beyond traditional attacks, you need to consider:
- Enumeration of endpoints and parameters.
- Payloads that do not match the expected contract.
- Attempts to access admin operations.
- Abuse of legitimate operations.
- Requests with invalid or insufficient credentials.
- Excessive resource consumption by automated calls.
Azion’s WAF inspects HTTP traffic, and the Firewall organizes protection rules and applies access controls and rate limiting. To validate API contracts, the architecture should also include OpenAPI validation in the gateway or in the application responsible for processing, covering HTTP methods, required parameters, field types, payload structure, size limits, and authentication and authorization requirements. Requests that do not meet the contract should be rejected before business logic runs.
What this solves: it reduces the API exploitation surface and keeps requests outside the expected contract from reaching backend services.
6. Correlate events and use threat intelligence
Priority: identify coordinated operations spread across different IPs, networks, and applications.
Coordinated attacks can spread their activity across different IP addresses, networks, and applications, and analyzing each request in isolation makes it harder to identify a coordinated operation.
Azion Real-Time Events gives visibility into requests and the actions taken by security controls. In an investigation, some fields are especially relevant:
- Source IP address.
- Domain and application accessed.
- Path and HTTP method.
- Response status.
- Request ID.
- Rules executed by the Firewall.
- WAF inspection result.
- Bot Manager classification information.
- Events associated with Functions execution.
Integrating this data with SIEM systems and external Threat Intelligence sources enriches the investigation and helps update security policies. Network Lists can centralize network indicators and apply block or allow decisions across different rules and applications.
What this solves: it improves your ability to identify distributed campaigns, investigate attacks, and update security controls based on the evidence observed.
Hardening checklist for applications on Azion
Treat the practices below as baseline requirements for internet-facing applications.
| Control | Best practice | Priority |
|---|---|---|
| Origin Shield | Allow only Azion’s IPv4 and IPv6 prefixes at the origin | Critical |
| Origin Shield | Automate allowlist updates | Critical |
| Origin Shield | Test and block direct access to the origin IP | Critical |
| WAF | Enable WAF Rule Set on protected paths | High |
| WAF | Move to Blocking after calibration | Critical |
| WAF | Avoid broad and permanent exceptions | High |
| Bot Manager | Protect critical endpoints against automation | High |
| Bot Manager | Configure blocking actions for malicious bots | High |
| Bot Manager | Monitor classifications and false positives | High |
| Firewall | Apply rate limiting to sensitive endpoints | High |
| Access Control | Restrict admin services | High |
| API Security | Validate contracts and operation authorization | High |
| Observability | Monitor security events continuously | High |
A defense-in-depth architecture
The controls above work best together, in an architecture that uses Azion’s distributed infrastructure to inspect and control traffic before it reaches the origin. The protection flow can be organized like this:
- Azion’s distributed infrastructure: receives traffic and applies DDoS attack mitigation.
- Firewall and Network Shield: evaluate access rules and known sources.
- WAF in Blocking: inspects and blocks requests with exploitation patterns.
- Bot Manager: identifies and takes action against malicious automation.
- Rate limiting and Functions: apply extra controls according to the application’s behavior.
- Origin Shield: restricts connections to the origin to Azion’s authorized addresses.
- Real-Time Events: provides visibility for monitoring and investigation.
WAF and Bot Manager act on request processing at the edge, while Origin Shield acts on the connection between Azion’s infrastructure and the origin and needs to be complemented by access rules in the backend firewall. This separation protects both the entry path and the infrastructure that receives the requests. To see what changes in operations when WAF, bot management, and DDoS protection share one control plane, read WAF, Bot, and DDoS Security: The Case for a Shared Control Plane.
Where to start: Origin Shield, WAF in Blocking, and Bot Manager
Origin Shield, WAF in Blocking, and Bot Manager are the three practices that should be treated as fundamental against coordinated attacks by AI agents. Known WAF signatures alone are not enough to protect applications, because AI-based pentest orchestrators are changing the speed and scale of vulnerability exploitation: reconnaissance, enumeration, and attack path validation can run across multiple agents in parallel, adapting to the results they find. Each practice covers one part of the problem:
- Origin Shield, to prevent attackers from bypassing Azion and reaching origin servers directly.
- WAF in Blocking, to make sure identified threats are blocked before they reach the application.
- Bot Manager, to identify and block malicious automation that exploits legitimate application features.
These controls are complemented by rate limiting, access policies, API validation, and continuous observability. Azion’s platform lets you implement this strategy on distributed infrastructure, with policies applied before requests reach origin services. Defense against AI-coordinated attacks starts with an architecture that does not let its security controls be bypassed, blocks identified threats, and tells legitimate users apart from malicious automation.
Use the hardening checklist as a starting point and talk to an expert to apply it to your architecture.
