Closeup of a hand holding an Apple AirTag

Security Highlight: How Bad Is the Apple AirTag Hack?

Apple’s AirTag is a small, $30 device that helps you locate lost or stolen items. The coin-sized device uses the Apple “Find My” network to report its position through any nearby iPhone so that the owner can find it while keeping location and other sensitive data encrypted.

Amazingly, the device was hacked within a couple of weeks after its release. Researcher Stacksmashing used fault injection to get access to the firmware. After making a change and reloading the firmware, he demonstrated that the modified AirTag would now refer the reader to an arbitrary website rather than to the Apple network.

While this demo is widely recognized as a fantastic stunt, some commented that this is a low-impact hack since a complex hardware attack is needed to manipulate the device — but these comments fail to recognize the deeper security implications. Let’s look at why this hack is symptomatic of a severe problem coming our way.

First, Stacksmashing is a real wizard. He managed to execute this attack in just a few days, where many less proficient technicians would have failed or spent at least weeks. However, he did not find a new vulnerability; he just exploited a previously disclosed hardware vulnerability in the chip controlling the device. While responsible disclosure is a well-established practice for software vulnerabilities, this is lacking for hardware issues. Typically, it is impossible to patch a hardware problem for existing products. As the vulnerability was publicly known for more than a year, it may explain why the issue could be easily exploited. This also means that many other products may be under threat.

Second, Stacksmashing was kind enough only to showcase that he achieved runtime privilege. He did not demonstrate how bad this could become. The on-chip flash memory is big enough to carry the equivalent of 25 kilo lines of code (KLOC), while the external flash memory can represent another 200 KLOC. From code reviews, we know that immature code typically has one vulnerability per KLOC. Сhances are that this product has multiple software vulnerabilities waiting to be discovered and exploited. This hardware attack, resulting in a code dump, allows full reverse engineering and discovery of software vulnerabilities. In this way, a somewhat complex hardware attack may be leveraged into a pure software attack. Because the AirTag can communicate with other devices, there is a theoretical possibility of viral spreading of malware and transforming the AirTag network into a giant spy network.

Fortunately, there is still a possibility to mitigate this attack for other devices with the same chip, and even a possibility to reduce the risk for the AirTag. It is possible to increase fault injection robustness using defensive coding, applying patterns that majorly complicate the attack. Therefore, we recommend that IoT vendors increase their awareness of fault injection risks and verify the robustness of their products after hardening their code.

limit
3