WEBVTT

00:00.000 --> 00:04.140
It is my absolute pleasure to introduce Richard.

00:04.140 --> 00:08.360
He's got a great talk lined up for us that I'm particularly interested in.

00:08.360 --> 00:12.120
His talk is titled, Seriously Leaky?

00:12.120 --> 00:17.160
Exploring Overlooked Attack Surfaces Across Apple's Ecosystem.

00:17.200 --> 00:19.000
With that, I'll turn it over to Richard.

00:19.000 --> 00:24.300
Let's give him a big welcome, a round of applause for this first time DEF CON speaker!

00:44.260 --> 00:45.240
All right.

00:45.280 --> 00:46.500
Hello, everyone.

00:47.740 --> 00:50.280
So let's go ahead and get started.

00:50.600 --> 00:53.500
And okay.

00:53.500 --> 00:55.700
I just want to start out with a quick poll.

00:55.700 --> 01:02.460
So if you've ever taken a photo with your phone, please raise your hand.

01:03.620 --> 01:04.360
Okay.

01:04.360 --> 01:04.800
Okay.

01:04.800 --> 01:07.480
So that was like 96% of you.

01:07.480 --> 01:12.700
And then I think like, I don't know, like 3% of you maybe still scrolling through Hacker Tracker.

01:13.360 --> 01:15.400
And I guess 1% just liars.

01:16.320 --> 01:17.380
You know, which is cool.

01:17.540 --> 01:17.840
Okay.

01:17.840 --> 01:28.800
So now can you raise your hand if you've ever taken a photo or a picture of something where, you know, you thought, like, oh, my God, like, if I hope no one else, like, ever sees this.

01:28.800 --> 01:29.920
Like, this is so embarrassing.

01:30.300 --> 01:31.580
I can't believe I took this photo.

01:31.580 --> 01:32.700
Could you raise your hand, please?

01:34.380 --> 01:34.920
Okay.

01:34.920 --> 01:35.260
Okay.

01:35.260 --> 01:36.660
So okay.

01:36.660 --> 01:37.900
A little bit less honesty there.

01:37.900 --> 01:39.820
But yeah, that's okay.

01:41.680 --> 01:42.040
Okay.

01:42.040 --> 01:57.500
So one neat little feature that Apple added in iOS 18 is for, you know, people like you and me, it's just to be able to hide these embarrassing photos from plain view and to store them in a separate hidden album.

01:58.200 --> 02:01.560
And by default, you know, it's face ID locked, right?

02:01.560 --> 02:08.160
So if someone, you know, your brother says, hey, I just want to make a call really quick.

02:08.160 --> 02:09.580
Can I see your phone really quick?

02:09.860 --> 02:11.260
And you hand it to him.

02:11.380 --> 02:19.620
And, you know, if you actually, like , if his intention is to look through your photos and he clicks on your hidden album, it's face ID locked.

02:19.620 --> 02:24.580
So people shouldn't be able to see that unless they have your face.

02:25.520 --> 02:32.180
But yeah, let's just see if we can find a way to leak that photo.

02:32.200 --> 02:35.000
So I'm just going to start playing this here.

02:35.900 --> 02:36.060
Okay.

02:36.060 --> 02:37.640
So I have the photos app open here.

02:37.640 --> 02:38.300
And okay.

02:38.300 --> 02:39.620
So I opened the hidden album.

02:40.360 --> 02:41.760
Says it's locked.

02:41.760 --> 02:42.920
So I unlock.

02:42.920 --> 02:43.620
Okay.

02:43.880 --> 02:44.880
And then, okay.

02:44.880 --> 02:52.800
So here's a really, you know, super secret hidden photo that, you know, I wouldn't want people to know about.

02:53.860 --> 02:57.580
And yeah.

02:57.580 --> 03:09.960
So the example I picked here obviously is like a little PG, but I'm sure, you know, when I asked you before, like, if you've ever taken a sensitive photo, you know, something a little bit more spicy.

03:10.760 --> 03:20.460
So, yeah, if you can maybe just instead of that photo, if you can just picture in your mind, like, whatever that super embarrassing photo is and just keep it in mind.

03:20.720 --> 03:21.780
And then, okay.

03:21.780 --> 03:22.720
So let's say, okay.

03:22.720 --> 03:23.980
So I'm looking at my hidden photo.

03:23.980 --> 03:24.480
Okay.

03:24.480 --> 03:25.720
I exit.

03:26.980 --> 03:28.040
I'm going to go back into it.

03:28.040 --> 03:28.920
Oh, it's locked, right?

03:28.920 --> 03:30.180
So okay.

03:32.440 --> 03:35.700
And let's see what happens if we just use Siri here.

03:39.970 --> 03:41.570
Oh, that's not good.

03:42.310 --> 03:42.850
Yeah.

03:42.850 --> 03:45.290
And then it's going to tell me about it.

03:47.790 --> 03:48.410
Yeah.

03:48.410 --> 03:55.050
So, you know, if you had a really spicy photo, I don't know if you want like chat GPT explaining to you, like what that is.

03:58.210 --> 03:58.770
Okay.

03:58.770 --> 03:59.770
But, okay.

03:59.770 --> 04:04.610
Let's say, you know, hey, I'm like one of those anti-AI people, right?

04:04.610 --> 04:05.710
Or I don't believe in AI.

04:05.710 --> 04:08.090
I don't have chat GPT, so it doesn't affect me.

04:09.110 --> 04:09.550
Okay.

04:09.550 --> 04:11.710
Well, so you think maybe you're safe.

04:11.710 --> 04:12.610
But are you?

04:12.610 --> 04:13.610
Let's find out.

04:24.720 --> 04:25.180
Okay.

04:25.180 --> 04:26.120
So same thing.

04:26.200 --> 04:27.800
I'm going to go back in.

04:30.520 --> 04:31.840
You see me again?

04:35.480 --> 04:36.280
Oh.

04:37.060 --> 04:37.700
Yeah.

04:37.700 --> 04:40.460
So, you know, if that's like your mom, right?

04:41.320 --> 04:41.840
Yeah.

04:41.840 --> 04:47.480
I think that might and you have that super secret photo that you don't want people to know about.

04:48.200 --> 04:48.420
Yeah.

04:48.420 --> 04:49.700
That might be a little embarrassing.

04:52.240 --> 04:52.660
So...

04:54.900 --> 04:56.040
All right.

05:04.180 --> 05:04.640
Okay.

05:04.640 --> 05:06.460
So, I'm going to go to the next slide here.

05:06.640 --> 05:06.960
Okay.

05:06.960 --> 05:08.740
So, what the hell happened there?

05:08.740 --> 05:09.120
Right?

05:09.120 --> 05:09.920
And okay.

05:09.920 --> 05:14.140
So, let's just walk through that process here.

05:14.140 --> 05:26.120
And I'm going to introduce some characters that are going to appear, you know, both for this specific leak and some recurring characters that you'll see throughout my talk.

05:26.120 --> 05:27.260
So, okay.

05:27.260 --> 05:31.560
So, step one, I opened my hidden album and I unlocked it with Face ID.

05:31.560 --> 05:39.360
So, behind the scenes, the Face ID sensors basically talk to Apple's secure coprocessor.

05:39.360 --> 05:41.160
That's called the secure enclave.

05:41.960 --> 05:56.680
And there's a tiny little background helper that's called or whose whole job is basically to be like a biometrics broker.

05:56.680 --> 05:59.240
So, it's called biometric D.

05:59.240 --> 06:04.200
So, whenever you see that D at the end, that means like Damon.

06:04.540 --> 06:07.540
So, Damon's like my background worker.

06:07.640 --> 06:17.860
So, biometric kid D gets the yes or no from secure enclave and it will hand the result to Apple's local authentication framework.

06:18.660 --> 06:24.980
And local authentication is basically like, you know, just a standard like, hey, please give me your Face ID, right?

06:24.980 --> 06:32.060
Or it's basically the Face ID authentication mechanism that is used by almost every app.

06:32.560 --> 06:38.200
So, in this case, you know, the photo's got the green light since, you know, it was my face, right?

06:38.200 --> 06:39.420
And it said, okay.

06:39.420 --> 06:40.980
So, it will decrypt that photo.

06:42.760 --> 06:49.240
That or it will decrypt that album and it will let me view anything that's within that hidden album.

06:50.940 --> 06:51.300
Okay.

06:51.300 --> 06:52.440
Oh, just one quick note.

06:52.440 --> 06:57.060
So, that PH asset is just the index card basically for that picture.

06:57.060 --> 07:00.620
So, just the metadata and the ID.

07:01.080 --> 07:07.180
So, you know, once I view it, you know, photos will actually pull the bytes and draw it.

07:07.980 --> 07:16.120
So, I guess for speed, photos, you know, it's not like you just look at it once and then it gets tossed, right?

07:16.240 --> 07:19.480
It will, you know, prepare like a few like resized versions.

07:19.520 --> 07:21.160
So, you can get like thumbnails.

07:21.720 --> 07:23.380
Some that are screen sized.

07:24.380 --> 07:28.640
And a lot of that heavy lifting is offloaded to another helper behind the scenes.

07:28.640 --> 07:31.500
That's called a photos image conversion service.

07:32.140 --> 07:36.140
So, that's a XP service, XPC service.

07:36.140 --> 07:41.740
And, you know, XPC is just like iOS's safe mail slot between apps and helpers.

07:42.660 --> 07:48.640
And so, you know, you slide a request through that slot and it will slide the request back, right?

07:48.640 --> 07:49.660
So, why do that?

07:49.660 --> 07:52.900
It's just performance and sandboxing.

07:53.720 --> 07:54.400
So, okay.

07:54.400 --> 07:56.180
So, and I left photos, right?

07:56.180 --> 08:01.720
And the UI for my hidden album relocked, as you all saw.

08:02.620 --> 08:11.480
And but, you know, relocking something isn't the same as shredding every cached copy.

08:13.200 --> 08:30.400
So, you know, for a period of time, that last viewed, like those last viewed pixels and all those resized variants that I just mentioned can still be, like, warm in memory and reachable through that image conversion helper.

08:31.600 --> 08:34.280
So, you know, that's pretty normal, right?

08:34.280 --> 08:35.100
For performance.

08:35.100 --> 08:37.740
It's not, like, inherently a bug yet.

08:38.020 --> 08:42.760
But then, you know, when I say, like, hey, Siri, like, who wakes up first, right?

08:42.760 --> 08:44.560
So, like, springboard, right?

08:44.560 --> 08:53.120
So, like, iOS's home screen app, the traffic cop for button presses, app launches, system UI.

08:53.900 --> 08:56.720
So, springboard's the one that's listening for that, hey, Siri, right?

08:56.720 --> 08:58.940
And it will spin up, like, Siri's brain.

08:59.440 --> 09:05.440
And then, so, it's a daemon called Assistant D, which is Siri's back end.

09:05.500 --> 09:10.120
It'll parse what I say and then decide, like, what scale to use.

09:10.120 --> 09:12.520
I don't know if scale's a good word to use for Siri.

09:12.520 --> 09:15.300
It's not that skillful.

09:15.300 --> 09:18.740
But and then it'll talk to apps.

09:18.740 --> 09:30.420
So, those, like, on screen, like, blue bubbles that you will see from Siri, you know, that's just, like, Siri UI, right?

09:30.420 --> 09:32.740
So, that's just the front end for Siri.

09:33.060 --> 09:35.340
And Assistant D is the logic.

09:36.040 --> 09:39.700
So, when I said, like, hey, like, what's in this photo?

09:39.820 --> 09:47.120
Siri turned my sentence into a structured request using, like, Apple's intent system.

09:47.260 --> 09:53.580
And, you know, intents are just basically, like, so, it's a dictionary of things that, like, humans can ask for that can be expressed as data, right?

09:53.580 --> 09:57.140
So, you know, like, analyze the current photo, right?

09:57.140 --> 10:01.080
So, not just free-forming or free form words.

10:01.120 --> 10:07.160
So, this is key because Siri doesn't actually, like, screen scrape the photos app.

10:07.160 --> 10:15.060
But it does the proper thing and it asks photos through the system APIs, like, what photo is currently in context, right?

10:17.600 --> 10:18.260
Okay.

10:18.260 --> 10:23.100
So, the fault line here is the request doesn't go to the locked photos UI.

10:23.120 --> 10:28.520
It goes around to the side to photos, like, domain helpers, right?

10:28.520 --> 10:34.320
And that photo image conversion service that I mentioned just a moment ago.

10:34.720 --> 10:50.480
So, before this was fixed in the 18.5 update, that service would remember the last viewed asset and it would happily return all those pixels without asking, like, oh, hey, like, is that from the hidden album?

10:50.480 --> 10:53.580
Like, you know, is hidden album even, like, unlocked, right?

10:53.580 --> 11:13.800
So, Assistant D would get the bytes, the real image bytes back over XPC, you know, send it over to chat GPT, and then Siri UI would show you the photo first to confirm, hey, you really want to send this to chat GPT?

11:13.800 --> 11:20.140
And then if you say yes, then it will return a description of whatever your very spicy hidden photo was.

11:22.420 --> 11:22.920
Okay.

11:22.920 --> 11:27.120
And then, you know, if I said, like, hey, send this to, you know, mom or whatever.

11:27.320 --> 11:30.020
So, same choreography, different intent.

11:30.060 --> 11:40.320
So, Siri would build the message with the current photo intent, ask photos for that current photo, the helper returns the cached pixels, and iOS attaches and sends that.

11:40.320 --> 11:44.360
And then you'll get that set banner that you saw a moment ago.

11:47.100 --> 11:48.060
Okay.

11:48.180 --> 11:49.300
All right.

11:49.320 --> 11:58.440
So, I want to cover a CVE that Apple assigned for one of my reports last fall.

11:58.440 --> 12:20.480
So, during the iOS 18 dev beta, and any of you who, you know, if you're aspiring, like, iOS researchers, I would highly recommend that you enroll into the beta program so you can download all the beta versions.

12:20.480 --> 12:24.660
iOS 26 beta right now, I believe the public beta is not available.

12:24.660 --> 12:31.440
So, this is so basically what happened here is okay.

12:31.440 --> 12:34.500
So, if you look up there, you can see, so obviously it's locked.

12:34.500 --> 12:39.420
But I just typed in pages.

12:39.520 --> 12:47.780
And then, you know, something that changed in iOS 18 is, you know, I guess spotlight indexing.

12:48.180 --> 13:01.780
So, it would return the, like, up to, oops, sorry, two of the most recently accessed, like, pages files.

13:02.760 --> 13:03.300
Sorry.

13:03.300 --> 13:04.140
Let me just make sure.

13:04.680 --> 13:08.140
Oh, I'm sorry.

13:08.140 --> 13:09.080
Are we on notes?

13:09.080 --> 13:09.440
Sorry.

13:09.440 --> 13:10.900
I was maybe looking at the wrong one.

13:10.900 --> 13:11.240
Okay.

13:11.240 --> 13:13.340
So, sorry.

13:13.340 --> 13:28.260
So, for notes, we have so if you type in notes and spotlight while your device is locked, it would expose, like, if you have any notes related to shortcuts, it would show one of those.

13:28.260 --> 13:35.560
And then it would show you a little preview of what your last note was.

13:35.560 --> 13:49.900
So, this screenshot here probably isn't the best one here because the original POC I had, it would actually show you, like, a little thumbnail of, like, what was in your notes, which is, like, right here.

13:49.900 --> 13:52.520
Like, in pages, you can actually see.

13:53.660 --> 13:58.940
You can actually see the contents of, like, that very first page.

14:01.140 --> 14:03.080
So, same pattern as notes.

14:03.240 --> 14:05.880
Just return the last live thumbnail.

14:07.620 --> 14:12.200
And you would be able to view all of that on the lock screen.

14:12.260 --> 14:14.460
So, I'm sure, okay.

14:14.460 --> 14:33.060
So, if I can just ask you for ask everyone to just raise your hand if you have ever, like, typed something in notes that you probably shouldn't have, like, you know, like, password, or a, well, I guess MFA codes aren't too bad, but, or I don't know, something spicy that you don't want people reading.

14:34.620 --> 14:35.060
Okay.

14:35.060 --> 14:36.520
So, okay.

14:36.680 --> 14:37.260
Okay.

14:37.260 --> 14:42.800
I think, yeah, so, yeah, at least 30% view out there.

14:44.300 --> 14:46.800
And I guess, you know, 70%, you know, a little bit shy.

14:46.800 --> 14:47.420
It's okay.

14:47.740 --> 14:51.040
We've all put something in here that we don't want people to see.

14:51.500 --> 14:57.920
But, you know, that's probably something that you wouldn't want leaked on the lock screen there.

14:57.920 --> 15:01.540
But it wasn't just notes, but it also affected

15:04.800 --> 15:06.060
numbers files.

15:07.060 --> 15:10.820
I could see the last, you know, spreadsheet that you touched.

15:11.420 --> 15:20.650
And, you know, I guess if your budget or client list was open last, then I guess, you know, congratulations, since Spotlight's, you know, giving out sneak peeks on your lock screen.

15:22.940 --> 15:25.420
Same deal with Keynote.

15:26.400 --> 15:32.320
It would flash the last deck that you edited in Keynote.

15:32.320 --> 15:46.140
So, if your last Keynote was something like, we're firing Bob on Friday, and then Bob, you know, was just looking at your phone, still locked, and he's like, oh, what the hell is this?

15:47.100 --> 15:51.120
Yeah, probably not a good time to hand someone your phone.

15:54.260 --> 16:00.160
Yeah, so that was CVE-2024-44235.

16:00.160 --> 16:01.580
That was fixed in 18.1.

16:01.580 --> 16:04.020
So, if you're still on 18.0, you should probably update your phone.

16:06.460 --> 16:06.940
Okay.

16:06.940 --> 16:17.460
So, I just want to show you an example of something that is working correctly.

16:17.480 --> 16:21.120
So, that's related to that CVE.

16:21.120 --> 16:31.780
So, in iOS 18, Apple added, like, action shortcuts that you could use from Spotlight to do things quickly.

16:31.780 --> 16:37.080
So, I'll just start playing this here to show you that example.

16:39.020 --> 16:43.500
Let me just see if this is Oh, okay.

16:43.500 --> 16:43.980
Oh, I'm sorry.

16:43.980 --> 16:45.780
This was not, okay.

16:45.780 --> 16:46.000
Yeah.

16:46.000 --> 16:49.940
So, you see here, like, so, if you have, sorry, this should have been voice memos.

16:49.940 --> 16:52.100
I don't know what happened to that video.

16:52.100 --> 17:00.660
But, so, that read current and that play current, those are action shortcuts that are built in into books.

17:00.780 --> 17:02.040
And, okay, sorry.

17:02.040 --> 17:13.520
So, if you do voice memos, I'm sorry, I must have gotten this confused, but in voice memos, if you type in voice memos, it would show you, like, play last or record.

17:14.060 --> 17:18.040
And then if you tapped on play last, it would prompt you for confirmation.

17:18.040 --> 17:25.120
And then if you said okay, then it would prompt for face ID, because obviously, you know, whatever you record is probably pretty sensitive.

17:27.420 --> 17:30.960
So, for voice memos, it worked okay.

17:30.960 --> 17:42.160
But if we did it for books, so, Apple doesn't seem to treat books with the same degree of, like, sensitivity.

17:43.440 --> 17:59.440
So, what I was told when I reported it, if I remember correctly, was that, like, oh, so, like, it's not really a big deal if someone can, like, play back their last played audio book, like, on the lock screen, you know, even if it was, like, a year ago,

17:59.440 --> 18:12.200
or even if they, you know, they killed the books app and they never opened it again after they started playing that audio book, because they likened it to, like, you know, like, podcasts and music, right?

18:12.200 --> 18:15.220
Like, people don't generally consider that, like, that sensitive.

18:15.540 --> 18:20.780
So, but I disagreed, and this is the POC I gave them.

18:20.940 --> 18:21.160
Okay.

18:21.160 --> 18:23.920
So, if you saw there, just really quick there.

18:23.920 --> 18:33.360
So, I have Hotel California there paused, because I just want to prove to you that, okay, like, what's in my now playing right is not my audio book, right?

18:33.360 --> 18:35.340
It's a song.

18:37.040 --> 18:47.420
And if we, okay, so if we type books here, and we play current, and we get that in a moment.

18:51.580 --> 19:01.480
Yeah, that's, yeah, I would consider that something that's a little sensitive that I wouldn't want people to know that I'm reading.

19:01.900 --> 19:05.200
And by the way, I already bought that audio book for that POC.

19:05.920 --> 19:09.680
So, please don't judge.

19:11.940 --> 19:12.520
Yeah.

19:12.520 --> 19:34.700
So, the issue here was that, like, even if you force quit your books app, and you rebooted your phone, and you never listen to Fifty Shades of Grey again for, no, I don't know, like, weeks, months, someone could still, you know, just type in books in Spotlight while your phone is still locked,

19:34.700 --> 19:39.780
and resume playback of that pretty spicy content.

19:40.260 --> 19:49.320
And that's, yeah, so Apple did not accept it, because they considered it to be working as intended.

19:49.740 --> 19:51.060
I disagree.

19:51.200 --> 19:53.240
And, you know, I don't know.

19:53.240 --> 19:57.940
I mean, maybe some of you think that's not that bad if, like, your boss hears that.

19:58.420 --> 20:00.880
But, or if your mom hears that.

20:01.440 --> 20:06.520
But it is still reproducible right now.

20:06.520 --> 20:13.780
So, feel free to purchase your own copy of Fifty Shades of Grey in the books app and try it for yourself.

20:15.520 --> 20:20.840
And I should make a note here also for any of you Audible listeners out there.

20:20.840 --> 20:32.440
Audible has a very similar vulnerability and a very similar action shortcut that lets you play back books that you most recently listened to.

20:32.560 --> 20:39.540
It's actually worse, because you can play other stuff, too, that even if it wasn't the last thing you listened to.

20:39.540 --> 20:41.460
So, okay.

20:41.460 --> 20:47.750
And then the next one here is... okay.

20:47.750 --> 20:52.090
So, so this is probably, so can I just ask for a show of hands?

20:52.090 --> 20:54.710
So anyone here use ChatGPT on their phones?

20:56.550 --> 20:57.390
Okay.

20:57.550 --> 20:59.390
Okay, so like half of you.

20:59.910 --> 21:05.990
So, so I don't know what you guys talk about with ChatGPT.

21:06.570 --> 21:11.510
Just some of my friends that I've spoken to, they say, oh, you know, I've used it as like my therapist.

21:12.210 --> 21:15.470
You know, I've used it to, you know, asking like, hey, I need a new car.

21:15.470 --> 21:16.550
What car should I buy?

21:16.930 --> 21:18.810
Or, you know, or I hate my girlfriend.

21:18.810 --> 21:20.210
Like, how do I break up with her?

21:21.270 --> 21:28.430
So, you know, things that are very personal that you wouldn't want people to know about if they got a hold of your phone.

21:29.730 --> 21:39.650
So, so this was discovered, so I discovered this during the iOS 18, the beta period before the general release.

21:40.130 --> 21:44.030
And I'll just show you what happens here.

21:44.030 --> 21:44.450
So, okay.

21:44.450 --> 21:47.950
So I'm just going to create, download ChatGPT.

21:48.310 --> 21:52.130
And I'm going to create a, or sign into a dummy account here.

21:53.050 --> 21:54.370
And,

21:58.420 --> 21:59.880
okay .

21:59.880 --> 22:04.640
And then I'm just going to paste over some sensitive information.

22:05.960 --> 22:06.480
Okay.

22:07.440 --> 22:12.300
So, and then, yeah.

22:12.300 --> 22:13.500
And then you can see here, okay.

22:13.500 --> 22:20.400
So I'm pretending to be someone who wants to get on to social security disability.

22:21.740 --> 22:22.340
Okay.

22:22.340 --> 22:23.780
So, all right.

22:23.780 --> 22:24.200
Okay.

22:24.200 --> 22:27.900
So I do apologize for the poor recording or the poor video quality here.

22:27.900 --> 22:33.020
Because Apple doesn't let you screen record while the phone is, or while your iPad is locked.

22:33.840 --> 22:46.660
But if you see here, so if you just type in ChatGPT while your iPad is locked, and you just type on that action shortcut, I don't know if it's legible, but it was ask ChatGPT.

22:46.660 --> 22:53.660
And then it would prompt you to type in whatever you want to ask ChatGPT.

22:54.680 --> 23:00.300
So if you just say something like, oh, hey, so, okay.

23:00.460 --> 23:01.820
Let's see.

23:02.480 --> 23:17.160
Oh, so it's returning, you know, pretty, I don't know if that's legible, but it's basically returning like biographical data that's stored in ChatGPT, like about that fictitious profile that I signed into.

23:17.460 --> 23:20.700
And then if you ask it, hey, so what did we talk about recently?

23:21.500 --> 23:23.580
You can follow up there.

23:23.900 --> 23:26.460
And yeah

23:37.240 --> 23:37.420
.

23:37.420 --> 23:43.900
So it's exposing the contents of your previous conversations.

23:44.820 --> 23:55.860
So I think it's a good reminder why you should probably not put in super sensitive information into any LLM.

23:56.800 --> 24:09.680
Because, you know, if this hadn't been fixed, and anyone who got a hold of your iPad, your iPhone, while it was still locked could retrieve a ton of information about you.

24:11.620 --> 24:17.600
So with that, let's go ahead and take a look at okay.

24:17.600 --> 24:26.240
So if you just want to explore, so what was going on under the hood for CV202444235.

24:26.580 --> 24:31.760
So basically just I put that spotlight on my lock screen.

24:32.520 --> 24:35.860
As I springboard, the overlay that you see is search UI.

24:35.860 --> 24:37.000
That's the front end.

24:37.000 --> 24:41.180
And that search UI would send a query to search T, which is the daemon.

24:42.440 --> 24:47.900
And so search T would return like a bundle of results, right?

24:47.900 --> 24:51.180
So there are two kinds.

24:51.180 --> 24:53.740
So there are the action shortcuts that we just saw.

24:54.000 --> 24:57.980
Like read current, play current, ask chat GPT.

24:58.380 --> 25:00.440
And then there are also like content hits.

25:00.440 --> 25:05.660
So like photos from your most recently accessed like albums.

25:06.040 --> 25:09.140
Or your most recently typed notes.

25:09.200 --> 25:10.940
Or pages files.

25:14.100 --> 25:19.060
So for action shortcuts, search UI would hand the result over to the springboard launcher.

25:19.280 --> 25:22.740
And that's where the lock screen gate would run.

25:23.280 --> 25:25.980
Internally it's called an SB lock check.

25:27.140 --> 25:36.600
And for some of these actions in the iOS 18 beta, it would just, you know, well, for some of them it would actually prompt you for face ID.

25:36.600 --> 25:40.000
Like Zoom actually implemented it correctly from the beginning.

25:40.000 --> 25:48.280
So if you try to say, hey, like, you know, I want to see like all my meetings for the day, like while your phone is locked, it would say, okay, well, show me your face first.

25:49.280 --> 25:55.740
But as we just saw, for chat GPT, for books, that wasn't being enforced, right?

25:55.780 --> 26:02.160
Because springboard skipped that check and then fired the app intent straight away.

26:02.180 --> 26:05.040
So... okay.

26:05.040 --> 26:05.480
All right.

26:05.480 --> 26:07.880
So I think we're... okay.

26:07.880 --> 26:09.740
So let's go to the next one here.

26:10.140 --> 26:11.580
And okay.

26:11.580 --> 26:17.380
So anyone here ever use like an incognito mode or private mode on Safari?

26:19.120 --> 26:20.000
Okay.

26:21.760 --> 26:22.320
Okay.

26:22.320 --> 26:27.260
I guess like half of you, but I feel like it's probably more than half of you that have used that.

26:28.500 --> 26:32.700
Because so basically, I mean, I'm sure everyone knows what that is, right?

26:32.700 --> 26:42.420
It's just basically if you don't want your browsing history saved or if you don't want your sessions to persist, you open up private mode, right?

26:42.420 --> 26:51.420
So when you're doing your very spicy browsing, and, you know, hopefully, you know, people don't know that, oh, I went to Pornhub.com, right?

26:56.440 --> 26:58.620
And because that's pretty sensitive, right?

26:58.620 --> 27:15.380
Or I think so, you know, you can go to your settings, lock your Safari tabs so that if you, you know, open like your Safari and you try to see your private tabs, it'll prompt for face ID.

27:16.400 --> 27:17.220
And okay.

27:17.220 --> 27:20.580
So if you enable that setting, you might feel pretty comfortable since it's like face ID protected.

27:20.580 --> 27:23.520
No one's going to know what kind of porn I'm watching, whatever, right?

27:24.020 --> 27:29.260
But there was a race condition that I found in shortcuts that... okay.

27:29.260 --> 27:30.640
Let's just see what happens here.

27:33.480 --> 27:34.260
Okay.

27:35.460 --> 27:36.360
Well, okay.

27:36.360 --> 27:38.000
I don't know if you caught that, but let's...

27:39.840 --> 27:42.960
I'll slow it down a little bit here.

27:48.550 --> 27:49.050
Okay.

27:49.050 --> 27:50.590
So those are the regular tabs.

27:51.210 --> 27:57.470
And then we go to the shortcuts app and we're just running a very simple shortcut, create new private tab.

27:57.770 --> 28:04.710
We play it and then... oh, so... yeah.

28:04.710 --> 28:07.210
So the face ID check kicked in a little bit too late.

28:08.610 --> 28:19.170
So in my case, I was just looking at something that's pretty, you know, innocuous on DuckDuckGo, but I'm sure some of you are looking at spicier things that you wouldn't want to expose.

28:19.250 --> 28:22.250
So this was fixed in 18.3.

28:22.250 --> 28:23.230
iOS 18.3.

28:23.230 --> 28:29.830
So if you're on 18.2 or lower, I suggest you update your iOS.

28:31.410 --> 28:32.070
Okay.

28:32.430 --> 28:33.510
All right.

28:34.670 --> 28:35.270
Okay.

28:35.270 --> 28:46.730
I think we're running a little short on time, so I'll skip this, but I'll make sure to update the slide decks, the PDF is available for you if you want to look at it later.

28:49.010 --> 28:52.030
So for... let's see.

28:52.030 --> 28:52.570
Okay.

28:52.570 --> 28:56.470
So your notes are readable on the lock screen, so I'll skip this for now.

28:56.470 --> 28:57.450
And then... okay.

28:57.450 --> 28:59.770
And then let's go back to ChatGPT and see...

28:59.770 --> 29:00.030
okay.

29:00.030 --> 29:07.810
So Apple did... or I'm sorry, OpenAI did fix that action shortcuts vulnerability that I showed you earlier where you can ask ChatGPT, like, hey, like, what did we talk about?

29:08.150 --> 29:09.470
Or who am I?

29:10.670 --> 29:23.490
But there was another separate issue that was actually Apple's fault that would let me like find out, like, what you were talking about with ChatGPT, if that was the last app that you had open.

29:24.030 --> 29:26.770
And let's go ahead and see how that works.

29:27.910 --> 29:28.430
So...

29:33.260 --> 29:36.240
Hey, Siri, add this page to reminders.

29:37.660 --> 29:38.420
Okay.

29:38.420 --> 29:43.680
I've added why Lexapro might not work and alternatives for Dysthymia to the urgent list.

29:44.260 --> 29:44.520
Yeah.

29:44.520 --> 29:48.340
So if you can see, you know, that lock icon is present throughout.

29:48.380 --> 29:50.460
So it's still locked.

29:50.600 --> 29:53.940
You can get the URL for that ChatGPT conversation.

29:53.940 --> 29:55.100
You can get the title.

29:56.880 --> 30:01.520
So, you know, if you're asking about, you know, like, hey, how do I break up with my girlfriend?

30:03.420 --> 30:05.620
Like, and your girlfriend's looking at your phone.

30:05.620 --> 30:08.540
It's probably not something you would wonder to be able to do.

30:12.510 --> 30:13.630
And okay.

30:13.630 --> 30:16.750
But it didn't affect just ChatGPT, but also Safari.

30:16.750 --> 30:18.530
So if you're looking at here, so okay.

30:18.530 --> 30:19.950
So I'm checking out DEF CON.

30:21.710 --> 30:23.090
I locked my phone.

30:23.470 --> 30:26.290
Hey, Siri, add this webpage to my reminders.

30:28.710 --> 30:29.590
Okay.

30:29.810 --> 30:30.750
So yeah.

30:30.750 --> 30:35.850
Leaking the last thing I accessed in Safari through the reminders app.

30:40.170 --> 30:40.770
Okay.

30:40.770 --> 30:42.510
So okay.

30:42.510 --> 30:46.650
So I have the full chart here for how it worked under the hood.

30:46.870 --> 30:52.430
I think since we're running a little bit short on time, I will yeah.

30:52.430 --> 30:54.390
If you guys have questions, you can email me later.

30:54.890 --> 30:56.150
And then okay.

30:56.150 --> 31:02.810
And then this is the interesting one where you could spoof emails in the contact app.

31:02.910 --> 31:11.230
So if you don't know, you can set up your own contacts card and you could, you know, you can say, hey, like, this is my phone number.

31:11.230 --> 31:12.690
This is my email address.

31:12.690 --> 31:15.630
And like, I'll just show you how this works here.

31:15.770 --> 31:16.590
Okay.

31:17.590 --> 31:18.430
So okay.

31:18.430 --> 31:27.070
So looks like that email is going to that testahunter at gmail.com, right?

31:29.030 --> 31:29.610
Okay.

31:29.610 --> 31:31.490
So let's go ahead and send that email.

31:34.570 --> 31:36.810
And let's see where it ends up going.

31:39.690 --> 31:40.250
Okay.

31:40.250 --> 31:43.450
And then let's try for that Yahoo one as well.

31:44.710 --> 31:47.930
And we're going to refresh our sent folder.

31:49.530 --> 31:51.230
And let's see where it went.

31:51.230 --> 31:55.390
Oh, that's weird.

31:55.390 --> 31:59.770
That's not the email that showed up a second ago.

32:04.110 --> 32:04.710
Yeah.

32:04.710 --> 32:12.110
So how did you so how was I able to spoof these emails in the contacts app?

32:12.130 --> 32:12.630
Okay.

32:12.630 --> 32:14.130
So just really quick here.

32:14.130 --> 32:19.490
So RFC5322, that's the email addressing standard.

32:19.970 --> 32:21.490
And I'm sure you're all familiar with this, right?

32:21.490 --> 32:24.790
So you can just type in someone.

32:24.790 --> 32:36.270
So if you're sending email to someone in the two line, you can just put email address comma email address or you can do the name and then put their email address in angle brackets.

32:39.420 --> 32:42.220
But you can also ‑‑

32:47.620 --> 32:48.560
okay .

32:48.560 --> 32:49.160
Sorry.

32:49.260 --> 32:51.040
I think there was a slide that was deleted.

32:51.040 --> 32:51.280
But okay.

32:51.280 --> 32:51.640
It's okay.

32:51.640 --> 32:51.960
Yeah.

32:51.960 --> 32:59.060
So the way I found this was ‑‑ okay.

32:59.060 --> 33:03.920
So I noticed like something very strange that would happen in the contacts app.

33:03.920 --> 33:06.280
If you had a really long email address.

33:06.280 --> 33:18.660
So if you had something like, you know, like, Harry Potter likes long email address at Hogwarts.edu, it would truncate that email address and it would cut it off and just add, like, dot, dot, dot.

33:19.680 --> 33:21.380
So I thought, okay, that's kind of interesting.

33:23.500 --> 33:29.880
So if we recall that RFE5322 that I just mentioned a moment ago.

33:31.880 --> 33:39.740
So, you know, if, like, Voldemort, right, like, hijacked, like, Harry's phone and decided, like, just going to screw around with him, edited his work email.

33:39.740 --> 33:44.040
And what would happen if you just added a ton of white spaces, right?

33:44.120 --> 33:49.520
And so those blue Xs that you see, okay, those are just white spaces, right?

33:49.520 --> 34:12.480
And I know some, okay, so I think what Apple was thinking was that, so if you try to type an email in that, if you try to type, like, angle brackets in that email field, you'll notice, like, in the keyboard, like, you can't type in that less than sign or greater than sign.

34:12.480 --> 34:23.080
But I don't think they accounted for the fact that you can copy and paste from, if you type it somewhere else, you can copy and paste it over.

34:23.200 --> 34:50.620
And you can see here why that would be a problem since, okay, so if you tap on that email and you say, oh, so you think that you're sending it to, administryofmagic.co.uk, but, yeah, but as you know from RFC 5322, it's what's in the angle brackets that counts as,

34:50.620 --> 34:54.300
like, that's what's the actual recipient email.

34:54.760 --> 34:59.760
So it's actually going to VoldemortSlytherin.win, right?

34:59.960 --> 35:20.420
And if we get that sent, oh, so, yes, so Microsoft Outlook had the exact same issue that wasn't fixed when Apple patched it because, you know, Microsoft does things, you know, in a Microsoft way, Microsoft way.

35:21.000 --> 35:24.240
They did fix it in, like, two months ago.

35:24.960 --> 35:34.620
But basically what would happen is that if you, okay, yeah, so why was Outlook worse than Apple Mail?

35:34.620 --> 35:41.100
And it's because, okay, so at least with Apple, like, if you refresh your sent folder, you would know, like, oh, man, I got screwed, right?

35:41.100 --> 35:44.460
Like, I sent it to someone I didn't mean to send it to.

35:45.460 --> 35:48.680
But, you know, Microsoft would just, like, kind of gaslight you, right?

35:48.680 --> 35:50.740
And be like, no, no, no, no, you actually sent it to Harry, right?

35:50.740 --> 35:51.520
Like, you're okay.

35:52.600 --> 35:53.720
Oh, I'm sorry, okay.

35:54.120 --> 36:04.400
Yeah, so let's say, like, so you would actually have to tap into that email and then tap on that email to realize that, oh, it actually got sent to Voldemort, right?

36:05.220 --> 36:24.560
And so what was happening here is that, like, the email address, the first email address was being treated as the name, and then it was the second email, like, within the angle brackets that was counted as the actual recipient address.

36:26.160 --> 36:32.020
Okay, so I think we're running a little bit short on time.

36:32.120 --> 36:33.620
So let's, okay.

36:34.060 --> 36:41.580
So just long story short here is that, you know, you can do a lot of, you know, neat tricks just, you know, playing around with view the code characters.

36:41.580 --> 36:48.660
One really powerful one is the RTLO, that's the right to left override character.

36:49.020 --> 36:51.200
And you can spoof files with that.

36:51.380 --> 37:07.240
So if we take a look here, so, you know, you can make someone think, oh, it's a, you know, you have a PDF file here, because you can rename files, right, within your files app.

37:07.520 --> 37:19.280
But Apple, I think they assumed that, oh, because if you hit the return key after you rename a file, like, instead of adding a line break, it'll just save it as the renamed file.

37:19.680 --> 37:26.660
So, you know, I guess they thought that, like, there's no way to add, like, a line break when you're renaming a file.

37:26.660 --> 37:33.820
But same thing as, you know, with the contacts app, when, you know, you can, like, type in the angle brackets directly.

37:34.080 --> 37:36.780
You can copy and paste it from a different app.

37:36.780 --> 37:38.480
So you can add that line break there.

37:38.480 --> 37:49.960
And then you can, so you can spoof a file by saying, okay, so Pikachu.PDF and then enter, and then you can have the actual extension below that.

37:49.960 --> 37:54.340
And I have that RTLO character embedded down there.

37:54.340 --> 38:01.220
And then if we take a look at this, okay, so this looks like, okay, so I'm just going to play this here.

38:01.220 --> 38:07.460
And then, so, okay, so, yeah, it should be showing me all the file name extensions.

38:07.620 --> 38:08.960
Oh, okay.

38:08.960 --> 38:11.620
That's not typical PDF behavior.

38:12.980 --> 38:15.560
So what happened there?

38:15.560 --> 38:20.900
It's, there was actually a mobile config with the RTLO.

38:23.120 --> 38:43.640
And this was also a problem in the, so if you add, like, if you add links in the notes app, so I'll show you this here, with the RTLO, it'll show you one, if you try to preview, like, what number you're about to call, it'll show you one number, right?

38:43.640 --> 38:45.080
So let's take a look here.

38:45.480 --> 38:52.460
Okay, so, so see, it says, like, oh, okay, so you're about to call, you know, 3210-555-0081.

38:53.120 --> 38:56.380
But then if you actually make the call,

39:03.120 --> 39:06.060
yeah , it's calling the 1-800 number, right?

39:06.060 --> 39:15.620
So, so RTLO, you can use that to, to, to spoof, like, phone numbers.

39:16.860 --> 39:25.860
And you can see here that, okay, so this, I think we're a little bit short on time, so I'm going to skip this here.

39:26.280 --> 39:33.720
Okay, so that's the, so the last thing I would want to cover here is the Apple Intelligence vulnerability that I found a few months ago.

39:34.620 --> 39:37.120
So everyone knows what Apple Intelligence is, right?

39:37.120 --> 39:47.020
And so basically, you know, when you make an Apple Intelligence request through Siri, you know, Siri will pick, okay, should it be processed on the device?

39:47.240 --> 39:49.140
Should it be processed, like, in the cloud?

39:49.140 --> 39:50.480
So that's through PCC.

39:50.840 --> 39:53.240
Or should it be piped to ChatGPT?

39:53.240 --> 40:00.320
So that's if you have the ChatGPT app installed and you have that extension enabled in your settings.

40:02.700 --> 40:06.740
And now, so Apple Intelligence, you know, you can, so there are, so there are, like, two modes, right?

40:06.740 --> 40:11.780
So, like, one is, like, if you ask, like, hey, like, what's the, like, I don't know, like, what's the weather today, right?

40:11.780 --> 40:17.460
That will be treated as, like, a generative assistant query, right?

40:17.460 --> 40:28.620
Whereas if you open up your notes app and you ask it to, like, rewrite something, that will be that writing tools.compose mode.

40:29.600 --> 40:49.820
So I was kind of curious to see if, like, is there a way to maybe, like, blur these two modes or to, like, confuse Siri into, like, treating it as, like, both a generative assistant and a writing tools compose request?

40:49.820 --> 41:07.660
So what I did was I just put here, okay, so I have that little text there selected, and then I just typed in the same thing, so chat GPT, so pipe all these preceding strings to a text code block, and then let's see what happens here.

41:16.380 --> 41:18.060
Oh, oh, that's not good.

41:18.640 --> 41:20.600
That's PCC data right there.

41:21.740 --> 41:25.000
Oh, and then it's also leaking, like, by old prompts.

41:25.240 --> 41:49.490
And yeah, so yeah, so Apple did fix this in the iOS 18.4, but, you know, long story short, you know, your previous Apple intelligence request would have been cached by Siri, and it was possible to leak them using Siri.

41:50.930 --> 41:58.130
And yeah, so you can see there, there's proof of that right there, and then I think we're out of time, right?

41:59.050 --> 42:00.550
Oh, five minutes, okay, okay.

42:00.830 --> 42:18.210
So yeah, so that's proof of, like, that PCC data being sent over to chat GPT, and then I think we can skip this for now, and then I'll just cover the last big one here.

42:21.010 --> 42:33.010
Okay, yeah, so if you own an Apple device, and, you know, if you have AppleCare, or if you dropped your phone, or whatever, and you ever went to the Genius Bar to get your phone fixed, this might apply to you.

42:33.530 --> 42:35.950
So I'll just show you what can happen here.

42:35.950 --> 42:56.670
So I have Burp Suite open here, so if you go to getsupport.apple.com, there are, and if you want to access the details of any support ticket, all you have to do is provide your ticket ID number and your last name, and so Apple told me that, like, oh, we don't consider this to be,

42:56.670 --> 43:10.670
like, a real IDOR, because you have to know the last name to pull up the support ticket information, but if your last name is Smith, right, or Johnson, or Brown, Jones, Williams, right, I mean, you're screwed, right?

43:11.170 --> 43:13.110
I mean, I'm probably safe, right?

43:14.470 --> 43:26.090
And because the way Apple was assigning the ticket ID numbers is, you know, it would just increment upwards by one, so it was possible to, you know, so I'm just picking on Smith here.

43:26.390 --> 43:38.450
It's possible to brute force, you know, these tickets and to see, like, oh, let's see if any of these, you know, end up being a match.

43:39.010 --> 43:51.230
So I don't know if it's clear on the screen on there, but there will be one there that will return, like, a 200 result, so I would be able to access that ticket.

43:51.230 --> 43:54.770
I would be able to see the details of, you know, whatever that support request was.

43:56.130 --> 43:59.310
And okay.

43:59.310 --> 43:59.610
Okay.

43:59.610 --> 44:13.550
So just the takeaways for this talk that I want to just leave you with is that, you know, I think high trust components all deserve scrutiny, and face ID is not foolproof, especially if those trust boundaries aren't being enforced.

44:14.210 --> 44:18.770
Intents and daemon handoffs are often under-audited.

44:19.430 --> 44:21.730
Take a look at Unicode white space.

44:21.730 --> 44:24.370
It's a massively under-explored attack surface.

44:25.910 --> 44:37.390
Look for logic bugs in normal behavior that people don't test for, and, yeah, just, like, new iOS releases, beta versions, they're ripe for testing.

44:37.490 --> 44:39.130
So okay.

44:39.130 --> 44:42.170
So I'd be happy to, yeah, meet all of you out in the hallway.

44:42.170 --> 44:50.330
If you have any questions or if you want to stay in touch, feel free to email me or add me on LinkedIn or whatever.

44:50.390 --> 44:56.530
I'll upload the POCs to that GitHub repo later this week.

44:57.110 --> 44:59.570
And, yeah, just, yeah, thank you so much for coming to my talk.

44:59.570 --> 45:00.590
It was my first one.

45:00.590 --> 45:03.270
So, yeah, it was really great to have all of you.

45:03.270 --> 45:04.150
So thank you very much.

45:04.150 --> 45:04.610
All right.

