Community Blog Your WAF is being bypassed! How to handle continuous mutated attacks from AI agents

Your WAF is being bypassed! How to handle continuous mutated attacks from AI agents

This blog post introduces Alibaba Cloud Agentic WAF, which uses AI to detect mutating Agent attacks, rebuild attack chains, and stop credential leaks.

Since the Hugging Face attack incident in May this year, the involvement of AI Agents has been profoundly reshaping the cybersecurity landscape:

● Surge in Attack Speed and Scale: The global number of high-risk vulnerabilities has surged by 314% year-over-year, with the median time to exploit shrinking from 8 hours to just 22 seconds. Traditional defenses relying on human response speeds are inevitably falling behind.

● Lowered Attack Barriers: The emergence of AI attack frameworks has drastically reduced attack costs, enabling attackers to sustain operations even with extremely low success rates.

● Evolution of Attack Tactics: Unlike the rigid scripts used by human attackers, AI Agents can quickly debug after a failed attempt, automatically switch paths, and retry. Rule-based defense strategies are quickly analyzed and bypassed.

● Centralization of Attack Targets: Weak passwords, application credentials, forged identities, and stolen tokens have become highly concentrated scanning targets. By the time an attack occurs, identities may have already been compromised.

To cope with continuously mutating and generalized Agent attacks, enterprises need smarter, more automated security products capable of correlating and reconstructing the entire attack chain. Alibaba Cloud has officially launched the Agentic WAF. By combining model integration with out-of-band AI Engine analysis, it rapidly identifies mutated Agent attacks and reconstructs the attack chain through contextual correlation to spot potential bypass clues. It uses AI to understand attacks and intelligence to safeguard your business.

Your Web Application Firewall is Being Bypassed

In AI Agent-driven attacks, a single block is often just the beginning of a new attempt. Agents continuously adjust their encoding, expressions, delivery locations, and exploitation steps based on server responses, actively probing for discrepancies between security detection mechanisms and the application's actual processing logic.

WAFs that primarily rely on static signatures and single-request evaluation are highly vulnerable to being bypassed by these continuously mutating Agent attacks, making rule coverage extremely difficult. Furthermore, Agent attacks are often broken down into multiple steps. This continuous mutation not only complicates rule coverage but also increases the overlap between legitimate business traffic and attack traffic, thereby raising the probability of both false positives and false negatives.

Based on an analysis of recent security incidents, the Alibaba Cloud Security team has identified three major detection challenges:

● Multi-layer Encoding and Nested Interpretation to Conceal Actual Payloads: Attack payloads may combine percent-encoding with inner-layer decoding expressions, or utilize Base64, Unicode, and octal escapes to hide the actual content. After a single layer of decoding, the content may still require further decoding or interpretation to reveal its dangerous semantics. Detection must go beyond merely decoding the outer representation; it must also understand the relationship between the decoded results and subsequent operations such as queries or executions.

● Interpreter Semantic Obfuscation to Disguise Dangerous Operations: Attackers can use wildcards, variable slicing, and character escaping to rewrite commands or paths. They can also split and dynamically concatenate SQL keywords, template class names, and method names. Identifying such attacks requires understanding the combined operational meaning within the execution context.

● Overlap Between Weak Signatures and Legitimate Business Traffic, Making Single-Request Evaluation Insufficient: For example, a report design interface may allow users to save SQL queries, while subsequent preview requests only reference the report object without carrying the original query. Assessing the risk requires correlating the interface's purpose, identity permissions, the relationship between preceding and succeeding objects, and the returned results.

Serial Models + AI Engine: Agentic WAF Officially Launched

To address the aforementioned challenges, Agentic WAF combines real-time detection with out-of-band correlation analysis. This dual approach identifies complex attack semantics within individual requests while tracking cross-request attack processes.

Serial Small Models: Tackling Mutated Attacks Beyond Fixed Rules

With constantly evolving attack payloads, no amount of fixed rules can exhaustively cover every combination of encoding, expressions, and parameters. Overly narrow rules risk letting attacks slip through, while overly broad ones may mistakenly block legitimate code and business traffic.

Agentic WAF introduces serial small models after traditional regex and semantic detection. For suspicious traffic that triggers filtering rules, these models perform online semantic analysis. By combining request content with execution context, the model determines whether the traffic is malicious and executes real-time enforcement in the current request pipeline according to active policies.

In short, fixed rules quickly identify known signatures, while small models focus on analyzing mutated attacks to handle the following complex scenarios:

● Mixed Encoding and Equivalent Expressions: By correlating raw input with multi-layer decoded content, the model analyzes features like string closure, conditional logic, and comment truncation to determine if an injection structure is formed.

● Cross-Field Combinations: When operators and conditional expressions are scattered across multiple parameters, the model analyzes the combined result based on the known interface concatenation logic to determine if the original query logic has been altered.

● Shell Command Obfuscation: By evaluating field purposes, command boundaries, and dynamic construction methods, the model analyzes whether parameters enter unexpected execution contexts. Specific exploitation targets still require backend evidence for confirmation.

For scenarios involving legitimate business use or cross-request triggers, further assessment requires combining business baselines with the out-of-band AI Engine.

AI Engine: Identifying Suspected Bypasses and Correlating Attack Processes

Serial model detection primarily makes judgments based on the current request. However, evidence of Agent attacks is often scattered across multiple interactions. To accurately determine whether subsequent visits continue a previous attack, whether exploitation was triggered, and what impact the business has suffered, it is necessary to correlate historical behavior, response results, and business context.

Agentic WAF leverages an out-of-band AI Engine to conduct correlated analysis by combining continuous threat detection with global asset profiling.

● Correlating Consecutive Attempts to Detect Suspected Bypasses: Continuous threat detection uses IP addresses as the primary investigation entry point. By combining chronological order, payload variations, access targets, WAF enforcement records, and available responses, the system traces related preceding and subsequent activities. For behaviors such as continuing to rewrite payloads, switching entry points, or adjusting parameters after a block, it analyzes whether subsequent requests contain malicious intent, whether they successfully reached the origin server, and whether there are signs of exploitation in the responses.

● Reconstructing Exploitation Steps to Verify Business Impact: Incident assessment correlates context based on the subjects, objects, payloads, and temporal relationships in the logs to map out the attack chain. This process generates an incident investigation report that includes the attack process, key requests and responses, impact analysis, and remediation recommendations.

● Dynamic Layered Enforcement: The AI Engine feeds the discovered bypass signatures back into the detection engine. This provides a basis for optimizing rules, semantic detection, suspicious traffic filtering, and content parsing, enabling it to participate in the layered decision-making for subsequent requests.

Credential Leak Prevention: Agentic WAF Safeguards Your Cloud "Keys"

AccessKeys (AK/SK) and STS Tokens are the "keys" to accessing cloud resources. Once compromised, attackers can impersonate service accounts to steal data, manipulate cloud resources, and even expand their attack surface laterally. Credential leaks primarily stem from two causes:

SSRF (Server-Side Request Forgery): Attackers exploit the server to initiate requests on their behalf, tricking the cloud metadata service into "handing over" credentials.
Unauthorized Access: Interfaces lacking proper authentication directly expose credentials or sensitive data.
Recent sandbox experiments have shown that AI Agents can now chain SSRF into broader cloud attack workflows, automating credential theft, service account impersonation, and data exfiltration.

The Challenge: Looking at Requests or Responses in Isolation is Insufficient

Take SSRF as an example. These requests often mimic legitimate business interfaces, such as image proxies or file downloads. Merely inspecting the initial URL makes it difficult to determine the actual backend destination. Furthermore, suspicious input doesn't necessarily mean a leak has occurred—the application might deny access or return an error. Conversely, simply spotting a Token in a response isn't enough either, as legitimate STS issuance and upload authorization interfaces also return credentials. Unauthorized access is even more "invisible": the requests themselves carry no attack signatures, making traditional request-side detection virtually helpless.

Therefore, truly effective detection must correlate context: resource acquisition behavior, returned content, interface purpose, and business scenarios are all indispensable.

Agentic WAF: Bidirectional Detection to Establish a Data Defense Line

Agentic WAF combines Request screening with Response detection to identify these risks. On the request side, it uses clues like URL parameters, proxy download endpoints, intranet addresses, and metadata paths to select traffic that requires response inspection, reducing reliance on hardcoded metadata addresses. On the response side, it combines the detection of cloud provider credential signatures with metadata return structures. Taking Alibaba Cloud as an example, AccessKeyId, AccessKeySecret, and SecurityToken are critical fields for complete credentials; field combinations, status, and timestamp information further assist in judgment. Combined with the request scenario and business purpose, this approach is much more effective at identifying abnormal leaks than isolated Token string matching.

Further Agentic Security Upgrades

Beyond web attack protection, Alibaba Cloud is extending Agentic capabilities to API Security and Bot Management, helping enterprises more comprehensively identify and mitigate business risks.

● Agentic API Security: Continuously discovers API assets from business traffic. By leveraging Large Language Models (LLMs) to analyze request and response contexts, it understands interface purposes and identifies sensitive fields, helping to uncover OWASP API Top 10 risks such as unauthorized access and sensitive data leaks. Enterprises can also configure real-time masking of sensitive response fields and instantly block traffic that violates defined API Schemas.

● Agentic Bot Management: Correlates signals such as access paths, request frequencies, and device fingerprints. It utilizes AI to identify automated access intents and assigns risk scores. Enterprises can configure enforcement actions (e.g., observation, CAPTCHA, or blocking) based on these scores, and use AI-driven insights to review attack incidents and continuously refine strategies. Additionally, the product supports an AI Crawler Posture Overview, allowing enterprises to monitor AI crawler activity on their websites and block them with a single click.

From real-time identification of complex attack mutations and correlated attack chain reconstruction to API protection and Bot management, Agentic WAF aims to empower enterprises with smarter defenses against the ever-evolving security challenges of the AI era.

New launch! Exclusive limited-time offer for new customers: Enjoy a free ¥500 trial. Click the link to claim yours now!

🔗:https://www.alibabacloud.com/help/zh/waf/web-application-firewall-3-0/product-overview/what-is-an-agentic-waf

0 0 0
Share on

CloudSecurity

45 posts | 4 followers

Comments