Join our Newsletter — 33% off our NHI Course
Home› Guides› mDNS, SSDP and UPnP Security: Discovery Protocol Risks…
Guide Network Security

mDNS, SSDP and UPnP Security: Discovery Protocol Risks and Hardening Steps

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 15 min read
On this page

Local discovery protocols let printers, cameras, TVs and laptops find each other without configuration, and the same convenience lets attackers spoof services, map the network, punch holes in the firewall and turn exposed devices into DDoS reflectors. Multicast DNS (mDNS), the Simple Service Discovery Protocol (SSDP) and Universal Plug and Play (UPnP) were designed for trusted home and small office links, yet they run on most corporate networks and, through misconfigured routers and IoT devices, on the internet. This guide explains how each protocol works at the level a defender needs, the four risk families (spoofing, reconnaissance, NAT traversal abuse and reflection amplification), and how to restrict, segment and monitor them without breaking the printing and casting that people rely on. It is for network engineers, IoT and endpoint owners, and SOC analysts. Credential capture through LLMNR, NBT-NS and mDNS poisoning on Windows is covered in the LLMNR and NBT-NS Poisoning guide; this page covers the wider discovery problem.

Key takeaways

  • None of the three authenticates by default. RFC 6762 says mDNS conflict handling assumes cooperating participants, and UPnP control traditionally trusts any host on the link, so anything on the segment can answer or issue commands.
  • The boundary is the link. mDNS (224.0.0.251, UDP 5353) and SSDP (239.255.255.250, UDP 1900) are meant to stay local; the main hardening job is making sure they never cross VLANs or the internet edge unless a gateway deliberately relays them.
  • UPnP on a router edge is a firewall bypass. The Internet Gateway Device service lets internal hosts, including compromised ones, open inbound port mappings, and exposed WAN-side UPnP has been abused for traffic redirection and CallStranger (CVE-2020-12695).
  • Exposed devices become reflectors. CISA lists SSDP with a bandwidth amplification factor of 30.8 and mDNS at 2 to 10, so blocking UDP 1900 and 5353 inbound protects both you and other people's networks.
  • Restrict and relay, rather than ban. Disable discovery where it has no purpose (servers, data centre segments), and use a controlled mDNS or SSDP gateway between user and device VLANs where casting and printing are needed.

How the three protocols work

ProtocolSpecificationTransport and addressesWhat it doesTypical speakers
mDNSRFC 6762 (Proposed Standard, February 2013); service browsing with DNS-SDUDP 5353; 224.0.0.251 and FF02::FBResolves names ending in .local and advertises services (for example _ipp._tcp, _airplay._tcp, _ssh._tcp) on the local linkmacOS and iOS (Bonjour), printers, casting devices, Linux with Avahi, recent Windows builds
SSDPPart of the UPnP Device Architecture (UDA 2.0, dated 17 April 2020, maintained by the Open Connectivity Foundation)UDP 1900; 239.255.255.250 (IPv6 site and link scoped variants)Devices announce themselves with NOTIFY (ssdp:alive, ssdp:byebye); control points search with M-SEARCH and receive unicast replies pointing to a LOCATION URLSmart TVs, media servers, NAS, routers, IP cameras, Windows SSDP Discovery service
UPnP control and eventingUDA plus device profiles such as Internet Gateway Device (IGD:1, IGD:2) and DeviceProtection:1HTTP and SOAP to the port given in the LOCATION URL (varies by device)Describes device capabilities in XML, accepts actions (for IGD, AddPortMapping) and sends event notifications to subscribersHome and small office routers, games consoles, media and IoT devices

Two design details matter for defence. First, both multicast protocols are scoped to the local link: the UDA says SSDP multicast TTL should default to 2, and RFC 6762 requires mDNS queriers to accept responses only from the local link and discard others. Second, a device that answers unicast queries from anywhere breaks that scope, which is how internet-reachable devices end up as reflectors. For port-level context across all common protocols, see the Network Ports and Protocols Security Guide.

The four risk families

1. Spoofing and impersonation on the link

RFC 6762's security considerations state that its conflict resolution assumes cooperating participants and that, where hostile hosts cannot be ruled out, IPsec or DNSSEC signatures are needed to separate trusted from untrusted messages. In practice almost no deployments sign mDNS, so any host can claim a printer's or file server's .local name or advertise a fake service. MITRE ATT&CK T1557.001 Name Resolution Poisoning and SMB Relay names mDNS alongside LLMNR and NBT-NS as traffic an adversary may answer to force victims to connect to an attacker-controlled system. SSDP is similar: a fake NOTIFY or M-SEARCH reply can point a control point at an attacker-hosted description URL.

2. Reconnaissance

Discovery traffic is an inventory broadcast. ATT&CK T1046 Network Service Discovery describes adversaries on macOS using Bonjour mDNS queries such as browsing for _ssh._tcp to find hosts offering SSH. SSDP replies reveal device type, manufacturer, model and firmware strings in the SERVER header and description XML. An intruder who passively listens on a user VLAN learns which printers, NAS boxes and cameras exist without sending a single scan packet. See MITRE ATT&CK T1046 Network Service Discovery.

3. NAT traversal and firewall bypass through UPnP IGD

The IGD profile lets an internal host ask the router to forward an external port to it. That is convenient for games consoles and harmful when a compromised laptop or IoT device opens inbound access to itself, or when the router accepts IGD requests on its WAN side. CERT/CC Vulnerability Note VU#339275 (CallStranger, CVE-2020-12695) describes how the UPnP SUBSCRIBE function could be abused by a remote unauthenticated attacker to send large amounts of data to arbitrary internet destinations, enabling DDoS and data exfiltration, and notes that exposing UPnP to the internet creates further risks. The OCF updated the specification on 17 April 2020. The CISA Known Exploited Vulnerabilities catalog also lists CVE-2019-1405, a Windows UPnP service privilege escalation, which is a reminder that the host-side service is attack surface too. For how NAT interacts with these mappings, see the NAT and Its Security Implications Guide.

4. Reflection and amplification DDoS

ATT&CK T1498.002 Reflection Amplification describes attackers sending requests with the victim's spoofed source address to third-party reflectors whose responses are larger than the requests. CISA's UDP-based amplification alert (TA14-017A) lists SSDP with a bandwidth amplification factor of 30.8 using a SEARCH request, and mDNS at 2 to 10 using a unicast query. Cloudflare's explainer describes attackers asking for ssdp:rootdevice or ssdp:all to maximise reply size. Every SSDP or mDNS responder reachable from the internet is a potential contributor to someone else's outage. See the DDoS Protection Guide for the receiving side.

Threat to control mapping

ThreatATT&CKPrimary controlSupporting control
mDNS name or service spoofing leading to credential captureT1557.001Disable mDNS name resolution on managed Windows hosts where not needed; SMB signing and NTLM reductionDetect unexpected mDNS responders on server VLANs
Passive or active service discovery by an intruderT1046Segment IoT and media devices from user and server VLANs; stop multicast crossing VLANsAlert on bulk M-SEARCH or DNS-SD browsing from user hosts
Unauthorised inbound port mappingsT1599 Network Boundary BridgingUPnP IGD off on enterprise edge and branch routersReview NAT and port mapping tables; log mapping changes
Exposed services reached from the internetT1190 Exploit Public-Facing ApplicationBlock inbound UDP 1900, UDP 5353 and UPnP HTTP ports at the edgeExternal attack surface scanning for your address ranges
Your devices used as DDoS reflectorsT1498.002Edge filtering of UDP 1900 and 5353; ingress filtering against spoofing (BCP 38)Watch for abnormally large outbound UDP responses to single addresses

Hardening by environment

Internet edge and branch routers

  • UPnP IGD: turn it off on enterprise firewalls and branch routers, and on any small office router you manage. Use explicit, documented port forwards instead. CERT/CC's mitigation for CallStranger is to disable UPnP on internet-accessible interfaces and keep the WAN firewall enabled.
  • Inbound filtering: drop inbound UDP 1900 and UDP 5353 from the internet. CISA's general amplification mitigations add stateful UDP inspection, rate limiting of internet-facing UDP services, and ingress filtering per BCP 38 and BCP 84.
  • Port Control Protocol: some gateways offer PCP (RFC 6887, Proposed Standard, April 2013) or the older NAT-PMP (RFC 6886) as alternatives for automatic mappings. RFC 6887 requires servers to accept normal requests only on the interface where that client's packets would arrive, so a residential NAT ignores WAN-side requests; treat it with the same policy as UPnP and leave it off unless there is a documented need.

Home and small office specifics are in the SOHO and SMB Router Hardening Guide.

Campus and office LAN

  • Segmentation: place printers, displays, casting receivers and IoT on their own VLANs. Because mDNS and SSDP are link-local, segmentation alone stops them crossing.
  • Controlled relays: where users need to find printers or screens across VLANs, use the discovery gateway or service-policy feature of your wireless or switching platform to relay only named service types (for example IPP printing and a casting service) between named VLANs. Avoid generic multicast routing or "reflect everything" settings.
  • Guest networks: enable client isolation so guests cannot discover each other or corporate devices.

Servers and data centre segments

  • Windows Server: Microsoft's guidance on disabling system services lists SSDP Discovery (SSDPSRV) and UPnP Device Host (upnphost) as "OK to disable" (both installed only with Desktop Experience, default startup Manual), and Link-Layer Topology Discovery Mapper (lltdsvc) as OK to disable if nothing depends on the Network Map.
  • Linux: remove or disable Avahi (avahi-daemon) and any UPnP media server packages on servers that do not need them.
  • Host firewall: block inbound UDP 5353 and 1900 on server profiles. On Windows, keep the Network Discovery rule group disabled on the Domain profile for servers. See the Host-Based Firewall Guide.

Managed endpoints

  • Windows: turn off multicast name resolution by policy and, where your build supports it, disable mDNS name resolution, following the rollout in the LLMNR and NBT-NS Poisoning guide. Leave SSDP Discovery at Manual on user laptops unless you have confirmed nothing depends on it.
  • macOS: Bonjour is part of the operating system and used for AirPrint and AirPlay; control exposure with network segmentation and the application firewall rather than trying to remove it.
  • IoT and media devices: where the device allows it, turn off UPnP, DLNA sharing and remote access features not in use. The IoT Security Guide covers procurement and lifecycle controls.

Decision guidance

SituationRecommended approachTrade-off
Server and data centre VLANsDisable SSDP, UPnP and mDNS services; block 1900 and 5353 inbound; alert on any responderMinimal: servers rarely need discovery
Corporate offices with shared printers and meeting room screensSeparate device VLAN plus a discovery gateway allowing only named servicesGateway policy needs an owner and change control
Small office without managed switchesUPnP off on the router; guest Wi-Fi isolation; IoT on a separate SSID if the router supports itSome consoles or apps may need manual port forwards
Hospitals, labs and OTTreat discovery as unwanted; segment and monitor; involve vendors before disabling protocols on medical or control devicesVendor support constraints may slow change
Hybrid and home workersDisable mDNS name resolution on managed Windows laptops where possible; VPN or ZTNA client firewalls that block inbound discovery on untrusted networksHome printing and casting may need a documented exception

How to implement

  1. Inventory exposure: scan your public address ranges for UDP 1900, UDP 5353 and UPnP HTTP responders, and review router configurations for UPnP IGD and PCP. Feed findings into the Attack Surface Management Guide process.
  2. Close the edge first: disable UPnP IGD on every internet-facing router and firewall and add inbound drops for 1900 and 5353. This carries little operational risk and removes reflection and remote abuse.
  3. Measure internal use: capture a week of discovery traffic per VLAN (for example with a Wireshark display filter of mdns || ssdp on a SPAN port, or flow records) to learn which service types are actually used.
  4. Pilot changes: on one floor or site, move devices to a dedicated VLAN, configure a discovery gateway for the services observed, and disable discovery services on servers. Keep the old configuration saved for rollback.
  5. Roll out in rings: extend site by site, publishing a short "how to find a printer or screen" note for staff and a support script for the help desk.
  6. Roll back if needed: if a business system breaks, re-enable the specific service type on the gateway or the specific host service, record the exception and its owner, and continue the rollout.
  7. Turn rules into alerts: once the steady state is known, any new responder on server VLANs, any port mapping change on edge devices, or any inbound 1900 or 5353 is an alert.

Detection and measurement

What to log and monitor:

  • Edge flow logs: outbound UDP from source port 1900 or 5353 to internet addresses (a sign of reflection), and inbound attempts to those ports.
  • Router events: UPnP or PCP mapping creation and deletion, and configuration changes that re-enable UPnP.
  • Internal sensors: new mDNS or SSDP responders on VLANs where none are expected, hosts advertising services that do not match their role (a workstation advertising a file share or printer), and bulk M-SEARCH or DNS-SD browse queries from a single host. CERT/CC also points to a Suricata rule for detecting external UPnP SUBSCRIBE requests.
  • Windows endpoints: registry or policy drift that re-enables multicast name resolution or starts SSDPSRV on servers.

Metrics that show it is working:

  • Number of public IP addresses responding on UDP 1900 or 5353 (target zero).
  • Percentage of edge and branch routers with UPnP IGD disabled.
  • Percentage of server VLANs with no discovery responders in the last 30 days.
  • Number of service types relayed by discovery gateways, with an owner for each.
  • Time to remove an unexpected port mapping or responder once detected.

Hunting ideas for discovery traffic are in Network Threat Hunting.

Common failure patterns

  • UPnP left on at branch sites. Head office firewalls are hardened while consumer-grade routers at small branches keep factory UPnP settings, giving any infected device a way to open inbound access.
  • "Reflect all" multicast relays. Enabling a gateway to forward every mDNS service type between every VLAN rebuilds the flat network the segmentation was meant to remove.
  • Forgetting the internet-facing IoT. Cameras, NAS units and media servers placed directly on public addresses or forwarded through the router answer SSDP and mDNS from anywhere, which turns them into reflectors.
  • Disabling LLMNR but not mDNS. Windows can still resolve via mDNS after LLMNR is turned off, leaving the poisoning path partly open.
  • Breaking printing without a plan. Blocking discovery everywhere overnight generates help desk tickets and leads to blanket exceptions. Measure first, relay named services, then block.
  • No owner for device firmware. IoT devices with vulnerable UPnP stacks stay unpatched because nobody owns them; botnet families recruit such devices. See the Mirai and IoT Botnet Families Guide.

Framework mapping

FrameworkReferenceRelevance
MITRE ATT&CKT1557.001; T1046; T1599; T1498.002; T1190Spoofing, discovery, boundary bridging, reflection and exposed services
MITRE CAPECCAPEC-490 AmplificationReflection with larger responses than requests
NIST SP 800-53 Rev. 5CM-7 Least Functionality; SC-7 Boundary Protection; SC-5 Denial-of-service Protection; SI-4 System MonitoringDisable unneeded discovery, filter at boundaries, limit reflection, monitor responders
NIST CSF 2.0PR.IR-01; PR.PS-01; DE.CM-01Network protection, configuration management and network monitoring
CIS Controls v8.1Control 4 Secure Configuration of Enterprise Assets and Software; Control 12 Network Infrastructure Management; Control 13 Network Monitoring and DefenseService hardening, router configuration and monitoring
ISO/IEC 27001:2022 Annex AA.8.20 Networks security; A.8.22 Segregation of networks; A.8.9 Configuration managementSegmentation and secure configuration of network devices

Practitioner checklist

  • Disable UPnP IGD (and PCP or NAT-PMP unless documented) on every internet-facing router and firewall.
  • Drop inbound UDP 1900 and UDP 5353 at the internet edge and apply BCP 38 ingress filtering.
  • Scan your public ranges for SSDP, mDNS and UPnP responders monthly.
  • Place printers, screens and IoT on dedicated VLANs and isolate guest Wi-Fi clients.
  • Relay only named service types between VLANs through a discovery gateway, each with an owner.
  • Disable SSDPSRV, upnphost and Avahi on servers; block 1900 and 5353 in server host firewall profiles.
  • Turn off LLMNR and, where supported, mDNS name resolution on managed Windows hosts.
  • Log router port mapping changes and alert on new discovery responders on server VLANs.
  • Assign owners for IoT firmware updates, including UPnP stack fixes.

Standards and references

Related NHI Mgmt Group resources: LLMNR and NBT-NS Poisoning · SOHO and SMB Router Hardening Guide · IoT Security Guide · DDoS Protection Guide · Network Ports and Protocols Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.