WEBVTT

00:00.000 --> 00:03.820
Good afternoon, everyone, and thank you very much for coming here today.

00:04.180 --> 00:10.140
Before I dive into today's topic, I want to start with a quick show of friends.

00:10.340 --> 00:12.240
So, let's start.

00:12.480 --> 00:16.640
How many of you here in the audience own an Apple device?

00:18.220 --> 00:26.220
Wow, that was a very stupid question, because we all know how Apple controlled the large share of market.

00:26.420 --> 00:29.440
So let me ask you a much more specific question.

00:29.440 --> 00:32.700
How many of you use Siri?

00:32.780 --> 00:35.500
Sorry, I did not quite get that.

00:37.000 --> 00:47.400
So I think it's a very good moment that everybody here who uses Siri will turn off their iPhone, or at least disable Siri, because Siri will pop up a lot in this talk.

00:47.800 --> 00:52.420
But, you know, Siri is a kind of an old technology.

00:52.420 --> 00:56.660
Like, we have much better, much sophisticated technology today.

00:56.660 --> 01:02.040
So by saying that, how many of you here know or use Apple Intelligence?

01:03.980 --> 01:04.880
Okay.

01:05.220 --> 01:12.140
So for everybody here who don't really know what is Apple Intelligence, it's the new AI buzzword of Apple in the last year.

01:12.140 --> 01:18.560
Since they launched it last September, emphasizing productivity, but keeps our data safe.

01:18.620 --> 01:27.540
And with that, they launched many new apps, AI apps, that's supposed to enhance the productivity, like image tools, writing tools.

01:27.540 --> 01:32.120
Even Siri is much more powerful with the capabilities of Apple Intelligence.

01:32.380 --> 01:39.020
In fact, this entire research began when one day I had the weirdest interaction with Siri.

01:39.640 --> 01:48.140
I was in the office, and I was working on my Notion, you know, the documentation app where we store all of our organizational files.

01:48.140 --> 01:57.240
And after a while working on Notion, I went up to a different app, and another app, and then I initiated a connection with Siri.

01:57.240 --> 02:09.680
I asked it a question, and I was very much surprised to see in the response that Siri was referencing a title of a document from my Notion.

02:09.980 --> 02:11.760
A classified one.

02:11.760 --> 02:18.240
And I started wondering to myself, was that happen on my device?

02:18.440 --> 02:21.200
How exactly Siri has access to my Notion?

02:21.580 --> 02:27.900
And I start wondering, I might have shared personal information with Apple servers.

02:28.440 --> 02:30.820
Do you want to know the answers to this question?

02:30.820 --> 02:32.600
Stay up for the rest of the talk.

02:32.640 --> 02:34.680
So, it's very nice to meet you, everyone.

02:34.680 --> 02:37.860
My name is Yoav Magid, I'm 25 years old.

02:37.860 --> 02:44.500
I'm an H200 alumni, and today I work as a team leader and an AI security researcher at Lumia.

02:44.860 --> 02:55.800
And I came here today to talk about the privacy concerns that come with Apple Intelligence and the entire AI ecosystem of Apple.

02:55.800 --> 03:00.720
But before we dive in, I want one thing you to remember while we talk.

03:01.040 --> 03:07.360
This privacy risk we're going to talk about is just one example in Apple Intelligence and Siri.

03:07.360 --> 03:08.620
They exist everywhere.

03:08.620 --> 03:10.840
In every AI app we use today.

03:10.840 --> 03:15.540
Whatever it's on the browser, on our desktop, or even in the operating system.

03:15.540 --> 03:16.800
So remember that.

03:16.960 --> 03:20.040
So with no further ado, let's talk about our agenda.

03:20.220 --> 03:23.680
We're going to first talk a bit, what is Apple Intelligence?

03:23.940 --> 03:26.160
How it operates in the background?

03:26.160 --> 03:27.340
What is it doing?

03:27.800 --> 03:32.980
And later we're going to talk about what kind of privacy risk am I talking about?

03:32.980 --> 03:37.000
And what exactly I've done to fight it.

03:37.000 --> 03:43.400
And we'll see some demos of Siri, writing tools, and many Apple Intelligence features.

03:43.400 --> 03:46.460
And we're going to see how it interacts with our data.

03:46.500 --> 03:54.880
And in the end we're going to talk about a few mitigations and ways to minimize the risk of these issues.

03:55.160 --> 03:58.200
So let's talk first about Apple Intelligence.

03:58.200 --> 04:06.000
Like I said in the beginning, Apple came with the motto of enhanced productivity while keeping our data safe.

04:06.000 --> 04:07.860
How are they doing that?

04:07.860 --> 04:12.620
By simply defining in their AI ecosystem two groups of models.

04:12.620 --> 04:17.400
The first group would be models that run on the user device.

04:17.400 --> 04:18.700
The on-device models.

04:18.700 --> 04:27.240
Text models, image models, that run completely on our iPhone or our laptops without the need for any network communication.

04:27.700 --> 04:29.940
But you know, for some tasks, it's not enough.

04:29.940 --> 04:33.380
We don't have enough computational power on our small devices.

04:33.380 --> 04:43.620
So in these cases, Apple Intelligence uses some cloud models, or how Apple likes to call them, their private cloud compute.

04:44.000 --> 04:50.840
A sealed privacy bubble with models that no Apple employee has access to it, and they never store our data there.

04:50.980 --> 04:55.580
And together, they give us many new experiences like we said before.

04:56.240 --> 04:59.100
So how exactly are they working together?

04:59.100 --> 05:15.320
So according to their privacy policy, when a user initiates some task with every app in the AI ecosystem, a model that runs on the user device decides if this task can be fulfilled locally, or we need to leverage a larger model from the cloud.

05:15.320 --> 05:22.580
And in these cases, Apple Intelligence is going to send only the relevant data to their private cloud compute.

05:23.040 --> 05:24.820
But is that all?

05:25.360 --> 05:26.700
So, not exactly.

05:26.700 --> 05:28.080
It's part of it.

05:28.080 --> 05:31.080
In the AI ecosystem, there are a few more infrastructures.

05:31.080 --> 05:37.340
The first one is the private cloud compute, but Apple has another two infrastructures.

05:37.460 --> 05:42.980
The first one is Siri infrastructure, which contains two main servers.

05:43.040 --> 05:47.760
The first one is gazuni.apple.com, the dictation server.

05:47.760 --> 05:53.020
Fun fact, Gazuni is the original chief officer of Siri.

05:53.020 --> 05:55.000
I wonder how all this infrastructure.

05:55.860 --> 05:58.700
And they use it for dictation requests.

05:58.760 --> 06:06.460
I'm not sure how exactly, because for the last few years, dictation happens on the user device without the need for network communication.

06:06.580 --> 06:07.980
So remember that.

06:08.340 --> 06:11.860
The second server is their search services.

06:11.860 --> 06:18.460
Whenever we want to look for something online or around the Apple ecosystem, they use their search services.

06:19.300 --> 06:21.980
This is the second infrastructure we talk about.

06:21.980 --> 06:26.780
The third one will be about Apple intelligence extensions.

06:26.780 --> 06:28.360
For example, chat GPT.

06:28.360 --> 06:31.200
They communicate with their extension services.

06:31.680 --> 06:37.180
So by seeing that on the Apple website, I started looking about the servers.

06:37.220 --> 06:39.140
I couldn't find a lot about them.

06:39.160 --> 06:54.440
Fun fact I did find was when I searched about the search services, many forums online mentioned that people thought it was a spyware and that it's an Apple service that spies on every keystroke we enter on our keyboard.

06:54.720 --> 06:58.740
It was really funny, but I'm pretty sure it's not a spyware.

06:58.740 --> 07:00.320
It's just a search services.

07:01.020 --> 07:06.300
So now we know how exactly it operates in the background, which servers operate.

07:06.540 --> 07:10.580
Let's talk about what are the risks here in this infrastructure.

07:10.700 --> 07:13.920
In this talk, I'm going to answer two main questions.

07:13.920 --> 07:21.480
The first one will be which features in the entire ecosystem works on the user device.

07:21.480 --> 07:26.880
And which of them go to their private cloud compute or any Apple servers.

07:26.960 --> 07:33.200
And when we go online, which data we share with Apple servers.

07:33.560 --> 07:43.260
How I'm going to do that, I'm going to inspect every communication between Siri, the writing tools, image playground, and all the features to their servers.

07:43.260 --> 07:46.460
But it's not as easy as it sounds.

07:47.040 --> 07:52.020
To be more precisely, Apple use two main ways to communicate.

07:52.100 --> 07:57.560
The first one will be for the Siri services, like the dictation and the search.

07:57.700 --> 08:03.460
Which they use HTTPS connection for that, so it appears to be really easy.

08:03.560 --> 08:12.400
But their cloud services, their cloud models, their private cloud computes, use quick connections, which is part of HTTP3.

08:12.400 --> 08:16.820
And it's much more harder to intercept and to analyze that.

08:16.960 --> 08:27.820
But luckily, Apple gave us a lot of logs on our devices that we can scan for every packet that goes to the private cloud compute.

08:27.820 --> 08:33.520
So just by going to that settings, we can look on every information we sent.

08:33.520 --> 08:34.840
So it's nice.

08:34.840 --> 08:40.240
So about writing tools and image playground, we covered and we can just go over it.

08:40.240 --> 08:46.180
But in Siri, it became much more sophisticated.

08:47.000 --> 08:51.760
The first server was the search services, which was kind of easy.

08:51.760 --> 08:55.640
It was just a basic HTTP request with protobuf.

08:55.640 --> 09:09.280
I don't have the original protobuf that Apple used for this request, but I can use every GitHub tool that does decoding for protobuf and I can do best effort to see what kind of data is being sent.

09:09.280 --> 09:11.000
So that was an easy one.

09:11.100 --> 09:15.480
But for the dictation server, it was much more harder.

09:15.480 --> 09:18.320
Because I couldn't see any traffic.

09:18.320 --> 09:25.680
I opened Wireshark, I see there is a TLS request and DNS request, but I couldn't see any content.

09:26.340 --> 09:36.100
So I went deeper and I found that Apple used many security layer for their dictation communication.

09:36.100 --> 09:39.370
The first one was SSL, which every app uses today.

09:39.680 --> 09:52.440
But they also use certificate pinning mechanism in order to prevent researchers like me and enterprises from scanning their network and nobody can scan this data.

09:52.580 --> 10:00.980
So I worked very hard in the last few months to break Apple intelligence certificate pinning mechanism.

10:00.980 --> 10:02.900
It wasn't that easy.

10:02.900 --> 10:07.980
So when I started that, I said, okay, I cannot just use any network solution.

10:07.980 --> 10:13.040
I can use like Meet and Proxy or other proxy servers to just intercept the traffic.

10:13.140 --> 10:16.500
But I cannot break the pinning from the network.

10:16.500 --> 10:20.640
If I will be able, that was a different talk, believe me.

10:21.200 --> 10:24.140
So I used a different solution to break the pinning.

10:24.140 --> 10:28.520
I used Frida script in order to break the pinning on my device.

10:28.520 --> 10:33.480
So later I can scan this with Meet and Proxy to see all the communications.

10:34.040 --> 10:42.560
So I started using Frida, but that wasn't that easy in the beginning because at the first moment I saw that Frida failed.

10:42.560 --> 10:46.540
It cannot hook any function in Siri.

10:46.540 --> 10:54.760
So I went deeper and then I'm not that familiar with Mac and then I found out they use SIP mechanism.

10:54.760 --> 11:05.040
System Integrity Protection Services that prevents me from every manipulation of Apple's processes, including Siri, unfortunately.

11:05.260 --> 11:13.320
But thank you to Apple, they uploaded a manual to their website how to disable the SIP mechanism.

11:13.320 --> 11:15.580
So it was very, very easy.

11:15.580 --> 11:25.880
So after I disabled the SIP mechanism, I said, okay, let's now upload Frida and we can see how I can hook Siri functions.

11:26.420 --> 11:31.240
So I started with breaking their certificate pinning mechanism.

11:31.240 --> 11:36.780
In the beginning it was very much easy, like it was familiar to their previous versions of Mac OS.

11:36.780 --> 11:42.860
They use a fork of boring SSL operated by Google, but they've done a few changes.

11:42.860 --> 11:54.520
So I can just go to the main function of set custom verify and just replace the value that performs the SSL check just to bypass it.

11:54.520 --> 11:58.340
And then I will be able to intercept all the traffic.

11:58.780 --> 12:00.740
But that wasn't enough.

12:00.740 --> 12:03.840
Like I said, they changed the original library.

12:03.840 --> 12:13.000
So I went through many of their symbols, many of their functions, and I managed to see another function that is called set verify mode, which looks very familiar.

12:13.260 --> 12:19.060
And when I hooked that function, I then managed to see some traffic.

12:19.220 --> 12:25.400
I opened my proxy and I could see a request being made to the dictation server.

12:25.620 --> 12:28.340
But I must say I was very confused at that moment.

12:28.340 --> 12:31.580
I thought maybe I didn't break the pinning properly.

12:31.580 --> 12:41.320
Because I saw here that the content length is so high, very high, and that they use method that does not exist.

12:41.320 --> 12:45.940
I want to believe that I'm familiar with HTTP method, but I don't know ACE method.

12:46.160 --> 12:53.920
So it seems like Apple developed their own HTTP stack with their own methods, headers, and parsing mechanism.

12:53.940 --> 13:00.760
And that's why Meet and Proxy and other proxy servers could not intercept that traffic besides the pinning part.

13:00.760 --> 13:06.940
Like after that, I used Burpsuit or Fiddler and none of them could parse this traffic.

13:06.940 --> 13:11.300
The app just crashed when the packet arrived to their software.

13:11.800 --> 13:18.640
Also Meet and Proxy, it said, okay, the current content length is different from the actual one.

13:18.980 --> 13:24.980
So I thought a lot what I'm going to do, and then I decided, okay, Meet and Proxy is open source.

13:24.980 --> 13:29.000
I can just go inside the code and add another functionality.

13:29.000 --> 13:35.580
My colleagues thought I'm crazy because I won't be able to just go to the code and just add functionality.

13:36.300 --> 13:37.740
So I did it.

13:37.840 --> 13:44.620
And now every time they have a joke about me that they have proxy issues, they reach out to me first to solve these issues.

13:45.220 --> 13:53.620
So I went to the proxy code, and quickly, actually, I found the code that's responsible to calculating the content length.

13:53.620 --> 14:08.040
So I added another case about Siri communication that if the content length is the length I saw inside the communication, just read until the end of the stream so I'll be able to see all the traffic.

14:08.500 --> 14:16.560
And from that moment, I was able to see the content of the traffic that being gone to Apple dictation server.

14:17.020 --> 14:29.900
But it was still hard to understand what is being sent because it was a binary protocol and, like I said, it's their own HTTP stack, and there was a lot of work about decrypting their protocols.

14:30.140 --> 14:47.140
It started by they had a very weird signature over their traffic, and then they used many encoding algorithms like Zlib, so I had to decode all this, and later I was needed to decode some formats, Apple formats.

14:47.140 --> 14:53.040
Most of them were really easy, like plist, which is a very known format of Apple, and also their keep-alive was very easy.

14:53.040 --> 14:54.700
It was just a counter.

14:55.580 --> 15:01.420
But, you know, it was a long process just to see exactly what's going on in their communication.

15:01.660 --> 15:05.200
Like, come on, Apple, how many layers of encoding are you hiding there?

15:06.260 --> 15:14.100
But after all of that, it was a pretty long way, both on Siri dictation server and the search services.

15:14.700 --> 15:28.820
After decoding all that, we managed to create a tool that can bypass all of this, all of what I mentioned here, and we actually uploaded to GitHub and to the DEF CON website, so after this talk, you're more than welcome to see the tool.

15:28.820 --> 15:37.320
We added an extension to Meet and Proxy that can parse and break the pinning in macOS Sequoia.

15:37.320 --> 15:45.560
So now when we know how they exactly operate and we parse all the communication, let's see what they hide there.

15:46.000 --> 15:57.000
So we go now over a few scenarios with all the Apple's AI products, but before that, I want to define some baseline for the rest of the talk.

15:57.680 --> 16:03.300
These screens might look familiar to you because in the last few months, they were all over the media.

16:03.300 --> 16:12.880
People saw that by default, when you agree to Apple Intelligence or Siri, you agree by default for them to learn from all of your experience.

16:13.020 --> 16:17.320
I recommend everybody just now go to their settings and disable all the apps.

16:17.720 --> 16:24.240
But in the beginning of the research, I disabled everything because I don't want Apple to learn from my experience.

16:24.360 --> 16:32.300
So I assume that in all the transmission that I'm going to see, there's not going to be any extra information that is not related to my request.

16:33.000 --> 16:36.940
So by saying that, let's go for our first scenario.

16:37.000 --> 16:43.160
Siri, our old love assistant, which is now even more powerful with the capabilities of Apple Intelligence.

16:43.240 --> 16:49.220
Like their new feature they added with Apple Intelligence was the fact we no longer need to use voice activation.

16:49.220 --> 16:50.740
I can just type to Siri.

16:50.900 --> 16:52.940
And believe me, that saves me a lot.

16:52.940 --> 17:01.880
Many times I was with some friends and for random, Siri just popped up and said, OK, I'm setting up an alarm for 6 a.m.

17:01.920 --> 17:05.900
So now I don't need to hear that every time because I can just type to Siri.

17:06.440 --> 17:09.420
But I got curious what actually changed.

17:09.420 --> 17:16.780
So I started composing many prompts to see what exactly triggered the network communication we saw on the website.

17:16.780 --> 17:25.800
And all simple prompts like hello or what can you do, how are you today, there were no any network communication.

17:25.800 --> 17:28.740
All of that was computed locally.

17:28.960 --> 17:33.960
So I had to compose a prompt, a prompt that I know will definitely go online.

17:34.120 --> 17:36.480
A prompt that started AppleStorm.

17:37.040 --> 17:45.880
There is no model in the world that can know what is the weather today without invoking some tool or call to an API.

17:45.880 --> 17:49.880
So I asked Siri, what is the weather today in Las Vegas?

17:50.240 --> 17:57.480
And besides the answer that it's very hot today, I saw many information that I was not expecting that.

17:57.580 --> 17:59.620
So let's go over the communication.

17:59.980 --> 18:06.620
I started with this prompt and I can see a request is being made to the search services with my prompt.

18:06.620 --> 18:08.000
OK, makes sense.

18:08.000 --> 18:09.300
We start with that.

18:09.560 --> 18:15.540
I go deeper, scroll down, and I see my exact location.

18:15.540 --> 18:19.720
And I start wondering to myself, OK, that makes sense.

18:19.820 --> 18:29.840
Like, I ask a question about the weather, they want to give me the best experience to improve my experience, as they call it, and that's why they send it.

18:30.700 --> 18:33.120
But that's not the issue.

18:33.580 --> 18:37.900
They send our location every time we ask Siri a question.

18:38.040 --> 18:50.860
Even if you ask how much is 1 plus 1, Besides the fun fact that they need network communication to answer a very simple question like how much is 1 plus 1, they also send your location every time.

18:50.920 --> 18:55.300
But at least they give us control over it.

18:55.300 --> 19:00.480
We can go to the settings, we can disable Siri from sending our location.

19:00.480 --> 19:03.120
They actually separate it to two different settings.

19:03.120 --> 19:10.320
Not very much user experience, but at least after I disabled that, I couldn't find the location in the traffic again.

19:10.320 --> 19:11.420
So, good job.

19:11.740 --> 19:16.780
So I went much more deeper in the frame and see what other information they sent about us.

19:17.360 --> 19:22.080
I saw the name of the weather app being sent to Apple's server.

19:22.080 --> 19:29.960
And I was like, OK, also makes sense, because I was asking a question about the weather, and maybe Siri and the weather app communicate with each other.

19:30.320 --> 19:32.140
So, that would make sense.

19:32.140 --> 19:43.340
I went to the next app, and I saw that beneath the weather app, there is another app with random letters that I couldn't recognize.

19:43.740 --> 19:46.740
But I did recognize the name Parallels.

19:46.740 --> 19:54.420
For everyone who doesn't know, Parallels is a virtual machine manager that I had installed on my device when I made that request.

19:54.420 --> 20:02.680
And I went into my virtual machine, it was a Windows one, and there was a weather app inside the machine.

20:02.740 --> 20:08.460
The name of the weather app was exactly the same I saw inside the communication of Siri.

20:08.900 --> 20:20.220
So, they basically went over all of my apps on my device, including virtual machines, which is very intrusive, and they searched for every weather app I had installed.

20:20.220 --> 20:23.740
Was that happen just because I asked about the weather?

20:24.960 --> 20:29.780
It happens whenever you ask every type of topic.

20:29.860 --> 20:37.920
Siri performs a topic modeling on our device, and by that topic, it decides which app it's going to search on our device.

20:37.920 --> 20:45.060
You can ask about mails, and it will look for every email client you have, or media players, and even coding.

20:45.060 --> 20:51.180
And, in fact, that's not all of the apps that they query for my device.

20:51.620 --> 20:57.000
I saw another request being made to the dictation server, remember, with the certificate pinning.

20:57.100 --> 21:02.520
And I saw all of my active apps being sent to Apple servers.

21:02.860 --> 21:06.660
At that moment, Slack was open, Finder, and Notion.

21:06.940 --> 21:11.600
Again, I'm not sure what is the purpose of that server, and why they're sending all my active apps.

21:11.600 --> 21:13.280
But, it's being sent.

21:13.280 --> 21:21.560
So, by now, we saw many, many info being sent that is not related to my very simple question about the weather.

21:21.800 --> 21:28.440
So, I'm sure that the next part I'm going to look for will be definitely related to my weather question.

21:31.420 --> 21:37.580
I must say, I was very confused to see information about Taylor Swift goes to Apple servers.

21:38.080 --> 21:40.680
I was very confused at that moment.

21:40.680 --> 21:52.840
And, after a while, I looked over my browser, and inside one of the many, many tabs that were open, there was a YouTube tab that was playing that exact song.

21:53.320 --> 21:59.120
And I was like, okay, Siri sent what it was playing on my device.

21:59.320 --> 22:03.340
Does that happen all the time, or just with the browser?

22:03.340 --> 22:12.080
In fact, every time that we play something on our device, it goes to the Now Playing Queue, both on iOS and macOS.

22:12.400 --> 22:19.580
And Siri, when we communicate with it, it sends all the metadata about the Now Playing Queue to their servers.

22:19.580 --> 22:32.720
You can listen to a song on YouTube, or maybe a private recording on your device, and the name of the recording, another metadata like the creator, the size, all of that is being sent to Apple servers.

22:33.440 --> 22:36.260
Remember the demo from the beginning of the talk?

22:36.260 --> 22:38.620
That was exactly the case.

22:38.620 --> 22:41.940
In my Notion document, there was an embedded video.

22:41.940 --> 22:43.240
It was playing.

22:43.260 --> 22:51.280
I paused it, I went to a different app, but it was still on the Now Playing Queue with the name of the document.

22:51.660 --> 22:58.020
And that's why I saw the name of the document inside Apple's communication, not just in the response.

22:58.020 --> 23:01.940
It was sent to Apple servers, together with the title.

23:02.760 --> 23:04.080
Very weird.

23:04.620 --> 23:10.980
But, you know, we saw many things that happens now with Siri, just by asking about the weather.

23:11.160 --> 23:14.180
We saw that they go over our apps.

23:14.180 --> 23:16.400
They now know I have virtual machines.

23:16.400 --> 23:18.860
And they also know what is my favorite song now.

23:19.260 --> 23:22.380
But, you know, Siri can do much more than that.

23:22.380 --> 23:25.120
You can also add integrations to Siri.

23:25.120 --> 23:35.560
One of the most features that my friends use is to dictate or write messages to their friends on WhatsApp or iMessage.

23:35.560 --> 23:42.460
So I thought to myself, okay, let's send a WhatsApp message through Siri and let's see how it's going on.

23:42.460 --> 23:48.700
Because I know that in order for this feature to operate, I need to have WhatsApp installed on my device.

23:48.700 --> 23:51.520
So it must be on device computing.

23:51.520 --> 23:53.320
It doesn't need cloud services.

23:54.160 --> 23:56.560
Quickly I proved that it's not true.

23:56.860 --> 24:04.940
And they send to their servers not only the content of the message, they send also the contact number and the contact name.

24:05.000 --> 24:06.500
And don't try to call that number.

24:06.500 --> 24:08.340
It's not Taylor Swift number.

24:09.420 --> 24:15.560
But it was very weird because I knew for definitely that it goes on the user device.

24:15.840 --> 24:17.700
So I tried something.

24:17.700 --> 24:21.700
I said, okay, let's disable all the communication to Apple servers.

24:21.700 --> 24:25.940
So Siri cannot communicate with the dictation server and the search services.

24:26.780 --> 24:28.460
The feature still works.

24:28.460 --> 24:32.100
So I can ask Siri to send a message to one of my friends.

24:32.100 --> 24:37.400
He will receive that message, but there won't be any communication because I blocked it.

24:37.660 --> 24:46.360
So Apple can do on-device modeling, but still they send the content of the message with the contact information to their servers.

24:46.360 --> 24:49.600
Without any, it's not necessary to operate.

24:49.600 --> 24:55.040
So after that, I started making a list of all the integration they have.

24:55.040 --> 24:58.140
Like composing an email or checking your calendar.

24:58.340 --> 25:02.600
And I saw what exactly goes to their servers.

25:02.720 --> 25:07.760
And I managed to see that it happens only with messaging services.

25:07.760 --> 25:11.380
Like I can compose an email, the email won't be sent to Apple servers.

25:11.380 --> 25:13.660
It's on-device, as I would expect.

25:13.660 --> 25:15.120
Also about calendar.

25:15.120 --> 25:18.340
The only thing that was weird here is the messaging service.

25:18.340 --> 25:25.160
Which happens on the user device, but still, communication is being sent to Apple servers, which is not necessary.

25:26.060 --> 25:31.440
But you know, Siri is just one model inside the Apple intelligence ecosystem.

25:31.440 --> 25:38.240
We also have writing tools, which I went through all the logs, all of their features.

25:38.240 --> 25:44.400
And I must say, I was very surprised to see that most of the features actually work on the user device.

25:44.400 --> 25:47.500
Without the need for any network communication.

25:47.580 --> 25:53.620
Like I was on the plane here, and I could work on my documents without any network services.

25:53.620 --> 25:58.100
Not all the features work, only a few ones that work offline.

25:58.100 --> 26:00.040
They use the localized model.

26:00.200 --> 26:04.160
I checked the communication, there was no anything that I didn't expect.

26:04.160 --> 26:10.600
Like the data was there, and also when there was online services, I couldn't see any other traffic being made.

26:10.600 --> 26:12.540
Like we saw on Siri.

26:12.540 --> 26:15.680
And it was only just for the private cloud compute.

26:15.680 --> 26:19.780
Also, as I expect, according to their marketing claims.

26:19.780 --> 26:21.820
And that's not the only thing that was good.

26:21.820 --> 26:24.420
Like I also went over the image playground.

26:24.420 --> 26:29.280
You know, where we cannot interact with images or creating images from prompt.

26:29.500 --> 26:31.180
And nothing was sent.

26:31.180 --> 26:33.220
Everything was locally on our device.

26:33.400 --> 26:38.740
But to be honest, I don't think Apple would take the risk of sending pictures to their servers.

26:38.740 --> 26:40.320
I wouldn't take the risk of that.

26:40.320 --> 26:45.480
So going on to the last feature we're going to see today about Apple Intelligence.

26:45.480 --> 26:46.580
Their extension.

26:46.580 --> 26:55.580
When they launched Apple Intelligence, they said we're going to be able to expand Apple Intelligence capabilities by integrating third parties.

26:55.960 --> 26:59.200
In reality, only ChatGPT works.

26:59.680 --> 27:03.860
You know, you can just interact with ChatGPT from everywhere in your device.

27:03.860 --> 27:07.580
From Siri, from writing tools, the image tools.

27:07.580 --> 27:12.940
But there are two things you need to know when you're using ChatGPT through Apple Intelligence.

27:13.440 --> 27:22.420
The first one, if you thought that your communication with OpenAI servers are being directly from your device, that's not true.

27:22.440 --> 27:29.500
Your communication is being proxied through Apple servers, not the private cloud compute as most of you probably expect.

27:29.500 --> 27:34.840
It goes through their extension servers and from there to OpenAI servers.

27:34.840 --> 27:43.480
Even if you use your credentials of organizational account or personal account, all of that goes through their servers.

27:43.800 --> 27:53.200
But what I find more concerned is the fact that when I use ChatGPT through Siri, two requests are being made.

27:53.200 --> 27:58.920
The first one to the extension server, but the second one goes to the search services.

27:59.440 --> 28:02.860
I'm not sure why and I'm not sure who has access to it.

28:02.860 --> 28:06.500
It's not part of the private cloud compute as far as I know.

28:06.580 --> 28:09.900
So I find it very weird that two requests are being made.

28:09.900 --> 28:14.960
I don't have control over it and I don't know who in Apple has control over it.

28:15.300 --> 28:18.960
At that point I said, okay, I should reach out to Apple.

28:18.960 --> 28:28.520
I should create a proper disclosure, report everything I found, both the ChatGPT on Siri, WhatsApp, and the other apps.

28:28.520 --> 28:31.820
I sent all of the information in February.

28:32.120 --> 28:44.940
They request many information from my device, too many logs, and after like a month of researching about it, they reached out and they said, okay, we're going to fix that.

28:44.940 --> 28:49.020
There's something wrong here and we're going to address your issues.

28:49.020 --> 28:52.020
We're going to work with our engineering and we're going to fix that.

28:52.020 --> 28:53.860
I was, okay, I'm happy.

28:53.860 --> 28:58.180
I can finish my research and let's submit it to Black Hat and DEF CON.

28:59.220 --> 29:05.200
But four weeks ago, they came with a different approach.

29:05.360 --> 29:08.440
They said, okay, we're not going to fix that.

29:08.560 --> 29:10.480
I was like, okay, that's weird.

29:10.840 --> 29:17.380
And they said all the issues I found were not exactly part of Apple intelligence.

29:17.380 --> 29:19.760
They were like, this is Siri issues.

29:19.760 --> 29:23.480
Apple, I don't care whose responsibility for that, just fix that.

29:23.480 --> 29:33.460
And they said, they confirmed that the domains I was looking about them, they were actually Siri servers and not part of the private cloud compute.

29:33.500 --> 29:41.820
And I was very confused about that because according to their marketing, Siri and Apple intelligence are kind of the same as far as I understand that.

29:41.840 --> 29:44.520
So I was very much confused about that.

29:44.740 --> 29:48.440
And later they took the responsibility to other companies.

29:48.440 --> 29:59.800
They said, you know what, you should reach to Notion and WhatsApp and tell them that you found that and they should probably fix it because they probably are not using Siri as they should.

29:59.800 --> 30:04.880
Like they use SiriKit, the extension that allows them to integrate with Siri.

30:05.260 --> 30:10.540
I wasn't sure if that's exactly true because the issue with Notion was about audio.

30:10.540 --> 30:14.140
But I said, okay, I'll reach out to Notion.

30:14.540 --> 30:19.800
I think after three hours, they came back and said, we don't care about that.

30:19.800 --> 30:23.980
You can just go back to Apple and we're not going to fix that because this is not our issue.

30:24.620 --> 30:27.960
I said, okay, Notion is not going to support me in that.

30:28.240 --> 30:30.300
I said, okay, let's reach out to WhatsApp.

30:30.480 --> 30:35.400
But before that, I said, I found that also on iMessage.

30:35.400 --> 30:39.460
So I'm not sure it's exactly SiriKit issue or at least WhatsApp issue.

30:39.800 --> 30:44.320
So I said, before I go to WhatsApp, I'll check it on my own.

30:44.660 --> 30:46.880
I said, okay, let's test SiriKit.

30:46.880 --> 30:48.560
I develop an app.

30:48.560 --> 30:49.860
I use Xcode.

30:49.860 --> 30:53.540
And I went into Apple documentation.

30:53.540 --> 30:59.110
I created an app that used SiriKit exactly as they recommend using their own configuration.

30:59.560 --> 31:04.060
And I couldn't find any hidden flags, any hidden configuration.

31:04.300 --> 31:07.880
And the same behavior happened here.

31:07.880 --> 31:16.820
I saw that when I send a message through Siri to my own app, I saw the same packet goes to the Siri dictation server.

31:17.580 --> 31:21.020
I'm not sure it's a SiriKit issue or at least WhatsApp issue.

31:21.320 --> 31:25.380
So I reported back to Apple and they didn't respond.

31:27.460 --> 31:28.900
Until yesterday.

31:30.420 --> 31:32.300
Or at least three days ago.

31:32.300 --> 31:34.380
We're still communicating about that.

31:34.380 --> 31:40.480
I think the night before my Black Hat talk, they were like, okay, I think we should address it and we should see what we can do.

31:40.480 --> 31:43.460
I actually was very surprised by their response.

31:43.460 --> 31:53.480
They said at first that about the chat GPT issue, they said, okay, it's expected, like it's not going through the private cloud compute.

31:53.480 --> 32:09.520
But if you thought that it's supposed to be through the private cloud compute, we're more than willing to cooperate with you and to fix our documentation to be more clear on the fact that the chat GPT communication goes from servers that is not part of the private cloud compute.

32:09.520 --> 32:14.860
The second thing they said was about the WhatsApp and the messaging issue.

32:14.860 --> 32:18.620
They said, okay, maybe it's not a WhatsApp issue.

32:18.900 --> 32:21.680
And I said, okay, what are you going to do about that?

32:21.680 --> 32:32.680
And they said they passed it to their engineering and hopefully they're going to fix it in the next update version for macOS or probably SiriKit.

32:32.800 --> 32:34.480
So it's nice to hear that.

32:34.480 --> 32:35.720
I hope they're going to fix it.

32:35.720 --> 32:37.760
I haven't got any confirmation about that.

32:37.760 --> 32:44.220
But at least I have some mitigations to give you today to minimize the risk.

32:44.580 --> 32:50.760
First, my recommendation will be that if you can do that, block the dictation server.

32:50.820 --> 32:56.420
As far as I know, it's not part of the core communication of Siri or Apple intelligence.

32:56.560 --> 33:02.280
Like you can still use all the services while blocking it and nothing gets hurt.

33:02.280 --> 33:03.960
Everything works properly.

33:04.540 --> 33:08.560
My second recommendation will be about the settings.

33:08.560 --> 33:12.580
Like I told you in the beginning, you opt in by default.

33:12.880 --> 33:16.840
Go through the settings, not on Monday when you go back to the office.

33:16.840 --> 33:28.160
Today, go over your settings and make sure you agree to the terms of use and that you know exactly what you've been sharing with Apple servers and what you led them to learn from.

33:28.780 --> 33:33.800
But you know, on a wider approach, I have some takeaways from this talk.

33:34.160 --> 33:36.900
First, it will be about privacy policy.

33:37.360 --> 33:41.680
I think all of us, including me, we're not really going over privacy policies.

33:41.680 --> 33:51.400
Like when I go to a new website, I scroll down, I accept the terms of use and the privacy policy and I continue with my life.

33:52.000 --> 33:54.060
I'm not sure we're supposed to do that.

33:54.060 --> 33:57.760
Come on, it's so much legal stuff that I can understand.

33:58.280 --> 34:00.180
But something needs to change.

34:00.180 --> 34:02.660
If it's about the way they present it.

34:02.780 --> 34:11.640
For example, when I checked in for my flight, I was surprised by their iterative what you cannot bring to the flight.

34:11.640 --> 34:15.560
So you had to accept everything that you're not supposed to bring to the flight.

34:15.560 --> 34:23.560
It will be cool when we go to a website or to an AI app and we can know for sure what exactly we are sharing with their servers.

34:23.560 --> 34:25.640
That will be really helpful.

34:25.640 --> 34:33.720
But for now, I recommend using something like ChatGPT just to summarize privacy policies and say, okay, what are they sending about me?

34:33.720 --> 34:35.080
What do they know about me?

34:35.080 --> 34:39.740
That will be really helpful to know what kind of information we share with them.

34:39.980 --> 34:53.800
But if you're not going to do that, I would suggest that you use some governance tools to monitor your network because one day I saw a confidential document leaving my device and I was very surprised about that.

34:53.800 --> 34:55.600
I don't know who has access to that.

34:55.600 --> 35:00.200
And I think we should be more careful on these issues.

35:00.840 --> 35:10.040
But it's not going to work if companies like Apple, OpenAI also, they use this certificate-pinning thing.

35:10.360 --> 35:18.340
It's so frustrating for researchers and for enterprises to know exactly what we are sharing when there is no transparency.

35:18.340 --> 35:24.900
Certificate-pinning is a really good tool when you want to upgrade your operating system.

35:24.900 --> 35:28.440
I can see why they need their certificate-pinning.

35:28.440 --> 35:40.660
But when I upload personal information to AI, to server like Apple server, the dictation server, search services, they should give us the visibility over that.

35:40.660 --> 35:47.520
So researchers like us can just minimize the gap of their marketing claims to what happens in reality.

35:48.120 --> 35:50.620
With this issue, we cannot do that.

35:51.700 --> 35:57.880
But I want to share with you one last thing before you go and continue the rest of your day.

35:58.360 --> 36:03.800
You know that entire adventure was kind of a rollercoaster.

36:03.800 --> 36:09.020
Like one day, I was on top and said, wow, I found things on Apple Intelligence and Siri.

36:09.260 --> 36:11.800
And I was very surprised about that.

36:12.180 --> 36:17.980
And the second day, Apple said, okay, that's Siri, that's not Apple Intelligence, there are two different products.

36:17.980 --> 36:19.700
I was like, wait, what?

36:20.260 --> 36:25.660
Like, you can just one day go to Siri and ask it, what is the weather today?

36:25.660 --> 36:28.860
And Siri will operate in the background.

36:29.660 --> 36:36.880
But on the other day, you can go to Siri and ask it, what are the weather vibes I should prepare for today?

36:37.220 --> 36:40.500
And that will invoke Apple Intelligence logic.

36:42.420 --> 36:44.060
And that's insane.

36:44.060 --> 36:46.800
Like, I'm a security researcher, I can know that.

36:46.800 --> 36:51.940
They use here two different features for basically the same thing.

36:51.940 --> 37:00.740
I ask the same questions, different phrasing, and there are two different features here, two different terms of use, two different privacy policies.

37:00.740 --> 37:02.760
And like I said, I can now know that.

37:02.820 --> 37:06.320
But as an average user, he can know that.

37:07.220 --> 37:10.800
I have one last question for you for today.

37:11.160 --> 37:13.540
Can you tell the difference between them?

37:13.540 --> 37:17.020
Thank you very much for joining me today.

37:17.260 --> 37:18.720
I enjoyed it.

37:19.400 --> 37:20.460
Thank you.

37:24.400 --> 37:27.080
And I think we still have some time for questions.

37:27.080 --> 37:30.020
If not, I'll be available here or outside.

37:30.260 --> 37:30.840
Yeah?

37:33.240 --> 37:35.880
Can you go to the microphone so I can hear you?

37:39.730 --> 37:41.290
You mentioned iMessage.

37:41.290 --> 37:44.650
Was it using SiriKit if you try to use Siri to send an iMessage?

37:44.650 --> 37:53.770
Yeah, you can use Siri to dictate or write messages through Siri, and it goes through the servers without the need for that.

37:53.810 --> 37:55.830
They're using SiriKit for that, probably.

37:55.830 --> 37:57.810
Did you file that as a bug also?

37:57.810 --> 37:58.190
Mm-hmm.

37:58.190 --> 37:59.070
Good.

37:59.270 --> 37:59.950
Yeah.

38:12.710 --> 38:13.310
Cool.

38:13.310 --> 38:15.930
I'll be available here if anybody has a question.

38:16.370 --> 38:18.090
Feel free to reach out.

38:18.270 --> 38:19.530
Thank you very much.

