Overview
The WSUS command enumerates Windows Server Update Services (WSUS) client configuration. WSUS is Microsoft’s enterprise update management solution. Understanding WSUS configuration reveals the update infrastructure, which can be a target for exploitation (WSUS MitM attacks) or indicates the patch management posture of the environment.Syntax
Remote Execution
Output
Returns WSUS configuration:- WSUS server URL
- WSUS status server URL
- Use WSUS server (enabled/disabled)
- Update service configuration
- Automatic update settings
- Last successful sync time
- Proxy configuration
Use Cases
- Red Team
- Blue Team
- Identify WSUS infrastructure for MitM attacks
- Check if WSUS uses HTTP (exploitable)
- Discover update management servers
- Assess patch deployment mechanism
- Plan WSUS exploitation (if HTTP)
- Understand update infrastructure
Example Output
Remote Execution
This command supports remote execution using the
-computername parameter.Detection Considerations
Low detection risk - reads WSUS registry configuration.
- Registry Access: Queries
HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate - WMI Activity: Remote execution generates WMI events
WSUS Security Risks
WSUS Exploitation (HTTP Only)
WSUS Exploitation (HTTP Only)
Attack Vector:
When WSUS uses HTTP instead of HTTPS, attackers can perform Man-in-the-Middle (MitM) attacks to:
-
Intercept Update Traffic
- Position on network between client and WSUS server
- Intercept HTTP update requests
-
Inject Malicious Updates
- Serve malicious executables as “updates”
- Gain SYSTEM-level code execution
- Deploy across entire environment
-
Requirements for Attack:
- WSUS using HTTP (not HTTPS)
- Network position between client and server
- ARP spoofing or routing control
- WUServer URL starts with
http://instead ofhttps:// - Port 8530 (HTTP) instead of 8531 (HTTPS)
- No SSL/TLS encryption
- WSUSpendu
- PyWSUS
- Custom MitM tools
Defensive Recommendations
WSUS Hardening
WSUS Hardening
Critical Controls:
-
Use HTTPS Only
- Configure WSUS server for SSL
- Update clients to use HTTPS URLs
- Port 8531 for HTTPS vs 8530 for HTTP
-
Network Segmentation
- Separate WSUS traffic on dedicated VLAN
- Restrict WSUS server access
- Implement network access controls
-
Monitoring
- Alert on WSUS configuration changes
- Monitor for HTTP WSUS usage
- Track update deployment patterns
- Log WSUS client connections
-
Validation
- Regularly audit WSUS client settings
- Verify HTTPS enforcement
- Check certificate validity
- Review GPO configurations
Configuration Values
AUOptions Settings
AUOptions Settings
Automatic Update Options (AUOptions):
- 1 - Keep my computer up to date is disabled
- 2 - Notify before download
- 3 - Auto download and notify for install
- 4 - Auto download and schedule install
- 5 - Allow local admin to select settings
Related Commands
- SCCM - SCCM configuration
- Hotfixes - Installed updates
- OSInfo - Operating system version
- WindowsDefender - Defender update status
- InternetSettings - Proxy configuration