Port 5357 Hacktricks __hot__
Or perhaps you'd like to explore this port via Group Policy? PentestPad
If you need help digging deeper into this asset, let me know: What did Nmap report?
Disable the "Network Discovery" feature in the Windows Control Panel (Network and Sharing Center > Advanced sharing settings) to close the port.
To advance your network penetration testing capabilities, you can explore related service exploitation. Let me know if you would like to look into via LLMNR/NBT-NS spoofing or if you want to examine Active Directory lateral movement techniques. Share public link port 5357 hacktricks
If the WS-Discovery service is misconfigured or poorly restricted, unauthenticated attackers on the local network can query the endpoint to map internal device configurations. This includes: Computer hostnames Unique Device UUIDs Internal network configurations and interface details B. Exploiting the Underlying HTTP Stack ( http.sys )
Port 5357 is a UDP (User Datagram Protocol) port used by the Windows operating system for various purposes, including:
A realistic posture Port 5357 embodies a recurring tension in network design: usability-driven discovery vs. the discipline of minimal exposure. In well-run environments, WSD should be an intentional, confined capability: limited to specific subnets, disabled where unnecessary, and logged where used. In under-managed networks it’s a low-effort reconnaissance jackpot for attackers who can already reach local subnets or who can trick users/devices into interacting with malicious peers. Or perhaps you'd like to explore this port via Group Policy
Ensure that the Windows Firewall is blocking inbound connections on 5357/TCP for public or untrusted network profiles.
curl -I http://<target_ip>:5357
Get-CimInstance -Namespace root\standardcimv2 -ClassName MSFT_WSDDeviceProxy Use code with caution. 5. Defense and Mitigation Firewall Hardening cameras) over HTTP
She added a footnote: Reference: HackTricks - Pentesting 5357 Port.
From a defensive perspective, the mitigation strategies for port 5357 are straightforward but frequently overlooked in corporate governance. The standard recommendation is to disable the "Function Discovery Resource Publication" service and "SSDP Discovery" service on machines that do not require device broadcasting. In a hardened Active Directory environment, workstations should rely on the Domain Name System (DNS) rather than peer-to-peer discovery. Closing this port reduces the attack surface by silencing the machine on the local network segment, making it invisible to casual scanners.
Enables automatic discovery of network-connected devices (printers, scanners, cameras) over HTTP, allowing them to communicate on local networks without needing central servers or manual configuration.
Port 5357 is primarily associated with on Windows systems. While HackTricks —a popular cybersecurity resource—doesn't have a dedicated "Port 5357" page, it discusses the relevant underlying protocols and common exploitation methods for similar Windows services. Service Overview: Port 5357 Protocol: HTTP. Service: Web Services for Devices (WSDAPI).