Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
WSUSResponder — Module PowerShell de réponse à l'incident CVE-2025-59287 — WSUS Remote Code Execution (RCE) | Kitploit
Tools/GitHubGitHub/radzarr/wsusresponder
Cloud Infrastructure SecurityVulnerability ScannersConfiguration AuditingNetwork SecurityIncident Response
GitHubradzarr/wsusresponder

WSUSResponder

Module PowerShell de réponse à l'incident CVE-2025-59287 — WSUS Remote Code Execution (RCE)

View Repository
10 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

🧰 WSUSResponder

Version: 1.0.1
Author: RZA / IT Operations
License: MIT


🎯 Objective

The WSUSResponder module provides a set of PowerShell tools to quickly respond to the critical vulnerability CVE-2025-59287, a remote code execution (RCE) flaw affecting Windows Server Update Services (WSUS).

It allows you to:

  • 🔍 Scan an Active Directory environment or a list of targeted servers
  • 🧩 Identify vulnerable WSUS servers
  • 🛡️ Check for the presence of the Out-of-Band (OOB) patches published by Microsoft
  • 🚧 Apply a firewall workaround (blocking ports 8530/8531)
  • ♻️ Remove this workaround once servers are patched
  • 📊 Generate comprehensive audit reports (CSV, JSON, XLSX)

⚙️ Prerequisites

Required PowerShell modules

ModuleRoleInstallation
ActiveDirectoryAutomatic server discovery via ADAdd-WindowsCapability -Online -Name 'Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0'
ImportExcelExcel report generation (.xlsx)Install-Module ImportExcel -Scope CurrentUser

Required environment

  • PowerShell 5.1+
  • WinRM enabled on target servers (Enable-PSRemoting)
  • Local administrator rights on remote hosts

📦 Installation

  1. Create a folder named WSUSResponder in one of your PowerShell module directories:
    root@kitploit:~
    $Path = "$env:USERPROFILE\Documents\WindowsPowerShell\Modules\WSUSResponder"
    New-Item -ItemType Directory -Path $Path -Force
    
  2. Copy the module files:
    • WSUSResponder.psm1
    • WSUSResponder.psd1
  3. Import the module:
    root@kitploit:~
    Import-Module WSUSResponder
    Get-Command -Module WSUSResponder
    
  4. Verify the loading:
    root@kitploit:~
    Get-Module WSUSResponder -ListAvailable
    

🧩 Exported functions

FunctionDescription
Get-WSUSCveStatusScans servers to detect the presence of the WSUS role and OOB patches.
Set-WSUSCveWorkaroundApplies the workaround (firewall rules blocking ports 8530/8531).
Remove-WSUSCveWorkaroundRemoves the firewall rules created by the workaround.
Export-WSUSCveReportExports scan results in multiple formats (CSV, JSON, XLSX, TXT).

🚀 Usage examples

🔎 Full AD domain audit

root@kitploit:~
$ReportPath = "C:\Temp\WSUS_Audit_$(Get-Date -Format yyyyMMdd)"
Get-WSUSCveStatus -FromAD -UsePS7Parallel | Export-WSUSCveReport -ExportPath $ReportPath

🛡️ Scan + Workaround application

root@kitploit:~
$scanResults = Get-WSUSCveStatus -FromAD -UsePS7Parallel
$vulnerable = $scanResults | Where-Object { $_.IsWSUS -and -not $_.IsPatched -and $_.Reachable }
$vulnerable | Set-WSUSCveWorkaround -PassThru
$scanResults | Export-WSUSCveReport -ExportPath "C:\Temp\WSUS_Mitig_$(Get-Date -Format yyyyMMdd)"

🔁 Workaround removal after patching

root@kitploit:~
Remove-WSUSCveWorkaround -ComputerName 'srv-wsus-01','srv-wsus-02'

📊 Generated reports

Reports are saved in the folder defined by -ExportPath:

FileFormatContent
WSUS_CVE59287_Report.csvCSVFull scan results
WSUS_CVE59287_Report.jsonJSONStructured export for API/automation
WSUS_CVE59287_Report.xlsxXLSXFormatted report with automatic filters
Vulnerable_Hosts.txtTXTSimple list of vulnerable hosts

🧱 Technical architecture

  • Uses Invoke-Command and WinRM for remote execution
  • Native PS7 parallelism (ForEach-Object -Parallel) to speed up pre-tests
  • Configurable timeout via -OperationTimeoutSec
  • Idempotent workaround (no rule duplication)
  • Automated multi-format export (CSV, JSON, XLSX via ImportExcel)

🔐 Security and module signing

If your execution policy is AllSigned, you can sign the module:

root@kitploit:~
New-SelfSignedCertificate -Type CodeSigning -Subject "CN=IT Operations" -CertStoreLocation Cert:\CurrentUser\My
$cert = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
Set-AuthenticodeSignature -FilePath "C:\Modules\WSUSResponder\WSUSResponder.psm1" -Certificate $cert
Set-AuthenticodeSignature -FilePath "C:\Modules\WSUSResponder\WSUSResponder.psd1" -Certificate $cert

🧾 Changelog

v1.0.1 – (27/10/2025)

  • Complete refactor into a PowerShell module (.psm1 / .psd1)
  • Added PS7 parallel support (-UsePS7Parallel)
  • New export engine (CSV, JSON, XLSX)
  • Fixed WinRM timeout handling
  • Idempotent rollback of firewall rules

🧑‍💻 Authors

  • (RZA) — IT Operations
  • Internal contributors Microsoft Security / DOT_SU_KIOSQUE_CENTER

📜 License

Distributed under the MIT license.
© 2025 RZA / IT Operations – All rights reserved.

Download Tool