D
Darthnull
darthnull.org · Personal blog · on HN since 2015
A security-minded writer who covers iOS encryption, password hashing, 1Password internals, network oddities like ping storms, and historical ciphers.
What HN saysHN commenters link it in discussions of iOS encryption and 1Password, and one calls its ping storm write-up a really interesting puzzle.
19HN people shared it
12linked it in comments
7stories submitted
113story points
2 years agolast shared
2015people per year2026
Most-shared posts
- 1Ios encryption6 people · first shared 2015
- 2Ping Storms at GreyNoise2 people · 83 points · first shared 2024 · 9 comments on HN
- 3Salt as a Service: Interesting approach to hashing passwords2 people · 14 points · first shared 2015 · 14 comments on HN
- 4Knock Knock? – A Survey of iOS Authentication [pdf]1 people · 9 points · first shared 2015 · 2 comments on HN
- 5Encrypting for Apple's Secure Enclave1 people · 4 points · first shared 2018 · discussion on HN
- 6Poem Codes – WWII Crypto Techniques1 people · 3 points · first shared 2016 · discussion on HN
- 7Shmoocon ios auth1 people · first shared 2015
- 8Ios encryption1 people · first shared 2018
- 9Inside 1password1 people · first shared 2022
- 10Noise storm update1 people · first shared 2024
- 11Cve 2014 1279 touchscreen1 people · first shared 2019
- 12Ios encryption1 people · first shared 2023
What HN people wrote when they linked it
mdaniel · 2022-09-06
Be forewarned that (to the best of my knowledge) they haven't, and likely don't intend, to document the sqlite structure. The contents in the sqlite file seems to mirror the api responses from their new rest apis, so their Burp analyzer (https://github.com/1Password/burp-1password-session-analyzer/blob/rele… may help matters, as will the absolutely essential reading (https://darthnull.org/inside-1password/) along with its code (https://github.com/dschuetz/1password#readme) and I just found this while digging up those other links: https://github.com/mickaelperrin/onepassword-local-search/blob/v1.1.4/…
emilamlom · 2024-10-02
Really interesting puzzle. The author also has an update on the other packet types: https://darthnull.org/noise-storm-update/
antoinealb · 2023-10-03
I don't think so. According to [0], the passcode is used to protect filesystem encryption keys, meaning that without the code, you cannot decrypt your files. I don't know if pictures are stored encrypted, but I would assume so.
edit: apparently I might be wrong. [0] also says that for a while only Mail storage, was encrypted and the default changed in iOS 7. So if your iPhone is on iOS <= 6, you might be able to use that to gain access to the device and copy pictures. The tools at [1] might help.
[1] https://code.google.com/archive/p/iphone-dataprotection/
[0] https://darthnull.org/ios-encryption/
GlenTheMachine · 2018-04-06
“On iOS, there is no full-disk or full-volume encryption, only varying levels of file-based encryption...”
I don't understand this claim. iOS had full disk encryption starting with iOS 3.0, in 2010. Or at least Apple (and other security experts) says it does:
https://darthnull.org/security/2014/10/06/ios-encryption/
Am I missing something here?
Aoyagi · 2016-03-09
Sorry about the slight OT, but what truth is there in this statement I was presented with?
>Even if an iPhone is locked, all of that encrypted data can technically be read easily so long as the phone had at least been unlocked once since the time it was booted up.
Obviously I think it's a nonsense, but I have no way of disproving it (even though the burden of proof is on the claimer, naturally).
Edit: OK I found this http://www.darthnull.org/2014/10/06/ios-encryption so never mind, I guess...
jrowley · 2016-02-20
I've been wondering this as well. Even with the key derivation function, I'd imagine the CPU also has some secure keys stored in it as well, and these keys are so long that it wouldn't be feasible to brute force it. I'm not sure if thats how the architecture works but thats what I'm thinking.
EDIT: This seems like a pretty good primer on iOS full disc encryption.
http://www.darthnull.org/2014/10/06/ios-encryption
jonknee · 2016-02-17
It's much more complicated than that (which is why the FBI needs help). The encryption uses the PIN and a key that is in the phone. If you take the image and try all the PIN combinations you will fail because you don't have the embedded key.
http://www.darthnull.org/2014/10/06/ios-encryption
> The UID key is used to create a key called “key0x89b.” Key0x89b is used in encrypting the device’s flash disk. Because this key is unique to the device, and cannot be extracted from the device, it is impossible to remove the flash memory from one iPhone and transfer it to another, or to read it offline. (And when I say “Impossible,” what I really mean is “Really damned hard because you’d have to brute force a 256-bit AES key.”)
Newer phones also include a secure enclave that introduces another key and hardware restrictions on timing. The FBI's request wouldn't make sense for a modern iPhone.
ParadoxOryx · 2016-02-17
The iPhone uses AES encryption which would prevent cloning the flash storage [1]. There was an informative discussion of this over on AppleInsider - http://forums.appleinsider.com/discussion/191851
[1] http://www.darthnull.org/2014/10/06/ios-encryption
huxley · 2015-08-11
It does have some pretty fancy encryption hardware and Apple seems to have made it very difficult to do even with physical access.
David Schultz wrote a pretty comprehensive article about it:
http://www.darthnull.org/2014/10/06/ios-encryption
x0054 · 2015-05-24
So are iOS devices that have a passcode and are running iOS 8, and with fingerprint scanning a lot more people have password locked devices. Good article on the subject is here:
http://www.darthnull.org/2014/10/06/ios-encryption
DarthNull · 2015-01-26
There's a blog post that sort of summarizes the slides here (which'll have to do until I get the white paper written): http://darthnull.org/2015/01/23/shmoocon-ios-auth
throwawaymath · 2019-03-21
I don't mean to engage in whataboutism here, but unless you're under the impression that no tech company is privacy conscious, what you're saying isn't true (though that'd be a reasonable impression, to be fair).
It's absolutely a security failure and it's not acceptable. But it's not a matter of "allowing" it to happen so much as, "Which vulnerability will we be caught by?" And it actually is a pretty normal vulnerability. For example, Apple[1], GitHub[2] and Twitter[3] have been vulnerable to this exact issue in recent memory.
I also don't mean to be defeatist. This kind of problem is preventable. But it's merely one dumb mistake in a universe of dumb mistakes that leads to serious security failures, all of which are easy to make. The most sophisticated and well-funded information security teams in the world - usually the FAANG teams - still miss things which look pretty silly in isolation.
At this scale being privacy conscious is necessary but insufficient. You can't realistically conclude anything about a company's dedication to privacy based on whether or not it was impacted by this kind of vulnerability. Making a corporate policy to hash passwords in the the database instead of storing them in plaintext is easy to codify, easy to implement and easy to verify. A corporate policy to never log authentication credentials is not nearly as well-defined, even if it's equally as important. That means more mental overhead, disagreement and uncertainty in preventing it.…