GPS spoofing might be a solution when such problem occurs. Just make the electronics think, the train moves along equator at 30 mph. I assume the malicious software does not check if train moves on some tracks or just moves.
Two wrongs don't make a right there.