Skip to content

Port reference

Port 123 (UDP) – NTP

Network Time Protocol — synchronizes system clocks across networks.

udpWell-knownCommonly attacked

Default state

Open on NTP servers and many devices that also act as time sources. Often left as an open, queryable server on the internet.

Common attacks

  • NTP amplification DDoS via the monlist command (CVE-2013-5211)
  • Time-shifting attacks to break TLS, Kerberos, and log integrity
  • Spoofed responses to skew or stall clients' clocks
  • Mode 6/7 query abuse for reconnaissance and reflection

CVE-2013-5211

Hardening

  • Disable monlist / restrict mode 6 and 7 queries (noquery)
  • Upgrade to ntpd 4.2.7p26+ or use chrony to remove monlist
  • Use 'restrict' directives to limit who can query and modify
  • Authenticate peers with symmetric keys or NTS where possible
  • Rate-limit and block spoofed-source traffic at the network edge

nmap snippet

nmap -sU -p123 --script ntp-info,ntp-monlist <target>

Replace <target> with the host or range you're authorized to scan.

What runs on port 123?

Port 123 carries NTP (Network Time Protocol), which keeps system clocks synchronized across a network by exchanging timestamps with upstream time sources. Accurate time underpins TLS certificate validation, Kerberos authentication, log correlation, and scheduled jobs, so NTP runs on servers, network devices, and appliances throughout an environment, frequently as both client and server.

Why it matters for security

NTP is famous for amplification DDoS. Older ntpd builds answer the monlist command (mode 7) with a long list of recent clients, turning a small spoofed query into a massive response aimed at a victim — the basis of CVE-2013-5211. Beyond DDoS, manipulating time is itself an attack: shifting a host's clock can invalidate certificates, expire or replay Kerberos tickets, and corrupt the timestamps that security logs depend on.

How it's attacked

Attackers scan for open NTP servers that still honor monlist, then reflect spoofed-source queries to flood victims with amplified traffic. They also send spoofed time responses to skew or stall a target's clock, breaking TLS and Kerberos or masking the timing of an intrusion. Mode 6/7 queries are further abused for reconnaissance about a server's peers and configuration.

Hardening checklist

Disable monlist and restrict mode 6/7 queries with noquery, or upgrade to ntpd 4.2.7p26+ or chrony, which drop the dangerous command. Apply restrict directives to control who can query and modify the service, and authenticate peers with symmetric keys or NTS. At the network edge, rate-limit NTP and filter spoofed source addresses (BCP 38). The nmap snippet above checks for monlist exposure on servers you are authorized to test.

Related ports

Frequently asked questions

Why is NTP used for DDoS amplification?
The legacy monlist command returns a large list of recent clients from a tiny request, so attackers spoof a victim's IP and reflect huge responses off open NTP servers.
How do I stop NTP amplification?
Disable the monlist/mode 7 query (or upgrade to ntpd 4.2.7p26+ or chrony), apply restrict noquery directives, and filter spoofed source addresses at your edge.