News for hackers. Stuff that matters.
Re:Preventing GPS spoofing is hard, but you can at least det... by gruez on Friday September 13, 2019 @11:42PM (#20968795)
>"We've learned how to perceive anomalies between legitimate GNSS signals and spoofed signals by researching the variations in the satellite signals protocol and recognizing the inter-relationships between signal parameters,"

Sounds like a cat and mouse game. It only works because current spoofers are doing it sloppily. It's only a matter of time before the bad guys get their hands on this and use it to eliminate any discrepancies that the spoofers have. It doesn't sound like they found something that can't be spoofed.

Re:Preventing GPS spoofing is hard, but you can at least det... by amelius on Saturday September 14, 2019 @09:27AM (#20970634)
It seems that the GPS protocol is just too simple, and lacks proper security elements.

An article linked by the article contains an informative section "How GNSS spoofing works", [1]. Excerpt:

> Effectively, if you can transmit to a GPS receiver, you can speak GPS to it and it will trust you. There's no authentication process involved, and you might even be able to MacGyver together a working spoofing device out of a hacked $15 USB-to-VGA adapter. Granted, you could easily wind up with thousands of dollars in fines or even prison time for trying it—but in strictly technical terms, there's very little stopping you.

[1] https://arstechnica.com/cars/2019/06/claims-of-tesla-hack-wi...

Re:Preventing GPS spoofing is hard, but you can at least det... by GhettoMaestro on Saturday September 14, 2019 @11:26AM (#20971371)
Yeah the civilian signal has no cipher / integrity-checking. The military signals do have those (and it chirps at 10x the rate of the civilian signal).
Re:Preventing GPS spoofing is hard, but you can at least det... by amelius on Saturday September 14, 2019 @12:02PM (#20971653)
Makes you wonder if nobody considered that an attack of civilian systems could be used strategically in warfare.
Re:Preventing GPS spoofing is hard, but you can at least det... by GhettoMaestro on Sunday September 15, 2019 @01:39PM (#20978390)
Oh absolutely they do. That's why they reserve the right to turn off the civilian signals in an extreme time of war.

In reality would that happen? Probably not. There are multiple GNSS constellations these days, so just denying GPS is probably not a safe bet (you can buy civilian uBlox chips for $<50 that are tri-band...)

I love reading about the military aspect of GPS. It is really fascinating the use-cases they plan for. Hopefully they never actually are used in such an extreme scenario.

Re:Preventing GPS spoofing is hard, but you can at least det... by rasz on Saturday September 14, 2019 @07:19AM (#20970101)
Dead reckoning and sensor fusion are the real answer. Over 20 year old Etak patent:

"Based on the previous position of the object, the GPS derived position, the velocity, the DOP(dilution of precision) and the continuity of satellites for which data is received, the system determines whether the GPS data is reliable."

Re:Preventing GPS spoofing is hard, but you can at least det... by eru on Sunday September 15, 2019 @12:55AM (#20975641)
Hmm, I wonder whether this would be a good for a popular article on an introduction to Kalman filtering?
Re:Preventing GPS spoofing is hard, but you can at least det... by AstralStorm on Saturday September 14, 2019 @12:54PM (#20972071)
Wouldn't this be as simple as cross validating the almanac and noticing that the new satellite is not in the majority vote result?

You can even mark a safe set of ephemeris and almanac or just download it from internet, like many kinds of GPS software do.

You would have to spoof a whole constellation to break such measure. And it could be strengthened by discarding signal from satellites that are too close, preventing the equivalent of Sybil attack. So if you see doubled SATs, you can mark one or both of them as invalid.

Then you can also check ionosphere map and validate that signal distortion roughly matches the satellite reported location.

You can also limit the attack by hard capping relative orbital velocity and instantly rejecting that satellite which is unexpectedly too fast. (You would have to again spoof a whole constellation, and if you're target has correct ephemeris data it's all for nothing.)

Maybe I have guessed their solution in a few minutes...

Re:Preventing GPS spoofing is hard, but you can at least det... by express_egg on Saturday September 14, 2019 @02:01PM (#20972561)
You're generally not wrong, but the things you mentioned make assumptions about having a data connection (not typically the case for receivers of interest - power grid, military trying to operate without RF signature, etc), and there is also an engineering aspect to it: with a big power/data/computational/financial budget most problems can already be solved. Solutions that are practical for you phone or a budget receiver are lacking. Losely organized to your points:

It depends on how the attack is carried out - there are data attacks and timing attacks (the article is generally terrible and has no info). In a data attack the navigation message is altered. Like you suggest this is easy to validate. Note though that most phones (and all new Android phones afaik - don't know about Apple) use assisted GPS, so they download navigation data anyways and a data attack would generally be ineffective. Timing attacks use authentic nav messages, but simulate signal arrival in an altered order, or replay previously recorded signals.

Whole constellation spoofing is not difficult anymore, especially for state actors whole can carry out full-sky attacks. You have no real way beyond correlation/signal strength (which can be attenuated by an attacker) to tell how far away a signal source is, and if you only have a single (stationary) antenna you cannot tell the geometry either (i.e. if signals are coming from multiple sources as expected, or a single antenna).

Multipath is a huge problem, especially in receivers which have linearly polarized antennas like smartphones. Usually when a receiver tracks GPS signals it looks for the signal arriving first (because later signals would be multipath reflections). It is an expensive operation to track multiple occurences of signals, high end receivers do though.

Ionospheric delay can fluctuate, so I don't think this would be very reliable. Also you seem to have a hidden assumtion that you should know the true geometric range to the satellite, which is true for timing receivers.

Wrt velocity, you're not wrong, but it would take a "dumb" attacker to simulate something unrealistic.

Re:Preventing GPS spoofing is hard, but you can at least det... by infocollector on Saturday September 14, 2019 @07:08AM (#20970060)
Here is one way to find out if GPS is spoofed (can handle jammed as well): https://patents.google.com/patent/US20170090006A1/en - They show it using FM, but the method can be generalized to any terrestrial transmission system. Uses the beloved RTL-SDR.
Re:Preventing GPS spoofing is hard, but you can at least det... by i_am_proteus on Saturday September 14, 2019 @08:09AM (#20970287)
Todd Humphreys and his group at UTexas have been doing some remarkable work in this field:

https://researchers.dellmed.utexas.edu/en/publications/civil...

Re:Preventing GPS spoofing is hard, but you can at least det... by express_egg on Saturday September 14, 2019 @02:29PM (#20972750)
Piggybacking:

It's really difficult to get ION papers, but they do generally put preprints on their lab page: https://radionavlab.ae.utexas.edu/

Re:Preventing GPS spoofing is hard, but you can at least det... by opless on Sunday September 15, 2019 @02:22PM (#20978655)
Wouldn't using a 3d direction-finding setup just blow this out of the water?

You're expecting the signal to come from "up" not mostly from the horizon.

Also if you have an almanac already you'd have to spoof each satellites location.

Granted this would be a good deal more complex to implement...

Re:Preventing GPS spoofing is hard, but you can at least det... by kejaed on Friday September 13, 2019 @11:35PM (#20968774)
Has anyone around here set up a GPS Simulator / spoofer with an SDR with any success?
Re:Preventing GPS spoofing is hard, but you can at least det... by dazhbog on Saturday September 14, 2019 @02:41AM (#20969305)
I did with a hackRF and use it in our production line to test the GPS modules of our PCBs.

Project link https://github.com/osqzss/gps-sdr-sim

Re:Preventing GPS spoofing is hard, but you can at least det... by steve19 on Saturday September 14, 2019 @03:01AM (#20969355)
With an off the shelf antenna, what kind of range can you spoof?
Re:Preventing GPS spoofing is hard, but you can at least det... by colechristensen on Saturday September 14, 2019 @06:45AM (#20969994)
I was involved in some GPS SDR research in university, and this is one of those conversations where I have reservations about participating both because of potential exporting of technology (hey guys, here are some GPS jamming tips!) and simply making doing nefarious things easier for people who found my comment. On another level it is unfortunate to feel and act suspicious and mistrusting.
Re:Preventing GPS spoofing is hard, but you can at least det... by vageli on Saturday September 14, 2019 @10:54AM (#20971159)
Imagine if someone said the same to you when you expressed an interest in this field.

To the interested, this paper [0] from microsoft mentions a range of 40-50 meters with off the shelf hardware.

[0]: https://people.cs.vt.edu/gangwang/sec18-gps.pdf

Re:Preventing GPS spoofing is hard, but you can at least det... by jcims on Saturday September 14, 2019 @03:13AM (#20969381)
I would suggest hardwiring it to avoid committing a federal crime.

https://www.fcc.gov/general/jammer-enforcement

Re:Preventing GPS spoofing is hard, but you can at least det... by Avery3R on Saturday September 14, 2019 @04:24AM (#20969571)
Even just the leakage might get you in trouble if there is any, it should really be done in an rf shielded enclosure.
Re:Preventing GPS spoofing is hard, but you can at least det... by i_am_proteus on Saturday September 14, 2019 @08:02AM (#20970258)
This. If you have access to a tunnel, deep basement, or cave, these can serve.
Re:Preventing GPS spoofing is hard, but you can at least det... by express_egg on Saturday September 14, 2019 @02:18PM (#20972685)
+1

A USRP N2X0 will spoof a phone in the same room just through leakage

Re:Preventing GPS spoofing is hard, but you can at least det... by jcims on Saturday September 14, 2019 @09:12PM (#20974934)
This sounds like something one learns unexpectedly.
Re:Preventing GPS spoofing is hard, but you can at least det... by dazhbog on Saturday September 14, 2019 @07:10AM (#20970068)
I use a crappy antenna and I get a few meters, without any amplification. If it was going further I would use attenuators or a cage.

I have the SDR streaming satellite data for 5min and it then restarts and retransmitts again. That allows units on the assembly table to get a sat lock and pass the factory test.

Re:Preventing GPS spoofing is hard, but you can at least det... by StavrosK on Saturday September 14, 2019 @10:33AM (#20971009)
Does it see the SDR as one satellite, or multiple? I guess you can just spoof as many satellites as you want, but wouldn't it be rather hard to spoof a position?
Re:Preventing GPS spoofing is hard, but you can at least det... by elfchief on Saturday September 14, 2019 @01:44PM (#20972455)
Not the OP, but it'd see it as multiple SVs. Basically you figure out what the range would be from the SVs to whatever location you want the things to think they're at, and put out all the signals to make that happen. Spoofing a single SV is pretty useless, you have to spoof at least enough of them to give you a position solution.
Re:Preventing GPS spoofing is hard, but you can at least det... by jcims on Saturday September 14, 2019 @09:14PM (#20974941)
Do you need to slave the clock to anything?
Re:Preventing GPS spoofing is hard, but you can at least det... by Avamander on Saturday September 14, 2019 @12:21PM (#20971791)
It's actually really sad that GALILEO builders didn't build in integrity-checking into the signal for civilians to be able to rely on it safely.
Re:Preventing GPS spoofing is hard, but you can at least det... by debatem1 on Saturday September 14, 2019 @12:19PM (#20971781)
Just want to give a about out to the Satelles guys, who are doing some really neat work on verifiable position and time even deep indoors.
Re:Preventing GPS spoofing is hard, but you can at least det... by tinus_hn on Saturday September 14, 2019 @04:09AM (#20969535)
Can’t you just receive data from both GPS and GLONASS and the other systems and see if they match up?
Re:Preventing GPS spoofing is hard, but you can at least det... by TazeTSchnitzel on Saturday September 14, 2019 @04:39AM (#20969610)
Then you just spoof those too.
Re:Preventing GPS spoofing is hard, but you can at least det... by nutcracker46 on Saturday September 14, 2019 @02:55AM (#20969338)
Cat and mouse indeed, but here we see that a GPS spoof can be detected and spoofs can be made more and more difficult to accomplish.

It will get down to a game of knowing the satellites better and better, in terms of their clocks, orbits, and drifts in those parameters. With the increasing precision of augmentation, spoofers will be hard pressed to keep up and precisely mimic more parameters.