https://ops.group/blog/gps-spoof-attacks-irs/
https://aerospace.honeywell.com/us/en/about-us/blogs/spoofin...
I understand that current civilian aircraft wasn't designed with that in mind though.
Practically that was what happened all the time before GPS. You would fly for a few hours over the ocean with no ground based reference, having a reasonable but not perfect INS location. Then get close to the coast where a DME/DME fix was done which updated the INS position as a big jump of up to a few miles.
Filtering GPS updates that are too far "off" the INS state would be an almost opposite design to the original assumptions that DME and GNSS are highly accurate.
Modern aircraft will also set the known position based on the runway you're taking off from. And when airborne they'll pick up a DME/DME fix and update the location. So while it's procedure to set the known starting location at the gate, there are also other sources.
I know older long-range planes from the 70s and 80s had excellent inertial navigation systems.
Not quite as good as GPS, but good enough to know the location of the plane within a few nautical miles. The main problem is that inertial navigation systems drifted over time and required constant recalibration from the crew whenever they had a fix from real navigation beacons and errors could be catastrophic (especially when skirting the edge of Soviet airspace).
I've always wondered if modern avionics suites kept the older style inertial navigation systems as a backup to GPS, or if the systems were deleted when everyone switched to GPS.
I think it would be smart for larger planes to have a modern inertial navigation system that constantly recalibrated off GPS, ready to take over in the case of GPS jamming or spoofing.