ToolShell: SharePoint On-Prem Unauthenticated RCE Chain
Fixes shipped in July 2025, but ToolShell stole ASP.NET machine keys that survive patching, so any on-prem SharePoint that was internet-facing then needs proof that keys were rotated and no backdoor remains.
Must act: Owners of on-premises SharePoint Server 2016, 2019 or Subscription Edition, and anyone still running end-of-life SharePoint 2013 or older.
Can relax: SharePoint Online (Microsoft 365) customers, who were not affected, and on-prem farms that patched, rotated machine keys and ran a hunt in 2025.
- Confirm every SharePoint server is on the July 2025 comprehensive update or later (check the farm build in Central Administration)
- Enable AMSI integration in Full Mode and run antivirus/EDR on all SharePoint servers
- Rotate ASP.NET machine keys with Set-SPMachineKey or the Machine Key Rotation Job, then run iisreset.exe on every server