6 ms·
> The key turned out to be the actual 32-bit GPS “key” and the “encryption” method was laughably simple: use the key as the starting value for CRC-32. To decryp
by ryandrake 10y ago
> The key turned out to be the actual 32-bit GPS “key” and the “encryption” method was laughably simple: use the key as the starting value for CRC-32. To decrypt each byte, subtract from it the lower 8 bits of the current CRC. After the byte is decrypted, update the CRC for it. I am not joking, this is it.
[...]
> Fun tidbit: you can decrypt the file without knowing whose GPS it was for and what their “key” is. Honeywell engineers were nice enough to leave the decryption key right in the file footer.
When reading stories like this, I like to try to figure out whether the developers who designed these things were 1. totally incompetent / careless, thinking they're actually securing their precious IP, 2. powerless contractors, just dutifully implementing the half-witted attempt at obfuscation some other "architect" designed, or 3. actually true hackers, sympathetic to the cause, deliberately leaving breadcrumbs and vulnerabilities for like minded souls who will later go through the effort to reverse engineer their work.
When I'm in one of my rare optimistic moods, like today, I like to imagine it was #3.
- ams6110 10y agoThey were probably just putting enough of a roadblock into the process to stop 98% of people from copying or selling nonauthorized cards. Also the "encrypt/decrypt" needed to be fast on the hardware of the time so it would necessarily be something pretty simple. If you own an airplane, you can afford to buy avionics updates legitmately, and will likely make very little effort to seek out unauthorized sources.
- paulmd 10y ago> If you own an airplane, you can afford to buy avionics updates legitmately, and will likely make very little effort to seek out unauthorized sources. Not only this, but the method here is definitely non-compliant with FAA regs. You aren't even allowed to pull the sled out of the panel by yourself (you need a FAA-certified mechanic for all removal/installation of avionics), there's no way that the FAA would be cool with you flashing a reverse-engineered database onto it. To be clear: by all means go ahead and do this. If the database on the unit is outdated then it's functionally useless for any purpose. It's totally legal to have a GPS in the cockpit that you use for VFR operation, so it's still worthwhile. Have a mechanic pull the sled and reinstall it when you're done, it's the law. But your GPS is no longer rated for IFR operation. If you have an accident while flying IFR on unrated equipment the FAA will see the removal and reinstallation of the sled in your maintenance logbooks and they will come down on you like a hundred tons of bricks.
- dmitrygr 10y agoI never claimed to flying on a database updated thusly or removing my GPS from the panel. Both spare cards and spare GPSs are on ebay easily
- paulmd 10y agoNo, you toe that line very carefully. You do mention removal (not sure if removing sleds is actually OK, I'll defer to you there, but in the general case avionics installation/removal is not OK), never mention flying on it, or quite explicitly state that this modification is legal. You just state that you have "a nice IFR-certified GPS" (not after this procedure you don't), and state that this procedure is "third option" to a legal-but-expensive service by a certified mechanic or illegally hacking in a connector for the official installation utility. Again, to be clear, doing the mod is legal(-ish, probably violates DMCA but who cares). Flying IFR on it is not. Pulling and installing your own avionics is not. Flying VFR on it is... questionable, but not likely to end poorly. This whole thing has giant red "DANGER" signs all over it and you should be making it very clear what the exact bounds of the law here are. Selling unpopulated PCBs is treading very close to the edge, that's farther than I would go personally. Selling finished units would definitely be over the line, you would certainly have liability if something happened to an aircraft because of your device. You need to be very clear about the fact that this database is not legal for IFR and the other caveats involved. Again, I think the actual risk here is low for VFR flight, and I also think you got your reverse engineering correct and checked your work. But from the FAA's perspective: what if you actually did fuck up the reverse engineering, in-flight the unit hangs in a loop, overheats, and starts a fire in your cabin? That's not the perspective HackerNews likes to take, but it's the perspective the FAA does its regulation under. After all, until like 2012 you weren't even allowed to flash your own GPS database, you had to have a mechanic insert the connector and doubleclick the EXE for you. They are not DIY friendly people. I don't think they'd be OK with a user-upgraded DB that was not done through an official installation tool. I think it's legally dubious even having that card installed in your aircraft (regardless of actual risk), flying IFR on it is right out.
- 10y ago
- kw71 10y agoI have seen this quite often in legacy devices. 20 years ago there wasn't ida-pro, and the designers probably felt more secure about leaving all the pieces of the puzzle in the hands of the enduser. Real cryptography was more difficult on 8 bit hardware, as well as being export-controlled. The last one I encountered was an s-box, where the s-box material was included in the update file. The only secret was the initial substitution ('seed' if you will.) They kept it in firmware until the very last product to use this scheme, whose windows app decrypted the update to learn some details about the update before it was loaded into the embedded device.
- jlgaddis 10y agoIDA Pro might not have existed 20+ years ago but other tools certainly did. I can recall using SoftICE as a teenager to "crack" door games for my BBS. Thanks for the flashback. :) I do understand your point, though.
- kw71 10y agoI still use SoftICE (DOS) for its debugger! (I still get legacy projects from time to time.) But it requires a lot more manual labor to understand a binary.
- cmurf 10y agoI'd like to think it was 3, just because the design has just enough of a PITA factor that it's just plain easier to pay Honeywell for updates so long as the program exists. But as soon as the program doesn't exist, at the least the hardware isn't a brick. Another possibility is that they designed it as just a thin brick wall for the consumer, never suspecting or caring if they'd reverse engineer it one day, while making it easy for them to do these updates by mail. By making a system easy for Honeywell to provide mail-in updates, they unwittingly made it easyish to hack 20 years later.
- systemtest 10y agoIt took a very dedicated engineer 3 days to decrypt it, using tools and knowledge 20 years into the future. That's pretty good encryption in my book.
- dandelany 10y agoDecryption aside, reverse-engineering anything is extremely difficult - I've seen projects like this take much, much longer than 3 days even when no encryption is involved. But as for the encryption itself, the author says himself: "the 'encryption' method was laughably simple." That may be "good" encryption from a hacker perspective, in that it's easy to work around, but it's not "strong" encryption in any book.