Critical SharePoint RCE Flaw Exploited to Steal Machine Keys, Posing Persistent Threat

Hackers are actively exploiting a critical remote code execution (RCE) vulnerability in Microsoft SharePoint, identified as CVE-2026-50522, to pilfer machine keys. This malicious act allows adversaries to maintain persistent access to compromised systems, even after affected servers have been patched against the initial exploit. The severity of this threat stems from the attackers’ ability to forge valid authentication tokens using the stolen keys, enabling them to impersonate legitimate users and gain unauthorized access to sensitive SharePoint resources, including sites and documents, with the privileges of the compromised identity.
Microsoft’s official security advisory describes CVE-2026-50522 as a deserialization of untrusted data flaw. This type of vulnerability permits a remote attacker to execute arbitrary code over a network without requiring any form of authentication. The implications are far-reaching, as it bypasses typical access controls and directly targets the underlying execution environment of the SharePoint server.
The vulnerability was initially addressed in Microsoft’s July 2026 security updates. While Microsoft’s advisory did not explicitly label the flaw as actively exploited at the time of the patch release, it did note an increased likelihood of its exploitation. This foresight, unfortunately, proved accurate, as evidenced by the rapid emergence of active exploitation attempts shortly after the vulnerability became widely known.
Chronology of Exploitation: From PoC to Widespread Attacks
The timeline of this exploit’s lifecycle is a stark reminder of the speed at which the cybersecurity landscape can shift. The critical turning point appears to have been the public release of a proof-of-concept (PoC) exploit for CVE-2026-50522.
According to offensive security company watchTowr, their global honeypot network, dubbed "Attacker Eye," began detecting exploitation attempts using this PoC on July 20th. This detection occurred mere hours after the PoC became publicly available. "On July 20th, watchTowr identified proof-of-concept exploit code for this vulnerability," the company stated in a LinkedIn post. "Within hours, our global honeypot network, Attacker Eye, captured exploitation attempts using this PoC that successfully compromised target systems." The researchers at watchTowr specifically highlighted that attackers were focused on stealing machine keys, a crucial component for maintaining long-term persistence.
Prior to watchTowr’s observation, early warning threat intelligence company Defused had already detected suspicious activity. As early as July 17th, Defused observed what they described as "an undocumented SharePoint deserialization vector" being utilized in attacks. At that time, they could not definitively link this activity to a specific known vulnerability. However, by July 20th, the same day watchTowr noted the exploitation of CVE-2026-50522, Defused updated their assessment. The company stated that the observed attacks were "likely driven by exploiting the CVE-2026-50522 SharePoint vulnerability." This suggests a potential lead time for attackers, with some exploiting the flaw even before a widely publicized PoC existed, or perhaps utilizing a slightly different, albeit related, exploit vector.
The Technical Underpinnings of the Exploit
The mechanism behind CVE-2026-50522’s exploitation is rooted in the deserialization process within SharePoint. A publicly available PowerShell demonstrative exploit, shared by security researcher Janggggg on GitHub, provides a clear illustration of the attack vector.

This PoC aims to trigger remote code execution by injecting a malicious .NET BinaryFormatter payload. This payload is embedded within the cookie of a forged SecurityContextToken. The forged token is then sent as part of a WS-Federation sign-in response to SharePoint’s /_trust/default.aspx endpoint. If a vulnerable deserialization path within SharePoint processes this token, the embedded payload is executed, leading to arbitrary code execution on the SharePoint server.
The researchers at BleepingComputer, who reported on this vulnerability, confirmed that while they did not test the PoC themselves, its structure and technical implementation appeared legitimate and consistent with known deserialization attack patterns. The timing of Janggggg’s public release of the PoC, coinciding with the surge in detected exploitation by watchTowr, raises questions about the precise origins and dissemination of the exploit. It remains unclear whether the incidents observed by watchTowr and Defused specifically utilized Janggggg’s publicly released code or a variant thereof.
Broader Implications and Impact
The exploitation of CVE-2026-50522 poses a significant threat to organizations that rely on on-premise SharePoint deployments. The ability of attackers to steal machine keys has a compounding effect on security. Machine keys are critical for generating and validating authentication tokens. By obtaining these keys, attackers can effectively impersonate any user within the compromised environment, bypassing multi-factor authentication and other security controls. This allows them to move laterally within the network, access sensitive data, and potentially exfiltrate confidential information.
The fact that this exploit allows for persistent access is particularly concerning. Even if an organization promptly applies the July 2026 security patches to address the deserialization vulnerability, the stolen machine keys can still be used by attackers. This means that simply patching the immediate vulnerability may not be sufficient to fully evict an adversary from a compromised system.
Industry Reactions and Recommendations
In response to the emerging threat, security vendors and researchers are urging organizations to take immediate and comprehensive action. The primary recommendation, of course, is to apply the latest SharePoint security updates released by Microsoft. However, given the persistence enabled by stolen machine keys, this is only the first step.
WatchTowr’s advice to defenders is particularly crucial: "defenders to also rotate credentials on any asset that may have been exposed." This recommendation underscores the need for a proactive approach to incident response. Credential rotation, especially for administrative accounts and service accounts that interact with SharePoint, can help revoke access granted by stolen keys and disrupt an attacker’s persistent foothold.
Beyond immediate patching and credential rotation, organizations should consider enhanced monitoring for suspicious activity within their SharePoint environments. This includes looking for unusual login patterns, unauthorized access attempts to sensitive documents, and unexpected changes to system configurations.
The Landscape of SharePoint Vulnerabilities

This incident is not an isolated event. Microsoft SharePoint, being a widely deployed and feature-rich platform, has historically been a target for attackers. Vulnerabilities in SharePoint can range from cross-site scripting (XSS) and SQL injection to more complex RCE flaws like CVE-2026-50522. The complexity of the platform and its integration with other Microsoft services can create a large attack surface.
The continuous discovery and exploitation of vulnerabilities in enterprise software like SharePoint highlight the ongoing arms race between attackers and defenders. The rapid dissemination of exploit code following the public disclosure of a vulnerability, as seen with CVE-2026-50522, emphasizes the need for organizations to have robust patch management processes and a proactive security posture.
Broader Security Context: The Rise of Persistent Threats
The exploitation of CVE-2026-50522 and its ability to grant persistent access aligns with a broader trend in cyberattacks. Advanced Persistent Threats (APTs) and sophisticated criminal groups are increasingly focused on establishing long-term footholds within victim networks. This allows them to conduct prolonged espionage, data theft, or disruptive attacks without being quickly detected. The theft of machine keys represents a particularly insidious method for achieving such persistence, as it leverages core cryptographic mechanisms to bypass security measures.
Organizations that have not yet migrated to cloud-based solutions, such as SharePoint Online, may face a more challenging security environment. While cloud platforms also have their own security considerations, they are typically managed and patched by the cloud provider, reducing the burden on individual organizations to address underlying infrastructure vulnerabilities. For on-premise deployments, the responsibility for securing the platform and its underlying infrastructure falls squarely on the organization.
Mitigation and Future Preparedness
The exploitation of CVE-2026-50522 serves as a critical lesson for all organizations using on-premise SharePoint. The immediate steps are clear: patch, rotate credentials, and enhance monitoring. However, long-term preparedness requires a more holistic approach to cybersecurity.
This includes:
- Regular Security Audits: Conducting frequent audits of SharePoint configurations and access controls to identify and remediate potential weaknesses.
- Threat Intelligence Integration: Subscribing to and acting upon threat intelligence feeds to stay informed about emerging vulnerabilities and attack techniques.
- Incident Response Planning: Developing and regularly testing comprehensive incident response plans to ensure a swift and effective reaction to security breaches.
- Security Awareness Training: Educating employees about phishing attempts and social engineering tactics, which are often the initial vectors for attacks that can lead to the exploitation of such vulnerabilities.
- Zero Trust Architecture: Embracing a "never trust, always verify" approach to network security, which can limit the impact of compromised credentials or systems.
The active exploitation of CVE-2026-50522 underscores the dynamic and evolving nature of cyber threats. By understanding the technical details, the timeline of events, and the broader implications, organizations can better equip themselves to defend against such critical vulnerabilities and safeguard their valuable data. The ongoing vigilance and proactive measures are paramount in navigating the complex cybersecurity landscape.






