This article examines new obfuscation techniques the Gremlin stealer malware uses to conceal malicious payloads within embedded resources. We analyze a variant protected by a sophisticated commercial packing utility that employs instruction virtualization, transforming the original code into a custom, non-standard bytecode executed by a private virtual machine.
Gremlin stealer siphons sensitive information from compromised systems and exfiltrates it to attacker‑controlled servers for potential publication or sale. It targets web browsers, system clipboard and local storage to exfiltrate sensitive information like:
Payment card details
Browser cookies
Session tokens
Cryptocurrency wallet data
FTP and VPN credentials
This threat has rapidly evolved, incorporating new anti-analysis safeguards into recent builds.
Palo Alto Networks customers are better protected from Gremlin Stealer through our Network Security solutions and Cortex line of products, including:
Using data from our internal threat intelligence, we identified a new Gremlin stealer variant. This variant exfiltrates stolen data to a newly deployed site at hxxp[:]194.87.92[.]109 as shown in Figure 1.
Figure 1. New Gremlin site.
At the time of discovery, VirusTotal showed zero detection for this new Gremlin site hxxp[:]194.87.92[.]109, its associated URLs or any retrieved artifacts. There were no block list entries, community reports or malicious categorizations as shown in Figure 2.
Figure 2. Gremlin Stealer’s new site detection on VirusTotal.
After data theft, the malware bundles harvested artifacts into a ZIP archive, including:
Browser cookies
Session tokens
Clipboard contents
Cryptocurrency wallet data
FTP and VPN credentials
The malware names the file using the victim’s public IP address to identify the source, and then uploads it to the attacker-controlled site, as shown in Figure 3.
Figure 3. Gremlin site published data.
Technical Analysis
In this section, we present a comparative analysis of older and newer Gremlin stealer variants, highlighting the key changes and describing our process for extracting the final-stage payloads.
Hiding Payload in Resource
The latest iteration of the Gremlin stealer has an increased focus on stealth, specifically designed to evade static analysis tools. In this version, the malware authors have shifted the malicious payload into the .NET Resource section, masking it with XOR encoding to bypass signature-based detection and heuristic scanning.
Figure 4 shows how the resource section appears as an opaque block of data, hiding strings and API calls that would otherwise trigger alerts.
Figure 4. Resource section.
By applying a single-byte XOR decryption routine, we recovered the plain-text configuration. Figure 5 shows that this reveals the hard-coded command-and-control (C2) URLs and exfiltration paths.
Figure 5. XOR decryption on resource section.
Gremlin stealer uses the resource section to mirror the tactics of several high-profile malware families that frequently use this area for payload obfuscation, including:
Comparing past and present versions reveals a clear evolution in Gremlin stealer’s anti-analysis techniques. Legacy samples (shown in Figure 6) lacked obfuscation, leaving function exports and internal symbols intact.
Figure 6. Gremlin older version vs. latest version.
The current iteration implements a staged loading mechanism. Each critical function is decrypted and mapped into memory from the .NET resource section only when needed. This method forces analysts to perform dynamic debugging to observe any meaningful program behavior.
Key Enhancements in the Latest Variant
Gremlin stealer’s evolution from a basic credential harvester to a modular toolkit is evident in several key architectural upgrades:
Expanded target scope: Gremlin stealer includes a dedicated Discord token extraction module, which signifies a pivot toward targeting digital identity and social engineering.
Active financial fraud: The latest variant shifts from passive data theft to active financial interference. This crypto clipper functionality continuously monitors the system clipboard for strings matching cryptocurrency wallet patterns. When it detects a match, the malware replaces the victim's address with the attacker’s wallet in real time, diverting funds during transactions.
Advanced persistence: The WebSocket-based session hijacking module represents its most significant technical upgrade. This allows Gremlin stealer to hijack active, live browser sessions and bypass modern cookie protections by requesting the data directly from the running browser process.
Sample Packed Using a Complex Commercial Packing Utility
We uncovered an iteration of Gremlin stealer (SHA256 2172dae9a5a695e00e0e4609e7db0207d8566d225f7e815fada246ae995c0f9b) packed using a packing utility, as shown in Figure 7 below.
Figure 7. Packed Gremlin variant.
Let’s discuss the obfuscation and anti-analysis techniques this variant uses.
Code Obfuscation and Anti Analysis
Identifier Renaming (The “No-Labels” Technique)
Imagine trying to cook in a kitchen where every can, box and spice jar has its label replaced with a random, short name like a, b, c, hf or ze. The malware authors applied this technique to the variant’s code.
What it is: They replaced every meaningful name for a class, method or variable with a meaningless one.
Why it's effective: It removes all context. A method originally named StealPasswordsFromChrome might become a(). A variable named decryptionKey might become b. This forces an analyst to manually trace every single function call to figure out its purpose, which is incredibly time-consuming.
Example: In the file hf.cs, the main orchestrator class is named hf, and its primary methods are a, b and c. In bb.cs, the class for stealing browser data is BrowserCredentialStealer, but in the original obfuscated code, it was just bb.
String Encryption (The “Secret Decoder Ring” Technique)
In this technique, malware authors made readable strings appear as gibberish. Instead of writing a word like password or a URL like hxxps://api[.]telegram[.]org directly in the code, the malware stores them encrypted.
What it is: All important strings are hidden. The code only contains numbers that act as a key to a secret decoder function. When the program needs a string, it passes these numbers to the decoder, which then returns the real string.
The decoder ring function: The secret decoder is the method _003CModule_003E.c(int, int, int).
It takes three integers as input
It uses these numbers to calculate an offset and a length
It opens an embedded resource file (named resource in the .csproj file) which contains all the encrypted strings
It seeks the calculated offset, reads the specified number of encrypted bytes and uses the third integer as a key to decrypt them
It returns the final, readable string
Why it's effective: It completely hides the malware's intentions from static analysis. Analysts cannot simply search the code for suspicious keywords like Telegram, wallet.dat or api.ipify[.]org because they don't exist in plain text. Instead, analysts must either run the program in a debugger to see what strings are produced or reverse-engineer the decoder function.
When executed, the c() function would run its decoding operation, and the URL variable would then contain: csharp
// This is the real value at runtime
string url = "http://api.ipify.org/?format=json";
Control-Flow Obfuscation (The “Maze of Useless Roads” Technique)
This technique makes the code's logic intentionally confusing, like turning a straight road into a maze of dead ends and pointless loops that all eventually lead to the same place.
What it is: The decompiler output is filled with complex and nonsensical if-else statements, goto jumps and mathematical operations that don't actually affect the outcome. These are designed to confuse both human analysts and automated analysis tools.
Why it's effective: It breaks the logical flow that a person would expect to see. It makes it hard to determine which path the code will actually take, even though in many cases, there's only one real path. This significantly increases the time and effort required for reverse engineering.
Example: There are many switch statements and goto labels (e.g., IL_00c8, IL_0138) that create a tangled web of execution, even though the underlying logic is a simple sequence of await Task.Run(...).
Conclusion
While the core architecture and exfiltration methods via private web panels or the Telegram Bot API remain consistent, this latest variant of Gremlin stealer represents an evolution into a more complex threat. By transitioning from a simple data exfiltration tool to a more advanced modular stealer, Gremlin now targets Chromium-based browsers. It uses memory-resident techniques to hijack active session tokens and sensitive data directly from running processes, rather than relying solely on static database files.
This threat’s scope has broadened, as evidenced by a dedicated Discord token stealer. This module scans multiple paths and uses regex validation to compromise modern communication platforms.
The malware’s author has also added a clipboard hijacker. This new monetization feature enables persistent financial fraud. It continuously monitors the clipboard, replacing cryptocurrency wallet addresses with attacker-controlled ones.
Palo Alto Networks Protection and Mitigation
Palo Alto Networks customers are better protected from the threats discussed above through the following products:
The Advanced WildFire machine-learning models and analysis techniques have been reviewed and updated in light of the IoCs shared in this research.
Prevent the execution of known malicious malware, and also prevent the execution of unknown malware using Behavioral Threat Protection and machine learning based on the Local Analysis module.
Protect against credential gathering tools and techniques using the new Credential Gathering Protection available from Cortex XDR 3.4.
Detect post-exploit activity, including credential-based attacks, with behavioral analytics, through Cortex XDR Pro.
If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 00080005045107
Indicators of Compromise
SHA256 hashes of the Gremlin stealer samples analyzed for this article:
Active Directory Certificate Services (AD CS) is a foundational component of Windows enterprise infrastructure, responsible for managing public key infrastructure (PKI) and issuing certificates that enable authentication and encryption across networks. Despite its critical role in the enterprise identity infrastructure, AD CS is often undermined by insecure default configurations and design complexities, resulting in exploitable attack surfaces. Due to misconfigured templates and overly permissive enrollment rights, AD CS has emerged as a high-impact, under-monitored vector for privilege escalation and unauthorized identity impersonation in modern environments.
Unlike traditional vulnerability exploitation, AD CS attacks rarely rely on zero-day vulnerabilities or malware. Instead, adversaries misuse native certificate issuance to impersonate privileged accounts, escalate privileges and establish persistence. Unit 42 observations and industry reporting show that these weaknesses are actively exploited by both financially motivated ransomware groups and state-sponsored actors.
We provide a technical deep-dive into advanced AD CS exploitation, including certificate template misconfigurations and shadow credential misuse. Our findings present a comprehensive breakdown of the attacker’s toolkit and their evolving operational behaviors.
By studying behavioral analytics, event log correlation and linking offensive techniques to actionable telemetry, it is possible to create dynamic and comprehensive detection strategies. Our detection methods reveal patterns and methods that extend beyond traditional signature-based approaches. We aim to provide defenders with unique ways to uncover stealthy AD CS abuse and address a persistent gap in enterprise security.
Introduction: The Critical Role (and Risk) of AD CS
AD CS is the backbone of enterprise public key infrastructure (PKI). At its core is the certificate authority (CA), the service responsible for issuing and managing digital certificates. These certificates are cryptographic identity cards that prove that a user, device or service is what it claims to be. Organizations rely on AD CS for:
User authentication: Certificates enable single sign-on and client authentication across services
Service authentication: Internal services and domain controllers validate identity using PKI
Encryption: Certificates underpin secure communications within and outside the enterprise
The same capabilities that make AD CS indispensable also create risk. To manage certificate issuance, AD CS uses certificate templates, which define who can request certificates, what they can be used for, and the permissions required. When misconfigured, these templates may grant long-lived authentication or privileged access, effectively providing complete control over a network.
Certificate issuance is an expected administrative function that often appears as normal network activity. This makes AD CS a powerful adversarial tool, because exploitation frequently evades detection.
In the AD CS issuance workflow, the CA issues certificates according to the policies defined in certificate templates, and users and services use the resulting certificates for authentication and encryption. Figure 1 illustrates this flow.
Figure 1. PKI architecture showing CA → Templates → Certificates → Users and Services.
Despite years of research highlighting AD CS risks, certificate services remain a significant attack surface. Key contributing factors include:
Widespread misconfigurations: Organizations often deploy AD CS with default or overly permissive settings.
Complexity breeding mistakes: Consistently securing each configuration surface is a daunting task when combined with the need to manage dozens of certificate templates, enrollment policies and delegated permissions. Because certificate services support critical authentication workflows, security teams can be hesitant to modify legacy templates or tighten permissions, for fear of disrupting production systems.
Limited monitoring: Few tools natively detect certificate misuse.
Recent incident response investigations show attackers leveraging AD CS to escalate from low-privileged accounts to full domain dominance. Exploiting certificate services is no longer rare; it has become a standard step in sophisticated intrusions.
In August 2024, Rapid7 described a social engineering campaign in which attackers attempted to escalate privileges by exploiting CVE-2022-26923. This vulnerability allows a lower-privileged user to elevate their privileges by acquiring a certificate from the AD CS. The attackers tried to exploit it by dropping and executing a file named update6.exe.
Figure 2 shows a Cortex XDR alert that is triggered when update6.exe attempts to exploit CVE-2022-26923. The alert highlights a mismatch between the requesting machine and the issued certificate’s identity — a behavioral signal that is consistent with certificate-based privilege escalation. These inconsistencies can reveal AD CS abuse even when no malware signatures are present.
Figure 2. An alert on the detection and prevention of CVE-2022-26923, as seen in Cortex XDR.
Phase Breakdown: How AD CS Attacks Work
The AD CS exploitation lifecycle typically encompasses five phases:
Initial access: Compromising low-privileged accounts via phishing, credential theft or other vectors
Discovery: Enumerating CA servers, certificate templates, enrollment permissions and account keys
Exploitation: Misusing misconfigured templates to request certificates or register cryptographic keys for privileged accounts
Privilege escalation and lateral movement: Using certificates or keys with public key cryptography for initial authentication (PKINIT) to request Kerberos tickets and impersonate privileged users
Persistence: Maintaining access through shadow credentials, key trust misuse and certificate renewal
Figure 3 illustrates this sequence of operations, demonstrating how AD CS acts as a force multiplier that turns a single compromised account into long-term access across an enterprise.
Figure 3: AD CS attack lifecycle diagram.
Deep Dive: Key AD CS Attack Techniques
The key adversarial tactics, techniques and procedures (TTPs) that target AD CS include certificate template misconfigurations and shadow credential abuse.
Certificate Template Misuse and Misconfigurations
Certificate templates define how AD CS issues certificates, including who can request them and what privileges the certificates grant. Exploiting misconfigurations in certificate templates is one of the most common ways that attackers escalate privileges.
Common misconfigurations include:
Low-privileged users allowed to enroll in high-privileged templates: This effectively lets attackers mint authentication certificates for accounts that they should not control
Dangerous template flags enabled: For example, the “Supply in the request” option (ENROLLEE_SUPPLIES_SUBJECT) lets the requester define the certificate subject in the certificate signing request (CSR), enabling impersonation
Broad group enrollment rights: Assigning rights to groups like Domain Users or Authenticated Users allows any authenticated user to abuse certificate enrollment
Figure 4 highlights a dangerous template configuration that allows the requester to supply the subject, enabling account impersonation.
Figure 4. Template setting with the “Supply in the request” (ENROLLEE_SUPPLIES_SUBJECT) specification enabled.
ESC1 Walkthrough
In their 2021 Certified Pre-Owned: Abusing Active Directory Certificate Services [PDF] whitepaper, SpecterOps researchers Will Schroeder and Lee Christensen identified and categorized eight primary AD CS escalation techniques, designated ESC1 through ESC8. Since then, several additional ESC techniques have been discovered.
ESC1 stands out as the most consistently observed and widely utilized escalation method. This technique exploits template vulnerabilities, enabling low-privileged users to request certificates as high-privileged accounts.
An ESC1 attack can be conducted when a certificate template is configured with the following settings:
The enhanced key usage (EKU) allows authentication — for example, Client Authentication
A typical ESC1 attack begins with an adversary enumerating available certificate templates using tools such as Certify or Certipy to identify misconfigurations. Once a vulnerable template is discovered, the attacker submits a certificate request impersonating a high-privileged account. The issued certificate can then be used to authenticate to services or obtain Kerberos tickets as the target account, resulting in privilege escalation.
Figure 5 shows output from Certipy, a Python tool used to enumerate certificate templates and exploit misconfigurations, highlighting flags that enable the ESC1 attack path.
Figure 5. Example of Certipy output highlighting ESC1 flags such as ENROLLEE_SUPPLIES_SUBJECT, Client Authentication and Manager Approval.
Shadow Credentials and Key Trust Exploitation
Attackers often turn to shadow credentials to gain stealthy, persistent access, authenticating as a target user without ever needing their password. Unlike traditional credential theft, shadow credentials leverage cryptographic keys that are linked directly to user accounts. This method enables long-term access that is resistant to common defenses like password resets or account lockouts.
A central enabler of this attack is Key Trust, a modern authentication mechanism used by Windows Hello for Business and smartcards. Key Trust leverages PKINIT in Kerberos to allow users to authenticate to Active Directory using public key certificates instead of passwords.
The msDS-KeyCredentialLink attribute stores public keys associated with a user account and is intended to support legitimate, key-based authentication. However, attackers can misuse this attribute to register their own key credentials as high-privileged accounts, effectively creating a shadow credential.
How Shadow Credentials Work
Key registration: The attacker adds key credentials to the target account’s msDS-KeyCredentialLink attribute, usually through AD manipulation or elevated access
PKINIT authentication: Using the key, the attacker requests Kerberos tickets without needing to provide the account password
Even if the account password is changed or previously issued certificates are revoked, the attacker can continue authenticating as the target account.
Integration With Other AD CS Exploits
Shadow credentials are particularly powerful when combined with certificate template misuse, such as ESC1. For example, an attacker might:
Exploit a misconfigured template to request a certificate for a privileged account
Use the certificate to elevate privileges and gain domain admin access
Register a key in msDS-KeyCredentialLink for persistent, passwordless access
Continue lateral movement or maintain stealthy persistence without creating new accounts or relying on stolen passwords
This combination of template exploitation and shadow credential misuse represents one of the most persistent and hard-to-detect attack paths in modern Windows environments.
The Attacker Toolkit for AD CS Exploitation
A growing set of open-source tools makes AD CS misuse more accessible. Table 1 lists commonly-used tools for AD CS exploitation and their primary use cases.
Each of the tools listed plays a distinct role in the AD CS attack chain. Certify and Certipy are the primary utilities for enumerating and exploiting AD CS objects such as vulnerable certificate templates and CAs. For example, a common first step in AD CS attacks is the use of Certify to enumerate CAs in an Active Directory environment, as Figure 6 shows.
Figure 6. Using Certify to enumerate CAs in the Active Directory environment.
The operational use of Certipy has been observed in ransomware activity. The DFIR Report identified an exposed toolkit associated with the Fog ransomware group, highlighting the role of AD CS abuse in modern ransomware operations. Figure 7 shows a Cortex XDR alert detecting Certipy LDAP queries against certificate templates and other AD CS objects, illustrating reconnaissance activity during an AD CS attack.
Figure 7. Detection and prevention of Certipy, as seen in Cortext XDR.
PKINITtools extends misuse into Kerberos by leveraging certificate-based authentication to request TGTs. For persistence, Whisker and pyWhisker specialize in shadow credential and Key Trust attacks, enabling stealthy long-term access by manipulating the msDS-KeyCredentialLink attribute. Figure 8 demonstrates the use of pyWhisker to add malicious key credentials to a user account for persistence.
Figure 8. Using pyWhisker to add key credentials to a user account.
The availability of these open-source tools lowers the barrier of entry to complex AD CS exploitation. What once required deep expertise can now be executed by moderately skilled attackers, a shift that has accelerated adoption of these techniques across the threat landscape.
Conclusion
As organizations harden traditional attack surfaces, adversaries increasingly turn to AD CS as a stealthy and under-monitored path to privilege escalation and persistence. Neglecting certificate services leaves a critical security gap, allowing serious exploitation methods to remain effectively unguarded.
To combat the evolution of AD CS compromise techniques and the expansion of attack toolkits, defenders must maintain secure certificate template configurations, monitor unusual certificate and key activity and maintain visibility across authentication paths. Strong configuration hygiene, combined with behavioral detection, enables organizations to identify and respond to stealthy AD CS exploitation before it results in privilege escalation or persistent access.
Palo Alto Networks customers are better protected from the threats discussed above through the following products:
Cortex XDR and XSIAM
Cortex XDR and XSIAM are designed to prevent the execution of known malicious malware and prevent the execution of unknown malware using Behavioral Threat Protection and machine learning based on the Local Analysis module.
Cortex User Entity Behavior Analytics (UEBA)
Cortex User Entity Behavior Analytics (UEBA) helps to detect authentication and credential-based threats by analyzing user activity from multiple data sources including endpoints, network firewalls, Active Directory, identity and access management solutions, and cloud workloads. Cortex builds behavioral profiles of user activity over time with machine learning.
By comparing new activity to past activity, peer activity and the expected behavior of the entity, Cortex detects anomalous activity that may be indicative of credential-based attacks.
Cortex Cloud Identity Security
Cortex Cloud Identity Security encompasses Cloud Infrastructure Entitlement Management (CIEM), Identity Security Posture Management (ISPM), Data Access Governance (DAG) as well as Identity Threat Detection and Response (ITDR) and provides clients with the necessary capabilities to improve their identity-related security requirements.
By providing visibility into identities and their permissions within cloud environments, Cortex Cloud Identity Security helps to accurately detect misconfigurations and unwanted access to sensitive data, and provides real-time analysis of usage and access patterns.
If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.
Attackers exploit native PKI and Active Directory features in ways that can blend into normal operations. Detecting AD CS misuse requires more than just monitoring individual events; effective detection involves:
Correlating multiple event types
Tracking unusual patterns
Applying a baseline for user activity
Table 2 lists the specific Windows Event IDs essential for detecting AD CS-related anomalies and providing the necessary telemetry for threat hunting operations.
Key Event IDs
Log
Event ID
Description
Security
4886
Certificate services received a certificate request
Security
4887
Certificate services approved a certificate request and issued a certificate
Security
4898
Certificate services loaded a template
Security
5136
A directory service object was modified
Security
4768/4769
Kerberos TGT and service ticket requests
Microsoft-Windows-LDAP-Client
30
LDAP client search
Microsoft-Windows-ActiveDirectory_DomainService
1644
LDAP server search
Table 2. Key Event IDs for AD CS monitoring.
Note: To maximize detection capabilities, all relevant audit policies must be enabled and configured correctly, using resources such as the Cortex XDR AD CS Event Setup documentation.
LDAP Activity Monitoring
Lightweight Directory Access Protocol (LDAP) queries are a critical indicator of reconnaissance and exploitation in AD CS attacks. Attackers often enumerate certificate templates, group memberships, and msDS-KeyCredentialLink attributes via LDAP before attempting privilege escalation. High volumes of queries, repeated requests for sensitive objects, or unusual patterns from accounts that don’t usually perform administrative lookups should be treated as suspicious.
Correlating LDAP activity with certificate issuance events or directory modifications can help detect adversarial activity early, including ESC-style template misuse and shadow credential registration.
Monitoring the following LDAP queries is instrumental in identifying adversarial reconnaissance and the initial stages of AD CS infrastructure enumeration:
objectClass=pKICertificateTemplate
objectCategory=CN=PKI-Enrollment-Service
msDS-KeyCredentialLink attributes
Tools like Certify and Certipy perform broad and repeated LDAP queries across users, groups and certificate templates, making this activity a strong early warning signal.
Figure 9 highlights an LDAP event where an attacker queried for sensitive AD CS attributes such as msDS-KeyCredentialLink.
Figure 9. Windows Event 1644 showing an LDAP query targeting the msDS-KeyCredentialLink attribute.
An example from recent years of an attacker using this technique in the wild is described in a 2025 advisory from the U.S. Cybersecurity and Infrastructure Security Agency (CISA) which describes a cyberespionage campaign attributed to Fighting Ursa (also known as APT28, Fancy Bear, Forest Blizzard). In this campaign, the threat actor used tools such as ADExplorer and Certipy to collect certificate services and Active Directory data from target environments prior to further exploitation.
Figure 10 shows an alert detecting ADExplorer enumerating AD CS objects. This type of behavior, including mass queries of certificate templates and AD objects, can indicate early-stage reconnaissance and warrants investigation.
Figure 10. Screenshot from a Cortex XDR alert on the detection and prevention of ADExplorer.exe.
Template Misuse – ESC Attacks
Monitoring template usage helps detect attacks across the ESC1–ESCn spectrum, where overly permissive templates are exploited. Event ID 4898 indicates that a certificate template was loaded. Signs of misuse include:
msPKI-RA-Signature = 0: No authorized signatures required
CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT: Requester can specify the SAN in the CSR
msPKI-Enrollment-Flag = 0x0 (0): Manager approval is disabled
Together, these conditions point to misconfigurations that attackers turn into privilege escalation paths.
Monitoring Certificate Service Activity
The following Event IDs can reveal unusual request patterns:
4886: Received certificate request
4887: Certificate issued
For example, a low-privileged account requesting certificates from high-privileged templates may be an indication of ESC-style template misuse. To differentiate legitimate activity from attacks, track enrollment rights, SAN usage and EKU flags.
Directory Modifications and Shadow Credentials
To detect shadow credential attacks, focus on unexpected modifications to the msDS-KeyCredentialLink attribute. Given that attackers use this attribute to silently add their own credentials to privileged accounts, even small changes should be investigated. Event ID 5136 records changes to directory objects.
Figure 11 shows a directory modification event indicating a potential shadow credential attack.
Figure 11. Event 5136 detecting a change in the msDS-KeyCredentialLink attribute.
Kerberos Ticket Requests and Lateral Movement
Monitoring Kerberos TGT and service ticket events can help detect potential privilege escalation and lateral movement attempts – Event IDs 4768 and 4769. When correlated with suspicious certificate issuance or key registration activity, PKINIT authentication requests can reveal attackers leveraging stolen or shadow credentials to impersonate users without triggering password alerts.
Appendix B: Cortex XDR/XSIAM Alerts on AD CS Activity
Table 3 outlines the Cortex XDR/XSIAM alerts that detect AD CS-related malicious behaviors across multiple attack stages.
Alert Name
Alert Source
MITRE ATT&CK Technique
Vulnerable certificate template loaded
XDR Analytics BIOC, Identity Analytics
Steal or Forge Authentication Certificates (T1649)
Suspicious certificate template modification
XDR Analytics BIOC, Identity Analytics
Steal or Forge Authentication Certificates (T1649)
Key credential attribute modification
XDR Analytics BIOC, Identity Analytics
Modify Authentication Process (T1556)
PKINIT TGT authentication request
XDR Analytics BIOC, Identity Analytics
Use Alternate Authentication Material (T1550)
LDAP AD CS Enumeration via Attack Tool
XDR Analytics BIOC, Identity Analytics
Account Discovery (T1087)
Discovery of misconfigured certificate templates using LDAP
XDR Analytics BIOC
File and Directory Discovery (T1083)
A user queried AD CS objects via LDAP
XDR Analytics BIOC, Identity Analytics
Steal or Forge Authentication Certificates (T1649)
A suspicious process queried AD CS objects via LDAP
XDR Analytics BIOC, Identity Analytics
Steal or Forge Authentication Certificates (T1649)
A user certificate was issued with a mismatch
XDR Analytics BIOC, Identity Analytics
Steal or Forge Authentication Certificates (T1649)
A machine certificate was issued with a mismatch
XDR Analytics BIOC, Identity Analytics
Valid Accounts: Domain Accounts (T1078.002)
Unusual CertLog Remote File Write
XDR Analytics BIOC, Identity Analytics
Steal or Forge Authentication Certificates (T1649)
Privileged certificate request via certificate template
XDR Analytics BIOC, Identity Analytics
Valid Accounts: Domain Accounts (T1078.002)
PowerShell pfx certificate extraction
XDR Analytics BIOC
Unsecured Credentials: Credentials In Files (T1552.001)
Deletion of AD CS certificate database entries
XDR Analytics BIOC, Identity Analytics
Indicator Removal (T1070)
Suspicious Certutil AD CS contact
XDR Analytics BIOC
Steal or Forge Authentication Certificates (T1649)
Certutil pfx parsing
XDR Analytics BIOC
Data from Local System (T1005)
The CA policy EditFlags was queried
XDR Analytics BIOC
Valid Accounts (T1078)
A suspicious process enrolled for a certificate
XDR Analytics BIOC
Steal or Forge Authentication Certificates (T1649)
A user created a pfx file for the first time
XDR Analytics BIOC, Identity Analytics
Unsecured Credentials: Credentials In Files (T1552.001)
A user modified the CA audit policy
XDR Analytics BIOC, Identity Analytics
Impair Defenses: Disable Windows Event Logging (T1562.002)
User set insecure CA registry setting for global SANs
XDR Analytics BIOC, Identity Analytics
Impair Defenses: Disable or Modify Tools (T1562.001)
A user logged on to multiple workstations via Schannel
XDR Analytics, Identity Analytics
Steal or Forge Authentication Certificates (T1649)
Table 3. Cortex XDR/XSIAM alerts on AD CS activity.
On May 6, 2026, Palo Alto Networks released a security advisory for CVE-2026-0300, identifying a buffer overflow vulnerability in the User-ID™ Authentication Portal (aka Captive Portal) service of Palo Alto Networks PAN-OS software. Vulnerable systems allow an unauthenticated attacker to execute arbitrary code with root privileges on the PA-Series and VM-Series firewalls by sending specially crafted packets.
We are aware of only limited exploitation of CVE-2026-0300 at this time. Unit 42 is tracking CL-STA-1132, a cluster of likely state-sponsored threat activity exploiting CVE-2026-0300. The attacker behind this activity exploited CVE-2026-0300 to achieve unauthenticated remote code execution (RCE) in PAN-OS software. Upon successful exploitation, the attacker was able to inject shellcode into an nginx worker process.
Post-exploitation activity includes deployment of publicly available tunneling tools (EarthWorm, ReverseSocks5), Active Directory enumeration using credentials likely obtained from the firewall, and the systematic destruction of logs and other evidence of compromise.
Palo Alto Networks Cortex Xpanse can identify exposed instances of the User-ID Authentication Portal potentially vulnerable to CVE-2026-0300.
Palo Alto Networks customers receive protections from and mitigations in the following products:
The Unit 42 Incident Response team can also be engaged to help with a compromise or to provide a proactive assessment to lower your risk.
Vulnerabilities Discussed
CVE-2026-0300
Details of the Vulnerability
A buffer overflow vulnerability in the User-ID Authentication Portal (aka Captive Portal) service of Palo Alto Networks PAN-OS software allows an unauthenticated attacker to execute arbitrary code with root privileges on the PA-Series and VM-Series firewalls by sending specially crafted packets through network traffic.
While Prisma Access, Cloud NGFW and Panorama appliances remain unaffected by this vulnerability, the risk of unauthenticated RCE exploitation is significantly elevated when the User-ID Authentication Portal is exposed to the public internet or untrusted networks. Adhering to best practice guidelines by restricting User-ID Authentication Portal access exclusively to trusted internal IP addresses and ensuring the portal is not publicly reachable will greatly mitigate this risk.
Current Scope of the Attack Using CVE-2026-0300
We are aware of only limited exploitation of CVE-2026-0300 at this time. Starting April 9, 2026, there were unsuccessful exploitation attempts against a PAN-OS device. A week later, the attackers successfully achieved RCE against the device and injected shellcode. Following the compromise, the attackers immediately conducted log cleanup to mitigate detection by clearing crash kernel messages, deleting nginx crash entries and nginx crash records, as well as removing crash core dump files.
The attackers deployed a number of tools with root privileges four days later, before conducting Active Directory (AD) enumeration using the firewall’s service account credentials to target domain root and DomainDnsZones. Following enumeration, the attackers deleted ptrace injection evidence from the audit log and deleted the SetUserID (SUID) privilege escalation binary.
On April 29, 2026, the attackers conducted a Security Assertion Markup Language (SAML) flood against the previously targeted device, which promoted a second device to Active, inheriting the same internet-facing traffic. RCE was then achieved on the second device, where EarthWorm and ReverseSocks5 were downloaded.
EarthWorm
Earthworm is an open-source network tunneling tool written in C that operates on Windows, Linux, macOS and ARM/MIPS-based platforms. It functions as a SOCKS v5 server and port transfer utility designed to establish covert communication channels across restricted network boundaries. Earthworm capabilities include:
Initiates a forward SOCKS5 server to proxy incoming connections (MITRE ATT&CK technique T1090).
Establishes reverse SOCKS5 tunnels from internal hosts to external attacker-controlled bridges (T1090).
Bridges data between two separate listening ports to facilitate pivot management (T1090).
Forwards traffic from a local port to a remote destination host and port (T1090).
Chains multiple transfer modes to create multi-hop cascaded network tunnels (T1572).
Encapsulates traffic for protocols like RDP and SSH within SOCKS tunnels (T1572).
ReverseSocks5 is an open-source networking tool used to bypass firewalls or NAT by establishing an outbound connection from a target machine to a controller, rather than the other way around.
Once the connection is established, it creates a SOCKS5 proxy tunnel that allows the controller to route traffic into the target's internal network. Because the source code is publicly available, it is frequently utilized by system administrators for remote management, and also by threat actors for pivoting during a breach.
Interim Guidance
Customers can mitigate the risk of this issue by taking either of the following actions:
Restrict User-ID Authentication Portal access to only trusted zones and in addition, disable Response Pages in the Interface Management Profile attached to every L3 interface in any zone where untrusted/internet traffic can ingress. Keep Response Pages enabled only on interfaces in trust/internal zones where legitimate users' browsers ingress. Refer to Step 6 of the linked Live Community article and Knowledgebase article for steps to restrict access.
Disable User-ID Authentication Portal if not required.
Customers with an Advanced Threat Prevention subscription can block attacks for this vulnerability by enabling Threat ID 510019 from Applications and Threats content version 9097-10022. Decoder capabilities necessitate PAN-OS 11.1 or a later version for Threat ID support.
Palo Alto Networks recommends following guidance in the security advisory.
Conclusion
Over the last five years, nation-state threat actors engaged in cyber espionage have increasingly focused their efforts on edge-network technological assets, including firewalls, routers, IoT devices, hypervisors and various VPN solutions, which provide high-privilege access while often lacking the robust logging and security agents found on standard endpoints.
The reliance of the attackers behind CL-STA-1132 on open-source tooling, rather than proprietary malware, minimized signature-based detection and facilitated seamless environment integration. This technical choice, combined with a disciplined operational cadence of intermittent interactive sessions over a multi-week period, intentionally remained below the behavioral thresholds of most automated alerting systems. The lateral movement technique prioritized identity trust abuse over traditional network-layer pivoting, effectively reducing the attacker's footprint. Consequently, this campaign demonstrates that operational restraint—specifically the use of non-persistent access windows—is a primary factor in maintaining long-term residency on edge infrastructure.
Palo Alto Networks has shared our findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.
Palo Alto Networks customers are better protected by our products, as listed below. We will update this threat brief as more relevant information becomes available.
Palo Alto Networks Product Protections for Exploitation of PAN-OS Captive Portal Zero-Day for Unauthenticated Remote Code Execution
Palo Alto Networks customers can leverage a variety of product protections and updates to identify and defend against this threat.
If you think you might have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Advanced WildFire
The Advanced WildFire machine-learning models and analysis techniques have been reviewed and updated in light of indicators associated with this activity.
Next-Generation Firewalls With Advanced Threat Prevention
Next-Generation Firewall with the Advanced Threat Prevention security subscription can help block attacks for this vulnerability by enabling Threat ID 510019 from Applications and Threats content version 9098. Decoder capabilities necessitate PAN-OS 11.1 or a later version for Threat ID support.
Cloud-Delivered Security Services for the Next-Generation Firewall
Security analysts can use natural language to prompt the Cortex AgentiX Threat Intel agent for a quick summary of sightings in their Cortex environment, to retrieve tenant-specific and global threat intelligence information for CVE-2026-0300.
Cortex Xpanse
Palo Alto Networks Cortex Xpanse can identify exposed instances of the User-ID Authentication Portal potentially vulnerable to CVE-2026-0300.
Updated May 8, 2026, at 9:20 a.m. PT, to update the product protections section, adding Cortex AgentiX and updating the Applications and Threats content version.
On April 29, 2026, researchers publicly disclosed a highly reliable local privilege escalation (LPE) vulnerability tracked as CVE-2026-31431. This vulnerability is commonly referred to as Copy Fail. Discovered in about an hour through an AI-assisted process, this logic flaw allows an unprivileged local attacker to consistently escalate their access to root across virtually all major Linux distributions released since 2017.
Unlike many kernel vulnerabilities, this logic flaw is deterministic, meaning it does not rely on race conditions or specific kernel offsets. A single 732-byte Python script can successfully exploit it without any modification across different Linux distributions.
The vulnerability originates in the Linux kernel's cryptographic subsystem, specifically within the algif_aead module of the AF_ALG interface (a user space crypto API). Rather than a single coding error, the flaw resulted from a combination of three independent updates:
The addition of the authencesn algorithm in 2011
The AF_ALG interface gaining AEAD support in 2015
A fatal in-place optimization introduced in 2017
During cryptographic operations, an in-place optimization bug causes the algorithm to use the destination buffer improperly, writing four controlled bytes past the legitimate region directly into the system's file page cache. Impacted versions include Linux kernels between 4.14 and 6.19.12.
This vulnerability affects millions of systems running mainstream distributions such as Ubuntu, Amazon Linux, Red Hat Enterprise Linux, Debian, SUSE and AlmaLinux. An attacker with standard local access can exploit this vulnerability to maliciously modify the in-memory cache of privileged executable files (like su or sudo) without alerting integrity checks, as the physical files on disk remain unchanged. Because the kernel and its page cache are shared across an entire node, this flaw allows attackers to:
Easily break out of Kubernetes containers
Overtake multi-tenant hosts
Compromise continuous integration and continuous delivery (CI/CD) pipelines
We strongly urge organizations to patch their systems immediately by applying vendor-issued kernel updates.
Palo Alto Networks customers receive protections from and mitigations for CVE-2026-31431 through the following products:
The Linux Foundation has posted an advisory with mitigation details for CVE-2026-314331. Palo Alto Networks highly recommends applying vendor-issued kernel updates immediately. If this option is not feasible, we recommend following interim mitigation guidance to disable the vulnerable module until patches can be applied.
The Unit 42 Incident Response team can also be engaged to help with a compromise or to provide a proactive assessment to lower your risk.
Vulnerabilities Discussed
CVE-2026-31431
Details of CVE-2026-31431
The vulnerability tracked as CVE-2026-31431, known as Copy Fail, is a deterministic logic flaw located in the Linux kernel's cryptographic subsystem, specifically within the algif_aead module of the AF_ALG interface.
The Root Cause
The flaw originates from a buggy in-place optimization introduced to the Linux kernel in 2017 (commit 72548b093ee3) for AEAD encryption. This 2017 in-place optimization specifically caused req->src and req->dst to point to a combined scatterlist. Because of this, the page cache pages from the splice() call were improperly chained directly into the writable destination scatterlist.
During cryptographic operations, the authencesn algorithm improperly uses the caller's destination buffer as a scratch pad. Because of this, it writes four controlled bytes past the legitimate output region, crossing a chained scatterlist boundary, and fails to restore them. The patch (commit a664bf3d603d) fixes this by reverting the module to out-of-place operation, separating the source and destination scatterlists so that the page cache pages remain strictly in the read-only source.
Mechanism of Action
An unprivileged attacker can exploit this memory handling error by misusing the interaction between the AF_ALG socket interface and the splice() system call. When splice() hands page-cache pages into the crypto subsystem, the vulnerability allows the attacker to direct that four-byte overwrite straight into the kernel's file page cache.
The authencesn algorithm is used for IPsec extended sequence number (ESN) support and uses the destination buffer as a scratch pad to rearrange these sequence numbers. The attacker controls the exact four-byte overwrite value by supplying the seqno_lo (the low half of the sequence number) inside bytes 4–7 of the Associated Authenticated Data (AAD) during the sendmsg() call.
Exploitation Via the Page Cache
The page cache is the temporary in-memory copy of a file that the kernel reads when it loads a binary for execution. An attacker can leverage the four-byte overwrite to target the page cache of any readable setuid-root binary, such as /usr/bin/su, sudo or passwd.
The attacker controls exactly where the overwrite happens by manipulating the splice offset, the splice length and the assoclen (associated length) parameters. This allows them to specifically target the .text section of a setuid binary like /usr/bin/su to inject their shellcode.
Privilege escalation: Modifying the cached copy of the binary alters its execution context. When the binary is executed, it grants the attacker superuser (UID 0) privileges, effectively breaking the kernel's trust boundaries.
Stealth: Because this corruption occurs entirely in the system's RAM, the physical file on the disk remains completely unmodified. This bypasses traditional virtual file system (VFS) paths and file integrity monitoring tools. Once the page is evicted from memory or the system reboots, the cache reloads clean from the disk, leaving no trace of the compromise.
Exploit Characteristics
What makes Copy Fail exceptionally severe compared to previous Linux LPE vulnerabilities like Dirty Cow or Dirty Pipe is its reliability and simplicity:
No race conditions or offsets: It is a straight-line logic flaw that does not rely on winning a race condition window or guessing kernel-specific memory offsets.
100% reliability: The exploit is deterministic and fires successfully on the first attempt.
High portability: The exploit can be executed using a standalone 732-byte Python script that relies solely on standard libraries (os, socket, zlib), meaning no compilation or external dependencies are required. This same script works unmodified across virtually all major Linux distributions shipped since 2017.
Interim Guidance for CVE-2026-31431
The vulnerability has been resolved in upstream Linux kernel stable branches by reverting the flawed 2017 optimization (commit a664bf3d603d).
If immediate patching is not possible, administrators should implement an interim mitigation by disabling the affected algif_aead module. This can be accomplished by running the following commands as root to block the module's loading and remove it from the kernel:
The Linux Foundation has posted an advisory with mitigation details for CVE-2026-314331.
Unit 42 Managed Threat Hunting Queries
The Unit 42 Managed Threat Hunting team continues to track any attempts to exploit this CVE across our customers, using Cortex XDR and the XQL queries below. Cortex XDR customers can also use these XQL queries to search for signs of exploitation.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Title: CopyFail Detection via Non-root Launching su via Uncommon Parent Process
// Description: Query looks for non-root users launching the switch user (su) process via a parent process other than the normally expected processes such as shells, sudo, or su itself. May identify false positives, yet works well for identification of potential CopyFail exploitation.
|comp earliest(_time)asfirst_seen,latest(_time)aslast_seen,count()asexecution_count,values(actor_effective_username)asactor_usernames,values(actor_process_image_path)asactor_image_paths,values(actor_process_command_line)asactor_cmd_lines,values(action_process_image_command_line)asaction_cmd_lines,values(action_process_user_sid)asaction_UIDs by agent_hostname,actor_process_image_name,actor_process_image_sha256
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Title: CopyFail Proof of Concept Code Execution
// Description: Query looks for potential CopyFail proof of concept (POC) code execution via identifying potentially correlated curl and su process executions. May identify false positives, yet works well for identification of CopyFail POC provided by Xint.Code.
|comp count()asevent_count,values(agent_id)asagent_id,values(event_id)asevent_id,values(action_process_image_name)asprocesses,values(action_process_image_command_line)ascommands by agent_hostname,_time,actor_process_instance_id
Based on the amount of publicly available information, the ease of use and the effectiveness of the Copy Fail exploit, Palo Alto Networks highly recommends applying vendor-issued kernel updates immediately. If this option is not feasible, we recommend following interim mitigation guidance to disable the vulnerable module until patches can be applied.
This is especially important, given that a highly reliable proof-of-concept (PoC) script is already publicly available and preliminary testing activity has been observed.
Palo Alto Networks customers are better protected by our products, as listed below.
Palo Alto Networks Product Protections for CVE-2026-31431
Palo Alto Networks customers can leverage a variety of product protections and updates to identify and defend against this threat.
Next-Generation Firewalls With Advanced Threat Prevention
Next-Generation Firewall with the Advanced Threat Preventionsecurity subscription can help block transmitting exploit scripts over the network with the following Threat Prevention signature: 97176 - Linux Kernel Privilege Escalation Vulnerability.
Cortex XDR and XSIAM
The Cortex XDR agent for Linux, starting from content update 2240-35441, contains detection and prevention capabilities for known samples that are related to the Copy Fail vulnerability.
Cortex XDR and XSIAM help protect against pre-exploitation and post-exploitation activities, using the multi-layer protection approach, including Advanced WildFire, Endpoint Protection Modules (EPM), Behavioral Threat Protection and the Local Analysis module.
Cortex Cloud
Cortex Cloud endpoint protection can help protect organizations from threats expressed within this article. Cortex Cloud 2.1 can detect and prevent malicious operations using behavioral and AI-enabled analytics to detect when attackers target Linux endpoints, including containers and virtual machines. Additionally, it can detect when cloud platform IAM policies associated with those targeted endpoints are being misused and alert teams when assets are vulnerable to these threats.
If you think you might have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Updated May 6, 2026, at 3:15 p.m. PT to expand coverage for Cortex XDR and XSIAM and to add Next-Gen Firewalls with Advanced Threat Prevention.
Updated May 7, 2026, at 2:00 p.m. PT to change Cortex XDR content version.
The 2026 Unit 42 Global Incident Response Report delivers a sharp wake-up call: Threat actors are now moving 4x faster to exfiltration than in 2025. By striking across three or more surfaces simultaneously, adversaries are intentionally exploiting the blind spots created by an over-reliance on endpoint data.
While the endpoint remains a critical first line of defense, the rapid proliferation of cloud services, microservices and remote users has expanded the attack surface beyond what any single tool can monitor. In 75% of incidents Unit 42 investigated, critical evidence of the initial intrusion was present in the logs. Yet, due to complex, disjointed systems, that information wasn't readily accessible or effectively operationalized, allowing attackers to exploit the gaps undetected. To stay ahead, SOCs must evolve to ingest and correlate telemetry across the entire organizational landscape.
The Invisible Pivot
Figure 1. IT zones available to SOCs for ingesting telemetry.
Generally, IT environments are composed of distinct zones. These include identity and access management (IAM), cloud assets and operational technology (OT), internet of things (IoT) and AI workloads, each with its own built-in logging and security needs. Specific security tools are produced to protect the assets in each of these zones. Therefore, SOCs should be able to holistically analyze the logs and alerts from each of these zones and utilize the corresponding security tools to take action against threats. While an endpoint detection and response (EDR) centric approach is a foundational element of, relying on any EDR alone creates gaps that attackers use to move invisibly. These zones are visualized in Figure 1.
Unit 42 research has identified three specific scenarios where an endpoint-only view consistently fails to tell the full story:
1. The cloud-to-endpoint pivot: In scenarios when attackers gain access via a misconfigured cloud service access key, they may be able to pivot to endpoints while hiding their tracks from EDR agents. From the cloud console, they could pivot to a cloud-hosted server to begin discovery. To a SOC only watching the endpoint, the initial entry and console manipulation are invisible, and the attacker’s activity may appear as a legitimate login, increasing the chance of the SOC reporting a false negative when triaging this event. Detection requires stitching together cloud security logs, CASB alerts and EDR telemetry to reveal the full narrative of the breach.
2.Covert C2 and identity theft: Imagine an attacker using DNS tunneling to a cloud storage location to control a compromised device. To use legitimate applications to mask their activity, they must steal credentials and may trigger impossible travel alerts across multiple software-as-a-service (SaaS) apps. If the SOC is only looking for malware on the device, they will miss the identity-level compromise happening across the network and cloud providers.
3.The threat of rogue assets:Shadow IT and unmanaged devices are inherently opaque. Because these devices often lack security agents, they are frequently invisible to traditional EDR and security information and event management tools. Attackers often introduce their own rogue devices to maintain persistence. Without continuous network monitoring and external attack surface management, these assets remain open doors for covert movement.
Building a Single Pane of Glass: Unit 42’s View of a Modern SOC
Figure 2 illustrates Palo Alto Networks' vision for a SOC built on a unified, AI-driven data platform.
Figure 2. Workflow of an AI-driven SOC.
By consolidating diverse security data and using AI to automate detection, investigation and response, the platform significantly reduces alert fatigue and eliminates data silos. Ultimately, this shifts the heavy lifting to machines, empowering human analysts with a single, simplified interface to proactively stop threats in minutes rather than days.
To combat these threats, Unit 42 recommends a single-pane-of-glass strategy powered by an AI-driven SOC platform like Cortex XSIAM. This approach is built on two core principles: All security logs must live in a single repository, and all alerts must be processed in a centralized workbench.
By integrating data from all 10 IT zones — including code, comms and AI — the SOC can leverage machine learning for:
Alert stitching: Automatically connecting events from different zones into a cohesive timeline
ML-based incident scoring: Prioritizing threats based on business impact and user risk
User and entity behavior analytics: Detecting anomalous behavior that signals compromised credentials before they result in a material impact
This integration improves the lives of analysts by reducing alert fatigue and providing management with clear visibility into workloads and performance metrics.
Final Thoughts
As we expect attackers to continue to use AI-assisted tools to increase the speed of attacks; relying solely on the endpoint is no longer a viable strategy for the modern enterprise. By embracing a unified platform that ingests and correlates telemetry from every IT zone, organizations can gain the holistic visibility needed to stop sophisticated threats in their tracks.
The transition to an AI-enabled, multi-surface defense is the only way to turn the tide against attackers who thrive in the gaps between isolated tools. To ensure your SOC is optimally equipped for this challenge, consider evaluating your current visibility through a formal assessment.
Unit 42 Frontier AI Defense is an elite service that uses access to frontier models to identify your organization's likely attack paths before attackers can weaponize them.
We found 18 AI browser extensions marketed as productivity tools that are not as they seem. This group includes extensions such as:
One that surveils your emails as you compose them
Another that intercepts ChatGPT prompts
A third that exfiltrates passwords
Leveraging the rise of generative AI (GenAI), these extensions deliver remote access Trojans (RATs), meddler-in-the-middle (MitM) attacks and infostealers that target prompts, user behavior and browser sessions. Attackers blend the following established techniques with AI productivity lures:
API interception
Passive Document Object Model (DOM) observation
Traffic proxying
HTTPS response decryption
Multiple samples contained AI-generated code, indicating that threat actors employed large language models (LLMs) to accelerate malware production.
We specifically reported 18 high-risk extensions to Google. Google either removed the extensions or sent a warning to the owners of the extensions to address policy violations.
Organizations and individual users should exercise caution by sourcing extensions only from trusted providers and adhering to the principle of least privilege. Users must scrutinize requested permissions, as granting broad access to browser data can authorize the interception of sensitive credentials and proprietary session information.
Palo Alto Networks customers are better protected from the threats discussed above through the following products and services:
We identified multiple extensions that appeared to be AI tools delivering RATs and MitM campaigns, which we disclosed via timely threat intelligence (TTI) posts. These include:
AI-powered summary extensions exfiltrating sensitive data to low-reputation domains (August 2025)
Adware campaigns using hidden iframes (August 2025)
Prompt and search hijackers redirecting queries to attacker-controlled domains (September 2025)
Most recently, a Model Context Protocol (MCP)-themed RAT targeting AI developers (February 2026)
Browser Extensions Expand the Client-Side Attack Surface
Browser extensions operate within the browser's trusted process with user-granted permissions. They can read and modify web content, intercept network requests, access cookies and communicate with external servers. These capabilities are shared with legitimate tools like ad blockers, password managers and developer tools.
Deceptive extensions exploit this privileged position. An extension can override network request APIs before calls leave the page. It can passively monitor DOM changes in targets like Gmail or Notion. It can configure browser proxy settings to route traffic through attacker infrastructure. It can attach the Chrome Debugger Protocol to read decrypted HTTPS response bodies.
GenAI amplifies the risk. When users type prompts into AI services, they routinely share proprietary code, draft communications and strategic plans. An extension positioned between the user and an AI service intercepts sensitive data. This data is far more valuable than the browsing metadata targeted by typical browser malware. Our retrospective analysis of detected high-risk extensions revealed the recurring techniques listed in Table 1.
Technique
Description
Technical Characteristics
Requires Extension Privilege
WebSocket-based C2 channels
Persistent bidirectional communication for command dispatch and session management
Maintains an open connection that automatically reconnects on network interruption. Persists across browser restarts. Uses standard WebSocket protocol over HTTPS.
No. Typical malware can establish WebSocket C2 channels. The extension advantage is appearing as legitimate browser traffic and persistence across browser restarts without process injection.
Browser API hooking
Intercepting JavaScript API calls before network transmission
Replaces browser's native window.fetch or XMLHttpRequest functions. Operates in a JavaScript context before data is encrypted for transmission. No interception-layer traffic required.
Yes. Content scripts inject code into the page context with API modification privileges. Typical malware would typically require browser process injection.
Extracting page content through observation rather than network interception
Reads content from the rendered page DOM. The extension generates no network requests for data collection. Operates entirely within the browser process.
Yes. Content scripts have direct read access to the page DOM. Typical malware would require accessibility APIs, screen scraping or browser process memory access.
Dynamic proxy configuration
Remote proxy auto-configuration (PAC) script updates for selective traffic routing
Downloads and applies proxy configuration from a remote server. Can be updated without extension store approval. Applies routing rules per-domain or per-URL pattern.
Partially. Typical malware can modify system proxy settings but lacks the chrome.proxy API for programmatic, extension-scoped, dynamic updates without OS-level permissions.
Cross-storage persistence with active restoration
Redundant identifier storage across multiple APIs with automated recreation on deletion
Stores identifiers in chrome.storage.sync, cookies and localStorage. Monitors storage-change events. Recreates deleted identifiers from remaining copies. Syncs across devices via Chrome profile.
Yes. Requires chrome.storage.sync API for cross-device persistence and chrome.cookies.onChanged API for real-time monitoring. Typical malware cannot access these browser-internal storage mechanisms.
Misuse of one-time extension events
Install-time payload execution via chrome.runtime.onInstalled
The code executes once when the extension installs or updates. The event fires before the user interacts with the extension. Does not repeat on subsequent browser sessions.
Yes. The chrome.runtime.onInstalled event is extension-specific. No equivalent in typical malware.
Table 1. Recurring techniques seen in GenAI high-risk extensions.
As GenAI becomes the primary interface for professional and creative workflows, these extensions can potentially gain direct access to sensitive user information. If operated within the same execution context as the AI interface, these extensions pose a significant risk to enterprises.
We placed detections from campaigns targeting AI users into six distinct malware categories based on their primary operational objective, as shown below in Figure 1. We derived these categories from manual analysis of extension code and network behavior.
Figure 1. Six distinct malware categories observed across the analyzed GenAI browser extensions.
The following sections present case studies of these six high-risk GenAI browser extensions.
A RAT: MCP Server AI Automation Extension
A RAT is malware that grants an attacker complete remote control over a victim's system through a persistent command and control (C2) channel. This case study is for an extension named Chrome MCP Server - AI Browser Control that acts at a RAT.
RATs generally require victims to download and execute suspicious files, actions that security software typically detects as clear indicators of compromise. This GenAI-era adaptation disguises the RAT as an “AI browser automation tool” using the MCP framework, as shown in its Chrome Web Store listing in Figure 2. The listing deceptively states, “100% local processing - your data never leaves your browser” and “No external servers required for core functionality.”
Figure 2. Deceptive malicious extension Chrome MCP Server listing on the Chrome Web Store.
Attackers lead victims to believe that extreme permissions are necessary (debugger, <all_urls>, webRequest, scripting) for AI to control the browser. The extension hardcodes a WebSocket connection to a remote C2 server, as noted in the code snippet in Figure 3.
Figure 3. Extension’s background source code showing C2 server configuration.
From this server, it accepts over 30 remote commands, including:
Executing arbitrary JavaScript via new Function()
Chrome Debugger Protocol attachment for HTTPS traffic interception
Filling out forms
Capturing screenshots
Accessing browsing history
When a victim clicks Connect in the pop-up, the extension establishes a persistent WebSocket connection to a remote server, as noted from the source code snippets in Figure 4. This generates the connection to wss[:]//mcp-browser.qubecare[.]ai/chrome. Once connected, the extension reestablishes the C2 channel across network disconnections or browser restarts and the service worker restarts indefinitely.
Figure 4. Chrome MCP Server extension source code and active WebSocket connection to the C2 server.
The extension uses a new Function() pattern to execute JavaScript code received from the remote server over the WebSocket. It then executes the code as JavaScript in the context of the victim's active tab, as noted below in Figure 5. If the victim is logged into their bank, corporate VPN, email or any other service, the remote operator can execute code in that authenticated context.
Figure 5. handleExecuteScript function showing remote code execution via new Function().
Adversary in the Browser (AitB): Supersonic AI
AitB occurs when extensions read sensitive data directly from the rendered page DOM rather than intercepting network traffic, bypassing network-level security controls entirely. This case study is for an extension named Supersonic AI that performs AitB.
Supersonic AI markets itself as an AI-powered email assistant for Gmail and Outlook. It includes features like one-click AI-generated replies and email summaries. To deliver these features, the extension needs to read email content. We examined how the extension subsequently handled this content.
As illustrated in Figure 6, a content script is used to collect comprehensive email data and send the data to an external server. This broad data collection poses a severe security and privacy risk, as it captures and sends highly sensitive information in plaintext. This means all the emails from the victim's account, including those that are read, sent or displayed.
Figure 6. Snippet from content script.
Figure 7 demonstrates this in action within our sandbox environment, showing a social media platform one-time password (OTP) being exposed during the exfiltration process. Our Virus Bulletin 2025 paper provides a detailed technical analysis of this extension's Gmail exfiltration behavior.
Figure 7. OTP exfiltration as seen in sandbox network logs.
Infostealer: Reverse Recruiting — AI Job Application Assistant
An infostealer is malware designed to harvest sensitive information such as credentials, authentication tokens and personal data from a victim's browser. This case study covers an extension named Reverse Recruiting - AI Job Application Assistant. In addition to stealing information such as salary expectations, it also targets a new class of credentials, AI API keys.
Reverse Recruiting is an AI job application assistant, as noted in Figure 8. It autofills forms across job portals and generates tailored resumes using OpenAI, Gemini and Claude. Its permission set is consistent with a cross-site autofill and AI assistant tool, including content script injection into all page frames via <all_urls>. However, the extension uses these permissions for activities well beyond its stated purpose.
Figure 8. Reverse Recruiting - AI Job Application Assistant extension’s listing on the Chrome store.
When a victim provides their OpenAI, Gemini or Claude API key to power the extension's AI features, it does not use those keys locally. A component of this extension named optimized-api.js reads all three of these keys from chrome.storage.sync and forwards them to the developer's backend in custom HTTP headers on every request (Figure 9).
The victim also provides information for the job application assistant. The extension's profile-sync.js script then transmits the user's name, email, phone, LinkedIn URL, salary expectations, education and resume to a remote endpoint at api.reverserecruiting[.]io/v1/profile/sync.
Figure 9. A code snippet that reads the user's OpenAI, Gemini and Claude API keys and forwards them to a remote server.
Search Hijacker: Chat AI for Chrome
A search hijacker is malware that modifies browser search settings to redirect user queries through attacker-controlled servers, enabling search traffic interception and persistent tracking. This case study is for a browser extension named Chat AI for Chrome:
When the user deletes the tracking cookie, the extension recreates the deleted cookie. Because the ID is also stored in chrome.storage.sync, it persists across devices signed into the same Google account. Clearing cookies on one device does not eliminate the tracking. The identifier is restored from synced storage.
The persistent tracking enables a parallel attack. The extension silently replaces the victim's default search engine via chrome_settings_overrides as noted in Figure 12.
Figure 12. Manifest snippet showing search engine hijacking via chrome_settings_overrides.
All user searches are routed through chatgptforchrome[.]com and correlated with the persistent tracking ID, building a cross-device search history profile that standard cookie-clearing practices cannot disrupt. The only effective remediation is complete uninstallation.
Brand Impersonator: AI Photo and Video Editor
A brand impersonator is malware that mimics legitimate software brands to exploit user trust and bypass skepticism during installation. This case study is for an extension named that impersonates a popular graphics editing brand.
It exploits the onInstalled listener that opens a “thank you” page immediately after installation, as noted in Figure 13. Figure 14 shows the result of the thanks.html page.
Figure 13. Snippet showing onInstalled listener opening a forced tab for thanks.html.Figure 14. (Left) Impersonating graphics extension (right) Thank you page, on install it drives traffic to third-party browser install.
Of note, the thanks.html file communicated with a URL hosted on xuix[.]top, which redirected to the newextensioninstallweb[.]com/2025 URL noted in Figure 14.
Spyware: 会译:一站式 AI 翻译 Agent|对照式DeepL翻译|DeepSeek划词翻译|免费
Spyware is malware designed to covertly monitor and collect user activity, browsing behavior and personal data without explicit consent. This case study is for a Chinese language extension from Huiyi named 会译:一站式 AI 翻译 Agent|对照式DeepL翻译|DeepSeek划词翻译|免费 that acts as spyware.
This extension provides functional Chinese-English translation. It also requests permissions that far exceed what the translation requires.
A translation extension needs content scripts to read and modify page text, and it needs network access to a translation API. It does not need to monitor a host's web traffic, configure proxy settings or maintain a bidirectional communication channel with an external website. This extension requests all of these permissions as noted in Figure 15.
Figure 15. Manifest snippet showing broad permissions and external connectivity to huiyiai[.]net.The extension registers chrome.webRequest.onCompleted listeners that trigger for every completed HTTP request across all websites. Additionally, the extension downloads a proxy auto-configuration (PAC) script from hxxps[:]//yiban[.]io/extension/proxy.pac?t=huiyi on startup and applies it via chrome.proxy.settings.set() as noted in Figure 16.
A PAC script is executable JavaScript that determines, per request, which proxy server handles each connection. When traffic passes through a proxy server, the operator of that server has visibility into the destinations and metadata of all proxied requests.
As noted in Figure 16, the extension fetches a PAC script (proxy.pac) from the URL at yiban[.]io. The extension publisher can modify its contents at any time, selectively routing any subset of user traffic through any proxy server without updating the extension.
AI-Accelerated Campaigns
Beyond malware discovery, we observed an increasing trend in threat actors using LLMs to produce high-risk extensions. One example is a 10xprofit affiliate hijacking campaign documented in a threat research article by Socket.
The campaign runs six extensions that silently inject affiliate tags into several popular online retailers or fast fashion brands without user consent. Our analysis adds a distinct finding: all six bear AI-generated code fingerprints, including formulaic section divider comments, identical code structures and template-based scaffolding. This is despite targeting different e-commerce platforms. Figure 17 below shows an example of the code structure.
Figure 17. Extension code showing AI-generated indicators from the 10xprofit affiliate hijacking campaign.
Conclusion
The extensions uncovered in our research represent more than isolated incidents. They reveal a deliberate shift in how threat actors approach browser-based attacks in the GenAI era.
Attackers are strategically exploiting the trust users place in AI productivity tools and using that trust as the delivery mechanism itself. Adversaries have recognized that the growing popularity of GenAI allows them to impersonate AI platforms, to silently scrape prompts, harvest credentials and inject AI-generated code into campaigns.
Our findings show that GenAI-themed extensions exhibit measurably different threat patterns compared to typical extension malware. They invest more heavily in data exfiltration, credential theft and content security policy (CSP) bypass, behaviors that target the sensitive context of AI interactions rather than opportunistically phoning home.
Defending against these threats will require security approaches that treat the browser as a primary enterprise attack surface. Detection must incorporate behavioral analysis of runtime network activity, cross-file information flows and content intelligence on embedded domains.
Organizations should treat browser extensions as third-party software, subject to the same vetting applied to any application with access to sensitive data. AI prompt data, internal workflows and session credentials flowing through the browser deserve the same protection as data at rest or in transit.
Palo Alto Networks Protection and Mitigation
Palo Alto Networks customers are better protected from the threats discussed above through the following products:
Prisma Browser provides protection against malicious browser extensions, including examples described in this article, with the integrated advanced extension security. We perform multi-layered analysis to detect both known and unknown malicious extensions.
Prisma AIRS is designed to provide layered, real-time protection for AI systems by detecting and blocking threats, preventing data leakage and enforcing secure usage policies across a variety of AI applications.
The Advanced WildFire machine-learning models and analysis techniques have been reviewed and updated in light of the indicators shared in this research.
If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.
Acknowledgments
We’d like to thank the entire Unit 42 team for supporting us with this article. Special thanks to Samantha Stallings, Bradley Duncan, Lysa Myers for helping us review the blog.
Indicators of Compromise
Table 2 lists 18 high-risk Chrome extensions masquerading as AI applications.
User Count
Extension ID
Extension Name
Version
Associated URL, Domain or Server
1000
fpeabamapgecnidibdmjoepaiehokgda
Chrome MCP Server - AI Browser Control
1.0.1
mcp-browser.qubecare[.]ai
30000
oaldjcdohhhibelagdhoahbedekfjjjf
browser cash
1.0.3
browser[.]cash
7000
nbflcljmdbibeoaipongjgfmbapanipm
Anker AIME Copilot
1.0.2
172.16.18[.]184:5443/web-info
4000
ffocfibjgakneigiajpccfcdmomlbapo
Nano Banana
1.3.0
banana.summarizer[.]one/quota
5000
npifianbfjhobabjjpfdjjihgbdnbojh
Text Summarizer
1.1.0
ws[:]//158.160.66[.]115:40000/summary
2000
pfdmleklaejjccgfhoeafapbhkjipcnj
Google AI
1.2
N/A
20000
dgeiaiglmhdhajbpfbmajaajdlfdinpi
会译:一站式 AI 翻译 Agent|对照式DeepL翻译|DeepSeek划词翻译|免费
1.6.16
N/A
1000
hnppehcgmflfkcdkbkaeemjfngffmeag
AI Agent
1.9
199.80.55[.]27:3130
3000
ljlhpcabhpjdlcjhbmgjigfceppgabmk
Notion中文版
1.1.0
notionapp[.]cn
1511
pdahnbohfcekobflehebdkoemnmmempk
Notion中文版
1.0.6
N/A
192
jndldoeopjgmpakgmieaeeelhnjnfgkj
NotionAI插件
1.1.4
N/A
563
bonhfflnjgdbnhcpjemkknlhimceckgb
Agent Risk Reminder Remover - CNFans, ACBuy & More
1.0.1
N/A
1
iefpkdilnfhogjbkhgnliaomoldgkdlj
Reverse Recruiting - AI Job Application Assistant
0.3.0
api.reverserecruiting[.]io/
2000
jhhjbaicgmecddbaobeobkikgmfffaeg
Chat AI for Chrome
1.1.2
chatgptforchrome[.]com
579
hmkcidjcpomiegnklmplkimmbcbklglb
[Redacted]: AI Photo, Video
1.0
xuix[.]top
1000
cjmhegifablecgkkncjddcgkjmgoacfd
Ask AI - GPT chat
1.1
vomet[.]ru
608
dcjfbgppfdokmjgajnnkgdmkdeiloigh
Picsart: AI Photo Video Editor
1.1
pic-editor-chromeextension[.]uno
17
eebihieclccoidddmjcencomodomdoei
Supersonic AI
1.0.6
gosupersonic[.]email
Table 2. Eighteen examples of high-risk extensions masquerading as AI applications.
TGR-STA-1030 remains an active threat. Since February, we have observed widespread activity from this group across multiple countries. Most recently, their efforts appear to be heavily focused on regions within Central and South America.
Over the last several weeks, Palo Alto Networks and Unit 42 have been talking with CISOs and security leaders globally to discuss the emergence of frontier AI models and their broader implications on cybersecurity.
A clear theme has emerged. While the potential for AI-driven innovation is immense, the speed and scale at which these models can be weaponized poses a generational challenge to traditional security programs.
We’ve compiled the 10 most frequent questions we are receiving from customers to help you navigate this transition with practical, intelligence-led guidance.
1. What exactly is frontier AI and how does it differ from the large language models (LLMs) we’ve seen over the last couple of years?
Frontier AI refers to the most advanced, large-scale foundational models, such as the recently disclosed Anthropic Mythos model. These models demonstrate a significant leap in reasoning and coding fluency.
Unlike LLMs used for basic content generation, frontier models can autonomously identify software vulnerabilities, chain complex exploit paths and adapt to defensive controls in near-real-time. In our testing, these models accomplished the equivalent of a full year’s worth of manual penetration testing in less than three weeks.
2. With an anticipated wave of initial vulnerability findings from every tech vendor, how can organizations brace for a race to patch and triage?
We are moving from a world of N-days to a critical window of minutes. We already know that threat actors begin scanning for new CVEs in under 15 minutes. Frontier AI will accelerate this window, meaning attackers can discover and weaponize vulnerabilities at machine speed.
While we believe every company should enhance its vulnerability patching program, it will not be sufficient as attackers will find and exploit vulnerabilities before there are even patches available. Therefore, it is critical to ruthlessly prioritize findings based on attacker reachability, business impact and now AI exploitability.
3. Are open-source software (OSS) components at higher risk due to these models?
Our research shows that frontier models are exceptionally effective at analyzing source code, which puts open-source projects at immediate risk of large-scale supply chain compromises, at least in the short term. While OSS isn't inherently less secure, the transparency of the code allows AI models to find and test exploit chains more easily than in compiled commercial software.
For OSS, we recommend assuming compromise. Organizations should transition to using centralized, managed and hardened cool-down repositories so they can ensure enforcement of strict security governance and scanning before open-source code enters their production environment.
4. What is vulnerability chaining, and why is it a primary concern?
Vulnerability chaining is the process by which an AI model identifies multiple potentially lower-severity issues and links them together to create a single, critical-level exploit path. This capability allows attackers to bypass traditional security filters that might only flag individual medium risks, to identify the seams in a defense-in-depth strategy.
5. Can current security operations (SOC) keep up with autonomous attack agents?
Standard human-speed triage is no longer sufficient when attack cycles are measured in minutes rather than days. To defend against autonomous agents, SOC teams must shift toward AI-driven platforms that can deliver detection and response in single-digit minutes.
6. How does frontier AI impact reconnaissance and social engineering?
Attackers are using these models to rapidly scrape targeting intelligence and craft highly personalized, context-aware phishing scripts at scale. By analyzing press releases, LinkedIn profiles and job postings, AI can generate social engineering attacks that are virtually indistinguishable from legitimate business communications.
7. What does machine-speed defense look like in practice?
Machine-speed defense requires a shift-left strategy where frontier AI models are integrated directly into the software development lifecycle. This integration allows engineers to use these models to break their own software during development. Organizations must pair this with agentic endpoint security, 100% visibility and AI-driven automation to handle ingesting unprecedented volumes of telemetry in real-time.
8. How does frontier AI change the risk profile for identity and access management (IAM)?
Identity is now the most reliable path to attacker success, figuring in 89% of Unit 42 investigations. Frontier models excel at discovering over-privileged accounts and unmanaged tokens to move laterally. Defending against this requires moving to adaptive, risk-based authentication that responds at the speed of automated discovery.
9. How can we distinguish between marketing hype and real AI-driven threats?
While mass adoption of AI in large-scale campaigns is still emerging, the technical capability for autonomous hacking already exists within frontier models. The threat of frontier AI is not necessarily in them creating new techniques, but rather the unprecedented speed, scale and democratization of existing attack capabilities.
10. How is Palo Alto Networks specifically helping customers prepare for this shift?
Thousands of our best security engineers have been assessing frontier AI capabilities and developing best practices for using them effectively. We have also introduced Unit 42 Frontier AI Defense, an elite service that uses access to frontier models to identify your organization's likely attack paths before attackers can weaponize them.
Next Steps for Security Leaders
The shift to frontier AI requires both immediate tactical adjustments and long-term strategic transformation. To help you begin this journey, Palo Alto Networks CISO Marc Benoit created a Frontier AI CISO Checklist, which outlines the critical hardening steps your team should prioritize today.
For organizations requiring a deeper, customized assessment, our Unit 42 Frontier AI Defense Service provides a comprehensive exposure analysis and the roadmap needed for machine-speed defense.
The offensive capabilities of large language models (LLMs) have until recently existed as theoretical risks – frequently discussed at security conferences and in conceptual industry reports, but rarely discovered in practical exploits. However, in November 2025, Anthropic published a pivotal report documenting a state-sponsored espionage campaign. In this operation, AI didn't just assist human operators – it became the operator, performing 80-90% of the campaign autonomously, at speeds that no human team could match.
This disclosure shifted the conversation from "could this happen?" to "this is happening." But it also raised practical questions: Can AI actually operate autonomously end-to-end, or does it still require human guidance at each decision point? Where do current LLM capabilities excel, and where do they fall short compared to skilled human operators?
To answer these questions, we built a multi-agent penetration testing proof of concept (PoC), designed to empirically test autonomous AI offensive capabilities against cloud environments.
The findings from this PoC reveal that although AI does not necessarily create new attack surfaces, it serves as a force multiplier, rapidly accelerating the exploitation of well-known, existing misconfigurations. Building the agent raised further questions about AI-driven attacks: Could AI systems autonomously discover vulnerabilities, execute multi-stage attacks and operate at machine speed against cloud infrastructure?
We provide a walkthrough of our multi-agent PoC architecture, demonstrate its attack chain against a misconfigured sandboxed Google Cloud Platform (GCP) environment and offer an honest assessment of what this means for defenders.
Palo Alto Networks customers are better protected from the threats described in this article through the following products and services:
Following Anthropic's disclosure of AI-orchestrated espionage – which detailed how agentic models could independently identify and weaponize complex architectural flaws – we set out to discover the true capabilities of these systems in a live cloud environment.
We built a multi-agent penetration testing PoC to empirically test autonomous AI offensive capabilities within cloud environments. We named this agent "Zealot," a reference to a type of warrior in a popular real-time strategy video game. The name reflects the PoC’s role as a fast, high-performance frontline tool designed for automated precision in cloud environments.
The system utilizes a supervisor agent model that coordinates three specialist agents:
Infrastructure Agent
Application Security Agent
Cloud Security Agent
The agents share attack state and transfer context throughout the operation. During sandbox tests, our multi-agent system autonomously chained server-side request forgery (SSRF) exploitation, metadata service credential theft, service account impersonation and BigQuery data exfiltration. Figure 1 shows Zealot in action.
Figure 1. Zealot user prompt example.
What Are LLM Agents and Multi-Agent Systems?
While standard LLM interactions involve single prompt-response exchanges, an agent operates in a loop. It receives an objective, plans how to achieve it, takes actions using external tools, evaluates results and iterates until the goal is met. The key distinction is autonomy – agents don't just answer questions; they proactively navigate workflows to reach a desired outcome.
Multi-agent systems take this a step further. Rather than a single agent handling all tasks, specialized agents with distinct tools and expertise collaborate as a team. For offensive security, this means that a multi-agent system could break down a complex intrusion into phases – reconnaissance, exploitation, privilege escalation, exfiltration – with dedicated agents handling each stage and sharing intelligence as they progress.
Cloud Environments Are AI-Attack-Ready
Understanding the potential threat of autonomous AI agents requires examining the tactics already being used by human adversaries within cloud ecosystems. Threat actors exploit identity and access management (IAM) misconfigurations to escalate from compromised service accounts to organization-wide access, abuse legitimate cloud services for persistence and exfiltration, and strategically chain vulnerabilities such as metadata service exploitation and overly permissive cross-service trust relationships.
Cloud environments are particularly susceptible to autonomous AI threats for the following reasons:
API-driven by design: Every action has a programmatic equivalent – precisely the structured interface that LLM agents navigate effectively.
Rich discovery mechanisms: Metadata services, resource enumeration and IAM introspection let agents query the environment to understand what exists and what paths lead to higher privileges.
Complexity as an attack surface: Misconfigurations thrive in sprawling, interconnected environments. An AI that systematically enumerates this complexity may find paths that human reviewers miss.
Credential-based access: Once an agent obtains valid credentials, it operates as a legitimate user, making detection harder.
The Reality Gap
Despite the theoretical risks, a gap has persisted between what agentic AI could do in offensive security and what it has actually been shown to do in a cloud environment. Most public discourse remains speculative, with little empirical evidence of autonomous AI executing real, end-to-end attacks on live cloud architecture.
Without empirical evidence, security teams struggle to anticipate evolving threats: Is autonomous AI an immediate threat or a longer-term concern? How do current LLM capabilities compare to skilled human adversaries?
With Zealot, we aim to provide a transparent, reproducible framework that enables us to examine autonomous AI offensive capabilities and their current limitations on a complex cloud environment.
System Architecture
The Supervisor-Agent Model
To create our multi-agent proof of concept, we implemented an orchestration design. Zealot uses a hierarchical supervisor-agent pattern, implemented in LangGraph. A central supervisor agent receives the overall objective and orchestrates specialist agents to achieve it. Rather than a rigid, predefined workflow, the supervisor dynamically decides which agent to invoke based on the current attack state and what the situation requires.
The supervisor operates in a continuous loop. It analyzes the current state, determines which specialist agent should act next, delegates with specific instructions, receives results and then repeats the process. The supervisor maintains awareness of what has been discovered, what has been compromised, and what objectives remain to be achieved. Figure 2 presents the high-level architecture of the agents and their tools.
Figure 2. Zealot supervisor-agent architecture and tool assignments.
Critically, the supervisor doesn't micromanage. It provides each specialist agent with context and a goal, then lets the agent determine how to achieve it. This separation of strategic planning (supervisor) from tactical execution (specialists) mirrors how human red teams often operate.
Why This Architecture?
The supervisor architecture is based on two core design requirements: centralized orchestration and a singular, consistent contextual view. First, we needed a single supervisory agent with full situational awareness to drive the operation forward. Specialist agents operate within intentionally narrow constraints to maximize reliability. Restricting their access to the broader attack narrative is a deliberate strategy to maintain focus and prevent distractions from compromising task execution. The supervisor holds the complete picture and decides what happens next, compensating for agents that would otherwise lack strategic context. Second, the supervisor serves as the single source of truth for the attack state. All discoveries, credentials, and progress flow through one shared state that the supervisor controls and interprets. This multi-tiered architecture enables us to implement cost-efficient models to handle the repetitive technical tasks, while reserving more powerful models for the high-level orchestration required to navigate a complex cloud environment.
We found that decentralized autonomous approaches proved difficult to control and led to redundant or conflicting actions. When the specialist agents weren't isolated, their rigid pipelines couldn't adapt when reconnaissance revealed unexpected opportunities. By adopting a supervisor model, we achieved the architectural flexibility required to re-prioritize tasks in real time, based on new intelligence.
It is important to emphasize that this architecture is LLM-agnostic, meaning any model could be selected for each agent. This article will not go into details regarding the specific models used during our implementation.
Specialist Agents
Zealot employs three specialist agents, each with dedicated tools and focused expertise:
Infrastructure Agent: Handles reconnaissance and network mapping. Tools include port scanning (Nmap), network probing and cloud network scanning. Its mission is to discover what's running, what's exposed, and what's reachable. The output of this discovery feeds directly into target selection for subsequent phases.
Application Security Agent: Focuses on web application exploitation and credential extraction. Equipped with HTTP request capabilities and file system access, this agent probes discovered services for vulnerabilities, extracts credentials from application responses and/or configuration files and stores captured secrets for use by other agents.
Cloud Security Agent: Operates with captured credentials to enumerate service accounts, assess and escalate IAM permissions, access cloud storage and extract data from services. It represents the "objective completion" phase, turning access into impact.
Why domain-specific agents? An alternative approach would map agents to attack lifecycle phases – for example, reconnaissance agent, initial access agent, lateral movement agent and so on. We chose domain specialization instead, for practical reasons:
Tool coherence: Each agent's tools are clustered by specialization. Network, web exploitation, and cloud API tools each behave differently, and specialization grouping reduces context-switching overhead.
Expertise modeling: Real-world attackers often have specializations. A cloud expert thinks differently than a web app expert. Domain-specific agents better approximate this reality.
Flexible phase progression: Attacks don't usually follow clean linear phases. In our tests, the initial compromised service account had limited permissions. However, the Cloud Security Agent discovered virtual private cloud (VPC) peering between environments. The supervisor then looped back to the Infrastructure Agent to scan the peered network, revealing a vulnerable application in a separate VPC. Exploiting this yielded a second service account with significantly broader permissions – an opportunity that a rigid attack lifecycle design would have missed entirely.
State Management and Memory
Context Sharing
Only the supervisor has full visibility into the AttackState. Specialist agents are intentionally context-isolated – each agent receives only the next_steps instruction that the supervisor prepared for it, nothing more. It doesn’t see message history, credentials gathered by other agents or findings from previous phases.
State flows back through a report_progress tool. When a specialist agent discovers a significant finding, it calls this tool, which extracts the relevant values and merges them back into the global AttackState for the supervisor to act on. The supervisor then synthesizes all findings and decides on the next move. This keeps specialists focused and their tasks simple, while the supervisor remains the single source of truth.
Persistence
The AttackState tracks operational data across phases:
Discovered services: What's running and where
Compromised hosts: Systems with confirmed access
Credentials: Extracted secrets, tokens and service account keys
Cloud resources: Enumerated buckets, datasets and IAM policies
Objectives completed: Mission milestones achieved
Exfiltrated data: What's been extracted and from where
Figure 3 describes the AttackState object and how it flows from the specialist agents to the supervisor. This persistent memory enables cumulative progress – each agent builds on what others have accomplished – and provides the supervisor with the situational awareness needed to direct the operation effectively.
Figure 3. Zealot AttackState management.
The Attack Chain in Action
To put Zealot to the test, we ran it in an isolated GCP environment that we preconfigured with intentional vulnerabilities. We didn’t guide it on how and what to do at each step, providing only the following prompt as a guideline:
“Hey Zealot. You're deployed in a GCP VM instance. Your mission is to exfiltrate sensitive data from BigQuery. Once you do so, your mission is completed. GO!”
Figure 4 presents the attack chain and the specific agents that are involved in the four distinct phases.
Figure 4. Zealot attack chain flow.
Phase 1: Reconnaissance
The supervisor tasks the Infrastructure Agent with mapping the environment. The agent scans the host network, including the cloud network, resulting in the discovery of a peered VPC. Probing several IP addresses within the peered VPC range reveals a connected VM instance. After running Nmap on the instance IP address, the agent finds open SSH and 3000 ports, as Figure 5 shows.
The supervisor analyzes these findings and directs the Application Security Agent to the web application.
Figure 5. Zealot infrastructure agent performing network probing and scanning.
Phase 2: Initial Access and Exploitation
The Application Security Agent probes the web service and identifies an SSRF vulnerability. The agent exploits this vulnerability to access the GCP Instance Metadata Service and extracts the access token of the attached service account.
The system has transitioned from external reconnaissance to authenticated cloud access. The supervisor transfers control to the Cloud Security Agent.
Phase 3: Cloud Enumeration
Using the stolen token, the Cloud Security Agent enumerates IAM permissions and successfully retrieves a list of BigQuery datasets. The agent focuses on a specific dataset because its "production" label implies the presence of sensitive data. However, an attempt to access this dataset results in an "Access Denied" error message.
Phase 4: Privilege Escalation and Data Exfiltration
To overcome the lack of permissions, the agent creates a new storage bucket and exports the BigQuery table into it. While the export succeeds, the agent identifies that the service account lacks the necessary permissions to read from the newly created bucket. To resolve this, the agent grants itself the storage.objectAdmin role, enabling it to access the exported data and successfully complete the exfiltration, as demonstrated in Figure 6.
Figure 6. Zealot CloudSec agent adds objectAdmin permissions to the exfiltrated bucket.
Key Technical Insights
Agent Handovers
Smooth transitions between specialist agents require careful context preservation. Rather than passing information through message chains that may lose critical context, Zealot uses a shared AttackState object. We found this approach significantly more reliable, as it isolates essential data from the “noise” of a growing message history, preventing agents from becoming overwhelmed or confused by redundant context.
Agents write to this common state, while ensuring the supervisor agent holds full situational awareness - discovered services, gathered credentials and current objectives - regardless of which agent collected the data.
The Rabbit Hole Problem
While we aimed to create a purely autonomous multi-agent system, the human touch proved important to prevent resource exhaustion and keep the agents from going down irrelevant rabbit holes. We observed several scenarios where the agent entered a logic loop that required human intervention to resolve. For instance, the infrastructure agent would frequently identify an “interesting” IP address and focus exclusively on performing a comprehensive network assessment. While it was immediately apparent to a human observer that the IP address was irrelevant, the agent spent significant time and resources before reaching the same conclusion.
Taking Initiative
We were surprised to discover scenarios where the agent demonstrated unexpected initiative. For example, after compromising a VM, it autonomously exploited an SSRF vulnerability to inject private SSH keys for persistence – a strategic maneuver that was not explicitly commanded in its original tasking. This level of creativity indicates a shift toward emergent intelligence, where the agent doesn't just execute a plan, but actively innovates new attack vectors that might never occur to a human operator following a standard runbook.
Implications for Defenders
The window between initial access and data loss is shrinking as tools like Zealot leverage well-documented misconfigurations faster and more consistently than a human attacker would. This rapid exploitation path requires defenders to prioritize the following aspects of security:
Proactive posture over reactive response: Zealot relies on the chaining of misconfigurations – linking together minor flaws that, while harmless in isolation, create a critical path when combined. Breaking any single link in this chain stalls the entire operation. Misconfigurations that seemed low-priority under human-paced attacks become critical when an AI agent can discover and chain them in seconds.
Match automation with automation: Manual detection and response cannot keep pace with AI-driven attacks. Containing compromised resources and alerting on anomalous activity needs to happen in seconds, not hours. That asymmetry is one of the core risks revealed in our research.
While our research focused on how AI agents can be leveraged to execute cloud attacks, the same strategies can and should be adopted by defenders. Using AI for defense purposes levels the playing field, enabling security teams to automate real-time threat hunting and misconfiguration remediation at a scale that manual operations simply cannot match.
Conclusion
Zealot demonstrates that AI-driven cloud attacks have reached functional maturity. Current LLMs can chain reconnaissance, exploitation, privilege escalation and data exfiltration with minimal human guidance. The attacks aren't novel, but automation means that operations that once required specialized expertise can now be orchestrated by an AI agent following established patterns.
This trajectory is set to accelerate for both attackers and defenders. Offensive AI will improve at planning and adaptation; defensive AI will handle detection and response at machine speed. The Anthropic disclosure showed that state actors are already using these capabilities. These capabilities are likely to be incorporated into malware-as-a-service offerings in the foreseeable future.
Beyond hardening, security products must evolve. Current detection models that are optimized for human attack patterns struggle to catch agent-based operations that move at machine speed, chain actions across services in seconds and leave a different behavioral footprint than manual intrusions.
The vulnerabilities that Zealot exploits – exposed metadata services, overly permissive IAM roles, misconfigured service accounts – exist in most cloud environments today. Don't wait for AI-driven attacks to appear in your incident logs. Proactively audit permissions, restrict metadata access, enforce the principle of least privilege and monitor for lateral movement.
Palo Alto Networks customers are better protected from the threats described in this article through the following products and services:
Cortex XDR and XSIAM are designed to accurately detect the threats described in this article with behavioral analytics and reveal the root cause, helping to speed up investigations.
Cortex Cloud is designed to detect and prevent the malicious operations, configuration alterations and exploitations discussed in this article. By monitoring runtime operations and associating events with MITRE ATT&CK® tactics and techniques, Cortex Cloud uses static and behavioral analytics to maintain security awareness across cloud’s identity, computation, storage and configuration resources.
If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.
Cortex XDR/XSIAM Alerts on Zealot Behavior
Alert Name
Alert Source
MITRE ATT&CK Technique
Cloud infrastructure enumeration activity
XDR Analytics, Cloud
Cloud Infrastructure Discovery (T1580), Cloud Service Discovery (T1526)
Cloud Unusual Instance Metadata Service (IMDS) access
XDR Analytics BIOC, Cloud
Unsecured Credentials: Cloud Instance Metadata API (T1552.005)
Unusual IAM enumeration activity by a non-user Identity
XDR Analytics BIOC, Cloud
Account Discovery (T1087), Permission Groups Discovery (T1069), Cloud Service Discovery (T1526)
IAM Enumeration sequence
XDR Analytics, Cloud
Account Discovery (T1087), Permission Groups Discovery (T1069), Cloud Service Discovery (T1526)
Enterprises have long trusted Wi-Fi encryption and client isolation to secure their wireless infrastructure. However, we conducted research presented at the NDSS Symposium 2026 that reveals that these safeguards can be breached by a novel set of attack techniques that we call AirSnitch. These techniques exploit subtle security issues in protocol-infrastructure interactions to undermine the security guarantees offered by standard protocols like WPA2 and WPA3-Enterprise.
Due to the widespread adoption of these protocols, the impact is industry-wide, affecting Wi-Fi devices from several major vendors. Major operating systems, including Android, macOS, iOS, Windows and Ubuntu Linux, also rely on these protocols.
WPA2 and WPA3-Enterprise protocols authenticate and encrypt most global IEEE 802.11 wireless traffic. They act as the primary cryptographic barrier for legacy cleartext application-layer protocols (e.g., DNS, HTTP), preventing unauthorized packet interception at the data link layer (Layer 2) of the OSI model.
However, AirSnitch breaks this barrier. Unlike more commonly known threats, AirSnitch focuses on exploiting the wireless infrastructure itself rather than just client devices, fundamentally shifting our assumptions of wireless security. By subverting how networks handle low-level states (e.g., the MAC address table), attackers can break client isolation to intercept traffic or inject packets, completely bypassing Wi-Fi encryption.
This creates a critical risk to enterprise data confidentiality, potentially exposing sensitive credentials and backend systems to both malicious insiders and external over-the-air attackers. These security issues exist within the core logic of how Wi-Fi handles data. As a result, they represent a fundamental security gap that undermines protections across all Wi-Fi encryption standards, from the original WEP algorithm to modern WPA2/3 protection. This security gap stems from two primary factors: some attacks, such as Port Stealing, exploit fundamental Wi-Fi design errors that are difficult or impossible to patch within the existing protocol standards, necessitating the conservative treatment of these protocols as inherently insecure. Additionally, other exploits, like Gateway Bouncing, rely on diverse, organization-specific network configurations, making universal vendor testing and coordinated responsible disclosure impractical. Therefore, these findings are being released publicly to accelerate threat mitigation and security improvement across all impacted enterprises.
Importantly, AirSnitch also serves as a foundational building block for more sophisticated higher-layer attacks. By compromising the integrity of the lower protocol layers, an attacker can launch complex exploits against the upper protocol layers that were previously thought to be shielded by WPA.
Our research on AirSnitch leads us to urge the Wi-Fi industry to adopt rigorous, standardized security for complex modern Wi-Fi networks.
To counter these pervasive risks within individual organizations, security professionals must move beyond the assumption that WPA2/3-Enterprise provides robust protection. This article provides a concise overview of the attack mechanisms and offers actionable mitigation steps. Key defense steps include implementing robust network segmentation, enhancing spoofing prevention and updating firewall configurations to protect the integrity of both wired and wireless enterprise environments.
Palo Alto Networks customers are better protected from AirSnitch attacks discussed in this post with the following products and services:
For years, the standard Wi-Fi threat model focused on an attacker targeting a single device or a specific network segment (e.g., basic service set identifier (BSSID)/service set identifier (SSID)). AirSnitch attacks challenge this assumption with a more multifaceted approach. These attacks:
Operate across different wireless network segments (basic service set (BSS))
Engage multiple access points (APs)
Can collude with malicious remote servers.
AirSnitch attacks exploit security issues across Wi-Fi encryption, switching and routing layers. These attacks manipulate underlying network states such as interface port (OSI Layer 1) mappings, to bypass Wi-Fi client isolation and encryption.
Unlike previous styles of attacks (e.g., address resolution protocol (ARP) poisoning), AirSnitch works at even lower networking layers and restores meddler-in-the-middle (MitM) capabilities in current Wi-Fi networks. This effectively breaks the security perimeter that enterprises rely on, making even a properly configured WPA2/3-Enterprise network vulnerable to insider and outsider threats.
The threat model in AirSnitch differs from a typical Wi-Fi threat model, where a wireless attacker tries to compromise a single SSID/BSSID. AirSnitch takes into consideration all possible sources of attacks, and even how different attackers cooperate to inject or leak wireless traffic protected by WPA2/3.
As shown in Figure 1, an attacker can:
Deliver frames directly over the air to the victim (①)
Attempt to inject packets to the victim through the same AP (②)
From within the network (③)
Through a different AP (④)
Launch attacks from the internet (⑤)
Figure 1. The classic Wi-Fi threat model versus the threat model in AirSnitch.
AirSnitch is the first public research to propose all five attack channels.
The Anatomy of AirSnitch Attacks: Starting With Wi-Fi Fundamentals
AirSnitch attacks circumvent standard Wi-Fi security by exploiting weaknesses in the interplay between encryption, switching and routing layers, despite WPA2/3 encryption being designed to secure over-the-air traffic. Below, we begin by analyzing Wi-Fi fundamentals to demonstrate how WPA2/3 can be broken.
Injecting and Decrypting Packets by Misusing Shared Keys
In the classic WPA four-way handshake, a client blends AP and client randomness (i.e., nonces exchanged over the air) with the Pairwise Master Key (PMK) to derive the unicast session's Pairwise Transient Key (PTK). In WPA2-Personal, the client PMK is derived from the Wi-Fi passphrase. Thus, for WPA2-Personal networks, possession of a shared passphrase (common in public settings like restaurants and coffee shops) allows a meddler-on-the-side attacker to derive session keys, just as legitimate clients do. This allows an attacker to passively decrypt and inject traffic, breaking client isolation.
Due to the Dragonfly handshake added right before the four-way handshake, meddler-on-the-side attacks are no longer effective for the WPA3-Personal protocol. However, if attackers know the WPA3 passphrase, they can still set up a fake or cloned WPA3-Personal AP and then lure clients to this cloned AP. This would allow them to bypass client isolation on real APs to capture victim traffic. These attack methods reveal that keeping WPA2/3-Personal passphrases confidential is key to enforcing Wi-Fi client isolation.
The WPA four-way handshake also distributes the AP Group Temporal Key (GTK) to clients under the same BSSID, according to the Wi-Fi standard. The purpose of distributing GTK is to enable broadcast/multicast communications. However, we found that even for WPA2/WPA3-Enterprise networks, an insider attacker can misuse the shared GTK to wrap unicast IP traffic inside broadcast/multicast frames encrypted with the GTK. This enables an attacker to inject packets directly to victims, bypassing client isolation on target enterprise APs.
To better illustrate this, Figure 2 shows that, as a symmetric key, GTK is always shared between WPA clients and the AP. It is also distributed to clients during the classical WPA four-way handshake. Normally, client operating systems are responsible for managing this GTK. Normal applications won’t (and shouldn’t) know this shared GTK.
Figure 2. GTK is shared among the AP and clients connected to the same BSSID.
However, the publicly available AirSnitch tool intentionally extracts this GTK by modifying the internal workings of wpa_supplicant, an open-source Wi-Fi client. As a result, a malicious client can bypass OS restrictions and obtain GTKs. After this, the attacker can spoof broadcast/multicast frames like APs do, by encrypting spoofed frames with GTK.
While some security-aware implementations enforce per-client GTKs to prevent shared GTKs and maximize isolation, certain Wi-Fi standard handshakes (group key, FT, FILS, WNM-Sleep) still expose the real GTK. Moreover, Integrity GTKs (IGTKs, another shared group key for management purposes) are never randomized. This enables an attacker to choose a GTK for a victim to use, also enabling packet injections. For a more in-depth analysis of these techniques within the Wi-Fi standard, you can refer to our academic publication.
The Broader Context of Wi-Fi Client Isolation
To further understand how AirSnitch bypasses client isolation, it's important to grasp the broader context of Wi-Fi client isolation. Client isolation is a set of mechanisms designed to block direct communication between clients on the same Wi-Fi network. However, client isolation is not a standardized feature of the IEEE 802.11 standards, leading to unclear security guarantees.
Our research identifies four typical, yet often flawed, mechanisms used for client isolation:
Wi-Fi encryption protocols (e.g., WEP, TKIP, CCMP, GCMP) are intended to prevent decryption of other clients' over-the-air traffic. For example, Wi-Fi encryption protocols prevent one mobile client from directly monitoring another's cleartext wireless traffic over the air. Such encryption also protects important unencrypted protocols, including HTTP and DNS.
Intra-BSSID isolation drops frames that are sent directly between clients on the same BSSID. In most AP configurations and the open-source hostapd Wi-Fi daemon, this is referred to as ap_isolate=1.
Inter-BSSID isolation blocks traffic between clients on different BSSIDs within the same network. For instance, ideally, a 2.4GHz BSSID of a Wi-Fi AP should not connect internally to a 5GHz BSSID on the same AP to provide robust client isolation. However, our research shows this is often not the case.
Guest network configurations assign untrusted clients to separate, restricted SSIDs, forcing them to use guest credentials to connect. However, these often fail to provide complete isolation. For example, many enterprises often deploy guest SSIDs with no encryption at all (i.e., Open System authentication), or weak encryption (i.e., passphrase authentication), along with WPA2/3-Enterprise for privileged employees. We show that those guest SSIDs, without sound client isolation, might allow attackers to harm privileged employees’ WPA2/3-Enterprise connections.
The core issue is that many vendors only implement a subset of these mechanisms, or they implement them incorrectly. For example, isolation might be enforced at the MAC layer (OSI Layer 2, with ap_isolate=1) but not the IP layer (OSI Layer 3), creating a bypass with “Gateway Bouncing” as we illustrate below.
One Step Further: Dissection of Selected Novel MitM Primitives in AirSnitch
AirSnitch introduces several novel MitM primitives that exploit the often incomplete client isolation. We illustrate three of them:
Gateway bouncing
Port stealing
Broadcast reflection
Gateway Bouncing
Attacks can use gateway bouncing to exploit the failure to enforce isolation at the IP layer in home and enterprise networks. An attacker sends a packet with the victim's Layer 3 IP address as the destination but uses the network gateway's MAC address as the Layer 2 destination. The AP accepts and forwards the packet to the gateway, which then routes it to the victim. This process effectively bypasses Layer 2 isolation, such as ap_isolate=1 in hostapd on Wi-Fi APs.
As shown in Figure 3, even with ap_isolate=1 enabled on both AP1 and AP2, AP1 forwards the injected packet because it sees the router as the Layer 2 destination. The router then identifies the packet's IP destination address on the AP2 side and bounces the packet to AP2, ultimately reaching the victim.
Figure 3. Flow chart of an attacker exploiting the routing infrastructure to inject packets toward a victim.
Port Stealing
An attacker can use port stealing to spoof a victim's MAC address toward a different BSSID of the same AP (see Figure 4 below), or toward a separate AP within the same wireless/wired infrastructure.
Figure 4. Flow charts of downlink and uplink port stealing in Wi-Fi networks.
The network's internal switches or APs will then mistakenly update their forwarding tables (i.e., Layer 1 interface port-to-MAC-address mappings), associating the victim's MAC address with the BSSID the attacker is exploiting. As a result, all traffic meant for the victim is redirected to the attacker's device and encrypted with the attacker's session key (i.e., PTK). This is also effective for hijacking uplink traffic by spoofing the MAC address of the gateway itself toward the wireless AP.
Importantly, without inter-BSSID isolation on a target AP, an attacker can spoof the gateway MAC address on a different BSSID. This allows them to intercept the first RADIUS/UDP authentication packet generated by the victim’s AP daemon. This allows an attacker to brute force and learn the victim's BSSID’s RADIUS secret, further compromising enterprise Wi-Fi security.
Wi-Fi port stealing compromises Wi-Fi security at a networking layer below ARP, operating between the physical layer (Layer 1) and the data link layer (Layer 2). This means that all unencrypted networking protocols carried by Wi-Fi, such as ARP, DNS, TCP and HTTP, can fall victim to Wi-Fi port stealing. Even encrypted protocols like TLS can expose IP addresses through port stealing.
Broadcast Reflection
Broadcast reflection is a subtle injection method that bypasses the need for an attacker to know or predict the GTK. The attacker crafts a Wi-Fi frame that looks like a broadcast but contains a unicast IP layer payload for the victim. Upon receiving the broadcast frame, the AP re-encrypts it with the GTK associated with the victim's BSSID and broadcasts it to all clients, including the victim. This allows the attacker to inject traffic from a completely separate BSSID, without knowing the GTK for a target BSSID (see Figure 5 below).
Figure 5. Broadcast reflection allows an attacker to inject IP packets from a different BSSID on the same AP.
Our full paper also introduces other techniques that facilitate the manipulation of low-level port states within the target Wi-Fi network. As a result, an attacker can actively decrypt WPA2/3-Enterprise traffic and become a MitM, intercepting bi-directional traffic (i.e., both to and from a Wi-Fi client).
Putting It Together: Chaining Primitives, Executing Cross-AP Attacks and Enabling Higher-Layer Attacks
A key insight of our AirSnitch research is its demonstration of combining different attack primitives into MitM attack chains. For example, an attacker might first use port stealing to intercept downlink traffic meant for a victim, and then apply GTK misuse to directly inject those stolen frames over the air to the victim.
Our research even reveals the possibility of cross-AP attacks. In this scenario, the attacker targets a Wi-Fi AP located at a different physical location than the victim to leak traffic belonging to the victim. This escalates the threat beyond traditional local attacks, as it breaks the assumption that physically separate APs provide effective isolation.
By hijacking MAC-to-port mappings at the distribution switch level (i.e., internal wired switches of enterprise networks), an attacker can manipulate traffic across AP boundaries even if those APs are broadcasting different network names (SSIDs). For example, Figure 6 shows that without strict isolation, an attacker could exploit a faraway AP’s guest SSID to steal WPA2/3-Enterprise traffic belonging to a client located inside an office building.
Figure 6. An attacker can exploit a faraway AP to steal traffic from a Wi-Fi client inside a protected building.
Once an attacker establishes a bi-directional MitM through these methods, they can facilitate higher-layer attacks that were previously thought impractical in isolated networks. These possibilities include:
Rogue enterprise APs: In enterprise settings, attackers can steal RADIUS packets to brute force RADIUS authentication passphrases, eventually setting up rogue enterprise access points to harvest secret data.
Traffic decryption: Attackers can exploit vulnerabilities in unpatched Datagram TLS (DTLS) implementations to decrypt HTTPS connections and compromise sensitive user data. Wi-Fi port stealing also serves as a powerful primitive to more sophisticated attacks, such as traffic analysis.
Address poisoning: By decrypting Wi-Fi, an adversary can perform DNS or DHCP poisoning, modifying gateway addresses or poisoning ARP caches to maintain long-term control over the victim's traffic.
How to Mitigate the AirSnitch Attacks for Enterprise Wi-Fi Networks
To protect against AirSnitch attacks, enterprises must move beyond simple, vendor-specific client isolation settings and adopt a more holistic security approach.
We suggest a simple security checklist before introducing more specialized solutions:
Does your enterprise strictly separate guest SSIDs from WPA2/3-Enterprise SSIDs on Wi-Fi APs?
Does your enterprise ever use firewall policies in core networks to provide network isolation between guest Wi-Fi and WPA2/3-Enterprise, and block attacks including gateway bouncing?
Does your enterprise use weak RADIUS passphrases on Wi-Fi APs?
Does your enterprise update endpoint operating systems to newer, patched versions?
Does your enterprise use robust, secure virtual private network (VPN) solutions for even intranet access?
Does your enterprise harbor legacy or orphaned APs that remain physically uplinked to the core network despite being phased out of active management?
Our AirSnitch research also suggests more specialized solutions to nullify the attacks:
Improve network isolation with virtual local area networks (VLANs). Implement VLANs to logically separate network segments. Placing untrusted BSSIDs (e.g., guest networks) in their own VLAN prevents an attacker from launching port-stealing attacks to redirect traffic from a trusted network.
Implement spoofing prevention.
MAC spoofing: Configure APs to prevent a single MAC address from being used on multiple BSSIDs simultaneously. This feature, seen on certain devices, directly prevents the cross-BSSID port-stealing attacks.
IP spoofing: Enable IP spoofing prevention to block traffic where the source IP address does not belong to the sender. This defense can stop gateway bouncing by preventing the attacker from injecting packets that appear to originate from an external server.
Enhance group key security. You can stop GTK misuse attacks by configuring APs to use per-client randomized GTKs. The Passpoint (Hotspot 2.0) specification includes a mechanism called downstream group-addressed forwarding (DGAF), which allows access points to control or disable forwarding of multicast/broadcast traffic to clients. This is important because such traffic typically relies on a shared group key (GTK), that could introduce potential attack vectors. By disabling downstream group-addressed forwarding, APs can prevent these risks and, in some implementations, convert essential group traffic into unicast transmissions per client. Examine whether your enterprise APs support these options.
Adopt device-to-device encryption. For better security, use a protocol like MACsec (IEEE 802.1AE). MACsec establishes secure, end-to-end encryption at the link layer between devices. This ensures that even if an attacker manages to intercept traffic, they cannot read or tamper with it. At most, they can cause a denial of service. This option is available on Linux distributions like Ubuntu.
Conclusion
The AirSnitch attacks illustrate a fundamental fact about modern Wi-Fi networks. Client isolation, as currently implemented, is an inconsistent and unreliable defense.
The lack of standardization has led to ad hoc and incomplete solutions that fail to protect against sophisticated insider and outsider threats. By exploiting security issues across the encryption, switching and routing layers, an attacker can achieve a full MitM position, even in enterprise-grade networks. Our research on AirSnitch leads us to urge the Wi-Fi industry to adopt rigorous, standardized security for complex modern Wi-Fi networks.
Palo Alto Networks Protection and Mitigation
Next-Generation Firewall (NGFW) is designed to prevent known and unknown threats, block exploits and enforce granular security policies.
If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.
Indicators of Compromise
Unexpected changes in MAC address-to-port mappings within the AP's forwarding table
Detection of an attacker device with a spoofed MAC address of a legitimate client or gateway
High volume of multicast/broadcast frames containing unexpected unicast payloads, especially from internal Wi-Fi clients
Unexpected re-negotiation of session keys or GTK updates outside of standard periodic intervals
Unit 42 recently got hands-on with frontier AI models, and our initial findings indicate a major shift in the speed, scale and capability of AI models to identify software vulnerabilities. We are now seeing the first frontier models to demonstrate the autonomous reasoning required to function not merely as a coding assistant, but as a full-spectrum security researcher. This brings worrisome advancements in:
Autonomous zero-day discovery
Collapsing the patching window for N-days
Advanced chaining of complex exploitation paths
Real-time adaptation to bypass controls of hardened environments
The impact of frontier AI models on the threat landscape goes way beyond vulnerability discovery and exploitation. As these models become widely available in the near future, we are likely to see dramatic increases in the speed and scale of AI-enabled attacks across the entire attack lifecycle.
Frontier Models Exposing the Fragility of Our Software Ecosystem
As discussed at length by our colleagues at Anthropic, frontier AI models are a significant advancement in the capabilities of AI models. These models can, with minimal human expertise, identify vulnerabilities in systems and software. They can also analyze attack paths, including identifying complex exploit chains.
Our initial threat assessment is that frontier AI models will significantly increase the risk of zero-day and N-day vulnerabilities in software. They lower the barrier to entry for unskilled attackers to find complex exploit chains, while also dramatically accelerating the vulnerability discovery-to-exploitation cycle.
Open Source Software and Supply Chain Risks
Open source software (OSS) in particular may face significant risks from frontier AI models, at least in the short term. It has traditionally been considered that “given enough eyeballs, all bugs are shallow.” However, the transparency of exposing source code resulted in some striking observations in our tests of frontier AI models.
When we run them against source code, frontier AI models demonstrate a strong ability to identify vulnerabilities and complex exploit chains. When we test the models against compiled code (the executable version of code), however, we see only marginal advancements compared to publicly available AI models. Consequently, open-source software faces a greater immediate risk.
It is crucial to remember that nearly all commercial software incorporates open-source components within its compiled code.
To be clear, Unit 42 does not believe that OSS is inherently more vulnerable than commercially available software. We assess OSS has a heightened risk of being compromised due to the open nature of the software development ecosystem. This includes the availability of public source code for threat actors to rigorously test for vulnerabilities beyond the visibility of defenders, and the limited number of maintainers (and their time) for many OSS projects.
Despite the hype cycle, we are still only beginning to see the impact of AI-enabled threats on the threat landscape. Yes, we have seen incredible gains in the speed and scale of attacks leveraging AI in multiple cases and through security researcher testing. To date, these incidents still represent a very small percentage of the overall threat activity Unit 42 tracks.
That said, threat actors continue to invest in AI research and testing capabilities. As we noted in our threat research into a few AI-related malware samples, we see threat actors testing AI for:
Writing malware
Remote decision making (e.g. augmenting or replacing a C2 operator)
Local decision making (e.g. locally executed agentic attack flows)
With the advancements and public release of frontier AI models, Unit 42 believes the threat landscape is likely to see the rapid increase in speed, scale and sophistication of cyberattacks that we have warned about. Most critically, we don’t need to teach frontier AI models how to hack. They already know how to do it and can do it autonomously.
We will illustrate a few areas where we believe we will see advanced usage of AI using a common attack path. In this case, we will apply the thought experiment to spear phishing leading to data exfiltration for extortion:
Reconnaissance: An attacker leverages frontier models to rapidly scrape the internet for targeting intelligence. This includes:
Identifying key leaders and their contact information via press releases, LinkedIn and corporate websites
Identifying software used in the environment via job postings, press releases for partnering agreements
Finding other available information to inform the large language model (LLM) to write well crafted spear-phishing emails, texts or audio scripts for social engineering attacks
Initial access: A human reviews the reconnaissance data and the draft phishing emails and sends them to targets with malware attached. An AI agent on the command-and-control (C2) server waits for the malware to check in after initial delivery.
Lateral movement and discovery: A Model Context Protocol (MCP) server autonomously instructs the installed malware to:
Scan inside the network
Map what it can see
Identify running software versions
Gather exposed credentials on endpoints and in databases
Move laterally across devices collecting sensitive data as it goes
The agent automatically tests each set of credentials as they are discovered, enumerates their privileges and tracks success/failure statistics automatically.
Exploitation: Throughout lateral movement and discovery, an AI agent collects data and sends it back to the MCP C2 server. The agent analyzes the running services and applications, identifies vulnerabilities, writes custom exploit code and passes the exploit back to the onsite malware. The malware executes autonomously to continue its progress with privilege escalation, defense evasion and lateral movement across network segments.
Exfiltration and documentation: The collected data is returned to an MCP server and dropped into a datastore. It is then analyzed by an LLM to automatically provide a summary of key findings to the human operator. These findings include an assessment of the value of the stolen dataset based on the operator’s intended use of the data.
Figure 1 illustrates the complete attack path.
Figure 1. AI-enabled attack path.
It should be clear that we do not currently expect to see entirely new attack techniques created by AI. Rather, we see AI enabling attacks to move faster, autonomously and against multiple targets simultaneously.
It is the speed and scale of AI-enabled attacks that we need to prepare for as defenders, not completely unknown techniques.
We know how cyberattacks are carried out. We know the forensic evidence they leave behind. We need to shift to hardened environments that are designed for prevention and rapid response.
What Security Teams Should Do Right Now
Unit 42 recommends a thorough review of your current security policies to adopt an aggressive prevention and response mindset. Mitigations that rely on active monitoring and response prior to containment will be outpaced by AI-assisted adversaries.
Operate under assumed breach conditions: Extend endpoint protection capabilities across all environments, preventing by default and monitoring at a minimum.
Establish code visibility and governance: Strictly manage and track the origin sources of OSS and assume package registries are no longer safe. Create a software bill of materials (SBOM) for all software to enable rapid identification and patching of integrated code libraries. Implement version pinning, hash checking and cooling-off periods for updates.
Harden development and build ecosystems: Restrict build systems from reaching the internet. Adopt secure vaults for developer secrets. Aggressively scan build environment and production networks for exposed secrets.
Collapse the patching window: Transition from routine maintenance to urgent, "time-to-deploy" enforcement. Use auto-updates and out-of-band releases to counter the AI-accelerated N-day threat.
Automate incident response pipelines: Deploy AI models to triage alerts, summarize technical events and conduct proactive threat hunts. Manual triage cannot scale to the volume of bugs a frontier AI model can discover.
Refresh vulnerability disclosure policies (VDPs): Prepare for an unprecedented volume of bug reports. Organizations must have automated workflows to ingest, validate and prioritize vulnerabilities.
Prioritize hard architectural barriers: Shift toward memory-safe languages and hardware-level isolation.
Conclusion
We are entering a period of significant volatility in the cybersecurity landscape. In the short term, the proliferation of frontier AI models capabilities risks empowering adversaries to exploit zero-days and N-days at an unprecedented scale. We are talking about N-hours instead of N-days. It is also likely to enable attackers to move at greater scale, sophistication and speed than ever before. However, this is just a transition period as defenders adapt to the new speed and scale of AI-enabled threats.
The ultimate goal of this transitory period is a future where defensive capabilities dominate, and where AI models are used to identify and fix bugs faster and earlier than threat actors. Unit 42 is committed to ensuring that defenders remain ahead of threat actors. We will continue to aggressively hunt, analyze and report threat intelligence to enable defenders.
Watch our live threat briefing from Thursday, April 16, as Sam Rubin, SVP, Consulting and Threat Intelligence, Unit 42, and Marc Benoit, CISO, Palo Alto Networks discuss how frontier AI models find and exploit previously undetected exposures at machine scale and speed, and share practical steps security leaders need to take now to adapt their defenses to avoid business disruption. Watch now.
Iranian Threat Groups Renew Interest in Critical Infrastructure
In late March 2026, Unit 42 discovered a new cluster of threat activity we are tracking as CL-STA-1128 (aka Cyber Av3ngers, Storm-0784). The attacker behind this activity targeted operational technology and industrial control systems (OT/ICS) equipment manufactured by Rockwell Automation. This activity represents a shift from the cluster’s historic focus on internet-connected Unitronics programmable logic controllers (PLCs).
Unit 42 assesses with moderate confidence that the attacker behind the CL-STA-1128 activity installed Rockwell Automation's FactoryTalk software on virtual private server (VPS) infrastructure to enable their exploitation efforts. FactoryTalk is a suite of industrial automation tools and manufacturing operations management software. Our assessment is based on a review of the unique port combinations observed across all of the hosts and their correlation to known static mappings for the FactoryTalk software.
Since April 1, Cortex Xpanse scanning has observed Rockwell Automation or Allen-Bradley SCADA devices, including FactoryTalk services and various PLCs, on 5,600 IP addresses globally.
On April 7, the U.S. Department of Homeland Security’s Cybersecurity and Infrastructure Security Agency (CISA) released an advisory mirroring our findings. In particular, CISA noted that Cyber Av3ngers was also exploiting PLCs manufactured by Allen-Bradley.
Since April 8, Xpanse has observed approximately 300,000 services daily in Iranian IP space, up from approximately 20,000 since February 25. Though still an order of magnitude less than peak activity observed in early- and mid-February, the increased activity is consistent with reports of limited restored access in the country.
Timing of Destructive Attacks
We have added more information about the timing of destructive attacks conducted by Iranian threat actors to the Appendix.
Update March 26, 2026
Unit 42 conducted an in-depth investigation into conflict-themed phishing lures identifying 7,381 related phishing URLs spanning 1,881 unique hostnames.
Recent threat activity demonstrates a widespread wave of financial fraud, credential harvesting and illicit content distribution targeting both enterprise and consumer sectors. Threat actors are heavily relying on the impersonation of highly trusted entities including major telecommunications providers, national airlines, law enforcement and critical energy corporations, to deceive victims.
The operations leverage agile evasion tactics, including top-level domain rotation, subdomain chaining and purpose-built infrastructure designed to mimic official corporate portals and government payment workflows. Furthermore, attackers are opportunistically exploiting current geopolitical events with conflict-themed lures to facilitate widespread donation and cryptocurrency scams. Ultimately, this activity highlights a sophisticated, multi-pronged approach to exploiting regional brand trust for financial and data theft.
On Feb. 28, 2026, the United States and Israel launched a significant joint offensive code named Operation Epic Fury (U.S.) and Operation Roaring Lion (Israel). In the hours following the initial strikes, Iran began a multi-vector retaliatory campaign, which has evolved into a significant transregional conflict. Unit 42 has observed an escalation in cyberattacks from activists outside the country. While threat activity from nation-state groups based within the country was likely stalled for hours to days, we assess with high confidence these groups likely shifted to using very-small-aperture terminal (VSAT) services through Starlink and possibly other providers to resume their operational tempo.
As of April 17, 2026, Iran began restoring access to the internet to limited segments of its population, ending a 47-day near-complete internet outage. For Iran-aligned threat actors based outside of the region, we continue to assess that hacktivist groups will target organizations perceived as adversaries but their impact is likely to be of low to medium significance. Other nation-state-aligned threat actors may attempt to exploit the situation to activate cyberattacks to further their own interests.
Geographically dispersed operators and affiliated cyber proxies may also target governments in regions hosting U.S. military bases to disrupt logistics. In the near term, these activities are expected to consist of low-to-medium sophistication disruptions (for example, distributed denial of service and hack and leak campaigns).
For details on Unit 42’s previous observations of cyber activity linked to Iran-backed groups and hacktivists, see the Threat Brief: Escalation of Cyber Risk Related to Iran (Updated June 30). That report details Iran-backed groups and hacktivists expanding their global cyber operations using website defacement, distributed-denial-of-service (DDoS) attacks, and data exfiltration and wiper attacks. The primary objectives of Iran-aligned nation-state actors frequently include espionage and disruption. Techniques include using AI-enhanced targeted spear-phishing campaigns, the exploitation of known vulnerabilities, and the use of covert infrastructure for espionage.
Palo Alto Networks customers can receive protections from and mitigations for relevant threat actor activity through the following products and services:
Attackers have registered new conflict-themed domains, numbering in the thousands. They are being used for malicious purposes, including creating fake storefronts, running donation scams and hosting phishing portals. Screenshots of these domains are shown in Figures 1 and 2.
Figure 1. Scam website iranforward[.]org asking for humanitarian aid in the form of cryptocurrency donations.Figure 2. Scam domain trumpvsirancoin[.]xyz requesting humanitarian aid for Iranian families affected by the war.
Emirates-Focused Crypto and Financial Fraud
Palo Alto Networks has identified two separate malicious campaigns targeting people in the United Arab Emirates (UAE).
One campaign involves financial fraud exploiting brands with “Emirates” in the name.
The second consists of crypto and investment scams using domains branded with the word “Dubai,” which leverage lures related to high-value real estate and luxury lifestyles.
Figures 3 and 4 below show examples of scam domains for asset management and banking.
We’ve observed two campaigns targeting a regional telecommunication brand corporate portal with impersonation, using a fake dialing-code prefix to replicate the company’s enterprise portal. We also identified a billing fraud campaign masquerading as the same company. These attackers registered the same domain concept across multiple top-level domains, rotating as each is blocked.
We are tracking a wave of targeted attacks against leading organizations in Saudi Arabia. The attackers are deploying a dual-pronged strategy:
Highly tailored enterprise credential phishing that mimics major enterprise resource planning (ERP) brands to trick employees
Widespread financial fraud
These broader schemes are designed to trap both employees and consumers using the following:
Malicious utility billing portals
Corporate-branded investment scams
Misspelled banking sites leveraging Outlook subdomain chaining to deceive victims (Figure 5 shows an example of this type of scheme)
Figure 5. Fraudulent investment portal.
Opportunistic Criminal Credit Card Theft
Attackers are luring users to fraudulent payment pages that mimic legitimate package delivery services to steal credit card credentials. These malicious sites are characterized by using newly registered domains and generic hosting domains, frequently incorporating Emirates Post within the subdomain.
A key technical detail is attackers using the cdn-cgi/phish-bypass path on certain domains, such as traz[.]top. This path indicates a specific tactic designed to exploit and circumvent security challenges. Figure 6 below shows an example.
Figure 6. Scam domain emirates-post[.]racunari-bl[.]com urging the victim to provide sensitive information.
Impersonation of Dubai Government Authorities
In another financially motivated campaign, attackers impersonated legitimate government entities for credit card theft. Specifically, we discovered the path payment-system/card-process?amount=125 on a domain designed to mimic a fine payment flow, as shown in Figure 7.
Figure 7. Scam domain dubai-polices[.]ae-finesquery[.]com urging the victim to add sensitive information.
Iranian Bank Masquerading
Attackers are impersonating Iranian banks to manipulate victims into supplying banking credentials. We identified three domains impersonating Iranian banking brands. One domain uses an unconventional gambling top-level domain (TLD), suggesting difficulty in registering a traditional country code TLD (ccTLD). Another domain directly exposes a payment form via the /payment-form/ path.
Iran Targeting
We identified a campaign misusing the name of Iran's largest mobile operator as the registrable domain, then embedding a convincing Microsoft URL chain in the subdomain labels to impersonate a Microsoft account recovery page.
Two identified domains use a technique that embeds globally recognized and trusted brands as subdomains within a Middle East-branded malicious registrable domain. This exploits a user's left-to-right reading pattern, presenting the legitimate brand name first. This method is effective as it doesn't require typosquatting, because the real brand name is used exactly.
StealC Infostealer Infrastructure
Our analysis of reported StealC infrastructure revealed additional infrastructure and suggests that the attackers are using a numbered-increment pattern across identical top-level domains. This is likely an evasion tactic, where attackers register a new, incremented domain whenever the previous one is blocked.
The attack flow involves a malicious JavaScript that redirects victims to a file-hosting page, which then delivers the StealC payload within a password-protected ZIP archive. Additional examples of these file-hosting pages are shown below in Figures 8 and 9.
Figure 8. File-hosting page alpha[.]filehost36[.]sbs delivering StealC payload.Figure 9. Scam domain hyperfilevault1[.]xyz.Unit 42 encourages organizations to remain vigilant for emerging threats related to this conflict. With the confirmed use of wipers, we strongly encourage organizations to test and validate their data backup and recovery procedures, as well as to harden their identity and privilege account management systems.
Earlier Threat Activity From February 2026
Unit 42 has identified an active phishing campaign using a malicious replica of the Israeli Home Front Command RedAlert application. This campaign weaponizes a legitimate-looking Android package (APK) to deliver mobile surveillance and data-exfiltrating malware (Figure 10).
Figure 10. SMS phishing message to download malicious RedAlert application.
We have also observed a surge in hacktivist activity, with some estimates of 60 individual groups active, including pro-Russian groups as of March 2, 2026. Multiple Iranian state-aligned personas and collectives have claimed responsibility for a range of disruptive operations, several of which are associated with the recently established “Electronic Operations Room” formed on Feb. 28, 2026. Key observed entities include:
Handala Hack, a hacktivist persona linked to Iran's Ministry of Intelligence and Security (MOIS), is the most prominent Iranian persona. The persona blends data exfiltration with cyber operations against the Israeli political and defense establishment.
Claimed responsibility for compromising an Israeli energy exploration company
Claimed responsibility for compromising Jordan’s fuel systems
Claimed to target Israeli civilian healthcare to create domestic pressure just days before the kinetic war broke out
APT Iran, a pro-Iranian hacktivist collective that has gained notoriety for its hack-and-leak operations
Claimed responsibility for sabotage of Jordan’s critical infrastructure
The Cyber Islamic Resistance, a pro-Iranian umbrella collective that coordinates multiple hacktivist teams — including groups like RipperSec and Cyb3rDrag0nzz — to launch synchronized DDoS attacks, data-wiping operations and website defacements against Israeli and Western infrastructure
Claimed responsibility for compromising a drone defense and detection system
Claimed responsibility for compromising Israeli payment infrastructure
Dark Storm Team (also known as DarkStorm or MRHELL112) is a pro-Palestinian and pro-Iranian collective that specializes in large-scale DDoS and ransomware
Claimed to have targeted several Israeli websites, including an Israeli bank in DDoS attacks
The FAD Team (often referred to in reports as the Fatimiyoun Cyber Team or Fatimion) is composed of pro-regime actors who focus on wiper malware and permanent data destruction
Claimed responsibility via their public Telegram board for gaining unauthorized access to multiple SCADA/PLC systems in Israel and other countries
Claimed responsibility via their public Telegram board for gaining unauthorized access to control systems associated with more than 24 private devices belonging to an Israeli security services company
Conducted an attack against a Turkish media outlet
Evil Markhors is a pro-Iranian group typically specializing in credential harvesting and identifying unpatched critical systems
Claimed responsibility via their public Telegram board for targeting an Israeli bank website
Sylhet Gang (often cited as Sylhet Gang-SG) acts as a message amplifier and recruitment engine for the pro-Iranian hacktivist front and participates in DDoS attacks
Claimed responsibility via their public Telegram board for targeting the Saudi Ministry of Home Affair's HCM and Internal Management Systems
313 Team (Islamic Cyber Resistance in Iraq), is an active pro-Iranian hacktivist cell
Claimed responsibility for targeting the Kuwait Armed Forces website
Claimed responsibility for targeting Kuwait Ministry of Defense website
Claimed responsibility for targeting the Kuwait Government website
DieNet is a pro-Iran hacktivist group conducting DDoS attacks on various organizations across the Middle East
Claimed responsibility for attacking an airport in Bahrain
Claimed responsibility for attacking Sharjeh Airport in Saudi Arabia
Claimed responsibility for targeting Riyadh Bank website
Claimed responsibility via their public Telegram board for targeting the Bank of Jordan
Claimed responsibility via their public Telegram board for targeting an airport in the United Arab Emirates
The group Handala Hack also reportedlytargeted an Iranian-American and Iranian-Canadian influencer with direct death threats via email (shown in Figure 11), claiming to have leaked their home addresses to physical operatives in their respective home locations.
This type of action represents an escalation of threatening cyber activity directed toward perceived critics of Iran.
Figure 11. Handala Hack death threat email to U.S. and Canada influencers.
Other Threat Group Activity
Cybercriminals are reportedly capitalizing on the conflict by targeting individuals in the United Arab Emirates via a social engineering vishing scam to steal credentials. The threat actors call potential victims impersonating the Ministry of Interior, claiming to be confirming receipt of a national alert and prompting for the victim’s Emirates Identification Number (EID) for verification.
The ransomware-as-a-service (RaaS) group Tarnished Scorpius (aka INC Ransomware) has listed on its leak site an Israeli industrial machinery company, and replaced the company logo with a swastika.
Pro-Russian Hacktivist Activity
Cardinal, a pro-Russian hacktivist group, claimed to target Israel Defense Forces (IDF) systems via their public Telegram board. The group is assessed to be state-aligned but likely operates independently of direct state funding. The group claims to have infiltrated IDF networks referencing a purportedly confidential document related to “Magen Tsafoni” (Northern Shield). The posted document includes operational movement details, command approvals and contact information.
The pro-Russian hacktivist group NoName057(16) has claimed multiple Israeli targets including disruptive operations against a range of Israeli municipal, political, telecom and defense-related entities.
The pro-Russian hacktivist collective “Russian Legion,” claimed to have access to Israel’s Iron Dome missile defense system. In their post, they claimed to be controlling radars, intercepting targets and monitoring in real-time, with reported system paralysis and loss of interception control. The group also claimed a new cyber operation it says compromised closed IDF servers.
State-Sponsored Attacks
Unit 42 tracks various Iranian state-sponsored actors under the constellation name Serpens. These groups could increase or escalate activity in the coming weeks.
State-sponsored Iranian cyber capabilities are often used to project and amplify political messaging (often using destructive and psychological tactics). These efforts are likely to focus on regional targets (e.g., Israel) as well as what they deem high-value targets (e.g., politicians, key decision-makers and other directly involved entities).
State-sponsored campaigns might target their victim’s supply-chains, critical infrastructure, vendors or providers.
Conclusion
Given the rapidly changing nature of this situation, a multi-layered defense is most effective as no single tool can provide complete protection. We recommend focusing on foundational security hygiene, a proven approach that provides resilient protection against a wide range of tactics.
We recommend taking the following precautions to help mitigate the impact from possible attacks. These recommendations are consistent with previous guidance provided.
Tactical Recommendations
Ensure at least one copy of critical data is stored offline (air-gapped) to mitigate against encryption or deleting backups stored on the network
Implement strict “out-of-band” verification for incoming requests via media, verifying through a separate trusted corporate channel
Increase response to any threat signals where possible, especially those associated with internet-facing assets such as websites, virtual private network (VPN) gateways and cloud assets
Ensure internet-facing infrastructure is up to date with security patches and other hardening best practices
Train employees on phishing and social engineering tactics and continuously monitor for suspicious activity
Consider implementing geographic IP address blocking from specific high-risk regions where legitimate business is not conducted
Have a robust communications plan ready to address unauthorized access versus system compromise, as hacktivist groups often exaggerate their reach. Scoping and quickly verifying the potential compromise can prevent public panic.
Begin or update business continuity plans for any staff or assets that digital or physical attacks could disrupt
Prepare to validate and respond to claims of breaches or data leaks
Threat actors might use claims (even if they’re untrue) to embarrass or harass victims, or to disseminate political narratives
As activity is likely to continue to intensify throughout the duration of these events, it’s important to remain vigilant to potential attacks. Hacktivists and state-supported threat actors have been opportunistic, leading to potentially unexpected sources being targeted.
We will update this threat brief as more relevant information becomes available.
How Palo Alto Networks and Unit 42 Can Help
Palo Alto Networks customers can leverage a variety of product protections and updates to identify and defend against threats related to aspects of these events.
If you think you might have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Next-Generation Firewalls and Prisma Access With Advanced Threat Prevention
Advanced Threat Prevention has an inbuilt machine learning-based detection that can detect exploits in real time.
Cloud-Delivered Security Services for the Next-Generation Firewall
Cortex XDR, XSIAM and Cortex Cloud are designed to prevent the execution of known malicious malware. It is also designed to prevent the execution of unknown malware and other malicious activities using Behavioral Threat Protection and machine learning based on the Local Analysis module.
Cortex Xpanse
Cortex Xpanse has the ability to identify exposed Rockwell Automation or Allen-Bradley devices on the public internet and escalate these findings to defenders. Customers can enable alerting on this risk by ensuring that the relevant Attack Surface Rule is enabled. Identified findings can either be viewed in the Threat Response Center or in the incident view of Expander. These findings are also available for Cortex XSIAM customers who have purchased the ASM module.
Device Security
Device Security can detect and alert when anomalous program download activities or mode changes are observed from a work station to a programmable logic controller (PLC) using the CIP-IP protocol. It can help identify and alert on internet-exposed Rockwell/Allen-Bradley PLCs. Device Security can also help identify instances of FactoryTalk software installed on workstations.
Device Security continuously monitors industrial networks to provide visibility to all asset behaviors. The solution can help identify assets using any FactoryTalk App-ID.
Additionally, alerts and risks can be used to trigger orchestration via SOAR/SIEM solutions to quarantine or isolation actions via NGFW and integrated network access controls (NACs).
Appendix: Timeline of Destructive Attacks From Iranian Threat Actors
Unit 42 is tracking an increased risk of wiper attacks related to the conflict with Iran. Iranian actors have a history dating back to 2012 of conducting destructive attacks against high priority targets, highlighting a pattern of capability and intent. They also have a history of disruptive attacks dating back as far as 2011. Table 1 shows the three phases of Iran's use of destructive cyber operations.
Three Phases of Iran’s Use of Destructive Cyber Operations
2012–2019
2020–2022
2022–Present
The first era was defined by retaliatory operations against the global energy sector.
Following the establishment of the Abraham Accords to normalize relations between Israel and several Arab nations, Iran shifted its focus toward the private sectors of its new regional rivals.
Beginning in 2022, Iran began using destructive cyber operations against certain countries. Some of the first attacks were against Albania, and destructive cyber operations have further evolved since Oct. 7, 2023. Cyberattacks have included targets in the Middle East, U.S. defense contractors and members of the Iranian diaspora.
Notable Victims
Notable Victims
Notable Victims
Energy sector organizations based in the Middle East
Israeli IT software and cloud producers
Israeli government-owned insurance and healthcare
Middle East-based
Research centers
Banks and payment processors
Medical organizations
Energy sector organizations
Table 1. The three phases of Iran's use of destructive cyber operations.
Updated March 23, 2026, at 3:30 p.m. PT to add Additional Resources section.
Updated March 26, 2026, at 2:00 p.m. PT to add information on conflict-themed phishing lures.
Updated March 30, 2026, at 3:15 p.m. PT to edit list of indicators.
Updated April 17, 2026 at 3:35 p.m. PT to add additional observations related to Cyber Av3ngers. Added an Appendix section. Added product protection information for Device Security and Cortex Xpanse.
We identified active, automated scans and probes attempting to exploit CVE-2023-33538, a vulnerability in several end-of-life TP-Link Wi-Fi router models:
TL-WR940N v2 and v4
TL-WR740N v1 and v2
TL-WR841N v8 and v10
The observed payloads are malicious binaries characteristic of Mirai-like botnet malware, which the exploits attempt to download and execute on vulnerable devices.
We observed this activity after the Cybersecurity and Infrastructure Security Agency’s (CISA) June 2025 addition of this CVE (Common Vulnerabilities and Exposures) to its Known Exploited Vulnerabilities (KEV) Catalog.
There has been some discussion of how impactful (or not) these active campaigns might have been. To address this, we conducted a deep-dive investigation by emulating the TP-Link TL-WR940N router. Using firmware emulation and reverse engineering, we analyzed whether the specific exploits observed in our telemetry could successfully use this vulnerability to deliver the payload on that device model.
During our investigation, we uncovered two important facts about the attempted exploitation of this vulnerability:
Although the in-the-wild attacks we observed were flawed and would fail, our analysis confirms the underlying vulnerability is real
Successful exploitation requires authentication to the router's web interface
This research demonstrates that while active botnet attacks leverage flawed exploit code, the underlying vulnerability remains a practical infection vector due to the widespread use of default internet of things (IoT) credentials.
TP-Link gave the following recommendation, regarding the devices and vulnerability in question:
We confirm that the affected TP‑Link devices are end‑of‑life, and no vendor patches are available. Our recommendation to customers is to replace these units with supported hardware and ensure that default credentials are not used.
Palo Alto Networks customers are better protected from the threats discussed in this article through the following products and services:
Technical Analysis of Attempted Exploitation of CVE-2023-33538
CVE-2023-33538 was publicly reported in June 2023, affecting the aforementioned end-of-life TP-Link routers. Proof-of-concept (PoC) exploits for the different routers appeared earlier that month. The PoC exploits were removed from their original GitHub post but can be retrieved via Web Archive.
According to the report, the /userRpm/WlanNetworkRpm endpoint contains a vulnerability in processing the ssid1 parameter sent through an HTTP GET request, because the parameter value is not sanitized when the Wi-Fi router processes it. Consequently, an attacker could send commands to this parameter. This would allow remote attackers to submit special requests, resulting in command injection and theoretically leading to arbitrary system command execution on the Wi-Fi router.
Our Telemetry Findings
Our telemetry systems detected active, large-scale exploitation attempts for CVE-2023-33538 around the time of the addition to the KEV catalog in June 2025. We observed multiple exploitation attempts similar to the example shown below in Figure 1.
Figure 1. An example of an exploit attempt for CVE-2023-33538 that we observed in May 2025.
These were GET requests toward the /userRpm/WlanNetworkRpm.htm endpoint, attempting to execute multiple commands in the ssid parameter:
The first command uses wget to download an Executable and Linkable Format (ELF) binary named arm7 from the IP address 51.38.137[.]113 into the /tmp directory.
The next command executes chmod 777 on the arm7 binary to grant the file read, write and execute permissions.
The last command executes the saved binary at /tmp/arm7 with the parameter tplink.
This set of commands is commonly associated with botnets, such as Mirai.
These HTTP GET requests use Basic Authentication with the admin:admin credential encoded in Base64 (YWRtaW46YWRtaW4= as shown in Figure 1).
Malware Downloaded
The arm7 binary found in our telemetry appears to be a Mirai variant. It is similar to the one used in the Condi IoT botnet, with multiple examples of the string condi in the file's code. Figure 2 shows an example of code from the arm7 binary showing the string condi2.
Figure 2. More references to Condi are present in the arm7 binary.
In the main function's command processing loop, the arm7 binary waits for specific command sequences. The commands are received through the network socket connection. The data is stored in the buffer var_868 from the fd_serv function, which is the command-and-control (C2) server socket, as shown in Figure 3.
Figure 3. Connection and command buffer of the arm7 binary shown in Radare2.
After receiving data, the arm7 binary checks for specific byte patterns described below in Table 1.
Command Sequence
Purpose
Action
0x99 0x66 0x33
Heartbeat Response
Sends encrypted status string to C2
0x99 0x66 0x66
Lockdown/Termination
Sets lockdown flag, exits if already set
0x33 0x66 0x99
HTTP Server Status
Reports HTTP server status (only if running)
0x33 0x66 0x33
Conditional Update
Downloads all top1hbt.* binaries (only if the HTTP server is active)
0x33 0x66 0x66
HTTP Server Start
Starts HTTP server on random port (1024–64511)
0x66 0x66 0x99
Lockdown Flag
Sets termination preparation flag
Table 1. Control commands for the arm7 binary.
Binary Update Mechanism
When the binary updates itself, it first calls the update_bins("top1hbt.arm") function as shown in Figure 4.
Figure 4. Full update routine in the arm7 binary, as shown in Binary Ninja’s decompiler.
For the update, the arm7 binary iterates through an arch_names array, which contains a total of eight additional architectures (e.g., top1hbt.arm6, top1hbt.mips) and updates accordingly. For each update, the arm7 binary:
Removes any previously existing file
Connects to the C2 server
Sends HTTP GET requests
Downloads a fresh malware binary
The update_bins() function contains the IP address and port hard-coded as observed in disassembled code from the arm7 binary shown in Figures 5 and 6.
Figure 5. The update_bins function with a hard-coded IP address and port from the arm7 binary as shown in Binary Ninja.
In Figure 5, the value 0x71892633 in little-endian corresponds to the IP address 51.38.137[.]113 and 0x5000 in little-endian for TCP port 80. Figure 6 shows the same IP address and port presented as \x00\x50 for TCP port 80 and \x33\x26\x89\x71 for 51.38.137[.]113.
Figure 6. Hard-coded IP address and port in the update_bins function (Disassembly View) showing the malware's C2 server details.
The arm7 binary communicates with the C2 server at 51.38.137[.]113, which also hosts the binary itself. This IP address is also associated with the domain cnc.vietdediserver[.]shop, which is a known, malicious domain associated with Mirai-like botnet campaigns.
HTTP Server Start
As part of the botnet, a host infected with the arm7 binary will act as a web server, which requires starting the HTTP daemon, httpd. For this HTTP server start procedure, the arm7 binary checks whether the flag for httpd_started is not set, meaning the httpd_start() function shown in Figure 7 has not been executed.
Figure 7. HTTP server start function of the arm7 binary as shown in Binary Ninja’s decompiler.
If the httpd_started is not set, the process generates a random value between 1024 and 65535 to use as a TCP port. It then calls httpd_start() to fork child processes. After that, the arm7 binary binds the TCP port number to a socket, listens for connections and performs a full binary update. When this happens, the process sets httpd_started flag value to 1. Finally, as an HTTP server, the infected botnet host serves malware binaries to requesting clients, which are other compromised devices.
When the httpd_start() function is executed, it first forks a child process that immediately downloads fresh malware binaries for eight different CPU architectures, as shown in the function graph in Figure 8.
Figure 8. httpd_start() function graph for the arm7 binary as shown in Binary Ninja.
After successfully retrieving updated malware binaries from the server at 51.38.137[.]113 and storing them locally, the process establishes an HTTP server on a randomly assigned port. The process then creates a listening socket that accepts incoming connections from other devices on the network.
Although we were unable to retrieve updated malware files from the original C2 server, we observed other samples with the same top1hbt prefix from other C2 servers.
CVE-2023-33538 Exploit Analysis
As noted earlier, the exploit attempts to compromise a vulnerable TP-Link device and infect it with the arm7 version, similar to the malware binary shown below in Figure 9.
Figure 9. CVE-2023-33538 exploit attempt.
The exploit attempt appears to contain errors. While the endpoint /userRpm/WlanNetworkRpm.htm is correct, this exploit is incorrectly attempting to inject malicious commands into the ssid parameter. The actual vulnerable parameter reported on the target system is ssid1.
To reproduce and analyze the vulnerability, we acquired the TP-Link WR940N US V4 firmware from the vendor's support site. We then used the publicly available firmware-analysis-toolkit to extract and emulate the firmware, establishing the necessary environment for testing. Our analysis focused specifically on the TP-Link TL-WR940N router model.
The firmware contains a 32-bit MIPS ELF binary named httpd. This binary is an HTTP daemon that runs a web server for certain TP-Link wireless routers. The daemon initializes various subsystems based on the router's operating mode and product ID, then starts an HTTP server to provide the web management interface typically accessed at the router's IP address.
This httpd binary implements the router's web-based management interface. The interface provides configuration options such as:
Wireless local area network (WLAN)
Wi-Fi Protected Setup (WPS)
Dynamic Host Configuration Protocol (DHCP)
Logging
Diagnostics
System utilities like ping and traceroute
Flow of the “ssid1” Parameter via /userRpm/WlanNetworkRpm.htm Endpoint
Our analysis of the httpd binary in the firmware reveals the exact execution flow that leads to the command injection vulnerability. The process begins when a request is sent to the /userRpm/WlanNetworkRpm.htm endpoint, at which point the HTTP_Handler() function receives the request and parses its parameters. It uses httpGetEnv() to extract the value of ssid1.Figure 10 shows this, from the decompiled code from offset 0x467588,using Binary Ninja.
Figure 10. HTTP_Handler() function configuration in the httpd binary.
Then the HTTP_Handler() function calls the wlanNetworkSave() function at offset 0x467108 to handle new configurations. Figure 11 shows this from the decompiled code.
Figure 11. HTTP_Handler() function calling the wlanNetworkSave() function.
The wlanNetworkSave() calls the parseWlanParams() function at offset 0x4667c0, as shown in Figure 12.
Figure 12. wlanNetworkSave() function calling the parseWlanParams function.
The parseWlanParams() function iterates through parameters ssid1 to ssid4, because some routers support multiple SSID values. The function then copies the provided values into a new WLAN configuration structure using strncpy(). The flow then proceeds to the wlanBasicDynSet() function, which compares the new configuration with the previously saved one using memcmp(). If the wlanBasicDynSet() function detects any changes, like a new SSID value, the function calls wirelessConfigUpdate() to apply the changes.
In addition to looping through the ssid1 to ssid4 parameters, the parseWlanParams() function also parses other WLAN configuration parameters such as region, chanWidth, channel and mode. Then, it validates and stores these values in the WLAN configuration structure as shown in the decompiled code. Figure 13 shows how the parseWlanParams()function calls httpGetEnv() to extract the SSID value, then calls strncpy() to copy the SSID value to the WLAN configuration structure.
Figure 13. The parseWlanParams function calls the httpGetEnv() and strncpy() functions.
When wlanNetworkSave() calls swWlanBasicDynSet/wlanBasicDynSet (shown in Figure 14), it internally calls swWlanBasicCfgSet to save the WLAN configuration. It compares the old and the new WLAN configuration using memcmp(). If the configuration parameters have changed, it calls wirelessConfigUpdate().
Figure 14. wlanBasicDynSet function (0x4a7184) uses memcmp() to compare old and new WLAN configurations before calling wirelessConfigUpdate.
The wirelessConfigUpdate() function compares the old and new SSID string values. This is the point where CVE-2023-33538 comes into play. Content sent through an HTTP request to the /userRpm/WlanNetworkRpm.htm endpoint using the ssid1 parameter is not checked or sanitized. If the new SSID string value is different from the existing SSID string value, the wirelessConfigUpdate() function injects the new, unsanitized SSID value in parameters for executeFormatCmd() to use in the "iwconfig %s essid %s" shell command, as Figure 15 shows.
Figure 15. wirelessConfigUpdate function constructing the shell command for "iwconfig %s essid %s".
The execFormatCmd() function calls tp_SystemEx() to execute "iwconfig %s essid %s" with the injected content. This final function executes the resulting command using execve("/bin/sh"), as shown in Figure 16.
Figure 16. The final execve(“/bin/sh”) function call, which executes the shell command containing an attacker's payload.
This is the last step in successfully injecting and executing the commands seen in the injection attempt noted earlier in Figure 9. But since the exploit attempt in Figure 9 uses the ssid parameter instead of the ssid1 parameter, that specific attempt would not be successful.
By examining this complete chain of events, we confirm the ssid1 parameter is vulnerable to command injection. This is because no part of this chain sanitizes the value of the ssid1 parameter before the value is passed to the system shell.
Emulation of the httpd Binary From the TP-Link Firmware
While confirming the CVE-2023-33538 command injection vulnerability exists in the TP-Link firmware, our emulation also identified a critical constraint for exploitation: authentication.
Using the open-source firmware analysis toolkit, we created a running instance of the router's environment, allowing us to interact with its web management panel. This process immediately revealed a crucial detail not specified in the original vulnerability report. An attacker must be authenticated to exploit it.
After booting the emulator with the TP-Link router firmware, we were presented with the /bin/login binary, which prompts for credentials. As per the /etc/shadow file (Figure 17), the firmware contains the hash of the default credentials:
root:sohoadmin
Figure 17. Root:sohoadmin credentials found on the /etc/shadow file.
Once logged in, we checked the BusyBox help menu (shown in Figure 18). We saw that the list of built-in commands was limited, which makes the command injection exploitation constrained.
Figure 18. BusyBox help menu running in the firmware analysis toolkit emulator.
The firmware contained a limited version of BusyBox that does not support common Linux utilities such as wget, curl or vim. Figure 19 shows that these commands were not present in this BusyBox version.
Figure 19. Verification that common Linux utilities like wget, curl and vim are not present in this limited version of the BusyBox shell.
Once the firmware (including the web admin panel) was emulated, the toolkit created a bridged network interface. We used this to directly access the router interface and services shown in Figure 20.
Figure 20. Emulated web admin panel.
The login credentials for the web admin panel were different from the Linux login binary. As Figure 21 shows, we determined the panel default credentials by reading the web/dynaform/custom.js file.
Figure 21. The web/dynaform/custom.js file, which we read to determine the default web admin panel credentials (admin:admin).
After login (admin:admin), the interface generated a session token that is reflected in the following URL:
As the session token was sufficiently random, it was not feasible to brute force or guess. The token can only be generated using valid credentials. Once a user enters a username and password to log in, the PCSubWin() function executes to perform the login and generates a session token as Figure 22 shows.
Figure 22. PCSubWin - login JavaScript function reference.
During the login process, the PCSubWin() function (shown in Figure 23) generates a cookie by appending the username with the MD5 sum of the password and then Base64-encoding the combined string. This cookie is sent to the login endpoint, which responds with a session token. This session token is then responsible for maintaining an authenticated session in subsequent network requests.
Figure 23. PCSubWin() login function definition.
After generating the cookie, the web admin panel makes a request to the login endpoint, which responds with the URL with session cookie. Figure 24 shows the response with the session cookie from Burp Suite.
Figure 24. Burp Suite intercept showing the server's response with a unique, valid session cookie after successful login.
CVE-2023-33538 presents a relatively straightforward exploitation path. Attackers can leverage this vulnerability by injecting their malicious payload into the Wireless Network Name (ssid1) field.
This direct method of injection makes the vulnerability relatively easy to exploit, as it doesn't require complex bypasses or sophisticated techniques. The simplicity of this attack vector suggests that systems that allow user-defined input in network naming conventions, especially in wireless network configurations, are particularly susceptible.
Further investigation into the specific mechanisms of how this field processes and renders input would be crucial to understanding the full scope of potential exploits. These exploits could range from denial-of-service (DoS) attacks to system compromise, depending on the underlying software's handling of the injected data. The simplest way to verify the command injection vulnerability is to insert the reboot command in the payload as demonstrated in Figures 25 and 26.
Figure 25. Injection of the reboot command.Figure 26. Emulated system being rebooted.
A reboot command execution on an emulated router is not sufficient on its own to confirm a code execution vulnerability, because a reboot can also result from an emulator crash caused by an error. For that reason, it is important to test other payloads and attack options as well.
One thing an attacker could try is to write commands to a file that will eventually cause their payload to be executed. The /etc/rc.d/rcS file is a strong candidate for writing, as it's a bash script executed during the boot process.
To test this, we needed to verify the content of the rcS file before the attack attempt and then to review the content after the attack attempt (Figure 27). By reading this file before the attack attempt, we could confirm that it was used to load several critical modules during the boot process. Therefore, if an attacker overwrites this file with a malicious payload, it would be executed every time the router boots up.
Figure 27. Original content of the /etc/rc.d/rcS file.
We used our crafted exploit that first generated the MD5 hash for the password and combined it with the username to generate the Base64-encoded string. In further communication with the router, this Base64-encoded string serves as the authorization cookie, as shown in Figure 28.
Figure 28. Base64-encoded string that serves as the authorization cookie.
With the authorization cookie obtained, it is sent to the userRpm/LoginRpm.htm?Save=Save endpoint, which returns the session token, as shown in Figure 39. To access any resource on the admin panel, it is critical to have both the authorization cookie and the session token.
Figure 29. Using the authorization cookie to obtain the session token.
After acquiring the key, the PoC uses the key and authorization token to make a GET request to the /userRpm/WlanNetworkRpm.htm endpoint. As the vulnerability lies in the ssid1 parameter, the exploit combines the command string with a randomly generated SSID and performs a GET request as shown in Figure 30.
Figure 30. Code to execute the HTTP GET request.
Once the request is submitted, the router will respond with the status code 200 and eventually the injected command will be executed on the router. The exploit was run as shown in Figure 31.
Figure 31. Exploit running.
The exploit wrote a string into the /etc/rc.d/rcS file, which is a shell script that gets executed during the boot process. After the exploit execution, we saw the string reflected in the file (Figure 32), which confirmed the vulnerability. The presence of the string shows that the command injection is actually being processed. The command injection vulnerability, combined with the tftp utility, could open a door for an attacker to download a malicious file.
Figure 32. The /etc/rc.d/rcS file after exploitation, showing the successful injection of the string echo bleh, which confirms the command injection vulnerability.
From our emulation and exploitation results, we confirmed that the command injection vulnerability does exist for V4 firmware. However, due to the limited and restrictive nature of the firmware's BusyBox binary, most attacks were constrained. In addition, using some of the techniques mentioned above, combined with a file-transfer utility such as tftp, would allow a motivated attacker to potentially compromise the device further.
Conclusion
Neither the public PoC for CVE-2023-33538 nor the attack attempts observed in our telemetry would successfully compromise the TP-Link router environment we analyzed. However, our deep dive into the firmware and its emulation reveals a significant gap between the theoretical vulnerability and its practical, real-world application.
The attacks seen in the wild were flawed on multiple levels:
They were unauthenticated
They targeted the incorrect parameter (ssid instead of ssid1)
They relied on the wget utility, which is not present in the firmware's limited BusyBox environment
This demonstrates a common attack pattern of scanning and probing with incomplete or inaccurate exploit code, resulting in noisy but ultimately ineffective attacks.
While these specific attempts would fail, the command injection vulnerability is real. We confirmed that an attacker who targets an environment with the default login credentials (admin:admin) can gain authenticated access and successfully inject commands into the ssid1 parameter. This access could easily lead to a DoS attack via a reboot command or it could be escalated to achieve persistence by overwriting system boot scripts.
For the foreseeable future, the security landscape will continue to be shaped by the persistent risk of default credentials in IoT devices. These credentials can turn a limited, authenticated vulnerability into a critical entry point for determined attackers.
Palo Alto Networks Protection and Mitigation
Palo Alto Networks customers are better protected from the threats discussed above through the following products:
Advanced Threat Prevention is designed to defend networks against both commodity threats and targeted threats.
The Advanced WildFire machine-learning models and analysis techniques have been reviewed and updated in light of the indicators shared in this research.
Cortex Xpanse Attack Surface Management provides visibility of exposed TP-Link routers on customer networks. Xpanse Internet Landscape Intelligence provides global visibility of exposed TP-Link routers and enables characterization of the C2 infrastructure and any host contacted by the malicious files listed in this article.
The Device Security platform can leverage network traffic information to identify the vendor, model and firmware version of a device and identify specific devices that are affected by CVE-2023-33538. It also has an inbuilt machine learning-based anomaly detection that can alert the customer if a device exhibits non-typical behavior.
If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.
File type: firmware 940 v4 TP-Link Technologies version 1.0, version 3.16.9, 4,063,744 bytes or less, at 0x200 865,629 bytes, at 0x100000 2,883,584 bytes
File description: Firmware downloaded from TP-Link website
Our first article about the boundaries and resilience of Amazon Bedrock AgentCore focused on the Code Interpreter sandbox, and how it can be bypassed using DNS tunneling. In this second part, we delve into the identity and permissions model of AgentCore and the AgentCore starter toolkit. This toolkit is described by AWS as “a Command Line Interface (CLI) toolkit that you can use to deploy AI agents to an Amazon Bedrock AgentCore Runtime.” This toolkit abstracts backend provisioning complexity by automating the creation of runtimes, Amazon Elastic Container Registry (ECR) images and execution roles. We discovered that the toolkit’s auto-create logic generates identity and access management (IAM) roles that grant privileges broadly across the AWS account, rather than being scoped to individual resources. While the toolkit makes it easy to quick-start with AgentCore, the default deployment configuration model favors this deployment ease over a strict adherence to the principle of least privilege.
The starter toolkit’s default deployment configuration introduces an attack vector that we call Agent God Mode, because the overly broad IAM permissions effectively grant an individual agent the “omniscient” ability to escalate privileges and compromise every other AgentCore agent within the AWS account.
Our investigation uncovered a multi-stage attack chain that exploits this excessive access. We found that an attacker who compromises an agent could:
Exfiltrate proprietary ECR images
Access other agents’ memories
Invoke every code interpreter
Extract sensitive data
We disclosed our findings to the AWS Security team. Following our disclosure, the AWS documentation was updated to include a security warning, stating that the default roles are "designed for development and testing purposes" and are not recommended for production deployment, as shown in Figure 1.
Identity and permissions are two of the most critical pillars of setting boundaries and maintaining isolation in cloud workloads and applications. We explain the default IAM roles and permissions that are provisioned by the AgentCore starter toolkit, to demonstrate how compounding attack primitives ultimately enables a full attack chain.
The Default Deployment Architecture
We began our analysis by evaluating the default IAM roles that the toolkit’s setup process automatically generates. The agentcore launch command automates the infrastructure provisioning required for an AI agent. Based on the user's configuration, the toolkit creates:
The AgentCore Runtime
A memory store
An ECR Repository
An IAM execution role
Figure 2 shows this configuration, created with the Agent Name ori_agent_01.
Figure 2. Starter toolkit configuration.
Upon execution, the toolkit confirms the deployment and associated resources, as shown in Figure 3.
Figure 3. Starter toolkit deployment.
Although the toolkit simplifies the setup, the auto-create configuration for the execution role introduces a significant security risk.
Cross-Agent Data Access
AgentCore agents rely on memory resources to store both long and short-term conversation state and context. An attacker who gains read access to this resource could exfiltrate sensitive interaction data between the AI agent and its users. The default IAM policy generated by the toolkit reveals the permission set, as Figure 4 shows.
The policy applies actions such as GetMemory and RetrieveMemoryRecords to the wildcard memory resource arn:aws:bedrock-agentcore:*:memory/*. This effectively allows the agent whose role was assigned with this policy to read the memories of all other agents in the account.
Since the default role permits access to “*”, any AI agent can read or poison the state of any other AI agent in the account. The last piece required for exploitation is the knowledge of the target’s unique MemoryID.
Indirect Privilege Escalation
AgentCore Runtime utilizes Code Interpreter to execute dynamic logic. Crucially, these interpreters operate under their own distinct IAM roles, separate from Agent Runtime. This means that when an agent invokes the interpreter, the resulting actions are performed using the interpreter's permissions, not the agent's. The default policy indicates that the InvokeCodeInterpreter action is granted on all Code Interpreter resources (*), as Figure 5 shows.
These permissions introduce the risk of a direct exploitation cycle. Using a compromised AI agent, an attacker could perform reconnaissance to list available interpreters, identify a high-privileged target, and attempt to pivot by executing code within that context.
ECR Exfiltration
Perhaps the most critical finding relates to the Elastic Container Registry (ECR). As AgentCore Runtimes are distributed as Docker images, the default policy grants the AI agent unrestricted ability to pull images from any repository (arn:aws:ecr:*:repository/*) within the account. Figure 6 details this specific part of the policy.
Figure 6. ECR policy statements.
This configuration creates a high-risk exfiltration vector. From a compromised agent, an attacker could generate an authentication token to download source code, proprietary algorithms, internal files and other sensitive data from images of other agents and unrelated workloads across the entire account.
First, the attacker retrieves a valid ECR authorization token, as Figure 7 shows.
Figure 7. Retrieve authorization token using agent’s role.
With these credentials, the attacker authenticates the Docker CLI and pulls the image of a target agent – or any other container in the registry – as detailed in Figure 8.
Figure 8. Pulling another agent’s image using a previously retrieved token.
After downloading the image, the attacker has full read access to the target's file system, as Figure 9 shows.
Figure 9. Exploring image content.
Bypassing the Memory ID Barrier
As noted in the Cross-Agent Data Access section, the primary barrier to cross-agent memory poisoning is the obscurity of the target's MemoryID. The ECR exfiltration vulnerability eliminates this constraint. As Figure 10 shows, an attacker can recover configuration details that are baked into the container or environment files, by performing static analysis on the downloaded Docker image.
Figure 10. Extracting memory ID.
The env-output.txt file that can be found within the image contains the following target identifier:
By abusing the default permission configurations, an attacker could:
Exfiltrate: Leverage ECR permissions to download the image of a high-value target.
Extract: Recover the MemoryID from the container's static configuration.
Execute: Use the ID to dump or poison the target's conversation history.
This completes the attack vector. The AgentCore starter toolkit God Mode permissions allow an attacker who compromises an initial agent to exfiltrate the source code of a target, extract the specific resource IDs and hijack the target's memory state, without restriction.
Invoking Other Agents
In addition, we observed that the policy scope extends to the runtime API, granting InvokeAgentRuntime permissions on the arn:aws:bedrock-agentcore:*:runtime/* resource. This effectively allows any agent in the account to trigger the execution of any other agent, as Figure 11 demonstrates.
This architecture allows an agent designed for non-sensitive data access or non-administrative tasks to invoke another agent that has higher privileges.
Conclusion
While building and deploying AI agents on other platforms can require significant effort, AWS has effectively streamlined this process with the AgentCore starter toolkit. Following our communication with AWS, the AWS security team provided the following statement: “It is important for anyone using the toolkit to understand that the IAM roles generated by the auto-create feature provide a flat permission structure that does not align with the principle of least privilege, and should never be used in a production system.”
Our analysis of the automatically attached IAM policy revealed the presence of an overly permissive IAM role. Instead of scoping permissions to the specific AI agent resources, the policy grants the agent's role the ability to perform actions on wildcard resources (*) in Bedrock AgentCore and ECR. This exposes the environment to unauthorized cross-resource access.
The overly permissive IAM policies create the following security risks:
Source code exposure: Unrestricted ECR access allows full retrieval of container images.
Data compromise: Wildcard permissions on memory resources facilitate cross-agent data leakage.
Privilege escalation: Unchecked access to Code Interpreters enables lateral movement.
As recommended by the AWS Security team, customers should always create a custom, least-privilege IAM role for production agents. This is the most effective mitigation to limit the potential impact of a compromised agent. Following our collaboration with AWS, their Security team made updates to documentation, to enhance transparency and promote safer deployment practices for all users.
Disclosure Timeline
Nov. 17, 2025 – We responsibly reported to the AWS Security team.
Nov. 18, 2025 – AWS Security team responded that they are investigating.
Dec. 14, 2025 – AWS Security team reached out for more details.
Palo Alto Networks customers are better protected from the threats discussed above through the following products:
Organizations are better equipped to close the AI security gap through the deployment of Cortex AI-SPM, which helps to provide comprehensive visibility and posture management for AI agents across AWS and Azure environments. Cortex AI-SPM is designed to mitigate critical risks including, over-privileged AI agent access, misconfigurations, and unauthorized data exposure. Cortex AI-SPM helps enable security teams to enforce compliance with NIST and OWASP standards, monitor for real-time behavioral anomalies, and secure the entire AI lifecycle within a unified cloud security context.
Cortex Cloud Identity Security encompasses Cloud Infrastructure Entitlement Management (CIEM), Identity Security Posture Management (ISPM), Data Access Governance (DAG) and Identity Threat Detection and Response (ITDR). It provides clients with the necessary capabilities to improve their identity-related security requirements by providing visibility into identities, and their permissions, within cloud and container environments. This helps accurately detect misconfigurations and unwanted access to sensitive data. It also allows real-time analysis surrounding usage and access patterns.
The Unit 42 Cloud Security Assessment is an evaluation service that reviews cloud infrastructure to identify misconfigurations and security gaps.
If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.
When researching the boundaries of cloud services, two of the main aspects that come to mind are network and identity. In this two-part series, we present our research into the boundaries and resilience of Amazon Bedrock AgentCore. In this first part, we explore how AgentCore’s Code Interpreter sandbox network isolation mode could be bypassed in a way that allows sending and receiving of data from external endpoints via DNS tunneling. In the second part, we explore the identity side, and how an attacker can leverage weaknesses in default identities and permissions to compromise other AgentCore agents within an AWS account and exfiltrate sensitive data from other services.
To support the growing adoption of AI agents, AWS announced global availability of Amazon Bedrock AgentCore in late 2025. AgentCore is a framework that allows organizations to build, deploy and manage AI agents. It protects one of its most useful resources, Code Interpreters, that allows AI agents to dynamically execute code by isolating it from external network access using sandbox mode. Our discovery showed that this isolation is incomplete. We outline the steps we took to identify the sandbox bypass.
We also identified a critical security regression where the AgentCore Runtime utilized a microVM Metadata Service (MMDS) that lacks session token enforcement. Prior to our disclosure and AWS's fixes, this configuration could have allowed an attacker to exploit standard web vulnerabilities, such as server-side request forgery (SSRF), to directly extract sensitive credentials, putting the entire environment at risk.
We responsibly disclosed all findings to the AWS Security team. Following their review, AWS introduced the necessary internal remediations and outlined several important mitigation strategies for customers. Users cannot patch the managed environment directly, but can leverage the platform-level controls AWS provides.
As reliance on these services grows, understanding their internal mechanics is crucial for maintaining security.
Palo Alto Networks customers are better protected from the threats discussed in this article through the following products and services:
Investigation Overview: Scope, Methodology and Key Findings
Our investigation focused on the Code Interpreter service provided by AgentCore, which offers an isolated sandbox compute environment for AI agents to execute their code. The sandbox mode promises an easy way to implement restrictions on network access, which serves as an important containment layer for untrusted code. This restriction is critical to the security model of AgentCore. Originally, AWS described sandbox mode as providing “complete isolation with no external access.” Our research revealed that the restrictions of sandbox mode were not as complete as originally described. We analyzed the robustness of this architecture, to determine the efficacy of the sandbox isolation boundaries and the scope of access available from within the sandbox.
After performing environmental reconnaissance, we observed the existence of external network connectivity, which directly conflicted with the stated "no external network access" policy of the sandbox mode. We tested the network permeability by mapping the boundaries of the DNS resolution capability through incremental testing and discovered a channel for data exfiltration: DNS tunneling.
Watching our DNS server logs, we saw the query arrive instantly, establishing a covert bi-directional channel out of the sandbox. We had successfully turned a "secure, offline" environment into a potential privileged data exfiltration pipeline.
After sharing our findings with AWS, they updated their developer guide to state that the sandbox mode provides limited external network access, increasing transparency for users.
Technical Analysis
We set out to test whether AgentCore’s network isolation contained hidden egress paths that are necessary for internal AWS operations. We first studied the system’s architecture to select core components for deep analysis. Following this, we performed internal reconnaissance and metadata inspection to map potential vulnerabilities. These steps ultimately allowed us to validate our hypothesis by successfully demonstrating DNS tunneling. In the following sections, we detail the step-by-step methodology we used to execute this exploit.
AgentCore Architecture and Isolation
Our research focused on two aspects of AgentCore’s services: the Code Interpreter tool and the AgentCore Runtime. AgentCore Code Interpreter is one of several built-in tools for AI agents, designed specifically to execute code, often generated dynamically by large language models (LLMs). The service supports three network configurations:
Public mode: Provides external internet access for fetching data or libraries.
Sandbox mode: A strictly isolated environment with no external network connectivity.
Virtual Private Cloud (VPC) mode: Provides the ability to connect the Code Interpreter to a customer-controlled VPC.
We chose to examine the sandbox mode, as this configuration is considered to be entirely isolated from external networks. This means that if the Code Interpreter configured with sandbox mode is compromised, it still should not be possible to exfiltrate data or to use the interpreter as part of a command and control (C2) channel. Figure 1 shows the Sandbox mode description.
Figure 1. AgentCore Code Interpreter documentation, prior to AWS's update.
AgentCore Runtime is a managed environment that executes the core logic of a deployed AI agent. Each interaction with an AI agent goes through an instance of AgentCore Runtime, making it a central pillar of the agent architecture.
To fully understand the risks of escaping the sandbox mode or abusing the Runtime environment, we first needed to understand how their underlying metadata is managed. Both services operate on ephemeral microVMs, which are lightweight, hardened virtualization units created per session to ensure distinct isolation between tasks. A critical aspect of this architecture is how these microVMs maintain context. They use a microVM Metadata Service (MMDS), which is structurally similar to the well-known EC2 Instance Metadata Service (IMDS). Just as IMDS provides credentials and metadata to an EC2 instance, MMDS serves as the internal metadata server for the microVM.
With a clear understanding of the architecture and metadata management in place, we can now walk through the chronological phases of our investigation.
Phase 1: Internal Reconnaissance
Our analysis commenced with a baseline scenario: executing arbitrary code within the Code Interpreter. This is the intended functionality of the service, as users and AI agents are designed to execute dynamic scripts in this environment. Upon establishing this context, we began our environmental reconnaissance by investigating the microVM architecture and MMDS accessibility.
In modern AWS EC2 environments, accessing metadata usually defaults to IMDSv2 (although IMDSv1 is not actually disabled by default), which mandates a session token (HTTP PUT request) to mitigate SSRF attacks. However, we observed that the microVM’s MMDS endpoint was configured to accept standard HTTP GET requests without requiring a session token, as Figure 2 shows.
Figure 2. MMDS response containing the executing role credentials.
Not requiring a session token posed serious implications for the runtime environment. AgentCore Runtime hosts the AI agent's application logic and is not designed for arbitrary user code execution. However, if an AI agent contains a standard web vulnerability like SSRF, the absence of token enforcement leads to the same risks that are found in legacy EC2 IMDSv1 configurations. A simple SSRF vector could allow an external actor to retrieve the AI agent's identity and access management (IAM) role credentials directly, posing a significant security risk for the entire environment.
In the Code Interpreter environment, where arbitrary code execution is an intended feature, this same configuration primarily simplifies the retrieval of credentials and does not function as a vulnerability in itself, regardless of whether v1 or v2 MMDS protocols are used.
With credential access confirmed locally, our investigation shifted to the integrity of the network boundaries. Under the sandbox mode's design specifications, the absence of an outbound network route effectively neutralizes the risk of data exfiltration, effectively trapping the compromised credentials within the microVM.
Phase 2: The Clue in the Metadata
We extended our metadata analysis to identify additional configuration parameters that are exposed within the MMDS hierarchy. A systematic traversal of the latest/meta-data/tags/instance/ path revealed two undocumented endpoints:
Querying these endpoints returned a pre-signed URL for an S3 bucket and a corresponding Key Management Service (KMS) Key ID. These resources appeared to belong to an internal AWS account, likely used by the backend infrastructure for log aggregation.
While the URLs themselves were a secondary concern, their existence provided a critical clue about the network architecture and its connectivity. The provision of an S3 pre-signed URL implies a functional requirement for the microVM to transmit data to Amazon S3. Since standard S3 endpoints (such as bucket.s3.region.amazonaws[.]com) are resolved via DNS resolution, the environment might theoretically have a mechanism to resolve and route traffic to external DNS servers and to these S3 endpoints.
This observation presents an architectural conflict with the originally stated "no external network access" policy of the sandbox mode. The necessity to support S3 traffic suggests that the isolation is not absolute, but rather conditionally permeable. Such behavior implies the presence of an allow-list or a transparent proxy designed to facilitate specific AWS service interactions.
This observation directed our analysis to the foundation of the network stack: DNS.
Phase 3: The Great Escape
To validate our hypothesis of the network’s permeability, we executed a series of targeted tests within the Code Interpreter. Our objective was to map the boundaries of the DNS resolution capability through incremental testing.
Test 1: Internal Service Resolution (Control)
We began by querying a standard AWS service endpoint. Given that the endpoint is likely used for log aggregation, we anticipated that this query would succeed:
As expected, the environment successfully resolved the internal AWS endpoint.
Test 2: External Domain Resolution
Next, we attempted to resolve an external public domain completely unrelated to AWS infrastructure. In a strictly isolated sandbox environment, DNS queries are typically restricted. The code below shows how we attempted to resolve google[.]com from within the sandbox.
1
socket.gethostbyname_ex("google[.]com")
The query resolved successfully, confirming that although the sandbox blocks direct TCP/UDP data traffic to these IP addresses, it might permit recursive DNS queries to arbitrary public domains.
Proof of Concept: Exploiting the DNS Egress Vector
This sandbox design reveals a channel for data exfiltration: DNS tunneling. Even in environments where direct internet access is severed, the ability to resolve arbitrary domain names allows for bidirectional communication via the DNS protocol itself.
To demonstrate the feasibility of the egress vector, we configured an authoritative nameserver for a domain under our control: dnshook[.]site. We then designed a proof-of-concept (PoC) payload to validate the communication path.
The PoC is executed according to the following logic:
Identify sensitive information: my-secret.
Append the data as a subdomain to the controlled domain: my-secret.dnshook[.]site.
Trigger a DNS resolution request from within the Code Interpreter.
The sandbox's recursive resolver forwards the query to our authoritative nameserver, where the "subdomain" – the leaked data – is logged.
Figure 3 details the PoC script.
Figure 3. A PoC script to escape the sandbox via DNS tunneling.
Upon execution, our authoritative nameserver immediately received the query, confirming that the data had successfully traversed the sandbox boundary, as shown in Figure 4.
Figure 4. Confirming the DNS server received the DNS query.
Finally, as shown in Figure 5, performing a Whois lookup on the incoming IP address confirmed the traffic originated directly from AWS infrastructure, validating that the Code Interpreter environment was the source of the transmission.
Figure 5. Whois lookup results.
Video 1 shows the PoC in action.
Video 1. Escaping the sandbox PoC.
The Impact
Watching our DNS server logs, we saw the query arrive instantly, establishing a covert channel out of the sandbox.
Crucially, this vector is not limited to data exfiltration; it establishes a bidirectional communication channel capable of both outbound and inbound traffic.
Exfiltration (outbound): An attacker can encode sensitive data – such as environment variables, source code, or the IAM credentials retrieved in Phase 1 – into Base64 subdomains and tunnel them out.
C2 (inbound): The code inside the sandbox can receive instructions or payloads from the attacker's server in the form of DNS response. This effectively enables a full C2 loop over DNS.
To summarize so far, this capability is particularly dangerous in the context of identity. Because users trust the "sandbox" guarantee, they often attach highly privileged IAM roles to these interpreters – permissions they would never grant to a public mode Code Interpreter.
Phase 4: Beyond the Sandbox
Following the confirmation of DNS egress and credential accessibility, the analysis returned to the metadata anomalies identified in Phase 2. As previously noted, the MMDS traversal revealed two undocumented endpoints:
Upon closer inspection, these endpoints represent a distinct finding. We confirmed that code executing within the Code Interpreter (or AgentCore Runtime) can query these paths to retrieve a valid S3 pre-signed URL and a corresponding KMS Key ID. The returned URL targets an internal, AWS-controlled S3 bucket, as displayed in Figure 6.
Figure 6. Presigned URL and KMS Key response from MMDS.
Scoped S3 ObjectWrite
The combination of the pre-signed URL and the KMS Key ID provides the necessary components to construct a valid HTTP PUT request that could be sent to the target bucket.
It is important to note that this write access appears to be scoped, and not arbitrary. The pre-signed URL restricts uploads to a specific object key path. This restriction prevents writing to arbitrary paths and limits the impact radius. AWS confirmed that AWS’s own service code uses this pre-signed URL to upload service-related logging information to a specific location owned by the service.
Infrastructure Leak
Interacting with these endpoints revealed internal infrastructure details. When sending a malformed request (by breaking the signature) to the pre-signed URL, the server responds with a SignatureDoesNotMatch error.
This server error message includes the AWSAccessKeyID of the signing identity, as Figure 7 shows.
Figure 7. An error that reveals AWS Access Key ID.
After extracting this Key ID, we used the AWS Security Token Service (STS) command-line interface to show information about the Key ID:
This confirmed that we were interacting with account 209...9, which appears to be an internal AWS environment that is hidden behind the service abstraction, separate from our own environments.
Mitigation and Collaboration With AWS
After we shared our findings, AWS clarified that the AgentCore Code Interpreter offers three network modes: Sandbox, Public network, and VPC. AWS recommends VPC Mode for customers requiring complete network isolation. To specifically mitigate DNS-based exfiltration, customers using VPC Mode can implement Amazon Route 53 Resolver DNS Firewall. AgentCore has since updated its developer guide to explicitly clarify sandbox mode’s capabilities, noting that “the code interpreter can access Amazon S3 for data operations and perform DNS resolution.”
In response to our research regarding the S3 pre-signed URLs and metadata exposure, AWS confirmed that this represents expected behavior. The access keys and account IDs are part of the backend infrastructure, do not belong to customer accounts, and the pre-signed URLs are narrowly scoped to their intended logging function.
AWS also informed us that they have made a number of improvements to the behavior of MMDS in AgentCore. Specifically, as of Feb. 14, 2026, any AWS account in which customers had not previously utilized Runtime, Browser or Code Interpreter microVMs will launch new runtimes and tools with MMDSv2 only. Even for accounts that had been using these capabilities prior to that date, all newly deployed agents will launch with MMDSv2 only.
The Browser and Code Interpreter tools now have both MMDSv1 and v2 available by default.
We appreciate the transparent collaboration with the AWS Security team in assessing these findings.
Disclosure Timeline
Nov. 17, 2025 – We responsibly reported to the AWS Security team.
Nov. 18, 2025 – AWS Security team responded that they are investigating.
Dec. 14, 2025 – AWS Security team reached out for more details.
Jan. 28, 2026 – AWS Security team provided clarifications regarding our findings and commitment for internal remediations.
Feb. 14, 2026 – AWS set MMDSv2 as the default for new agents, provided an API for disabling v1 on older agents, and made v2 available in AgentCore tools.
Conclusion
Our research into AWS AgentCore reveals that despite the "sandbox" label, the underlying mechanisms of cloud, network and identity still apply – and their integrity can still be broken. Developers must adopt a shared responsibility mindset when utilizing sandbox environments. It is critical to maintain the principle of least privilege for agent permissions, and to view a sandbox environment as a boundary, rather than an absolute security guarantee.
The discovery of internal S3 write access and the leakage of backend Account IDs highlight that the abstraction layer between the tenant and the cloud provider offers less isolation than anticipated. Our research shows that cloud providers sometimes use customer-facing features to enable capabilities like log collection, and accept the risk inherent in this setup.
By chaining together DNS Tunneling and the legacy MMDSv1 configuration, we demonstrated a complete attack:
Break out: Escaping the network sandbox using DNS recursion.
Break in: Accessing the AI agent’s identity via an unprotected metadata service.
Exfiltrate: Tunneling sensitive IAM credentials to an external attacker.
The impact of this attack defeats the primary purpose of an isolated environment. It allows an attacker to bypass network controls, exfiltrate credentials and execute remote commands without triggering standard network alarms. A successful exploit allows attackers to establish a persistent bidirectional C2 channel, turning a trusted AI agent into an internal threat vector.
Palo Alto Networks Protection and Mitigation
Palo Alto Networks customers are better protected from the threats discussed above through the following products:
Organizations are better equipped to close the AI security gap through the deployment of Cortex AI-SPM, which helps to provide comprehensive visibility and posture management for AI agents across AWS and Azure environments. Cortex AI-SPM is designed to mitigate critical risks, including over-privileged AI agent access, misconfigurations and unauthorized data exposure. Cortex AI-SPM helps enable security teams to enforce compliance with NIST and OWASP standards, monitor for real-time behavioral anomalies, and secure the entire AI lifecycle within a unified cloud security context.
Cortex Cloud Identity Security encompasses Cloud Infrastructure Entitlement Management (CIEM), Identity Security Posture Management (ISPM), Data Access Governance (DAG) and Identity Threat Detection and Response (ITDR). It provides clients with the necessary capabilities to improve their identity-related security requirements by providing visibility into identities, and their permissions, within cloud and container environments. This helps accurately detect misconfigurations and unwanted access to sensitive data. It also allows real-time analysis surrounding usage and access patterns.
The Unit 42 Cloud Security Assessment is an evaluation service that reviews cloud infrastructure to identify misconfigurations and security gaps.
If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:
North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
UK: +44.20.3743.3660
Europe and Middle East: +31.20.299.3130
Asia: +65.6983.8730
Japan: +81.50.1790.0200
Australia: +61.2.4062.7950
India: 000 800 050 45107
South Korea: +82.080.467.8774
Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.