WEBVTT

00:00.000 --> 00:03.140
It is my absolute pleasure to introduce Tobias.

00:03.140 --> 00:05.040
He's going to kick us off this morning.

00:05.040 --> 00:14.900
And the title of his talk is Mind the Data Voids, Hijacking Co-Pilot Trusts to Spread C2 Instructions with Microsoft Authority.

00:14.920 --> 00:16.240
Tobias, take it away.

00:20.050 --> 00:21.110
Hi, everybody.

00:21.110 --> 00:22.490
My name is Tobias Steele.

00:22.490 --> 00:27.690
I've been an offensive security engineer for over five years now working in the financial industry.

00:27.730 --> 00:34.990
In my free time, I also really enjoy doing bug bounties and I was actually selected as one of Microsoft's most valuable researchers for this year.

00:35.790 --> 00:37.990
If you want to connect with me, here are my socials.

00:37.990 --> 00:39.190
Please reach out to me.

00:39.190 --> 00:40.190
Don't be shy.

00:40.350 --> 00:44.410
But today I'm here to tell you why you shouldn't trust everything AI tells you.

00:44.410 --> 00:49.090
Even further, I want to show you how attackers can poison the wells without ever touching your machine.

00:50.370 --> 00:58.110
So in September of last year, I got really curious about how co-pilot would answer questions to topics that are not part of its original training data.

00:58.230 --> 01:00.330
And you can see that here on this diagram.

01:00.470 --> 01:07.550
Whenever a user asks one of those questions, co-pilot will actually reach out to Bing and retrieve that content from the index.

01:07.550 --> 01:11.810
It then processes it and tries to answer your question as best as possible.

01:12.330 --> 01:13.410
And I tried that out.

01:13.410 --> 01:23.130
I asked co-pilot a bunch of questions, reviewed the answers, and sure enough, when I compared it against Bing, it would always use the top answer as its source of truth.

01:23.210 --> 01:24.650
And that makes sense, right?

01:24.650 --> 01:27.410
Bing and co-pilot are both Microsoft products.

01:27.410 --> 01:28.850
They should be integrated.

01:28.890 --> 01:30.450
And Bing is really secure.

01:30.450 --> 01:33.710
They've had over a decade to perfect the ranking algorithm.

01:34.770 --> 01:38.290
And well, lucky for us, nobody ever lies on the internet , right?

01:38.590 --> 01:40.510
But that's exactly what I did.

01:40.510 --> 01:43.310
I went ahead and used AI to publish a new website .

01:43.310 --> 01:49.810
And on there, I published a new financial policy called the Geldgift policy, money poisoning in German.

01:50.090 --> 01:54.210
And that policy was to walk the user through how to perform money laundering.

01:54.210 --> 01:56.150
You know, something illegal in the U.S.

01:56.150 --> 01:59.010
And I wanted to see if co-pilot would repeat this content.

01:59.010 --> 01:59.690
And it did.

01:59.690 --> 02:02.490
And it started to back it up with legitimate sources.

02:02.630 --> 02:05.010
Took me about two weeks to get this ranked.

02:06.010 --> 02:07.850
Next, I tried a fake CVE.

02:07.850 --> 02:14.210
But this time, I published it on GitHub, a high authority site that's already established with Bing and co-pilot.

02:14.490 --> 02:17.650
And on there, I published fake Python code.

02:17.650 --> 02:22.150
And this one took about an hour to get indexed and repeated in co-pilot.

02:22.310 --> 02:30.590
And as you can imagine, that's pretty dangerous for some of our security engineers out there trying to find proof of concepts for some of the issues they're trying to hunt down.

02:31.530 --> 02:33.930
So I went ahead and reported all of this to Microsoft.

02:33.930 --> 02:39.950
Told them, hey guys, I can spread misinformation using your AI by controlling the Bing's index.

02:39.950 --> 02:40.710
Cool, huh?

02:40.870 --> 02:45.950
And they got back to me and said, well yeah, great report, but co-pilot is working the way it's intended to.

02:45.950 --> 02:49.990
It's giving you the most relevant information for the question that you asked.

02:50.490 --> 02:55.950
But you're able to spread misinformation on popular topics, please get back to us.

02:55.970 --> 02:56.770
Well, perfect.

02:56.770 --> 02:58.250
I like a challenge, right?

02:58.250 --> 03:01.110
But I don't know what's a popular term to Microsoft.

03:01.190 --> 03:04.890
So I reached out and said, do you guys like fishing?

03:04.890 --> 03:06.550
Do you like football?

03:06.550 --> 03:08.510
Are you more like Taylor Swifties?

03:08.510 --> 03:09.950
Never heard back, right?

03:09.950 --> 03:15.110
So I reached out, what's the competition requirement for this proof of concept that you're looking for?

03:15.110 --> 03:19.290
I can't take over something like co-pilot or Taylor Swift, that would be crazy.

03:19.670 --> 03:21.430
But let's agree on something.

03:21.430 --> 03:22.890
You know, let's keep it fair.

03:23.110 --> 03:25.950
I also asked, can I use social media for this?

03:25.950 --> 03:29.250
Because that has a big impact on search engines.

03:29.250 --> 03:33.910
Tried over five different times over multiple weeks and unfortunately never heard back.

03:34.530 --> 03:40.930
But later on through collaboration with Microsoft, I found out that they already had somewhat of a definition for this.

03:41.490 --> 03:50.790
So in 2018, two researchers, part of the Microsoft Bing team and the Data Society team, released their own paper talking about data voids.

03:50.830 --> 03:54.030
And think of a data void as a search engine vacuum.

03:54.030 --> 03:59.970
It's a term that a user looks for but there's just no relevant content to show yet or nothing updated.

04:00.590 --> 04:10.830
Even further, in this paper they show how threat actors have already abused this in the past to spread misinformation about some of the biggest gun violence events that have happened in the U.S.

04:10.830 --> 04:16.750
In further, they also show how there's five different categories of these data voids that can be abused.

04:16.750 --> 04:19.590
And if you haven't read this paper, please go do that today.

04:19.590 --> 04:21.530
It's really, really amazing work.

04:22.050 --> 04:25.710
But you might have noticed on these slides that I've highlighted two of these for you.

04:25.710 --> 04:33.310
The breaking news one, where some big company or news media is now talking about a term we all want to look for it and we're generating traffic.

04:33.530 --> 04:36.650
Or there's a strategic data void .

04:36.650 --> 04:44.070
Something that a threat actor creates and gets ranked before they reach out to a user trying to get initial access or spread misinformation about it.

04:44.530 --> 04:54.810
Now, I highlighted these for you because I want to show you some examples of how there's a really dangerous evolution of this technique in AI systems that do not properly protect against it.

04:55.390 --> 04:57.210
So, some time had passed now, right?

04:57.210 --> 04:58.710
I still hadn't heard back.

04:58.710 --> 05:00.890
But now I got this really interesting email.

05:00.890 --> 05:05.770
I got invited to Microsoft's Zero Day Quest, their first on-site hacking event.

05:05.770 --> 05:08.890
And guys, I was jumping up and down in excitement.

05:09.510 --> 05:20.410
They're going to send the top security researchers from their program from all over the world over to Washington State so we can collaborate, find issues in the AI systems, the cloud systems.

05:20.670 --> 05:22.250
And what a chance, right?

05:22.250 --> 05:29.070
Not only do I get to meet some of the coolest people that I've ever met in this space, but I also get to work with the Microsoft team.

05:29.250 --> 05:30.890
Show them what I had found here.

05:30.890 --> 05:34.290
And most importantly, show them the impact that this can cause.

05:35.030 --> 05:36.830
But I still hadn't heard back, right?

05:36.830 --> 05:39.470
I still don't know what's a popular term to Microsoft.

05:39.770 --> 05:44.950
But now I've received this email and I figured Zero Day Quest is probably pretty popular, right?

05:44.950 --> 05:47.490
There's a lot of marketing dollars going into this.

05:47.770 --> 05:50.010
Copilot is also probably really popular.

05:50.010 --> 05:51.970
It's one of the main products right now.

05:52.570 --> 05:54.370
So I went ahead and chose four of them.

05:54.370 --> 06:00.870
I picked over 20 different terms that closely mimic Microsoft products or terms that I found in the documentation.

06:01.210 --> 06:06.150
Not only did I do that, but I also registered multiple domains that mimic the event itself.

06:06.150 --> 06:11.330
And those would either host my content or the proof of concept script that you see here.

06:11.350 --> 06:12.870
I called it Clippy's Truth.

06:12.890 --> 06:18.230
Because if you ran this, it would just give you a little reminder to not trust everything AI tells you.

06:18.270 --> 06:20.350
And I did that because this is a competition.

06:20.350 --> 06:25.010
If this worked, I might be cast in the net pretty wide and I didn't want to impact real users.

06:25.750 --> 06:27.750
But here's what I was really trying to do.

06:27.750 --> 06:30.450
I wasn't trying to perform authority spoofing.

06:30.450 --> 06:31.910
I didn't want to get flagged.

06:31.910 --> 06:35.350
So my payloads actually never mentioned the Microsoft company.

06:35.650 --> 06:40.690
But what I was trying to do is I like to think of it as a key term association attack.

06:40.690 --> 06:42.370
So think of it like this.

06:42.370 --> 06:45.990
I can't take over something like Copilot, the term itself.

06:46.030 --> 06:56.450
But what if I could find these predictable traffic keywords and associate my malicious content to that keyword so somebody might find it later on.

06:56.450 --> 07:01.350
And in this case, I always try to target the installation command itself for the products.

07:02.150 --> 07:03.890
And here's my proof concept.

07:05.690 --> 07:08.750
So I actually used Copilot to attack Copilot.

07:08.870 --> 07:17.250
So it was, the prompt was provide me the top 25 long tail keyword questions that a user might have around how to install this product.

07:17.250 --> 07:21.250
The only other instruction always had to be this very specific command.

07:21.690 --> 07:24.890
And if you're not familiar with PowerShell, let me walk you through this.

07:24.910 --> 07:27.890
The first part of the PowerShell command is an alias.

07:27.890 --> 07:29.270
It's invoke rest method.

07:29.270 --> 07:35.470
And that will reach out to the website that's specified there and download the content or the script that's hosted on there.

07:35.530 --> 07:43.550
The next part is really interesting for my red team friends because Copilot actually doesn't make any kind of effort to verify what's hosted on the site.

07:43.550 --> 07:46.570
So it worked great with some of our initial access scripts.

07:47.050 --> 07:51.230
The third part is where it gets a little sketchy because that's invoke expression.

07:51.230 --> 07:57.850
And that script that you just downloaded automatically gets executed trying to give an attacker initial access into your network.

07:58.090 --> 08:09.470
If you're wondering how bad of an idea it is to run this, well, Microsoft tells you themselves in the PowerShell documentation that this should only be run as a last resort because it can lead to arbitrary command execution.

08:10.590 --> 08:17.450
But during my testing of this, I also found out that Copilot would often respond to the external commands that I gave it.

08:17.450 --> 08:22.490
So now my payload started to include these content usage policies that you can see here on the slide.

08:22.790 --> 08:29.830
And in there I could specify if Copilot was allowed to index my content or if it was even allowed to provide a citation link.

08:29.830 --> 08:39.950
I could also tell it that it's not allowed to mention the author or if it did, I told it that would create legal issues for the user so more than often it tried to play by these rules.

08:41.110 --> 08:43.350
But let's take a look at the first demo.

08:43.350 --> 08:45.330
So guys work with me here, right?

08:45.330 --> 08:55.290
Your user just read about this cool new AI product, maybe somebody conveniently told them about it and now all they have to do is ask Copilot about how to get started with it, right?

08:55.290 --> 08:58.530
So that's what the user is going to be doing here in this demo video.

09:00.510 --> 09:11.430
Okay, so now the user is going to be asking for exactly that and please pay close attention to the content in the citations because now it's going to be filling it in with legitimate Microsoft content.

09:11.590 --> 09:14.870
We can even ask Copilot, is this a Microsoft product?

09:14.870 --> 09:16.990
And it will happily agree with us.

09:17.490 --> 09:20.130
If the user asks, is this secure?

09:21.190 --> 09:23.910
Of course it is, why even question that, right?

09:23.910 --> 09:26.930
But now if the user asks, how do I install this?

09:26.930 --> 09:37.890
Well, you'll see Copilot repeating my initial access command without any citations, without any kind of warning and the cherry on top is run it with admin permissions please.

09:38.510 --> 09:41.010
So it looks pretty legit, right?

09:41.010 --> 09:49.090
But I know what you're probably going to say, the user had to ask very specific prompts, they even had to ask for the installation instructions.

09:49.550 --> 09:56.710
Well, not always because during my testing, I found out that Copilot would actually often assist us and now we have unlocked a new path.

09:56.710 --> 10:02.530
So it would give the user these prompt suggestions to guide them to the malicious instructions.

10:02.830 --> 10:09.230
The other thing that I heard a lot was, well, it's on the internet so other AI systems probably have to be vulnerable to this, right?

10:09.370 --> 10:12.490
There might be ways but I didn't find that during my testing.

10:12.490 --> 10:17.530
Only Copilot would over rely on the Bing index for this content.

10:18.350 --> 10:20.410
So guys, you saw it now.

10:20.410 --> 10:23.590
My final proof of concept for the zero day quest.

10:23.590 --> 10:27.390
I send it into Microsoft, points assigned, it's looking good.

10:27.390 --> 10:29.030
I'm being told this is unique.

10:29.030 --> 10:30.670
This is the first we've seen of this.

10:30.670 --> 10:32.730
We need to pull in the Bing specialist.

10:33.630 --> 10:34.630
Chef's kiss, right?

10:34.630 --> 10:37.630
That's exactly what you want to hear going into this competition.

10:37.630 --> 10:39.330
I'm on my way to Microsoft.

10:40.930 --> 10:45.150
And now I'm on site with Microsoft and now unfortunately they have changed their tune.

10:45.150 --> 10:52.770
This is actually out of scope because it's considered an offensive or malicious response.

10:53.170 --> 10:55.550
Okay, you win some, you lose some, right?

10:55.550 --> 10:57.470
It's part of the game, not a problem.

10:57.470 --> 11:01.410
But even further, they're telling me this doesn't currently meet the bar for servicing.

11:01.410 --> 11:04.730
It relies on specific prompts and user manipulation.

11:04.970 --> 11:07.030
Data voice tend to shift quickly.

11:07.190 --> 11:10.290
And users should verify the info through link sources.

11:10.810 --> 11:14.110
And guys, as a Microsoft customer first, that scares me.

11:14.110 --> 11:19.770
Because that means until a fix is released, all of us can continue to be targeted with this technique.

11:19.870 --> 11:25.090
But let's dig a little bit deeper and let's see why an attacker actually wants these citation links to show.

11:25.090 --> 11:27.730
And let's see if it can cause real user impact.

11:28.470 --> 11:31.030
So yes, data voice shift quickly.

11:31.030 --> 11:32.630
It's the nature of the internet.

11:32.630 --> 11:41.130
And Microsoft actually found this out themselves because shortly before the zero day quest announcement, Netflix released their hit show, Zero Day.

11:41.130 --> 11:48.830
And now the two companies are fighting over some of the biggest keywords out there to the point where even the social media posts were being drowned out.

11:49.270 --> 11:52.430
But data voice can be engineered and that's a big danger.

11:52.550 --> 11:56.790
One of the biggest questions I kept receiving about this event was, where can I watch it?

11:56.790 --> 11:57.850
Is it being streamed?

11:57.850 --> 11:59.150
This sounds so cool.

11:59.150 --> 12:00.170
And that's where I jumped in.

12:00.170 --> 12:04.650
Took me about four weeks to get ranked for the term watch zero day quest.

12:04.670 --> 12:06.010
And this is what that looked like.

12:06.390 --> 12:07.650
So here's my site.

12:07.650 --> 12:09.430
This was a proof of concept for that.

12:09.430 --> 12:10.890
I know what you guys are going to say.

12:10.890 --> 12:11.710
It's ugly as hell.

12:11.710 --> 12:12.730
I agree with you.

12:12.990 --> 12:15.970
But I want to show you this for a few reasons.

12:15.970 --> 12:18.830
So first of all, no tricks up my sleeve.

12:18.830 --> 12:23.430
If you were to go verify this content, this is exactly what you should be seeing, right?

12:23.430 --> 12:25.550
Again, I'm answering all the questions here.

12:25.550 --> 12:26.830
Keep that in mind.

12:27.170 --> 12:30.430
The next thing is, yes, it requires specific prompts.

12:30.430 --> 12:33.130
But there's a lot of flexibility in AI systems.

12:33.130 --> 12:39.870
Because in this attack, the user really only has to mention the key term first and the rest can come up later on.

12:39.870 --> 12:40.810
Think of it like this.

12:40.810 --> 12:45.530
In a search engine, we use long tail keywords to narrow down our results.

12:45.530 --> 12:46.870
Like watch zero day quest.

12:46.870 --> 12:48.630
Otherwise you would be bombarded.

12:49.090 --> 12:50.670
Watch zero day quest.

12:50.670 --> 12:52.110
Compete in zero day quest.

12:52.110 --> 12:55.010
Qualify for zero day quest.

12:55.050 --> 12:56.450
All of these show intent.

12:56.450 --> 12:58.850
And AI systems love that.

12:59.450 --> 13:04.190
The other thing is, Copilot and Bing will hold on to this content for a long time.

13:04.190 --> 13:08.290
That means that a threat actor can get legitimate content indexed.

13:08.290 --> 13:12.590
But they keep control of the underlying citation link and the DNS behind it.

13:12.590 --> 13:17.350
Meaning that we can try to turn Copilot into a potential phishing proxy.

13:17.830 --> 13:19.770
Let's take a look at the second demo.

13:20.150 --> 13:26.050
So here the user is going to be asking about legitimate content like the zero day quest event.

13:26.450 --> 13:30.850
And again you'll notice that it's being filled in with legitimate Microsoft content.

13:30.890 --> 13:41.190
But now if the user just mentions the watch keyword or shows intent that they want to check it out, you can see the initial access command is going to be repeated again.

13:41.230 --> 13:45.510
But this time it became the official way of watching the zero day quest event.

13:45.570 --> 13:53.810
Even further, if you try to follow Microsoft's instruction of verifying the source, in this case, unfortunately, you're rick rolled.

13:54.170 --> 14:01.050
Or even further, your user might get sent to a phishing page where they're potentially compromised.

14:01.310 --> 14:02.350
And that's scary, right?

14:02.350 --> 14:11.170
Because that means threat actors can just sit here quietly in the background and bulk post content trying to poison the Copilot ecosystem.

14:12.030 --> 14:15.410
But let's talk about new specific data voids, right?

14:15.410 --> 14:20.530
Somebody else is doing all the traffic for us, we just have to wait and see what happens.

14:21.190 --> 14:24.450
Well, that's exactly what happened during the zero day quest event.

14:24.530 --> 14:28.110
As part of this event, Microsoft released these flash challenges.

14:28.110 --> 14:36.650
And the Copilot one was, well, take over this very specific user ID, retrieve a flag from the user, turn it into Microsoft and you get $50,000.

14:36.770 --> 14:38.650
And who doesn't want that, right?

14:38.650 --> 14:43.970
So I had the technique and I published a new CVE trying to trick Copilot into a logic flaw.

14:43.970 --> 14:47.850
The idea was to tell it, hey, there's a vulnerability that's already accepted.

14:47.850 --> 14:53.290
Go ahead and switch these user IDs and please let me read it and get this $50,000 flag.

14:54.010 --> 14:55.850
And guys, it kind of worked.

14:55.950 --> 14:56.850
Kind of.

14:57.210 --> 15:01.650
Copilot was now repeating the content and was agreeing with me that it's super vulnerable.

15:01.650 --> 15:07.070
But whenever I asked about it, well, it had no clue how to actually read the user ID itself.

15:07.070 --> 15:09.030
So unfortunately that failed.

15:09.930 --> 15:15.710
During the ethical thing, I reached out to Microsoft and told them, hey, guys, I tried this technique that you already know about.

15:16.050 --> 15:17.310
It didn't work out.

15:17.310 --> 15:20.390
But if anybody asked about it, now they might see this content.

15:20.390 --> 15:23.890
You might want to switch out the user ID itself to keep things fair.

15:24.410 --> 15:26.930
And they said, well, thank you for letting us know.

15:26.930 --> 15:27.550
Not a problem .

15:27.550 --> 15:28.730
This is a hacking competition.

15:28.730 --> 15:30.130
It's still a valid target.

15:30.150 --> 15:31.390
Let's keep going.

15:31.570 --> 15:33.290
Okay, yeah , let's keep going.

15:33.450 --> 15:36.270
Well, as part of this, I poisoned the user ID itself.

15:36.490 --> 15:39.190
And that's a really random string that you see right there.

15:39.190 --> 15:45.530
And I was actually able to do this because of an indexing behavior in Bing that threat actors can abuse.

15:45.770 --> 15:52.510
So Microsoft kept publishing these new flash challenges as updates to their website every few days.

15:52.670 --> 15:57.990
And Bing indexes new content a lot faster than updated content.

15:58.030 --> 16:02.010
So I was able to jump in and take over the user ID itself.

16:02.510 --> 16:13.850
So now if you're asking Copilot about this user ID right here, which still works up to this day, you're being told that Tobias already exploited the issue, retrieved the flag, game over, right?

16:14.510 --> 16:17.190
Well, guys, during this I made a mistake.

16:17.190 --> 16:19.090
I hijacked the data void.

16:19.090 --> 16:20.630
Yes, that worked great.

16:20.970 --> 16:25.870
But when I introduced the logic flaws, I told Copilot that Microsoft was already pushing a fix.

16:25.870 --> 16:27.330
It's just coming out in a month.

16:27.330 --> 16:29.070
Trying to buy some extra time.

16:29.630 --> 16:34.510
But because the threat actor keeps control over the URL, I was able to switch my GitHub to private.

16:34.510 --> 16:41.830
So now whenever you're trying to check out this information, you saw a 404 error and you couldn't verify it.

16:41.870 --> 16:46.550
The only other hint left behind was the GitHub user name, not it's 69.

16:47.610 --> 16:54.550
And well, if you've ever been in a situation like this, you know that urgency is a big factor in social engineering, right?

16:54.590 --> 16:56.910
Urgency drives users to action.

16:56.910 --> 17:06.010
It's kind of like when you're in a hacking competition competing with the other top, I don't know, 50 hackers in the world from Microsoft trying to be the first one to get $50,000.

17:06.670 --> 17:11.130
But now it fills this dangerous news data void, the user ID itself.

17:11.250 --> 17:15.010
And the result, well, just a little bit of misinformation chaos.

17:15.010 --> 17:25.410
Because we're all in a Discord channel together for communication and the other researchers are now reaching out to me trying to figure out what's going on after they've been told my poisoned answer.

17:25.710 --> 17:35.290
Some of the researchers later on told me at the social events that they saw this, thought it was legit, and they quit the Copilot flash challenge altogether, thinking it was already solved.

17:35.290 --> 17:40.430
Microsoft even released an update two days later on to inform everybody it was still there.

17:41.050 --> 17:47.510
Other researchers saw this, thought it had something to do with GitHub, and they started to try their own overwrite attempts.

17:47.510 --> 17:53.530
But that requires agent authority with search engines, which they didn't have during this hacking competition.

17:53.670 --> 18:06.490
Even further, I saw that some of the security researchers saw this, thought they broke Copilot so well that they're encountering data leaks through this information because of an upcoming fix.

18:06.490 --> 18:10.190
And they started to report it to Microsoft as new cases.

18:11.030 --> 18:15.530
Okay guys, by now you're probably wondering, what can we do to protect against this?

18:15.610 --> 18:17.010
Well, there's a few options.

18:17.010 --> 18:23.870
Microsoft did tell me there's these feedback buttons, so if you ever run across one of these messages, go ahead and report it to them.

18:23.870 --> 18:25.550
Hopefully it will get removed.

18:26.030 --> 18:34.930
The other thing is after the event, after a few months, Microsoft did decide to start pushing a few standard updates that will now show some of these warning messages.

18:34.970 --> 18:43.870
But it's not always going to be showing that depending on the company that's being targeted or some of the Copilot versions that you're using right now.

18:45.350 --> 18:46.730
So you've now seen it.

18:46.730 --> 18:50.730
We can convince Copilot that there's new Microsoft products.

18:50.870 --> 18:58.570
It will even tell your users that it's secure and that the installation command is probably, should only be run as a last resort.

18:59.230 --> 19:03.390
But as you leave today and go home, I want you to leave with this thought.

19:03.390 --> 19:19.350
If the top security researchers in the world with Microsoft, you know, the ones that are living and breathing security every day, if they can't tell the difference between this poison content, what chance do your users stand against these data voids?

19:19.550 --> 19:20.430
Thank you very much.

