New attacks on Network Time Protocol can defeat HTTPS and create chaos
arstechnica.com
arstechnica.com
There is a clock attack which can brick many GPS receivers. GPS time uses a "week number", which is only 10 bits. Every 1024 weeks, GPS time wraps around. The first rollover was on 1999-08-15, and the next rollover is 2019-05-06. So standalone GPS receivers (not phones; they're "assisted GPS" and have to talk to a server) store a value indicating which rollover period they are currently in.
Sending phony signals to a GPS receiver which gradually advance the time can, for some units, convince it to advance the rollover period number in nonvolatile memory. On some devices, no way to reset it at all. Once this has happened, the ephemeris data won't be used properly, and it can't produce valid location data.
constraints from "https://www.google.com/search?q=openntpd"
As the man page puts it: ntpd(8) can be configured to query the `Date'
from trusted HTTPS servers via TLS. This time
information is not used for precision but
acts as an authenticated constraint, thereby
reducing the impact of unauthenticated NTP
`Man-In-The-Middle' attacks. Received NTP
packets with time information falling outside
of a range near the constraint will be
discarded and such NTP servers will be
marked as invalid.
Of course, the devil is in the details. IIRC at the moment this check is only made when NTPD starts up, and not periodically during operation. But the general idea is probably quite solid.For NTP there is Autokey (RFC 5906), which allows authentication of the servers with public-key crypto. It has various problems, one of them is that it's insecure.
The NTP working group is currently preparing a Network Time Security specification and its implementation in NTP, which is supposed to replace Autokey.
OS updates could increase this hardcoded date, and the user could still override it if they wanted.