News for hackers. Stuff that matters.
Re:Does Apple really log every app you run? A technical look by _qulr on Saturday November 14, 2020 @05:35PM (#25096307)
> There is no information on how often the validation happens.

I wrote a blog post about this. My analysis indicates that Developer ID OCSP responses were previously cached for 5 minutes, but Apple changed it to half a day after Thursday's outage, probably to reduce traffic:

https://lapcatsoftware.com/articles/ocsp.html

Re:Does Apple really log every app you run? A technical look by saagarjha on Saturday November 14, 2020 @05:39PM (#25096340)
5 minutes is an absurdly short cache time…
Re:Does Apple really log every app you run? A technical look by _qulr on Saturday November 14, 2020 @05:48PM (#25096395)
Pure speculation from me, but my guess is that the intention is check an app on every launch, and the 5 minutes is there just to lower the chances of DoS from an app getting repeatedly launched for some reason.
Re:Does Apple really log every app you run? A technical look by sildur on Saturday November 14, 2020 @11:36PM (#25098285)
Let's not forget the inherent elitism of thinking everyone has a gigabit internet at their disposal. I happened to live in a developing county for years and this "waiting up to half a minute until the program opens" has been my daily experience for a long long time.
Re:Does Apple really log every app you run? A technical look by smnrchrds on Saturday November 14, 2020 @11:50PM (#25098351)
If it's slow in developing countries, it is gonna be slow in smaller towns as well as rural areas in US and Canada, and depending on where the closest Apple server is, perhaps all of Australia and New Zealand.
Re:Does Apple really log every app you run? A technical look by Spivak on Saturday November 14, 2020 @08:03PM (#25097124)
If you catch malware in the wild you don’t want to wait half a day for the cache to expire.

Negative responses are typically cached for short periods of time. Can you imagine if people cached NXDOMAIN for half a day and someone creating a record had to wait 12 hours for it to go live because someone queried it?

Re:Does Apple really log every app you run? A technical look by tsimionescu on Sunday November 15, 2020 @04:05AM (#25099520)
If you care about user privacy, you don't upload stuff from the user side, you download the list of trusted&untrusted certificates to the user's machine and take the decision there.

This is how antiviruses have always worked, without affecting user privacy (of course, most antiviruses also did other things that DID affect user privacy, but malware detection at least worked perfectly fine without it).

Re:Does Apple really log every app you run? A technical look by _qulr on Saturday November 14, 2020 @08:40PM (#25097371)
> If you catch malware in the wild you don’t want to wait half a day for the cache to expire.

But if you have a cached OCSP response for the cert of a malware author, then you've already launched their app, so it's probably too late.

Re:Does Apple really log every app you run? A technical look by zepto on Saturday November 14, 2020 @09:06PM (#25097542)
Plenty of kinds of malware are harmful each time they are launched, not just once.
Re:Does Apple really log every app you run? A technical look by ethbr0 on Saturday November 14, 2020 @09:23PM (#25097642)
The risk of launching malware a second+ time seems substantially less than the privacy leak caused by more frequent checks.
Re:Does Apple really log every app you run? A technical look by zepto on Saturday November 14, 2020 @10:02PM (#25097854)
https://www.zdnet.com/article/apple-update-kills-off-zoom-we...

This was a seriously exploitable issue that was a problem every time it was run.

I agree that this certificate mechanism is absurdly problematic.

That doesn’t justify dismissing the security risks it was intended to prevent.

Re:Does Apple really log every app you run? A technical look by _qulr on Saturday November 14, 2020 @10:17PM (#25097919)
Zoom isn't malware, Apple did not revoke Zoom's Developer ID certificate, and indeed Zoom still exists on the Mac.

Zoom had a serious uninstaller bug, but that's all it was, and it's not relevant to the current discussion.

Re:Does Apple really log every app you run? A technical look by zepto on Sunday November 15, 2020 @12:45AM (#25098615)
Incorrect - zoom exposed a serious vulnerability, and Apple shut it down, using another mechanism but nonetheless the same effect.

It’s relevant because you argue that there is no value to having the ability to do this.

It is also a problem which occurred every time the app was launched. Something you have dismissed as a non problem.

https://www.theverge.com/2019/7/10/20689644/apple-zoom-web-s...

Re:Does Apple really log every app you run? A technical look by _qulr on Sunday November 15, 2020 @06:02AM (#25100163)
> using another mechanism

> It’s relevant because you argue that there is no value to having the ability to do this.

No, I did not. We haven't talked about that other mechanism, so I've said nothing about it here either positively or negatively.

> Something you have dismissed as a non problem.

I said "Zoom had a serious uninstaller bug". So no, I did not dismiss it as a non problem. It just has nothing to do with Developer ID certificate OCSP.

Please stop putting words in my mouth or completely warping the words that I do say.

Re:Does Apple really log every app you run? A technical look by zepto on Sunday November 15, 2020 @02:53PM (#25104179)
No warping going on.

You said “But if you have a cached OCSP response for the cert of a malware author, then you've already launched their app, so it's probably too late.”

I.e. once you have launched the app, the damage is done.

This is not the case, and the Zoom situation is a clear counterexample. Even if a problematic app has been launched one or more times, it is still worth preventing subsequent launches if you can.

It doesn’t matter what mechanism is used to prevent the subsequent launch. This applies to any mechanism including OCSP. The Zoom example is a refutation of the particular point you made, a point which dismisses a real security concern.

It demonstrates that there is value in Apple having the ability to prevent harmful software from running, no matter how many times it has already been run.

Re:Does Apple really log every app you run? A technical look by _qulr on Sunday November 15, 2020 @03:17PM (#25104417)
> This is not the case, and the Zoom situation is a clear counterexample.

I was talking about MALWARE. As I said before, Zoom is not malware, so no, it's not a counterexample.

This is my last reply to you. You're clearly not interested in having a good faith conversation, you continue to misinterpret me and want to score "internet points" or something. I'm done.

Re:Does Apple really log every app you run? A technical look by zepto on Sunday November 15, 2020 @03:43PM (#25104635)
Accusations of bad faith are unhelpful, especially in a technical discussion like this.

Zoom is not malware in that as far as we know it isn’t Zoom’s intent to cause harm.

However in this instance it exhibited a behavior which many forms of malware exhibit - opening an insecure or exploitable port. It was shut down because it was behaving the way some malware behaves.

It’s a perfectly reasonable example of using these types of mechanism to mitigate a real security issue.

You can’t seriously be claiming that malware never opens ports, or that malware always does all of its harm on the first run.

Therefore the use of the distinction ‘malware’ is arbitrary and irrelevant.

The mechanism is useful to protect against vulnerabilities, regardless of whether the vulnerabilities were intentional or not.

Re:Does Apple really log every app you run? A technical look by bogomipz on Sunday November 15, 2020 @07:15AM (#25100581)
This was a good read as was the HP OSCP incident you linked to in the post. With regards to HP cert being revoked I'm amazed that this didn't get more attention. You would think there would be checks in place to calculate something like "well there's been 100 million OSCP checks for this printer driver in the last 24 hours so we might not want to revoke its cert."
Re:Does Apple really log every app you run? A technical look by theginger on Sunday November 15, 2020 @03:54AM (#25099466)
Any idea how they changed the cache time remotely? If the OS is honouring the cache control headers of a plain text response this has its own security implications.
Re:Does Apple really log every app you run? A technical look by _qulr on Sunday November 15, 2020 @06:06AM (#25100186)
The OCSP response has a nextUpdate field: https://www.ietf.org/rfc/rfc2560.txt
Re:Does Apple really log every app you run? A technical look by angry_octet on Sunday November 15, 2020 @05:06AM (#25099822)
The response is signed by Apple, and presumably (!) your Mac is validating that signature correctly. I haven't checked if they are using stapling, but that would be the sensible way to do it, in which case it is a server side parameter (though possibility with client side limits too, but you'd need to disassemble the binary).