News for hackers. Stuff that matters.
Re:Apple Disables FaceID if you change the screen yourself [... by RL_Quine on Monday September 27, 2021 @12:58AM (#28667210)
It shouldn't be particularly surprising that the two parts are cryptographically paired, the sensors for the IR camera and the HSM within the main processor are extensions of the same security boundary effectively. If you could replace the sensor without something being unhappy, the system would be completely broken.
Re:Apple Disables FaceID if you change the screen yourself [... by aj3 on Monday September 27, 2021 @02:03AM (#28667547)
Just to make it clear that this isn't a purely theoretical concern, it's how Windows Hello got bypassed this summer: https://www.wired.com/story/windows-hello-facial-recognition...
Re:Apple Disables FaceID if you change the screen yourself [... by captainmuon on Monday September 27, 2021 @04:19AM (#28668317)
But do they have to pair the sensors in each phone distinctly? I assume they have hardware security measures that you cannot just read out the keys from one of the sensors. So why not just put the same "key" in all of the official IR cameras? Then you could still swap cameras with official safe ones, but you could not build a fake replacement.
Re:Apple Disables FaceID if you change the screen yourself [... by neilalexander on Monday September 27, 2021 @04:30AM (#28668377)
The sensors are using unique patterns on each device. There would need to be a pairing between the TrueDepth camera and the Secure Enclave in order to account for this unique pattern. This is why you can't copy Face ID data from one device to another and expect it to work.

From the Apple Platform Security document:

> After the TrueDepth camera confirms the presence of an attentive face, it projects and reads thousands of infrared dots to form a depth map of the face along with a 2D infrared image. This data is used to create a sequence of 2D images and depth maps which are digitally signed and sent to the Secure Enclave. To counter both digital and physical spoofs, the TrueDepth camera randomises the sequence of 2D images and depth map captures and projects a device-specific random pattern. A portion of the Secure Neural Engine — protected within the Secure Enclave — transforms this data into a mathematical representation and compares that representation with the enrolled facial data. This enrolled facial data is itself a mathematical representation of the user’s face captured across a variety of poses.

https://support.apple.com/en-gb/guide/security/sec067eb0c9e/...

Re:Apple Disables FaceID if you change the screen yourself [... by captainmuon on Monday September 27, 2021 @04:50AM (#28668491)
So the individual dot patterns are fixed in hardware? That's clever. (A former colleague of mine has a vaguely related patent. They create unique patterns inside of chips by applying (sputtering) material at an angle, which creates chaotic patterns that cannot be copied by lithography, so the chip is in principle unclonable.)
Re:Apple Disables FaceID if you change the screen yourself [... by leereeves on Monday September 27, 2021 @01:39AM (#28667419)
Apple doesn't have to permanently disable FaceID to maintain security; just require a password to log in after the screen has changed and reinitialize FaceID. And as another comment said "if the device detects any component has been tampered with, the user will be alerted during the first boot up".
Re:Apple Disables FaceID if you change the screen yourself [... by aj3 on Monday September 27, 2021 @02:07AM (#28667566)
I guess they want to prevent someone from intercepting and tampering with a phone while it's being shipped to the customer, you know the supply chain attacks NSA (https://www.theverge.com/2013/12/29/5253226/nsa-cia-fbi-lapt...) and CIA (https://phys.org/news/2017-03-wikileaks-cia-hacks-apple-mac....) perfected.
Re:Apple Disables FaceID if you change the screen yourself [... by leereeves on Monday September 27, 2021 @02:34AM (#28667719)
But there is a way to replace the screen without disabling FaceID (how Apple does it), and the NSA likely knows how to do that as well. Or if they don't, they could force Apple to do so secretly.
Re:Apple Disables FaceID if you change the screen yourself [... by numpad0 on Monday September 27, 2021 @03:50AM (#28668157)
You’d run the pairing process, which can only be ran by trusted Apple repairmen with special internal tools, or any of the guys in Shenzhen back alleys with the device called JC Programmer.
Re:Apple Disables FaceID if you change the screen yourself [... by fy20 on Monday September 27, 2021 @05:46AM (#28668810)
Right and that's the issue... why is this needed in the first place? There's no additional security, it just prevents DIY types from repairing their own phone, as they don't want to buy a $500 tool.
Re:Apple Disables FaceID if you change the screen yourself [... by marcan_42 on Monday September 27, 2021 @03:00AM (#28667878)
The NSA doesn't have Apple's private keys. They aren't a magical organization that can crack all modern crypto either.
Re:Apple Disables FaceID if you change the screen yourself [... by captainmuon on Monday September 27, 2021 @04:29AM (#28668372)
Have you heard about FISA courts? They can issue warrants for surveillance and the affected company is not allowed to disclose this. As a HN reader, it is likely you know about it but most people probably don't. Still, if a federal agent comes along with a warrant, they'll have to comply.

My point is, I personally can't be sure there is no mechanism, legal or illegal, via which the NSA can just compel them to hand over the keys. Who knows, maybe there exists a FOOBAR law that compells them to build backdoors into their products. Maybe they're doing it voluntarily outside of the law. I would assume everything can be trivially hacked nowadays, and a large portion of intelligence analysts spend their time on parallel construction (i.e. creating alternative stories about how they gatheried their evidence, without giving away their abilities).

Re:Apple Disables FaceID if you change the screen yourself [... by gmueckl on Monday September 27, 2021 @06:01AM (#28668896)
Hypothetical: what good is a court order if the only copy of the key is in a HSM with tamper protection?

I'm not saying that Apple does this. I simply don't know.

Re:Apple Disables FaceID if you change the screen yourself [... by rndgermandude on Monday September 27, 2021 @03:59AM (#28668204)
>The NSA doesn't have Apple's private keys.

Are you sure? Last I heard the NSA is in the intelligence gathering business... I absolutely would not put it past them that they acquired those keys somehow.

Even if they do not have the keys, bribing an employee and/or installing your own NSA person as an employee in an Apple-authorized repair shop seems like a rather easy thing to do. Or just backdoor the computer that is used to communicate with apple to perform the re-signing stuff. There are thousands of authorized repair shops around the world and you only need to compromise one (or compromise a few so that any "abnormal patterns of repairs" cannot be easily detected by Apple, if it even audits repair logs for suspicious activity at all).

I am sure the NSA has something figured out by now. And not just them.

Re:Apple Disables FaceID if you change the screen yourself [... by marcan_42 on Monday September 27, 2021 @06:23AM (#28669031)
> Are you sure? Last I heard the NSA is in the intelligence gathering business...

Are you sure there isn't a teapot in orbit around Mars?

The NSA can't magically break into people's HSMs and steal the keys. We have a pretty good idea of what the NSA's capabilities are. If Apple's system is correctly designed, it will only allow components with certificates installed at manufacturing time to be paired together, and the pairing server will use a HSM to hold the private key to do so.

Can the NSA still backdoor your phone? Sure, that's possible by physical definition. They could extract a specific camera unit's private key via FIB analysis, then manufacture a backdoored replacement, insert that key into it, then bribe or otherwise backdoor themselves into some Apple authorized repair shop and run through a re-pairing with it when they swap it into your phone. But that's a lot harder and less likely to happen (i.e. only in extremely high-value cases, if at all) than the silly "oh it's the NSA, they definitely have the keys" nonsense that people throw around here without any supporting evidence.

Re:Apple Disables FaceID if you change the screen yourself [... by leereeves on Monday September 27, 2021 @07:22AM (#28669360)
Yes, I'm sure there isn't a teapot in orbit around Mars. Not because it's impossible (it isn't, we've put other things in orbit around Mars) but because no one has a motive to put a teapot there.

On the other hand, the NSA certainly has a motive to obtain Apple's keys. And while I doubt we really have a good idea of what the NSA's capabilities are, the capabilities we do know about are sufficient.

Re:Apple Disables FaceID if you change the screen yourself [... by marcan_42 on Monday September 27, 2021 @10:05PM (#28678497)
No, they aren't. The NSA can't just waltz into Apple and break into their HSM to steal their keys. These systems are designed to be robust even against physical access attacks. Even if the NSA had a backdoor in commercial HSMs, they'd have to get to them physically, as these things aren't on the internet directly.

The Snowden leaks gave us a very good idea about what the NSA does. Tap fibre. Backdoor products in transit. Develop and use remote exploits (nothing particularly amazing about them, it's on the same level of RE/exploitation/polishing work as what I've done for game console homebrew in the past). That one time they actually did something novel with modern crypto and figured out how to efficiently break 1024-bit DH for fixed parameter sets. These are all practical, reasonable things that are a far cry from the magical abilities people like to ascribe to them.

Re:Apple Disables FaceID if you change the screen yourself [... by rndgermandude on Wednesday September 29, 2021 @03:03AM (#28691015)
>No, they aren't. The NSA can't just waltz into Apple and break into their HSM to steal their keys

The NSA could waltz into the plant manufacturing the HSM. Or they could waltz into Apple and make sure Apple uses the right HSM with keys already known to the NSA, e.g. by replacing the shipment of the HSMs Apple ordered. (This would require the NSA knowing in advance when Apple buys HSMs for what purpose and from what vendor, but again, intelligence gathering business).

>These systems are designed to be robust even against physical access attacks.

They are designed by humans trying to make those things "robust" against attacks. "Robust" is a "best effort" word.

Assuming that the thing that got shipped to you actually is the thing you think and not just some nice NSA chip with the name of a popular HSM vendor printed on top. You cannot really open up the chip and look inside as, if this is a properly designed HSM, this it is supposed to be destro if you tamper with the enclosure or any other vital parts of it.

I'd be surprised if the NSA does not spend resources on research into breaking HSMs, and if it do esnot spend resources on designing "fakes". The level of their success is unknown until the next Snowden shows up. But if they did break some HSMs, they wouldn't be alone [0].

So, there is a chance the NSA can waltz into Apple and break into their HSM and steal their keys.

This assumes Apple uses HSMs for this kind of stuff and uses them correctly.

Since authorized third-party repair shops can replace components and repair the hardware with some help from Apple, as I said before, it's not even necessary to compromise Apple or their HSMs, it's sufficient to compromise those repair shops, whether third party of have a few NSA Geniuses around.

But either swapping out HSMs pre-installation or breaking ones with design flaws is certainly in the realm of possibility too.

>The Snowden leaks gave us a very good idea about what the NSA does.

No, Snowden showed what they did in 2013 and before, because that's when he went public.

Snowden does not know what they did 2014, let alone what they are doing now in 2021. That's about 8 years of most recent NSA R&D that we do not know about.

>Backdoor products in transit.

HSM is a "product", last I heard ;)

>These are all practical, reasonable things that are a far cry from the magical abilities people like to ascribe to them.

Magical? Nothing magical in what I said I believe the NSA could reasonably achieve.

We're talking about abusing design flaws in HSMs and/or supply chain attacks not creating "a GUI interface using VisualBasic to track the killers IP address".

[0] https://cryptosense.com/blog/how-ledger-hacked-an-hsm

Re:Apple Disables FaceID if you change the screen yourself [... by simonh on Monday September 27, 2021 @04:27AM (#28668364)
So is your position on security that Apple should just give up? I'm not really clear what you're advocating.
Re:Apple Disables FaceID if you change the screen yourself [... by makeitdouble on Monday September 27, 2021 @05:33AM (#28668742)
As for everything related to security granted by US companies, there is the elephant in the room that apparently needs to be restated regularity, and further discussions can come with that in mind.

I don't think the parent was advocating for anything related to the NSA, just reminding us of the current state.

Re:Apple Disables FaceID if you change the screen yourself [... by leereeves on Monday September 27, 2021 @03:10AM (#28667940)
Are you certain they don't have Apple's private keys? They have many ways to compel or persuade someone who does have access to those keys to give the keys to the NSA, or to infiltrate Apple with their own agents.
Re:Apple Disables FaceID if you change the screen yourself [... by threeseed on Monday September 27, 2021 @03:59AM (#28668202)
Apple is going to be far more concerned about countries like China, Saudi Arabia etc than the US.

The rule of law is significantly weaker and they have already shown that they will go after even mild dissidents e.g. journalists not just mass-terrorists or other more serious threats.

So sure US may have the keys. But unlikely every country does.

Re:Apple Disables FaceID if you change the screen yourself [... by simonh on Monday September 27, 2021 @04:31AM (#28668382)
It seems unlikely that Apple and the US government would litigate so aggressively against each other, over hacking or forcing back doors into Apple systems, if Apple had already been forced to hand over the keys to the government.
Re:Apple Disables FaceID if you change the screen yourself [... by leereeves on Monday September 27, 2021 @07:24AM (#28669380)
We're talking about two different systems: the criminal justice system and the national security apparatus. The first system rarely gets help from the second, and the second may even be happy to see such litigation misleading adversaries about the government's real capabilities.
Re:Apple Disables FaceID if you change the screen yourself [... by craftinator on Monday September 27, 2021 @02:50AM (#28667813)
Oh no, there is no way a three letter agency found out Apples secret sauce. Obscurity is the only form of security that they'll never be able to crack!
Re:Apple Disables FaceID if you change the screen yourself [... by zihotki on Monday September 27, 2021 @12:53PM (#28673098)
I wonder how does that prevent NSA and CIA level intercepting and tampering? NSA and CIA can't work with Apple to get their hardware to be signed as well? I don't believe it.
Re:Apple Disables FaceID if you change the screen yourself [... by ladberg on Monday September 27, 2021 @04:13AM (#28668283)
I'm not saying it's realistic, but one could theoretically replace the sensor with a fake one that always returned the same data. That would allow the user to re-setup face ID and let unknowingly let any intruder in.
Re:Apple Disables FaceID if you change the screen yourself [... by xwdv on Monday September 27, 2021 @01:44AM (#28667443)
That’s less secure.
Re:Apple Disables FaceID if you change the screen yourself [... by spoonjim on Monday September 27, 2021 @01:52AM (#28667493)
No less secure than the regular OS, which always allows you to use the passcode rather than the FaceID.
Re:Apple Disables FaceID if you change the screen yourself [... by oauea on Monday September 27, 2021 @01:49AM (#28667471)
Most secure would be for the device to go up in flames as soon as it detects any tampering. I sure wouldn't want to own such a device that could never be repaired.
Re:Apple Disables FaceID if you change the screen yourself [... by PostThisTooFast on Monday September 27, 2021 @01:06AM (#28667254)
No, it wouldn't. The sensor is an imager. The back end, which interprets what it delivers, should be separate.

This is more petty Apple bullshit.

Re:Apple Disables FaceID if you change the screen yourself [... by neilalexander on Monday September 27, 2021 @04:29AM (#28668373)
I suspect this is actually something to do with the fact that the Face ID sensors are projecting unique patterns across different devices. From the Apple Platform Security document:

> After the TrueDepth camera confirms the presence of an attentive face, it projects and reads thousands of infrared dots to form a depth map of the face along with a 2D infrared image. This data is used to create a sequence of 2D images and depth maps which are digitally signed and sent to the Secure Enclave. To counter both digital and physical spoofs, the TrueDepth camera randomises the sequence of 2D images and depth map captures and projects a device-specific random pattern. A portion of the Secure Neural Engine — protected within the Secure Enclave — transforms this data into a mathematical representation and compares that representation with the enrolled facial data. This enrolled facial data is itself a mathematical representation of the user’s face captured across a variety of poses.

https://support.apple.com/en-gb/guide/security/sec067eb0c9e/...

Re:Apple Disables FaceID if you change the screen yourself [... by simonh on Monday September 27, 2021 @04:35AM (#28668409)
The back end has to be able to trust the data from the sensor, and the only way to do that is engineer them as part of the same cryptographic trust domain. Otherwise you could just swap the sensor for a dummy device that presents whatever data you like to the back end. That would completely break the security model.

I know a lot of the other phone manufacturers do stuff like this and think it's ok, but Apple knows what it's doing.

Re:Apple Disables FaceID if you change the screen yourself [... by user-the-name on Monday September 27, 2021 @03:47AM (#28668135)
How can you trust that the sensor is actually delivering what it sees?