416 points · by amrrs · 5y ago · 167 comments
Oh that's bad.
There has not been a single known bug granting persistent loading across a reboot since iOS 9.
I am not sure rewriting iMessage in rust would be the answer, but it would be a start. Another start would be to refuse to sell iPhones to Israel as long as they do this.
...This blog post discussed three improvements in iOS 14 affecting iMessage security: the BlastDoor service, resliding of the shared cache, and exponential throttling. Overall, these changes are probably very close to the best that could’ve been done given the need for backwards compatibility, and they should have a significant impact on the security of iMessage and the platform as a whole.
https://googleprojectzero.blogspot.com/2021/01/a-look-at-ime...
"It also indicates that Apple has a MAJOR blinking red five-alarm-fire problem with iMessage security that their BlastDoor Framework (introduced in iOS 14 to make zero-click exploitation more difficult) ain't solving."
And:
"BlastDoor is a great step, to be sure, but it's pretty lame to just slap sandboxing on iMessage and hope for the best. How about: "don't automatically run extremely complex and buggy parsing on data that strangers push to your phone?!"
The key to user satisfaction isn't security, it's consistent marketing reminders of "security".
Apple users here are often forced into the ecosystem due to iOS or safari dev, but the majority of Apple users care more about the name of the iPhone than performance. This is the nature of Veblen goods.
On the business end, sure.
But https://support.apple.com/en-us/HT201222#:~:text=the%20previ...
The assumption has to be that Apple quietly fixes minimum a hundred times more security bugs in their products, than the ones the occasional Project Zero blog post highlights.
Anyway, Apple's safe language is Swift, which they are clearly pushing and using more of as time goes by.
I remain highly skeptical of any messaging app or communication chat program, email client that lets people "embed" arbitrary content in it.
For example, Java is also memory-safe, but Java doesn't have first-class array slices.
Will that be the future on client devices as well given kernels are just too complex to secure perfectly?
Sure its easy to write a fast, standards compliant parser (assuming its not a format like .psd or a word document), but it will choke on the multitude of dodgy versions of files out there, causing complaints
_most_ users only care about the picture/sound/video/other viewing correctly, with security a distant second. (they expect it to be secure) so pressure is on to make the parse work with everything.
The JPEG core format is complicated, but JPEGs in circulation today are simply nightmarish. They can include XMP, EXIF, and ICC data, plus a good dozen of other extensions that may actually affect how the JPEG is displayed. For example, knowing if a JPEG contains CMYK data depends on an Adobe extension with is about twenty years old. These extensions are in use today in images published in the web. So, just to display an image, one needs a parser for the image format, a parser for ICC, a parser for XMP, a parser for that obscure Adobe extension from twenty years ago, and so on. Often, each of them has its own library and represents decades of developer time. It's a lot of space for bugs and exploits.
Broadly, because by necessity you're dealing with untrusted inputs in a relatively complex format. The complexity leaves room for bugs in how you handle the input and the user supplied data provides an easy way to feed malicious inputs in.
1. Exploitation inherently relies on malicious input data.
2. In computer systems, any input data (especially in human-facing systems) is not logically useful to the software until parsed.
3. Thus, a parser is the first software element which systematically interacts with the input data. It is the prime exploitation target.
That, + parsing complex data is just kind of hard to get right. If iMessage was UTF-8 only, this would not be an issue I'm sure.
Because VIP users include people who run big-tech. Ask Bezos if it's worth fixing bugs that only target VIPs.
Or is there also a Pegasus V2, V3, etc that plays catchup with OS's security patches?
It's been around with zero-click exploits for years, and apparently even now, after their big iMessage "security" rewrite with iOS 14. Very likely that they have other entrypoints as well though.
It is NSO running these operations. They are directly implicated in whatever their malware ends up doing.
Is it not clear that at least Apple must be involved in this too? Who else is?
[1] https://www.wired.co.uk/article/jeff-bezos-phone-hack-mbs-sa...
The whole operation is incredibly sophisticated—this report [0] by Amnesty International is a great read. They also constantly upgrade their infrastructure—for example, they have at least -four- major versions of their C&C infrastructure, which they dub the "Pegasus Anonymizing Transmission Network". :(
[0]: https://www.amnesty.org/en/latest/research/2021/07/forensic-...
For example, it has been established that it's illegal to export munition or strategic resources to designated Hate/Terrorist groups.
BlastDoor is a great step, to be sure, but it's pretty lame to just slap sandboxing on iMessage and hope for the best. How about: "don't automatically run extremely complex and buggy parsing on data that strangers push to your phone?!"(I do think they should be more cautious though. For example, under no circumstances should Apple Mail ever auto-extract an attached zip file from a stranger.)
(It's just as likely they have nothing to do with it, I'm just getting out in front of the eventual iMessage leak that Tim Apple gave the plan a thumbs up emoji)
Please tell me this daemon isn't named after what I think it's named after.
https://arkadiyt.com/2021/07/25/scanning-your-iphone-for-nso...
https://www.amnesty.org/en/latest/research/2021/07/forensic-...
I guess human rights don't line up with corporate values.
Maybe they should have enabled secure deletion: https://www.sqlite.org/pragma.html#pragma_secure_delete
https://www.amnesty.org/en/latest/research/2021/07/forensic-...
Although now that the cat is out of the bag, I'm sure some groups are working to reproduce it for mass-infection. Especially since this looks wormable.
Avoid using videoconferences except for journalism.
Better if you use a custom build ROM for Android from the sources and then flash your phone.
Even better: get a little netbook, the most compatible with OpenBSD. Encrypt your whole SSD with bioctl and use pledge(4) and unveil(4)ed browsers.
Use text browsers as much as you can, with a good hosts file. If you need JS, choose some browser such as vimb where you can set 3rd party cookies and JS ondemand with a switch.
Use Links+ (links -g for graphics) with Tor (the proxy settings has a Tor checkbox, set 127.0.0.1:9050 for Socks4a proxies AND MARK that checkbox). Go to the Links+ settings and save them from the menu. In order to do the same for i2pd, run Links+ with different setting on the command line to override the saved Tor settings. Basically you need to set all proxied conns through 127.0.0.1:4444.
If you trust your partner, use Email+GPG over I2PD (i2pd is the daemon). Alpine/Mutt + GPG is difficult, but Claws-Mail has some PGP settings and it's lightweight enough. OFC if you learnt to use s-nail+fdm+smtpd over I2PD (doable), then that's ok.