NovoVocê sabe quais regulações se aplicam à sua empresa? Descubra em menos de 3 minutos. Nosso presente sincero:Mapeador da UEMapeador da Coreia
Como podemos ajudar?

Fale conosco em

KakaoTalkLINE

Resposta em até 48 horas

Envie-nos um e-mail →
You are not safe behind a NAT
Segurança de Rede

You are not safe behind a NAT

10 de outubro de 2026·Alex Holmquist, Panke IT Solutions LLC

Korea's Internet Security Agency (KISA) advises anyone installing an IP camera to turn UPnP off.

But what is UPnP? Why is it dangerous?

In this post, we will quickly explore the Network Address Translation (NAT) and Universal Plug and Play (UPnP) protocols and show you what you must know and do in order to stay secure behind a NAT gateway.

A router between the internet and a home network. A laptop's request goes out, an unrequested packet from the internet is dropped at the router, and a line opened from inside runs through the router to a camera.

What NAT does

Network Address Translation (NAT) is the mechanism used by routers to allow multiple devices in the same LAN: your laptop, phone, IP camera, etc to share a single public IPv4 address.

When an internal device sends an outbound request, the router logs an entry in its NAT table. This entry pairs the device's internal IP address and port with an external port:

inside 192.168.0.23:51514  <->  outside :40112  ->  203.0.113.80:443

When the response comes from the server to port 40112, the router is then able to forward it to the requesting device.

A device at 192.168.0.23 sends a request from port 51514. The router forwards it to a server at 203.0.113.80:443 from port 40112 and writes the NAT table entry 192.168.0.23:51514 to 40112. The server's reply to 40112 is matched by that entry and handed back to the device.

Why the internet cannot reach you

People usually have a sense of safety when behind a NAT layer. And it is partially justified: connections are usually outbound. When an inbound packet comes to your router's public address that doesn't match a NAT rule, it is discarded.

Because IPv6 typically runs without NAT, the NAT table table only "protects" IPv4 traffic.

For IPv6-related information, see our related post: IPv6 firewalls.

Port forwarding and UPnP add entries

Port forwarding is a rule mapping a router port (e.g. 8080) to an private IP address, for instance an IP camera at 192.168.0.50.

Universal Plug and Play (UPnP) automates this process. The camera sends an AddPortMapping request, and the router creates the rule itself:

AddPortMapping
  NewExternalPort    8080
  NewProtocol        TCP
  NewInternalPort    8080
  NewInternalClient  192.168.0.50

The original 2001 UPnP standard required no password in its original specification for the AddPortMapping request.

The 2010 revision recommends authentication only when a device opens a port on behalf of another device. However, router support remains optional for this feature.

A camera at 192.168.0.50 sends AddPortMapping for port 8080 to the router. No password is checked, the router adds the new NAT table entry 8080 to 192.168.0.50 and answers OK, and traffic from the internet on port 8080 now reaches the camera. The household is not involved.

NAT Pitfall 1: door opened from inside

Any device on your network: an IP camera, NAS, gaming console, or malware on a laptop, can issue a UPnP request without user confirmation.

Page 8 of KISA's IP camera security guide (published April 2, 2026) warns:

KISA (our translation): "UPnP is a function that lets devices inside the network open ports automatically. Hackers can exploit it, so be sure to disable it."

NAT Pitfall 2: door opened from outside

The 2010 UPnP specification explicitly restricts requests to the local network:

"IGD MUST reject UPnP requests from the WAN interfaces."

Yet some routers answer WAN (Wide Area Network) requests anyway.

In April 2018, Akamai found over 4.8 million devices responding to public UPnP discovery requests. Roughly 765,000 of them also exposed the service handling AddPortMapping.

Attackers had injected NAT entries into more than 65,000 routers.

These entries pointed to external targets, forcing routers to relay traffic, acting as proxies.

Akamai's list of affected models included routers from ipTIME, a widely used Korean brand, which exposed UPnP on the WAN interface in 2018.

An attacker sends AddPortMapping to a router from the internet. The router's NAT table gets an entry pointing to a target on the internet, so the attacker's traffic passes through the router to the target and appears to come from the owner, whose network is unaware.

Protective Measures

  • Turn off UPnP. For instance, in ipTIME firmware, disable it under 고급설정 (Advanced settings) → 시스템관리 (System management) → 기타설정 (Other settings) → UPNP설정 (UPnP settings).
  • Audit your router's UPnP list. Delete unrecognized entries.
  • Replace routers exposed to the WAN. If you have a device that still accepts UPnP requests from the internet, it might be time to replace it.
  • Use a VPN for remote access. Instead of UPnP, use a VPN to access internal devices securely.

Have you ever checked your router's UPnP table to see what is open?

References

  1. KISA (보호나라, KISA's security portal) — IP카메라 설치·운영 보안 가이드 (IP camera installation and operation security guide) (posted 2 April 2026)
  2. UPnP Forum — WANIPConnection:1 Service (12 November 2001)
  3. UPnP Forum — WANIPConnection:2 Service (10 September 2010)
  4. Akamai — UPnProxy: Blackhat Proxies via NAT Injections (April 2018, archived)
  5. IETF — RFC 6092: Recommended Simple Security Capabilities in Customer Premises Equipment (CPE) for Providing Residential IPv6 Internet Service (January 2011)
Preocupado com sua superfície de ataque?

Se quiser saber como sua infraestrutura é avaliada no modelo de varredura de um atacante, entre em contato em contact@pankeit.com para uma avaliação de superfície de ataque.

Assine nosso blog

Fique por dentro das últimas tendências de segurança

Sem spam. Cancele quando quiser.

©2026 Panke IT Solutions LLC

Austin, TX