Skip to main content

Research

SharePoint Vulnerability: Patch, Rotate Keys, Evict

Address critical SharePoint vulnerabilities with expert guidance. Learn why patching isn't enough and how to rotate machine keys to evict attackers.

Reading mode

Recent SharePoint vulnerabilities pose critical risks to on-premises deployments, with attackers actively exploiting flaws for remote code execution and data theft. Effective defense requires more than just applying patches; organizations must also rotate compromised machine keys to truly evict intruders and prevent persistent access through forged authentication tokens.

Understanding the Latest SharePoint Vulnerabilities and Active Exploitation#

Microsoft SharePoint Servers, particularly on-premises versions, have been a frequent target for sophisticated threat actors, leading to a surge in critical SharePoint vulnerability reports. Recent years, especially 2025 and 2026, have seen multiple high-severity CVEs actively exploited in the wild, including deserialization flaws and privilege escalation vulnerabilities. Notable examples include CVE-2025-53770 and CVE-2026-50522, both of which are deserialization of untrusted data vulnerabilities allowing unauthorized remote code execution (RCE) over a network. CVE-2026-56164 is another critical flaw enabling privilege escalation without authentication. These vulnerabilities, sometimes collectively referred to as the ‘ToolShell’ campaign (which included CVE-2025-49704, CVE-2025-49706, and CVE-2025-53771), enable attackers to gain deep unauthorized access, exfiltrate sensitive data, deploy persistent backdoors, and achieve full system compromise Active Exploitation of Microsoft SharePoint Vulnerabilities.

The affected versions primarily include SharePoint Server Subscription Edition, SharePoint Server 2019, and SharePoint Server 2016. It’s crucial to note that SharePoint Online, a Microsoft-hosted service, is generally not impacted by these specific on-premises vulnerabilities. Security vendors like Trend Micro actively monitor and provide insights into these evolving threats, helping organizations understand the latest SharePoint vulnerability attack vectors and protect against them.

The Critical Role of Stolen Machine Keys in SharePoint Exploitation#

Many recent SharePoint vulnerability attacks, particularly those exploiting deserialization flaws like CVE-2026-50522, target the theft of the server’s ASP.NET machine key. This key is the true prize for attackers, as it’s fundamentally used to sign and encrypt crucial server-side state, including ViewState, authentication tickets, and other tokens. An attacker who successfully compromises a SharePoint server and steals this machine key gains a powerful capability: the ability to forge legitimate requests. Even if the initial vulnerability is patched, a stolen machine key remains valid, allowing attackers to maintain persistence on a fully updated server. They can craft malicious ViewState blobs or other signed tokens that the server accepts as genuine, effectively bypassing updated security controls and leading directly to further code execution or privilege escalation. This means that for SharePoint vulnerability victims, patching alone is often insufficient to fully evict an intruder who has already obtained the machine key, highlighting a critical gap in many remediation strategies.

Immediate Mitigation: Patching, Hardening, and Key Rotation#

Given the severity and active exploitation of recent SharePoint vulnerability CVEs, immediate action is paramount. Organizations must prioritize applying all available Microsoft security updates for SharePoint Server Subscription Edition, 2019, and 2016. The Cybersecurity and Infrastructure Security Agency (CISA) consistently urges SharePoint hardening after new exploitations, emphasizing a multi-layered approach CISA Urges SharePoint Hardening After New Exploitations.

Key hardening measures include:

  • AMSI Integration: Enable Antimalware Scan Interface (AMSI) integration for each SharePoint web application, configuring full request body scanning where feasible. This provides crucial visibility into potentially malicious content within requests.
  • Endpoint Protection: Deploy Microsoft Defender for Endpoint or an equivalent advanced threat protection solution across all SharePoint servers to detect and block post-exploitation activity.
  • Machine Key Rotation: Crucially, after applying all relevant security updates, rotate SharePoint Server ASP.NET machine keys and restart Internet Information Services (IIS) on all SharePoint servers. This step is essential to invalidate any keys that may have been stolen during a prior compromise.
  • Network Exposure: Avoid exposing SharePoint Servers directly to the internet. If external access is necessary, place them behind an authenticated Layer 7 reverse proxy or application-layer security control that can inspect and filter requests. Block external access to SharePoint Central Administration and restrict farm and database communications to only required systems.

These steps are vital to address both the immediate SharePoint vulnerability 2026 and SharePoint vulnerability 2025 threats and to build a more resilient defense.

Detecting and Responding to SharePoint Post-Exploitation Activity#

Detecting post-exploitation activity is critical, especially since a stolen machine key can allow attackers to persist even after patches are applied. Security teams must actively hunt for indicators of compromise (IoCs) and intrusion artifacts. Key areas to monitor include:

  • Anomalous Requests: Look for unusual or malformed POST requests to sign-in and _layouts endpoints that might trigger deserialization or attempt to exfiltrate key material.
  • Suspicious Process Activity: Monitor SharePoint worker-process activity (e.g., w3wp.exe) for unexpected child processes, such as cmd.exe or PowerShell. This can indicate an attacker executing commands on the server.
  • Web Shells: Search for the presence of new or unfamiliar .aspx files in sensitive directories like LAYOUTS or TEMPLATE (e.g., spinstall0.aspx), which are common indicators of web shell deployment for persistent access Active Exploitation of Microsoft SharePoint Vulnerabilities.
  • AMSI and MDAV Detections: Pay close attention to Antimalware Scan Interface (AMSI) detections like Exploit:Script/SuspSignoutReqBody.A or Exploit:Script/ToolPaneAuthBypass.A/C, and Microsoft Defender Antivirus (MDAV) alerts such as Backdoor:MSIL/LeakFang.A!dha, which signal post-exploitation malware CISA Urges SharePoint Hardening After New Exploitations.
  • Event Log Review: Regularly review SharePoint and Windows event logs for signs of machine-key access, unusual user logins, or privilege escalation attempts.

Remember, detection cannot solely rely on patch status; continuous monitoring is essential for identifying and responding to SharePoint vulnerability victims and ensuring complete threat eradication. Understanding common offensive security terms can further aid in this process, as outlined in our glossary.

Continuous Security with Automated Penetration Testing#

In the face of continuous SharePoint vulnerability attack trends, relying solely on periodic manual assessments and reactive patching is no longer sufficient. Automated penetration testing offers a more proactive and continuous approach to validating an organization’s security posture. AI-powered platforms like Pentrova can autonomously identify complex vulnerabilities, including the deserialization flaws and authentication bypasses commonly found in SharePoint, before they are actively exploited by threat actors. Unlike traditional scanners, these advanced solutions go beyond surface-level checks to uncover deeper, exploitable weaknesses.

Automated penetration testing provides the benefit of replay-verified exploits, offering clear, deterministic evidence of exploitable risks in web applications and APIs. This means security teams receive actionable proof of a vulnerability, eliminating false positives and enabling faster, more efficient remediation. Integrating such a solution into your security pipeline ensures that your SharePoint environment and other critical applications are continuously scrutinized, helping to catch new SharePoint vulnerability CVEs or misconfigurations as they emerge. Learn more about what automated penetration testing is and how it can bolster your defenses.

Beyond the Patch: A Proactive Stance Against SharePoint Vulnerabilities#

The ongoing threat landscape for Microsoft SharePoint underscores a critical lesson: a comprehensive security strategy extends far beyond merely applying patches. While essential, patching is often just the first step. The unique challenge posed by stolen machine keys in recent SharePoint vulnerability attacks highlights the need for a more holistic and proactive approach. Organizations must combine immediate patching with robust hardening measures, diligent monitoring for post-exploitation activities, and the critical, often overlooked, step of machine key rotation.

Adopting continuous security validation through automated penetration testing is vital to stay ahead of evolving threats. This proactive stance helps identify and remediate weaknesses before they become a SharePoint vulnerability victim. By integrating advanced testing capabilities into your AppSec program, you can protect critical enterprise data, collaboration platforms, and ensure the integrity of your digital assets. Explore how AppSec teams leverage automated penetration testing to secure their applications more effectively.

FAQ#

What are the most recent SharePoint vulnerabilities being actively exploited?#

Recent actively exploited SharePoint vulnerabilities include deserialization flaws like CVE-2025-53770 and CVE-2026-50522, as well as privilege escalation vulnerabilities like CVE-2026-56164. These often enable remote code execution (RCE) and are sometimes part of broader campaigns like ‘ToolShell’ CISA Urges SharePoint Hardening After New Exploitations.

Is SharePoint Online affected by these critical vulnerabilities?#

Generally, the critical vulnerabilities discussed, particularly those involving machine key theft and deserialization, primarily affect on-premises Microsoft SharePoint Server deployments (Subscription Edition, 2019, 2016). SharePoint Online, which is Microsoft’s cloud-hosted service, is typically not impacted by these specific flaws.

Why is rotating machine keys essential after patching a SharePoint vulnerability?#

Rotating ASP.NET machine keys is essential because attackers can steal these keys during an initial compromise. Even if the underlying vulnerability is patched, a stolen key remains valid, allowing attackers to forge legitimate ViewState or authentication tokens to maintain persistence and execute code on a fully updated server. Key rotation invalidates these stolen keys, effectively evicting the intruder SharePoint CVE-2026-50522: patch, then rotate the machine key.

How can organizations detect if their SharePoint server has been compromised?#

Organizations can detect compromise by monitoring for anomalous requests, suspicious SharePoint worker-process activity (e.g., w3wp.exe spawning cmd.exe or PowerShell), the presence of unexpected web shells (like spinstall0.aspx), and specific AMSI/MDAV detections (e.g., Exploit:Script/SuspSignoutReqBody.A, Backdoor:MSIL/LeakFang.A!dha). Reviewing event logs for machine-key access is also crucial.

What specific hardening measures should be implemented for on-premises SharePoint Servers?#

Key hardening measures include enabling Antimalware Scan Interface (AMSI) integration with full request body scanning, deploying Microsoft Defender for Endpoint, rotating ASP.NET machine keys after patching, avoiding direct internet exposure for SharePoint Servers (using an authenticated Layer 7 proxy if necessary), and blocking external access to SharePoint Central Administration CISA Urges SharePoint Hardening After New Exploitations.

How does automated penetration testing help secure SharePoint environments?#

Automated penetration testing, especially with AI-powered platforms like Pentrova, continuously identifies complex vulnerabilities such as deserialization flaws and authentication bypasses in web applications and APIs. It provides replay-verified exploits for deterministic proof of risk, allowing organizations to proactively discover and remediate weaknesses before they are exploited, enhancing overall security posture beyond reactive patching.

Written by

Pentrova Research Pentrova Research

Pentrova Research writes about deterministic offensive-security proof, LLM-driven pentest chains, and how to ship exploit-grade evidence into engineering pipelines.

Multi-Hop Attack Chaining

Validate composite business impact

Move beyond isolated low-severity tickets. Pentrova autonomously chains low-severity redirects and SSRF into proven, critical breach pathways.

Simulate Attack Chains →

Keep reading

Site search

↑↓ navigateEnter openEsc close