WEBVTT

00:00.000 --> 00:02.800
Are there any Australians here in the room?

00:03.720 --> 00:04.440
Yes!

00:04.800 --> 00:12.580
So you might be able to tell from my accent I'm from Australia and back home we have a drinking tradition as well for special occasions and it's called a shoey.

00:13.060 --> 00:23.260
I don't know if any of you have heard of it but basically you pour like a shot in a shoe and you drink it from the shoe which sounds disgusting but it's a thing that Aussies do.

00:23.360 --> 00:27.720
So you know this shot is a lot of fun but you'll have a lot to learn from Australians.

00:27.720 --> 00:32.680
Um all right so yeah thank you very much for being here.

00:32.680 --> 00:34.000
I'm really stoked.

00:34.200 --> 00:39.680
Um the presentation today is called On Your Ocean's 11 Team I'm The AI Guy.

00:39.740 --> 00:42.820
Um even though I'm a girl it just has a better ring to it.

00:42.820 --> 00:44.720
I need to maybe find a better title.

00:44.940 --> 00:55.100
But this is my second time at DEF CON and my first time speaking and I'm a little bit jet lagged because of the the trip and I'm speaking four times this week.

00:55.160 --> 01:00.440
So forgive me if I'm a bit tired and like forgetting all the the order of the slides for various presentations.

01:00.440 --> 01:04.580
You sort of submit things and I didn't actually expect to get all of them in.

01:04.620 --> 01:10.380
So I'll be giving this talk um a little later in the AI Village as well and I gave a similar one at B-Sides.

01:10.620 --> 01:17.600
But um yeah as you can probably tell from the the description and the title of the talk I'm an AI person.

01:17.600 --> 01:24.640
So maybe the casino part has kind of been shoehorned into an AI security talk but I think it makes sense for Vegas right?

01:24.640 --> 01:27.480
We want it to be um to be sort of relevant.

01:27.620 --> 01:30.920
I thought it'd be an interesting topic to sort of go through AI security.

01:31.280 --> 01:37.820
Um but before I get into the topic can I get a show of hands um if you're like a cyber person.

01:37.820 --> 01:39.800
If you consider yourself a cyber person.

01:41.000 --> 01:46.020
Okay and what about the people who would consider themselves an AI person?

01:47.000 --> 01:52.780
Cool okay and anyone who finds these robot tests these days really hard and isn't sure if they're a person at all.

01:52.780 --> 01:55.360
I feel like that's the camp I sometimes sit in.

01:55.380 --> 01:58.800
Um okay so I suspected that the crowd would mostly be cyber people.

01:58.880 --> 02:07.380
So um the talk is uh focused on sort of um explaining AI security in a way for for cyber folks.

02:07.380 --> 02:10.480
So there's a little bit of theory at the beginning and I apologize for that.

02:10.500 --> 02:13.100
And if you're an AI person please don't come at me.

02:13.600 --> 02:17.420
Um but before I now I know a little bit about who you are.

02:17.420 --> 02:18.380
Um who am I?

02:18.380 --> 02:22.300
Um I'm pretty sure I'm a human even though I fail the robot test sometimes.

02:22.640 --> 02:25.340
But um I'm in AI security.

02:25.340 --> 02:29.660
I've been working at the intersection of AI and security for about 10 years now.

02:29.700 --> 02:32.900
My undergraduate was in physics and I didn't really know what to do with it.

02:32.900 --> 02:35.440
So like many physicists I went into data science.

02:35.440 --> 02:40.080
And so I worked as a data scientist um in Australia in a consulting company for a while.

02:40.080 --> 02:41.980
Mostly on defense projects.

02:42.280 --> 02:45.960
Um I had my quarter life crisis and moved to the United States and worked at a startup .

02:46.520 --> 02:50.280
Um then during COVID I moved back to Australia and worked in the Australian government.

02:50.320 --> 02:53.120
And that's when I did my PhD in machine learning security.

02:53.320 --> 03:00.400
And I found that at the time um when I started working in the field in 2021 no one was really talking about machine learning security.

03:00.400 --> 03:01.720
People are now fortunately.

03:02.040 --> 03:07.220
Um but that's why about a year ago I left my job and I started my company Maleva Security Labs.

03:07.220 --> 03:09.400
And we're a an Australian based startup.

03:10.020 --> 03:15.560
Um we provide workshops and training in AI security and we just got funding to do our first tech product which is exciting.

03:15.560 --> 03:20.280
But you can also find me at Harriet Hacks on various social media platforms.

03:20.380 --> 03:21.820
Um maybe you can find me there if you want.

03:21.820 --> 03:23.080
It's it's a bit hacky.

03:23.080 --> 03:26.300
Like we all gotta start somewhere so please be forgiving.

03:26.800 --> 03:29.700
But our objectives today are to hack the casino.

03:29.820 --> 03:33.600
Um we've probably all heard of some pretty high profile casino related hacks.

03:33.700 --> 03:35.240
Um in the cyberspace.

03:35.240 --> 03:37.760
But I really wanted to explore the AI dimension.

03:38.020 --> 03:44.360
Um specifically because we are at the sort of inflection point where so many organizations including casinos are adopting AI now.

03:44.400 --> 03:46.420
Um and most of them are inherently insecure.

03:46.420 --> 03:47.800
So I wanted to test this.

03:47.800 --> 03:50.580
So we're going to start with some exploration work.

03:50.580 --> 03:55.320
Um I didn't know much about casinos when I like came up with this topic so that that was part of it.

03:55.540 --> 03:58.900
Um then we're going to hack the facial recognition AI.

03:59.080 --> 04:03.240
Um and then I guess we have to think of some lessons learned in AI security right?

04:03.640 --> 04:09.240
So why did I pick the casino apart from thinking it would sort of fit for the Las Vegas Defcon context?

04:09.400 --> 04:17.460
Um so much AI is vulnerable however people only seem to care when you lose a lot of money or when there's a big hit on your brand reputation.

04:17.460 --> 04:24.400
And casinos are a really good example of an organization like this where you know the casino always wins right?

04:24.400 --> 04:33.560
So bringing people in the door and having people trust your brand and want to you know have entertainment when you're definitely statistically going to lose money um is tough.

04:33.560 --> 04:36.500
And so thinking about security from that context is really important.

04:36.500 --> 04:41.020
But it's also a good analogy for literally every organization right now that's adopting AI.

04:42.200 --> 04:44.620
Um so a few disclaimers before I start.

04:44.620 --> 04:48.000
Um I worked with Casino Canberra on this.

04:48.000 --> 04:49.800
I you know that I'm from Australia.

04:49.800 --> 04:52.860
Well I'm from a town in Australia called Canberra.

04:52.980 --> 04:54.680
Does anyone know Canberra?

04:55.140 --> 04:56.020
Yay!

04:56.200 --> 04:59.460
Yeah Canberra's I I don't know I have a love-hate relationship with Canberra.

04:59.460 --> 05:03.140
It's pretty boring but it's um got a great quality of life.

05:03.800 --> 05:06.100
Um and you know it's got some things going for it.

05:06.100 --> 05:11.020
But we it's our political capital for those of you who might not know that.

05:11.100 --> 05:14.840
Um a lot of people think Sydney's our capital but it's it's actually Canberra.

05:14.840 --> 05:19.960
So imagine DC but like 1 14th of the size.

05:20.020 --> 05:23.200
Um because Australia is 1 14th of the population of the United States.

05:23.200 --> 05:24.720
So we only have one casino.

05:24.720 --> 05:28.980
And I'm really glad that they were willing to be you know really cooperative with with me on this.

05:28.980 --> 05:31.960
So um you know massive thank you to Casino Canberra.

05:32.060 --> 05:34.800
Um so they are our town's best casino.

05:34.800 --> 05:36.400
So that that's pretty exciting.

05:36.520 --> 05:52.020
Um as a side note in my Uber ride over here my Uber driver said that his son vacationed in Australia and their honeymoon was in Canberra and they loved it so much that they named their child like Giovanno Canberra.

05:52.020 --> 05:56.680
And I I don't know any anyone who's familiar with Canberra would just find that shocking.

05:56.680 --> 06:04.380
But anyway um so going on with the disclaimers um so obviously the attacks uh are real but you know I'm an ethical hacker.

06:04.380 --> 06:06.340
I you know I care about Casino Canberra.

06:06.340 --> 06:11.140
I'm not literally showing you how to attack their systems or you know specific AI systems.

06:11.340 --> 06:15.660
Um and like I said the talk is aimed at at cyber at cyber folk.

06:16.820 --> 06:22.320
So a little bit about casinos for the people um like me who might not have known about casinos.

06:22.420 --> 06:24.160
Um they obviously like a lot of money.

06:24.160 --> 06:25.800
They have a controversial history.

06:25.800 --> 06:28.760
Um and there's a lot of reasons why that history is sort of controversial.

06:28.920 --> 06:34.660
Um casinos are a hot spot for money laundering because it's an easy way to move funds around.

06:34.660 --> 06:38.020
Um particularly in Australia there's been some controversy lately.

06:38.020 --> 06:46.240
Our two big casino brands Star and Crown um had to pay big fines because they didn't comply with any money laundering laws.

06:46.240 --> 06:48.420
Um and there's been royal commissions and stuff.

06:48.600 --> 06:51.000
Um it it's the same in other countries as well.

06:51.000 --> 06:52.780
Um casinos are getting a little bit of heat.

06:52.820 --> 06:54.320
So security's important.

06:54.820 --> 06:56.240
They use AI.

06:56.240 --> 06:59.200
Obviously otherwise this talk wouldn't have gone as I planned.

06:59.200 --> 07:08.820
Um and they use AI for lots of different reasons and as I'll go into later um they they rely specifically on facial recognition and and person detection.

07:09.060 --> 07:19.620
Um but the landscape is really interesting when it comes to casinos because just like any organization they're trying to figure out exactly what the most strategic or the best way of actually adopting and integrating AI is.

07:19.740 --> 07:24.360
And just like any organization they have to rely on third party providers for the most part.

07:24.360 --> 07:30.120
Or they can bring in their own consultants but that's sort of expensive and not all casinos can necessarily do that.

07:30.120 --> 07:40.860
And there are also a few companies that provide AI services to casinos that are uh you know already um providing things like chips and and cards to casinos as well.

07:40.860 --> 07:42.680
So it's a very small space.

07:43.580 --> 07:51.760
Um when I first started this talk I thought that things like card counting would would be a use of AI in casinos and it's not.

07:52.000 --> 07:57.720
Um so you're probably familiar with card counting um and it's not illegal it's considered advantage play.

07:57.720 --> 08:03.700
So a casino however does have the discretion to like prevent people from playing there for any reason.

08:03.700 --> 08:10.400
So if a person is very ostentatiously card counting and winning a lot of money um probably the casino is going to not want to have them there.

08:10.860 --> 08:19.340
Um but it was interesting because I I expected that things like card counting would be a big use case for AI um and it wasn't.

08:20.260 --> 08:22.800
So how do we actually hack an AI?

08:23.000 --> 08:27.860
Um what the sorry this is the first bad joke of the day.

08:28.300 --> 08:34.800
Um so when I first told my mum I worked in AI she said oh darling what are you doing working in artificial insemination?

08:35.320 --> 08:38.600
Because I know that was a pity laugh but thank you.

08:38.600 --> 08:42.200
Um she works in medicine and so to her that's what AI is.

08:42.200 --> 08:54.840
And so obviously for most people here AI is artificial intelligence but even though we know it means those two words what people have in their mind when they think of what artificial intelligence is definitely differs.

08:54.880 --> 08:58.620
Um some people imagine Skynet and things like artificial general intelligence.

08:58.640 --> 09:03.080
Some people imagine um algorithms, machine learning systems.

09:03.120 --> 09:06.340
Some people just imagine anything that's sort of at the cutting edge of technology.

09:06.620 --> 09:16.020
Um so when we think about how to hack an AI system we really have to think about like the actual technology that we're trying to hack rather than sort of a some sort of AGI related goal.

09:16.020 --> 09:19.420
So I'm I'm focusing very much on machine learning models.

09:19.680 --> 09:26.680
But if we really think about the history of AI and if we think about it as just something that does something a human might otherwise have done.

09:27.060 --> 09:31.060
Um I mean the idea of hacking AI has been around for a long time.

09:31.340 --> 09:35.420
Um so this is a an example from a casino context.

09:35.420 --> 09:38.440
As we know that there are there are no random numbers in computers right?

09:38.440 --> 09:39.600
It has to be an algorithm.

09:39.600 --> 09:44.660
And so there are some pretty high profile cases of people being able to basically hack the algorithm.

09:44.860 --> 09:52.880
Um people who have access to sort of like the seed information of these algorithms um have been able to like steal money uh pretty large sums.

09:52.880 --> 10:01.900
In 1995 Ron Harris was able to steal a hundred thousand dollars this way because he knew about the algorithm was able to predict the next numbers very successfully in uh in a game of Keno.

10:02.260 --> 10:05.000
I hope they're not having more fun than us because they're very loud.

10:05.000 --> 10:06.740
Do I need more bad jokes?

10:06.740 --> 10:08.680
I I don't think you really want that either.

10:09.200 --> 10:12.400
Um so that's one example of hacking an AI I guess.

10:12.400 --> 10:14.240
Um and the other is sort of card counting.

10:14.360 --> 10:20.120
So if we think about it the reason that the casino always wins right is because the game is statistically in their favor.

10:20.120 --> 10:24.120
And that goes anywhere from sort of a 2 percent to a 25 percent advantage.

10:24.240 --> 10:29.320
Where 25 percent would sort of be like the slot machines and then 2 percent would be a game of blackjack.

10:29.320 --> 10:35.580
And that's why card counting and blackjack is most likely to be able to uh reduce the casino's favor.

10:35.580 --> 10:43.260
Because if you um if you use um like perfect strategy which is just doing the the plays that are statistically most likely to have you win.

10:43.280 --> 10:48.140
Um plus card counting you can reduce that to like um closer to closer to zero.

10:48.180 --> 10:53.400
Um and the only reason that the slot machines are 25 percent max is because of regulation anyway.

10:53.400 --> 10:55.500
Otherwise the casinos would probably want them to be higher.

10:55.500 --> 11:00.700
But that's an example of algorithm hacking too because you're hacking the statistical process of of being able to do that.

11:00.980 --> 11:06.840
So when we think about the modern iteration of hacking an AI system um we come to the realm of adversarial machine learning.

11:06.840 --> 11:10.680
And everyone probably has seen this picture before so I feel like I have to show it.

11:10.680 --> 11:23.600
But basically the idea is that you're able to um create specifically crafted adversarial examples that you can then input into a machine learning model to make it not do what it's meant to basically.

11:23.600 --> 11:33.440
So this example is from 10 years ago and this is like an image of a panda where you can have an adversarial example superimposed on top of that.

11:33.500 --> 11:40.580
Uh which is just um perturbations to the image specifically crafted based on the target model that you're trying to attack.

11:40.580 --> 11:46.860
And it can disrupt or deceive the model um really successfully even though a human can't recognize it.

11:47.000 --> 11:55.020
So adversarial machine learning is the the field that my PhD was in and you can consider it sort of the offensive side of AI security.

11:55.020 --> 11:57.680
It's basically the field that is coming up with the attacks.

11:57.680 --> 12:00.820
But it's um traditionally been very academic.

12:01.260 --> 12:05.340
Recently we're starting to see more examples of these kinds of things in real life.

12:05.520 --> 12:16.760
Um so being able to actually uh you know implement some change in the physical world that's able to prevent say autonomous vehicles from being able to recognize stop signs so they drive straight through.

12:17.520 --> 12:23.120
And in terms of the landscape of adversarial machine learning attacks it's massive.

12:23.120 --> 12:25.540
It's just exploded over the last 10 years.

12:25.540 --> 12:45.180
And if we think about all of the different attack surfaces represented by AI systems um so on the top things like convolutional neural networks which is a machine learning model really good at computer vision um versus something like a transformer along the bottom which is very good at natural language processing in the backbone of things like GPT.

12:45.180 --> 12:57.580
Um they're very different attack surfaces but many different adversarial machine learning methods now exist that are able to very successfully um do bad things at each stage of that attack at that attack surface.

12:57.940 --> 13:03.720
So most of the time these attacks require you to actually change something about the object itself right?

13:03.720 --> 13:06.860
So you have the panda example before.

13:06.860 --> 13:11.540
We have things like adversarial glasses that prevent a person being recognized from detection.

13:11.560 --> 13:16.600
You have like a jumper that can also hide a person from person detection.

13:16.600 --> 13:33.100
Um and the example I love on the bottom right is this um DARPA model that was meant to be used in sort of urban warfare environments to detect people and they asked their marines to try and red team that model and they found that the marines could just act not like people and very successfully deceive the model.

13:33.100 --> 13:41.800
So they did things like put cardboard boxes on their heads, they waved branches around and acted like trees whatever that means and they were very successfully able to hack the model.

13:43.660 --> 13:50.380
The the challenge with all of these things is that you're actually required to change something about the object itself that's being classified.

13:51.040 --> 13:56.240
Um there are some examples of like attacks where you don't need to change the thing itself.

13:56.240 --> 13:58.360
This is called an adversarial sticker.

13:58.500 --> 14:05.440
So if I put this next to something else a model is going to um like predict that this is a toaster.

14:05.440 --> 14:14.240
So if I put this next to a banana which is the sort of the example that they they give um instead of recognizing the banana the model is going to see a toaster instead.

14:14.400 --> 14:22.740
Um however this is sort of challenging because like this is very obvious like if I put this next to a banana I'd be like that's not meant to be there um that's a banana.

14:22.960 --> 14:24.960
But a model doesn't see it that way.

14:25.540 --> 14:34.840
So I had a thought I was like what if you could like change something about what's in the image frame itself but you didn't have to perturb the actual image.

14:35.140 --> 14:39.220
Um and so I came up with this technique called distributed adversarial regions.

14:39.500 --> 14:48.500
Um and this is part of my PhD where I was sort of coming up with this attack and so the intent for this was largely in urban camouflage environments.

14:48.500 --> 15:02.200
So being able to do things like have um specially crafted buoys around um ships for example like military ships so you think it's a a container ship instead or having it around other different kinds of military platforms.

15:02.760 --> 15:11.240
And if I can easily get the video working um this is just a very quick example of what this would look like.

15:14.020 --> 15:23.700
So if you have these sorts of buoys around um that's a Japanese U-boat um you can actually prevent the model from recognizing that platform.

15:24.080 --> 15:31.620
Um also don't come at me for them not being real buoys it would have been a very expensive endeavor to like put put buoys around a vessel.

15:31.840 --> 15:43.060
Um the thing about being able to digitally manipulate the images is that um you know it's a really good surrogate for not being able to actually change the physical environment um and being able to test it.

15:43.620 --> 15:54.460
So I I wanted to see if I could apply this technique to things like um facial recognition for this casino context.

15:55.300 --> 15:57.880
So how does this relate to casinos?

15:57.880 --> 16:02.280
I assume everyone here is familiar with the Oceans 11 franchise.

16:02.800 --> 16:07.480
Yes I mean it's it's a heist you know like we don't need to get too too thinking about it.

16:07.480 --> 16:14.780
The idea is that we're basically just bypassing all of these different um security levels that they have in a really cool way.

16:14.840 --> 16:18.400
Ideally there's um like bourbon and suits and George Clooney.

16:18.400 --> 16:23.780
Um I did not get to have a George Clooney in my life um doing this talk but that's okay.

16:24.000 --> 16:26.720
Um so we get the premise of the heist.

16:26.900 --> 16:29.000
This is what I wanted to do.

16:29.020 --> 16:35.580
I wanted to understand uh casino Canberra's I don't know AI operational environment.

16:36.000 --> 16:40.820
Um then I'm going to pick some target models to create this attack.

16:40.820 --> 16:46.040
And then I'm going to you know implement the the the DAS, the distributed adversarial regions.

16:46.040 --> 16:52.860
I'm going to test how I can sort of disguise them in different ways and then lessons learned and sort of next steps.

16:54.060 --> 16:55.740
So the first step.

16:55.740 --> 16:57.480
I I mentioned my PhD.

16:57.480 --> 16:59.900
I've been doing it part time for a really long time.

16:59.900 --> 17:02.320
So I feel like I should be finished but I'm not.

17:02.320 --> 17:09.460
Um now this is annoying because it's really hard to like simultaneously try and build a startup and also finish a PhD.

17:09.460 --> 17:12.680
My supervisors, only one of them knows I'm here right now.

17:12.680 --> 17:16.280
The other thing comes in Canberra like working working from the university.

17:16.660 --> 17:18.040
Um so don't tell them.

17:18.140 --> 17:26.120
But the good thing about still doing a PhD is not only do I get really good student discounts but people are very helpful.

17:26.120 --> 17:32.580
So if I reach out to people and I tell them that I want to do something as part of my PhD, people generally say yes.

17:32.580 --> 17:37.520
It helps that I'm also sort of like nice and polite and you know people are always just very helpful.

17:38.200 --> 17:41.180
Um so this is what I did with Casino Canberra.

17:41.180 --> 17:43.860
And they were very willing to help which was nice of them.

17:44.040 --> 17:46.440
So this is Casino Canberra.

17:46.440 --> 17:52.020
Maybe it doesn't look like the Bellagio or the MGM Grand but like they have a a red carpet.

17:52.180 --> 17:53.460
Um it's very nice.

17:53.460 --> 17:55.480
It's right next to our Civic Centre.

17:55.480 --> 17:57.620
Um it's between there and the Convention Centre.

17:57.700 --> 18:00.400
Um it's you know they they they do okay.

18:00.580 --> 18:04.400
Um they're very excited about a new upgrade that that they're doing.

18:04.400 --> 18:05.340
They're going to get a lot bigger.

18:05.340 --> 18:06.320
There'll be a hotel.

18:06.620 --> 18:08.480
Um they've got it going on.

18:08.700 --> 18:15.480
So as part of this upgrade they're thinking about implementing artificial intelligence for the first time.

18:15.480 --> 18:30.920
Something I was really interested to learn through doing this sort of research was that um facial recognition and person detection was by far the largest um like the most important form of AI for casinos.

18:30.920 --> 18:35.180
But it's obviously very unequal in how casinos are able to adopt them.

18:35.180 --> 18:43.380
So all of the casinos we have here in Vegas would very much rely on using AI and they would have very mature practices around it.

18:43.380 --> 18:46.900
And in fact they would actually build their casinos using this AI in mind.

18:46.900 --> 18:53.940
So when we walk around the casino you might notice that sometimes there are like sort of narrow corridors that you're forced to walk through.

18:53.940 --> 18:57.160
And that's to make sure that your faces are actually caught by these cameras.

18:57.760 --> 19:05.960
So as as a casino like Casino Canberra is thinking about their redesign this is very much inherent in how they actually decide to design the casino.

19:05.960 --> 19:14.340
So that they can use things like facial recognition to identify money launderers or known criminals or card counters I guess.

19:14.340 --> 19:18.460
Um also problem gamblers there are some you know nice use cases for it as well.

19:18.460 --> 19:21.820
They want to make sure that people aren't gambling too much just the right amount.

19:22.540 --> 19:26.000
Um and things like number plate recognition for cars is also really important.

19:26.020 --> 19:29.700
Um but in terms of AI this is very much a computer vision problem.

19:29.700 --> 19:32.860
So being able to see things in the environment and understand it.

19:32.860 --> 19:36.020
They don't really have a lot of use for other kinds of AI right now anyway.

19:36.020 --> 19:40.940
Not not things like chatbots or signal processing that's not that's not really in their realm.

19:41.820 --> 19:50.160
Um but right now they're also very much dependent on people just being able to um like identify those known people and then log them in the system.

19:50.160 --> 19:54.160
Um that's that's very much still dependent on on humans even here.

19:54.600 --> 19:58.680
So what I did next was I need to choose a victim right.

19:58.680 --> 20:07.260
Um like I said Casino Canberra doesn't currently use AI so I couldn't really use any like live facial recognition that they were using right now.

20:07.260 --> 20:13.780
So instead I had to pick uh an appropriate victim that would be close enough to something they would use.

20:13.920 --> 20:21.400
And you might think that this is a problem however it's not fortunately because of this principle in machine learning and its convergence.

20:22.740 --> 20:27.960
I don't know if this works with a big crowd um but I might try some audience participation I don't know.

20:27.960 --> 20:31.520
Does anyone want to shout out and guess what this number might represent?

20:34.550 --> 20:36.570
I actually can't hear anyone anyway.

20:36.570 --> 20:39.990
So I'm gonna assume that maybe one of you was right.

20:40.210 --> 20:48.570
Um so this number actually represents um some significant research into similarity of models.

20:48.570 --> 20:57.590
So if you have a model trained on similar data to do similar things you end up with a similar model like basically the same model.

20:57.590 --> 21:12.190
Um and this is actually really significant because a lot of the models that companies rely on and produce as part of their IP are very much or like or you know exactly the same as open source models.

21:12.190 --> 21:16.930
And in fact a lot of the time they do actually just use open source models and then do a bit of fine tuning.

21:16.930 --> 21:19.450
And that doesn't necessarily change the model itself.

21:19.450 --> 21:21.130
Certainly doesn't change the architecture.

21:21.130 --> 21:24.930
It might change uh you know sort of how you apply it to different use cases.

21:25.370 --> 21:40.750
But it a lot of research has been done to show that if you compare two models an open source model with uh like a a model that is a company's IP to do things like facial recognition, they are 95 to 99 percent similar.

21:40.750 --> 21:43.150
It's a minimum of 95 percent similarity.

21:43.150 --> 21:53.330
Which is really significant because it means that I don't really need to you know do anything to um difficult to be able to find a good victim model.

21:54.990 --> 21:56.770
So that's convergence.

21:57.570 --> 22:01.030
So there's a lot of different victim models that I wanted to test.

22:01.030 --> 22:05.070
Um like I mentioned I already did this attack for things like urban camouflage.

22:05.070 --> 22:08.430
So being able to do things like object detection and testing some of those models.

22:08.430 --> 22:12.470
Um I also added some of these facial recognition models um as well.

22:12.470 --> 22:15.750
These are just a few of the the open source models available at the moment.

22:16.090 --> 22:20.330
So the next step is to create these distributed adversarial regions.

22:20.730 --> 22:23.690
Um and this is a fairly boring diagram.

22:23.690 --> 22:28.030
So maybe I'll show you instead a slightly less boring video.

22:28.130 --> 22:33.910
Um it's very hard trying to create fun demos for this.

22:33.910 --> 22:34.450
I don't know.

22:34.450 --> 22:37.550
So um maybe I need to find a way.

22:37.550 --> 22:43.390
So so this is the um the the video that I'm testing on right?

22:43.390 --> 22:46.870
This is me walking up to their their detection.

22:47.470 --> 22:52.650
And this is uh me implementing the attack on one of my target models.

22:52.810 --> 22:56.490
Um so I'll talk through the method because it takes a couple of minutes.

22:56.690 --> 23:14.330
But basically all I need to do to implement this attack is to perform an optimization algorithm on the video in question to identify different regions where if I perturb them in certain ways um they're going to cause a misclassification which sounds really easy.

23:14.330 --> 23:25.570
Um but the the difficult thing is in sort of making those areas not too obvious or at least being able to pick a few different regions that could reasonably actually be altered.

23:26.150 --> 23:38.410
And so this code shows me being able to like perform that optimization uh based on one of these victim models um making a prediction on on this video.

23:42.760 --> 23:48.600
If you're not a person who finds the code interesting uh maybe at least the thing you can take away is that it only takes a minute to do.

23:48.600 --> 23:49.940
Like it it's very easy.

23:50.000 --> 23:54.980
Um and I don't even need to use like an existing um pre-built library or anything.

23:54.980 --> 23:56.700
It's just an optimization algorithm.

23:56.700 --> 24:06.680
So so when I said before that there's over a hundred different kinds of adversarial machine learning attacks um it's it's really easy to just sort of build them yourself.

24:06.680 --> 24:08.860
It's all optimization at the end of the day.

24:12.110 --> 24:27.450
So we can see on the screen here that the the code read out no match found and then when I add the perturbed image um sorry so that there was a match found um for the clean image and then when I added the distributed adversarial regions there was no match found.

24:27.690 --> 24:30.250
So the

24:34.690 --> 24:54.770
interesting thing about being able to like do the testing or maybe not the most interesting thing actually um but the the process of actually thinking about the attack surface and let me skip through here um thinking about the actual attack surface and what we're like affecting in this attack.

24:54.850 --> 25:09.390
So all computer vision most computer vision relies on convolution convolutional neural networks because they're the most powerful sort of model to be able to do this um and being able to create attacks that work for most of them it's actually pretty easy.

25:09.390 --> 25:31.610
So if we think about facial recognition the way that it works is that it it sort of takes your facial geometry and then is able to compress it into an embedding space um and being able to identify clusters and sort of relationships between them and then um based on that mapping you know be able to identify me versus not me I guess.

25:31.610 --> 25:38.270
And so when I have that information I can do things like create specific patterns that change that distribution.

25:39.430 --> 25:54.470
So if I go back and play um this other recording I want to be able to test doing things like um creating jewelry.

25:54.470 --> 25:56.850
So this is this is the example that I'm testing.

25:56.850 --> 26:12.590
So the the challenging thing about building models or thinking about model security is that all of these models that are that I'm testing on it doesn't actually take much to be able to disrupt them.

26:14.070 --> 26:17.650
Creating this attack is really very simple.

26:21.640 --> 26:24.720
Let me

26:29.350 --> 26:32.750
skip back to the slides while this uh while this loads.

26:35.480 --> 26:45.540
So maybe it doesn't look so interesting but being able to do that attack and like have it not recognize me um I guess that's a way of saying that I hacked the model right?

26:45.540 --> 26:57.220
I mean it was able to not recognize me because I created these sort of adversarial earrings that you know when the model looks at that that image of me um it doesn't recognize me.

26:57.700 --> 27:03.520
When I test it um that's the important part of the process right from machine learning perspective.

27:03.520 --> 27:05.580
This looks very boring too.

27:05.580 --> 27:13.600
Um I I tested all of those different models and I wanted to see the extent to which the attack actually works and decreases the confidence level of that attack.

27:13.600 --> 27:24.640
Um as a way of distilling all of the sort of the boring columns in the graph the number that we ended up with was a 40.4 percent reduction in like confidence.

27:24.880 --> 27:27.220
Um so what does that actually mean?

27:27.220 --> 27:28.740
Is is that significant?

27:28.780 --> 27:36.020
Um when I implemented this attack on the urban camouflage environments um it was more successful honestly.

27:36.020 --> 27:43.280
It's it's a bit easier for things like ships and military platforms because those models tend to rely a lot more on context.

27:43.880 --> 27:52.560
And in facial recognition it's a little bit harder because a lot of models would tend to um look at the geometry um slightly differently.

27:52.560 --> 28:05.360
But 40.4 percent on the whole of all of the models that I tested is actually really significant because that means that if I have say a confidence threshold of um like 90 percent.

28:05.360 --> 28:10.840
So a model looks at an image of me and says with 99 percent confidence that it is me.

28:10.840 --> 28:23.300
Being able to decrease that confidence by around 40 percent means that if it was originally 99 percent then it's going to be um 40 percent less than that and it's not going to meet that threshold.

28:23.300 --> 28:31.180
So I don't actually need to affect a massive change in the model to be able to have it not recognize who I am.

28:32.660 --> 28:36.240
And I guess the way of thinking about that is by calling it context.

28:36.240 --> 28:53.580
But really what it means is that most of the models that are already out there all of the open source models that we use and data scientists use and organizations in fact use and then fine tune are vulnerable to an attack like this which is really very simple you know.

28:53.580 --> 29:05.360
Um what I did by adding uh you know regions of perturbation to myself is really is definitely not the most sophisticated kind of attack.

29:05.380 --> 29:20.240
Um yesterday I was at an AI security forum and it was amazing because everyone was sort of talking about all of the latest breakthroughs in in AI security and how we can make models extremely secure and the technical and the governance things.

29:20.240 --> 29:35.540
The the really challenging thing though is that most organizations don't have that existing level of maturity and the kinds of models that they're using are these kinds of open source models that only take a few regions to be disrupted and to cause a misclassification.

29:35.600 --> 30:01.500
And thinking about the I guess thinking about what this actually means is really significant because while I've applied this to a computer vision use case so this could work for things like retina scanning, number plate recognition as well without actually having to change the object itself but just changing things around the object um really just highlights how brittle most models are.

30:01.760 --> 30:18.680
Um it also highlights that while I did this in a computer vision use case because that's sort of what what works for this um facial recognition casino context exactly the same kind of attack could be applied to different domains as well.

30:18.680 --> 30:23.100
So things like uh natural language processing and signal processing.

30:23.100 --> 30:35.440
And when we think about what natural language processing and signal processing actually are in an AI um use case context natural language processing does all the cyber security applications as well.

30:35.440 --> 30:45.640
So being able to identify uh malware, being able to um identify like good versus bad code um they're natural language processing problems.

30:45.780 --> 30:55.040
And if we can add perturbances that are actually not about the the thing that we're trying to classify but it's still able to disrupt the model that's a real problem.

30:55.040 --> 30:57.240
It's the same in the signal processing space.

30:57.240 --> 31:05.360
That's things like um RF and audio and um and LIDAR you know all the signal processing problems we have.

31:05.360 --> 31:14.500
Medical imaging um being able to add perturbances that aren't even related to the thing that you're trying to classify represent a massive problem.

31:15.660 --> 31:21.240
Um I did some other research that looked at this in large language models as well.

31:21.340 --> 31:40.100
Uh this isn't exactly a cool demo though I I wish it could be but basically I was looking at being able to add different sort of ideas to language models and see if they could um if they would sort of take up that information and have it alter the messages that they were giving.

31:40.100 --> 32:00.020
And we found that um after sort of a few simulations and a few iterations of being able to add this additional kind of like noise material they did actually successfully adopt these other um these other ideas even if that wasn't um sort of encoded into them already.

32:00.620 --> 32:09.480
The when when we think about attacking machine learning models the the challenging thing as well is that it's not the same as cyber security.

32:09.480 --> 32:17.580
Like when we think about testing a model and identifying uh what what makes a good model, data scientists will use scores like this.

32:17.580 --> 32:23.660
Um so they look at accuracy, they look at precision, um recall an F1 score sort of related to precision as well.

32:23.660 --> 32:31.680
They look at all the statistical um functions for a model that makes it um like largely accurate.

32:31.760 --> 32:39.160
But the security is rarely ever considered and it's very it's a very different problem to a cyber security problem.

32:39.160 --> 32:42.620
I mean what does it mean to hack an AI system itself?

32:42.620 --> 32:49.140
You know I I sort of looked at that 40.4 percent number and felt a little bit disappointed.

32:49.140 --> 32:51.520
Like I sort of wished that it was a bit more definitive.

32:51.520 --> 32:58.420
But the thing with hacking an AI system is that it's not really a a binary um did it work or did it not.

32:58.420 --> 33:02.840
But it's more about on the whole we were able to reduce the classification confidence of a model.

33:03.100 --> 33:07.400
So it's more it's better to think about it as part of the chain.

33:07.400 --> 33:13.500
And quite a lot of the attacks at the moment are very much um sort of like a Stuxnet equivalent.

33:13.500 --> 33:23.080
You know they're they're very complicated, they're very difficult to implement, that's why there's this idea that they're a bit more academic than than realistic or practitioner based.

33:23.300 --> 33:36.660
Whereas even though being able to add like these these random distributed regions to an image um isn't all that sophisticated that the fact that it works and it actually disrupts a model most of the time is a real problem.

33:36.660 --> 33:41.900
And it's it's sort of more akin to like the the DDoS attack equivalent in a machine learning sense.

33:42.240 --> 33:56.760
Because even though that number was 40.4 percent um in our experience if you're able to leverage some sort of AI attack or some sort of adversarial machine learning attack, you're able to hack the system 100 percent of the time.

33:56.760 --> 34:01.860
Because there's always a way that you can adapt it for whichever case study you need to.

34:01.860 --> 34:08.800
So the fact that so many organizations are reliant on these like inherently insecure models is a real problem.

34:10.580 --> 34:12.860
Because AI security is real.

34:12.860 --> 34:25.380
So if we're thinking about like next steps and lessons learned from an attack like this, um we already have a few companies starting to put out reports about the incidence of AI security related attacks.

34:25.440 --> 34:35.840
Uh and it's it's changing a lot like it's uh encouraging that since I started in the field it's definitely uh being taken more seriously and we're starting to see these incidents.

34:36.120 --> 34:45.920
Um but it's it's really unfortunate because we have so many lessons from the field of cyber security that we could bring into the field of AI security but they just aren't.

34:45.920 --> 34:52.280
So it's really important that all of the cyber folk in the room are thinking about how to solve these sorts of problems in AI security as well.

34:52.980 --> 35:00.860
Some of the um as I mentioned the the the interview with uh Casino Canberra was part of um many other interviews we've done.

35:00.860 --> 35:04.840
And we we've got these interesting insights already.

35:05.000 --> 35:11.040
Um 94% of the like people and organizations we spoke to could articulate how they use AI.

35:11.160 --> 35:16.720
Um even if maybe it's not what everyone would define as AI they they had an idea of how they use AI.

35:16.740 --> 35:22.820
Um but only 8% could articulate how they secure their AI and most of the time it's never really considered at all.

35:22.820 --> 35:34.780
The other reason I wanted to use the casino case study was because a casino is a really good sort of analogy for a society that it's starting to um be built around surveillance as well.

35:34.780 --> 35:46.680
Like casinos are built with surveillance in mind and societies are increasingly sort of moving towards using more AI specifically facial recognition AI to do important things as well.

35:46.680 --> 36:06.700
So the the the important thing to think about from like the the the perspective of actually what you can do with the knowledge of these attacks is that even now in the casino environment it's it's still entirely reliant on people and process.

36:06.960 --> 36:17.020
And especially as organizations like casinos are going through this inflection point in adopting different AI technologies.

36:17.060 --> 36:22.480
Um being able to actually like govern that and implement it well is still really hard.

36:22.660 --> 36:32.500
And even though over here we have lots of very um you know technical and and mature conversations about it, most organizations are out there are still really grappling with how to do it.

36:33.440 --> 36:38.160
It's you know it's still so so reliant on having people to surveil it.

36:38.700 --> 36:43.180
And at the end of the day you know I went into you know Casino Canberra.

36:43.180 --> 36:46.380
I asked very nicely if I could you know try hacking their things and they said yes.

36:46.380 --> 36:48.280
So what does it really mean?

36:48.480 --> 36:54.700
Um in terms of what Casino Canberra was able to do with this it's it's tough because they're reliant on third-party AI.

36:54.700 --> 36:58.700
So all you can do is sort of ask the questions and hope that you know you keep it in mind.

36:58.700 --> 37:07.760
But we're really so reliant on these organizations that provide the AI and there's no regulation around how they have to actually secure them or make sure that they're robust.

37:07.760 --> 37:13.400
So it's really challenging but at least being able to ask the question um it sort of helps.

37:14.480 --> 37:16.660
So um so that's it.

37:16.660 --> 37:21.680
I am talking tomorrow as well about my experience in the Australian government.

37:21.680 --> 37:25.820
I worked at an intelligence agency so I'm also speaking in the policy village.

37:25.820 --> 37:33.060
I'm one of the creator stages about um sort of the policy element of these AI security attacks as well.

37:33.280 --> 37:36.200
So thank you so much for coming and please do keep in touch.

