[00:00.000 --> 00:06.600] Are there any Australians here in the room? Yes! So you might be able to tell from my accent I'm [00:06.600 --> 00:11.540] from Australia and back home we have a drinking tradition as well for special occasions and it's [00:11.540 --> 00:17.300] called a shoey. I don't know if any of you have heard of it but basically you pour like a shot [00:17.300 --> 00:22.580] in a shoe and you drink it from the shoe which sounds disgusting but it's a thing that Aussies [00:22.580 --> 00:27.720] do. So you know this shot is a lot of fun but you'll have a lot to learn from Australians. [00:27.720 --> 00:35.240] Um all right so yeah thank you very much for being here. I'm really stoked. Um the presentation [00:35.240 --> 00:42.260] today is called On Your Ocean's 11 Team I'm The AI Guy. Um even though I'm a girl it just has a [00:42.260 --> 00:47.960] better ring to it. I need to maybe find a better title. But this is my second time at DEF CON and [00:47.960 --> 00:53.380] my first time speaking and I'm a little bit jet lagged because of the the trip and I'm speaking [00:53.380 --> 00:58.700] four times this week. So forgive me if I'm a bit tired and like forgetting all the the order of [00:58.700 --> 01:02.720] the slides for various presentations. You sort of submit things and I didn't actually expect to [01:02.720 --> 01:08.160] get all of them in. So I'll be giving this talk um a little later in the AI Village as well and [01:08.160 --> 01:14.940] I gave a similar one at B-Sides. But um yeah as you can probably tell from the the description [01:14.940 --> 01:20.340] and the title of the talk I'm an AI person. So maybe the casino part has kind of been shoehorned [01:20.340 --> 01:26.420] into an AI security talk but I think it makes sense for Vegas right? We want it to be um to be [01:26.420 --> 01:31.900] sort of relevant. I thought it'd be an interesting topic to sort of go through AI security. Um but [01:31.900 --> 01:37.980] before I get into the topic can I get a show of hands um if you're like a cyber person. If you [01:37.980 --> 01:44.360] consider yourself a cyber person. Okay and what about the people who would consider themselves an [01:44.360 --> 01:51.360] AI person? Cool okay and anyone who finds these robot tests these days really hard and isn't sure [01:51.360 --> 01:56.560] if they're a person at all. I feel like that's the camp I sometimes sit in. Um okay so I suspected [01:56.560 --> 02:04.960] that the crowd would mostly be cyber people. So um the talk is uh focused on sort of um explaining [02:04.960 --> 02:09.020] AI security in a way for for cyber folks. So there's a little bit of theory at the beginning [02:09.020 --> 02:15.180] and I apologize for that. And if you're an AI person please don't come at me. Um but before I [02:15.180 --> 02:20.300] now I know a little bit about who you are. Um who am I? Um I'm pretty sure I'm a human even though [02:20.300 --> 02:26.900] I fail the robot test sometimes. But um I'm in AI security. I've been working at the intersection of [02:26.900 --> 02:31.960] AI and security for about 10 years now. My undergraduate was in physics and I didn't [02:31.960 --> 02:35.920] really know what to do with it. So like many physicists I went into data science. And so I [02:35.920 --> 02:40.660] worked as a data scientist um in Australia in a consulting company for a while. Mostly on [02:40.660 --> 02:45.560] defense projects. Um I had my quarter life crisis and moved to the United States and worked at a [02:45.560 --> 02:50.440] startup. Um then during COVID I moved back to Australia and worked in the Australian government. [02:50.440 --> 02:55.960] And that's when I did my PhD in machine learning security. And I found that at the time um when I [02:55.960 --> 03:00.560] started working in the field in 2021 no one was really talking about machine learning security. [03:00.560 --> 03:05.420] People are now fortunately. Um but that's why about a year ago I left my job and I started [03:05.420 --> 03:10.900] my company Maleva Security Labs. And we're a an Australian based startup. Um we provide [03:10.900 --> 03:14.540] workshops and training in AI security and we just got funding to do our first tech product [03:14.540 --> 03:20.280] which is exciting. But you can also find me at Harriet Hacks on various social media platforms. [03:20.380 --> 03:24.040] Um maybe you can find me there if you want. It's it's a bit hacky. Like we all gotta start [03:24.040 --> 03:29.700] somewhere so please be forgiving. But our objectives today are to hack the casino. [03:29.820 --> 03:34.560] Um we've probably all heard of some pretty high profile casino related hacks. Um in the [03:34.560 --> 03:39.980] cyberspace. But I really wanted to explore the AI dimension. Um specifically because we are at [03:39.980 --> 03:43.900] the sort of inflection point where so many organizations including casinos are adopting AI [03:43.900 --> 03:48.800] now. Um and most of them are inherently insecure. So I wanted to test this. So we're going to start [03:48.800 --> 03:53.560] with some exploration work. Um I didn't know much about casinos when I like came up with this topic [03:53.560 --> 03:59.820] so that that was part of it. Um then we're going to hack the facial recognition AI. Um and then [03:59.820 --> 04:05.120] I guess we have to think of some lessons learned in AI security right? So why did I pick the casino [04:05.120 --> 04:10.960] apart from thinking it would sort of fit for the Las Vegas Defcon context? Um so much AI is [04:10.960 --> 04:16.120] vulnerable however people only seem to care when you lose a lot of money or when there's a big hit [04:16.120 --> 04:22.340] on your brand reputation. And casinos are a really good example of an organization like this where [04:22.340 --> 04:27.460] you know the casino always wins right? So bringing people in the door and having people trust your [04:27.460 --> 04:31.760] brand and want to you know have entertainment when you're definitely statistically going to lose [04:31.760 --> 04:36.840] money um is tough. And so thinking about security from that context is really important. But it's [04:36.840 --> 04:41.020] also a good analogy for literally every organization right now that's adopting AI. [04:42.200 --> 04:48.520] Um so a few disclaimers before I start. Um I worked with Casino Canberra on this. I you know [04:48.520 --> 04:53.580] that I'm from Australia. Well I'm from a town in Australia called Canberra. Does anyone know [04:54.240 --> 04:59.540] Canberra? Yay! Yeah Canberra's I I don't know I have a love-hate relationship with Canberra. It's [04:59.540 --> 05:05.620] pretty boring but it's um got a great quality of life. Um and you know it's got some things going [05:05.620 --> 05:11.800] for it. But we it's our political capital for those of you who might not know that. Um a lot [05:11.800 --> 05:18.840] of people think Sydney's our capital but it's it's actually Canberra. So imagine DC but like 1 14th [05:18.840 --> 05:23.600] of the size. Um because Australia is 1 14th of the population of the United States. So we only [05:23.600 --> 05:27.800] have one casino. And I'm really glad that they were willing to be you know really cooperative [05:27.800 --> 05:33.140] with with me on this. So um you know massive thank you to Casino Canberra. Um so they are [05:33.140 --> 05:38.840] our town's best casino. So that that's pretty exciting. Um as a side note in my Uber ride over [05:38.840 --> 05:46.460] here my Uber driver said that his son vacationed in Australia and their honeymoon was in Canberra [05:46.460 --> 05:54.000] and they loved it so much that they named their child like Giovanno Canberra. And I I don't know [05:54.000 --> 05:58.640] any anyone who's familiar with Canberra would just find that shocking. But anyway um so going on [05:58.640 --> 06:04.380] with the disclaimers um so obviously the attacks uh are real but you know I'm an ethical hacker. I [06:04.380 --> 06:08.860] you know I care about Casino Canberra. I'm not literally showing you how to attack their systems [06:08.860 --> 06:15.660] or you know specific AI systems. 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:26.540] Um they obviously like a lot of money. They have a controversial history. Um and there's a lot of [06:26.540 --> 06:31.820] reasons why that history is sort of controversial. Um casinos are a hot spot for money laundering [06:31.820 --> 06:36.740] because it's an easy way to move funds around. Um particularly in Australia there's been some [06:36.740 --> 06:42.780] controversy lately. Our two big casino brands Star and Crown um had to pay big fines because [06:42.780 --> 06:47.580] they didn't comply with any money laundering laws. Um and there's been royal commissions and [06:47.580 --> 06:52.780] stuff. Um it it's the same in other countries as well. Um casinos are getting a little bit of heat. [06:52.820 --> 06:58.380] So security's important. They use AI. Obviously otherwise this talk wouldn't have gone as I [06:58.380 --> 07:04.920] planned. Um and they use AI for lots of different reasons and as I'll go into later um they they [07:04.920 --> 07:10.360] rely specifically on facial recognition and and person detection. Um but the landscape is really [07:10.360 --> 07:13.960] interesting when it comes to casinos because just like any organization they're trying to figure [07:13.960 --> 07:19.620] out exactly what the most strategic or the best way of actually adopting and integrating AI is. [07:19.740 --> 07:24.600] And just like any organization they have to rely on third party providers for the most part. Or [07:24.600 --> 07:28.180] they can bring in their own consultants but that's sort of expensive and not all casinos [07:28.180 --> 07:34.320] can necessarily do that. And there are also a few companies that provide AI services to casinos that [07:34.320 --> 07:41.300] are uh you know already um providing things like chips and and cards to casinos as well. So it's a [07:41.300 --> 07:48.100] very small space. Um when I first started this talk I thought that things like card counting [07:48.100 --> 07:54.680] would would be a use of AI in casinos and it's not. Um so you're probably familiar with card [07:54.680 --> 08:00.040] counting um and it's not illegal it's considered advantage play. So a casino however does have the [08:00.040 --> 08:04.820] discretion to like prevent people from playing there for any reason. So if a person is very [08:04.820 --> 08:09.400] ostentatiously card counting and winning a lot of money um probably the casino is going to not [08:09.400 --> 08:15.740] want to have them there. Um but it was interesting because I I expected that things like card [08:15.740 --> 08:23.480] counting would be a big use case for AI um and it wasn't. So how do we actually hack an AI? Um [08:24.380 --> 08:30.480] what the sorry this is the first bad joke of the day. Um so when I first told my mum I worked in [08:30.480 --> 08:36.940] AI she said oh darling what are you doing working in artificial insemination? Because I know that [08:36.940 --> 08:42.580] was a pity laugh but thank you. Um she works in medicine and so to her that's what AI is. And so [08:42.580 --> 08:48.000] obviously for most people here AI is artificial intelligence but even though we know it means [08:48.000 --> 08:52.620] those two words what people have in their mind when they think of what artificial intelligence [08:52.620 --> 08:57.800] is definitely differs. Um some people imagine Skynet and things like artificial general [08:57.800 --> 09:03.660] intelligence. Some people imagine um algorithms, machine learning systems. Some people just [09:03.660 --> 09:08.340] imagine anything that's sort of at the cutting edge of technology. Um so when we think about [09:08.340 --> 09:13.040] how to hack an AI system we really have to think about like the actual technology that we're trying [09:13.040 --> 09:17.560] to hack rather than sort of a some sort of AGI related goal. So I'm I'm focusing very much on [09:17.560 --> 09:23.300] machine learning models. But if we really think about the history of AI and if we think about it [09:23.300 --> 09:28.660] as just something that does something a human might otherwise have done. Um I mean the idea [09:28.660 --> 09:35.420] of hacking AI has been around for a long time. Um so this is a an example from a casino context. [09:35.420 --> 09:38.900] As we know that there are there are no random numbers in computers right? It has to be an [09:38.900 --> 09:43.280] algorithm. And so there are some pretty high profile cases of people being able to basically [09:43.280 --> 09:47.700] hack the algorithm. Um people who have access to sort of like the seed information of these [09:47.700 --> 09:54.400] algorithms um have been able to like steal money uh pretty large sums. In 1995 Ron Harris was able [09:54.400 --> 09:57.960] to steal a hundred thousand dollars this way because he knew about the algorithm was able to [09:57.960 --> 10:03.420] predict the next numbers very successfully in uh in a game of Keno. I hope they're not having more [10:03.420 --> 10:07.940] fun than us because they're very loud. Do I need more bad jokes? I I don't think you really want [10:07.940 --> 10:13.640] that either. Um so that's one example of hacking an AI I guess. Um and the other is sort of card [10:13.640 --> 10:18.660] counting. So if we think about it the reason that the casino always wins right is because the game [10:18.660 --> 10:23.040] is statistically in their favor. And that goes anywhere from sort of a 2 percent to a 25 percent [10:23.040 --> 10:28.620] advantage. Where 25 percent would sort of be like the slot machines and then 2 percent would be a [10:28.620 --> 10:33.820] game of blackjack. And that's why card counting and blackjack is most likely to be able to uh [10:33.820 --> 10:39.640] reduce the casino's favor. Because if you um if you use um like perfect strategy which is just [10:39.640 --> 10:44.760] doing the the plays that are statistically most likely to have you win. Um plus card counting [10:44.760 --> 10:49.800] you can reduce that to like um closer to closer to zero. Um and the only reason that the slot [10:49.800 --> 10:54.240] machines are 25 percent max is because of regulation anyway. Otherwise the casinos would [10:54.240 --> 10:57.720] probably want them to be higher. But that's an example of algorithm hacking too because you're [10:57.720 --> 11:02.440] hacking the statistical process of of being able to do that. So when we think about the modern [11:02.440 --> 11:07.120] iteration of hacking an AI system um we come to the realm of adversarial machine learning. And [11:07.120 --> 11:11.660] everyone probably has seen this picture before so I feel like I have to show it. But basically the [11:11.660 --> 11:19.060] idea is that you're able to um create specifically crafted adversarial examples that you can then [11:19.060 --> 11:24.560] input into a machine learning model to make it not do what it's meant to basically. So this [11:24.560 --> 11:31.260] example is from 10 years ago and this is like an image of a panda where you can have an adversarial [11:31.260 --> 11:37.500] example superimposed on top of that. Uh which is just um perturbations to the image specifically [11:37.500 --> 11:42.680] crafted based on the target model that you're trying to attack. And it can disrupt or deceive [11:42.680 --> 11:48.360] the model um really successfully even though a human can't recognize it. So adversarial machine [11:48.360 --> 11:54.040] learning is the the field that my PhD was in and you can consider it sort of the offensive side of [11:54.040 --> 11:59.280] AI security. It's basically the field that is coming up with the attacks. But it's um traditionally [11:59.280 --> 12:04.680] been very academic. Recently we're starting to see more examples of these kinds of things in real [12:04.680 --> 12:11.420] life. Um so being able to actually uh you know implement some change in the physical world that's [12:11.420 --> 12:15.980] able to prevent say autonomous vehicles from being able to recognize stop signs so they drive [12:15.980 --> 12:22.440] straight through. And in terms of the landscape of adversarial machine learning attacks it's [12:22.440 --> 12:27.400] massive. It's just exploded over the last 10 years. And if we think about all of the different [12:27.400 --> 12:33.540] attack surfaces represented by AI systems um so on the top things like convolutional neural [12:33.540 --> 12:39.020] networks which is a machine learning model really good at computer vision um versus something like [12:39.240 --> 12:43.980] a transformer along the bottom which is very good at natural language processing in the backbone of [12:43.980 --> 12:49.880] things like GPT. Um they're very different attack surfaces but many different adversarial machine [12:49.880 --> 12:55.220] learning methods now exist that are able to very successfully um do bad things at each stage of [12:55.220 --> 13:00.960] that attack at that attack surface. So most of the time these attacks require you to actually [13:00.960 --> 13:07.480] change something about the object itself right? So you have the panda example before. We have [13:07.480 --> 13:12.100] things like adversarial glasses that prevent a person being recognized from detection. You have [13:12.100 --> 13:18.180] like a jumper that can also hide a person from person detection. Um and the example I love on [13:18.180 --> 13:23.500] the bottom right is this um DARPA model that was meant to be used in sort of urban warfare [13:23.500 --> 13:27.920] environments to detect people and they asked their marines to try and red team that model [13:27.920 --> 13:32.560] and they found that the marines could just act not like people and very successfully deceive [13:32.560 --> 13:36.880] the model. So they did things like put cardboard boxes on their heads, they waved branches around [13:36.880 --> 13:41.800] and acted like trees whatever that means and they were very successfully able to hack the model. [13:43.660 --> 13:48.040] The the challenge with all of these things is that you're actually required to change something [13:48.040 --> 13:54.340] about the object itself that's being classified. Um there are some examples of like attacks where [13:54.340 --> 13:59.260] you don't need to change the thing itself. This is called an adversarial sticker. So if I put this [13:59.260 --> 14:06.100] next to something else a model is going to um like predict that this is a toaster. So if I put this [14:06.100 --> 14:11.540] next to a banana which is the sort of the example that they they give um instead of recognizing the [14:11.540 --> 14:16.780] banana the model is going to see a toaster instead. Um however this is sort of challenging because [14:16.780 --> 14:20.920] like this is very obvious like if I put this next to a banana I'd be like that's not meant to be [14:20.920 --> 14:27.800] there um that's a banana. But a model doesn't see it that way. So I had a thought I was like what if [14:27.800 --> 14:33.220] you could like change something about what's in the image frame itself but you didn't have to [14:33.220 --> 14:38.420] perturb the actual image. Um and so I came up with this technique called distributed adversarial [14:38.420 --> 14:44.880] regions. Um and this is part of my PhD where I was sort of coming up with this attack and so the [14:44.880 --> 14:49.920] intent for this was largely in urban camouflage environments. So being able to do things like [14:49.920 --> 14:57.660] have um specially crafted buoys around um ships for example like military ships so you think it's [14:58.460 --> 15:02.200] a a container ship instead or having it around other different kinds of military platforms. [15:02.760 --> 15:09.900] And if I can easily get the video working um this is just a very quick example of what this [15:09.900 --> 15:17.940] would look like. So if you have these sorts of buoys around um that's a Japanese U-boat [15:17.940 --> 15:25.360] um you can actually prevent the model from recognizing that platform. Um also don't come [15:25.360 --> 15:29.220] at me for them not being real buoys it would have been a very expensive endeavor to like put [15:29.220 --> 15:35.440] put buoys around a vessel. Um the thing about being able to digitally manipulate the images [15:35.440 --> 15:40.580] is that um you know it's a really good surrogate for not being able to actually change the physical [15:40.580 --> 15:48.260] environment um and being able to test it. So I I wanted to see if I could apply this technique [15:48.260 --> 15:57.080] to things like um facial recognition for this casino context. So how does this relate to [15:57.080 --> 16:04.620] casinos? I assume everyone here is familiar with the Oceans 11 franchise. Yes I mean it's it's a [16:04.620 --> 16:08.700] heist you know like we don't need to get too too thinking about it. The idea is that we're basically [16:08.700 --> 16:14.780] just bypassing all of these different um security levels that they have in a really cool way. [16:14.840 --> 16:20.460] Ideally there's um like bourbon and suits and George Clooney. Um I did not get to have a George [16:20.460 --> 16:26.720] Clooney in my life um doing this talk but that's okay. Um so we get the premise of the heist. [16:26.900 --> 16:34.740] This is what I wanted to do. I wanted to understand uh casino Canberra's I don't know AI operational [16:34.740 --> 16:41.620] environment. Um then I'm going to pick some target models to create this attack. And then I'm going [16:41.620 --> 16:46.520] to you know implement the the the DAS, the distributed adversarial regions. I'm going to [16:46.520 --> 16:52.100] test how I can sort of disguise them in different ways and then lessons learned and sort of next [16:52.100 --> 16:59.380] steps. So the first step. I I mentioned my PhD. I've been doing it part time for a really long [16:59.380 --> 17:04.460] time. So I feel like I should be finished but I'm not. Um now this is annoying because it's [17:04.460 --> 17:10.700] really hard to like simultaneously try and build a startup and also finish a PhD. My supervisors, [17:10.700 --> 17:15.100] only one of them knows I'm here right now. The other thing comes in Canberra like working working [17:15.100 --> 17:21.420] from the university. Um so don't tell them. But the good thing about still doing a PhD is not [17:21.420 --> 17:27.300] only do I get really good student discounts but people are very helpful. So if I reach out to [17:27.300 --> 17:32.820] people and I tell them that I want to do something as part of my PhD, people generally say yes. It [17:32.820 --> 17:37.520] helps that I'm also sort of like nice and polite and you know people are always just very helpful. [17:38.200 --> 17:43.140] Um so this is what I did with Casino Canberra. And they were very willing to help which was nice [17:43.140 --> 17:49.880] of them. So this is Casino Canberra. Maybe it doesn't look like the Bellagio or the MGM Grand [17:49.880 --> 17:55.900] but like they have a a red carpet. Um it's very nice. It's right next to our Civic Centre. Um it's [17:55.900 --> 18:01.400] between there and the Convention Centre. Um it's you know they they they do okay. Um they're very [18:01.400 --> 18:05.460] excited about a new upgrade that that they're doing. They're going to get a lot bigger. There'll [18:05.460 --> 18:12.920] be a hotel. Um they've got it going on. So as part of this upgrade they're thinking about implementing [18:12.920 --> 18:18.160] artificial intelligence for the first time. Something I was really interested to learn [18:18.160 --> 18:25.680] through doing this sort of research was that um facial recognition and person detection was by [18:25.680 --> 18:32.840] far the largest um like the most important form of AI for casinos. But it's obviously very unequal [18:32.840 --> 18:39.560] in how casinos are able to adopt them. So all of the casinos we have here in Vegas would very much [18:39.560 --> 18:44.140] rely on using AI and they would have very mature practices around it. And in fact they would [18:44.140 --> 18:49.300] actually build their casinos using this AI in mind. So when we walk around the casino you might [18:49.300 --> 18:53.940] 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:03.480] So as as a casino like Casino Canberra is thinking about their redesign this is very much inherent in [19:03.480 --> 19:08.800] how they actually decide to design the casino. So that they can use things like facial recognition [19:08.800 --> 19:15.860] to identify money launderers or known criminals or card counters I guess. Um also problem gamblers [19:15.860 --> 19:19.500] there are some you know nice use cases for it as well. They want to make sure that people aren't [19:19.500 --> 19:24.980] gambling too much just the right amount. Um and things like number plate recognition for cars is [19:24.980 --> 19:29.940] also really important. Um but in terms of AI this is very much a computer vision problem. So being [19:29.940 --> 19:33.580] able to see things in the environment and understand it. They don't really have a lot [19:33.580 --> 19:38.980] of use for other kinds of AI right now anyway. Not not things like chatbots or signal processing [19:38.980 --> 19:44.480] that's not that's not really in their realm. Um but right now they're also very much dependent [19:44.480 --> 19:50.160] on people just being able to um like identify those known people and then log them in the system. [19:50.160 --> 19:56.920] Um that's that's very much still dependent on on humans even here. So what I did next was I need to [19:56.920 --> 20:02.780] choose a victim right. Um like I said Casino Canberra doesn't currently use AI so I couldn't [20:02.780 --> 20:08.360] really use any like live facial recognition that they were using right now. So instead I had to [20:08.360 --> 20:14.960] pick uh an appropriate victim that would be close enough to something they would use. And you might [20:14.960 --> 20:19.780] think that this is a problem however it's not fortunately because of this principle in machine [20:19.780 --> 20:26.380] learning and its convergence. I don't know if this works with a big crowd um but I might try [20:26.380 --> 20:30.020] some audience participation I don't know. Does anyone want to shout out and guess what this number [20:30.020 --> 20:38.650] might represent? I actually can't hear anyone anyway. So I'm gonna assume that maybe one of [20:38.650 --> 20:46.290] you was right. Um so this number actually represents um some significant research into [20:46.890 --> 20:54.350] similarity of models. So if you have a model trained on similar data to do similar things [20:54.350 --> 20:59.690] you end up with a similar model like basically the same model. Um and this is actually really [20:59.690 --> 21:06.890] significant because a lot of the models that companies rely on and produce as part of their IP [21:07.430 --> 21:13.090] are very much or like or you know exactly the same as open source models. And in fact a lot [21:13.090 --> 21:17.390] of the time they do actually just use open source models and then do a bit of fine tuning. And that [21:17.390 --> 21:21.310] doesn't necessarily change the model itself. Certainly doesn't change the architecture. It [21:21.310 --> 21:27.570] might change uh you know sort of how you apply it to different use cases. But it a lot of research [21:27.570 --> 21:33.250] has been done to show that if you compare two models an open source model with uh like a a [21:33.250 --> 21:40.210] model that is a company's IP to do things like facial recognition, they are 95 to 99 percent [21:40.210 --> 21:46.110] similar. It's a minimum of 95 percent similarity. Which is really significant because it means that [21:46.110 --> 21:53.330] 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 --> 22:01.030] So that's convergence. So there's a lot of different victim models that I wanted to test. [22:01.030 --> 22:05.850] Um like I mentioned I already did this attack for things like urban camouflage. So being able to do [22:05.850 --> 22:10.210] things like object detection and testing some of those models. Um I also added some of these facial [22:10.210 --> 22:15.130] recognition models um as well. These are just a few of the the open source models available at the [22:15.130 --> 22:22.610] moment. So the next step is to create these distributed adversarial regions. Um and this is a [22:22.610 --> 22:28.990] fairly boring diagram. So maybe I'll show you instead a slightly less boring video. Um it's [22:28.990 --> 22:37.630] very hard trying to create fun demos for this. I don't know. So um maybe I need to find a way. So [22:37.630 --> 22:46.010] so this is the um the the video that I'm testing on right? This is me walking up to their their [22:46.010 --> 22:53.630] detection. And this is uh me implementing the attack on one of my target models. Um so I'll [22:53.630 --> 22:58.890] talk through the method because it takes a couple of minutes. But basically all I need to do to [22:58.890 --> 23:06.610] implement this attack is to perform an optimization algorithm on the video in question to identify [23:07.210 --> 23:13.070] different regions where if I perturb them in certain ways um they're going to cause a [23:13.070 --> 23:18.750] misclassification which sounds really easy. Um but the the difficult thing is in sort of making those [23:18.750 --> 23:23.910] areas not too obvious or at least being able to pick a few different regions that could reasonably [23:23.910 --> 23:33.070] actually be altered. And so this code shows me being able to like perform that optimization uh [23:33.070 --> 23:43.920] based on one of these victim models um making a prediction on on this video. If you're not a [23:43.920 --> 23:47.760] person who finds the code interesting uh maybe at least the thing you can take away is that it only [23:48.020 --> 23:53.720] takes a minute to do. Like it it's very easy. Um and I don't even need to use like an existing um [23:53.720 --> 23:57.600] pre-built library or anything. It's just an optimization algorithm. So so when I said before [23:57.600 --> 24:04.180] that there's over a hundred different kinds of adversarial machine learning attacks um it's it's [24:04.180 --> 24:08.860] really easy to just sort of build them yourself. It's all optimization at the end of the day. [24:12.110 --> 24:17.570] So we can see on the screen here that the the code read out no match found and then when I add [24:17.570 --> 24:23.930] the perturbed image um sorry so that there was a match found um for the clean image and then when [24:23.930 --> 24:35.630] I added the distributed adversarial regions there was no match found. So the interesting thing [24:35.630 --> 24:41.970] about being able to like do the testing or maybe not the most interesting thing actually um but [24:41.970 --> 24:49.890] the the process of actually thinking about the attack surface and let me skip through here um [24:50.530 --> 24:55.170] thinking about the actual attack surface and what we're like affecting in this attack. So [24:55.790 --> 25:00.790] all computer vision most computer vision relies on convolution convolutional neural networks [25:00.790 --> 25:06.790] because they're the most powerful sort of model to be able to do this um and being able to create [25:06.790 --> 25:11.230] attacks that work for most of them it's actually pretty easy. So if we think about facial recognition [25:11.230 --> 25:18.210] the way that it works is that it it sort of takes your facial geometry and then is able to compress [25:18.210 --> 25:23.570] it into an embedding space um and being able to identify clusters and sort of relationships [25:23.570 --> 25:30.810] between them and then um based on that mapping you know be able to identify me versus not me [25:30.810 --> 25:36.130] I guess. And so when I have that information I can do things like create specific patterns that [25:36.130 --> 25:46.670] change that distribution. So if I go back and play um this other recording [25:49.630 --> 25:55.450] I want to be able to test doing things like um creating jewelry. So this is this is the [25:55.450 --> 26:04.070] example that I'm testing. So the the challenging thing about building models or thinking about [26:04.070 --> 26:10.050] model security is that all of these models that are that I'm testing on it doesn't actually take [26:10.050 --> 26:29.850] much to be able to disrupt them. Creating this attack is really very simple. Let me skip back to [26:29.850 --> 26:38.740] the slides while this uh while this loads. So maybe it doesn't look so interesting but being [26:38.740 --> 26:43.880] able to do that attack and like have it not recognize me um I guess that's a way of saying [26:43.880 --> 26:49.860] that I hacked the model right? I mean it was able to not recognize me because I created these [26:49.860 --> 26:56.140] sort of adversarial earrings that you know when the model looks at that that image of me um it [26:56.140 --> 27:02.460] doesn't recognize me. When I test it um that's the important part of the process right from machine [27:02.460 --> 27:07.940] learning perspective. This looks very boring too. Um I I tested all of those different models and I [27:07.940 --> 27:11.960] wanted to see the extent to which the attack actually works and decreases the confidence [27:11.960 --> 27:18.060] level of that attack. Um as a way of distilling all of the sort of the boring columns in the graph [27:18.660 --> 27:25.980] the number that we ended up with was a 40.4 percent reduction in like confidence. Um so what [27:25.980 --> 27:31.880] does that actually mean? Is is that significant? Um when I implemented this attack on the urban [27:31.880 --> 27:38.380] camouflage environments um it was more successful honestly. It's it's a bit easier for things like [27:38.380 --> 27:43.280] ships and military platforms because those models tend to rely a lot more on context. [27:43.880 --> 27:48.940] And in facial recognition it's a little bit harder because a lot of models would tend to [27:48.940 --> 27:56.160] um look at the geometry um slightly differently. But 40.4 percent on the whole of all of the models [27:56.160 --> 28:01.940] that I tested is actually really significant because that means that if I have say a confidence [28:01.940 --> 28:09.000] threshold of um like 90 percent. So a model looks at an image of me and says with 99 percent [28:09.000 --> 28:16.480] confidence that it is me. Being able to decrease that confidence by around 40 percent means that [28:16.480 --> 28:21.920] if it was originally 99 percent then it's going to be um 40 percent less than that and it's not [28:21.920 --> 28:27.120] going to meet that threshold. So I don't actually need to affect a massive change in the model [28:27.120 --> 28:34.620] to be able to have it not recognize who I am. And I guess the way of thinking about that is by [28:34.620 --> 28:40.060] calling it context. But really what it means is that most of the models that are already out there [28:40.060 --> 28:45.720] all of the open source models that we use and data scientists use and organizations in fact use [28:45.720 --> 28:53.580] and then fine tune are vulnerable to an attack like this which is really very simple you know. [28:53.580 --> 29:01.880] Um what I did by adding uh you know regions of perturbation to myself is really is definitely [29:01.880 --> 29:08.200] not the most sophisticated kind of attack. Um yesterday I was at an AI security forum [29:08.200 --> 29:13.040] and it was amazing because everyone was sort of talking about all of the latest breakthroughs in [29:13.040 --> 29:18.920] in AI security and how we can make models extremely secure and the technical and the [29:18.920 --> 29:23.940] governance things. The the really challenging thing though is that most organizations don't [29:23.940 --> 29:29.800] have that existing level of maturity and the kinds of models that they're using are these kinds of [29:29.800 --> 29:35.540] open source models that only take a few regions to be disrupted and to cause a misclassification. [29:35.600 --> 29:42.940] And thinking about the I guess thinking about what this actually means is really significant [29:42.940 --> 29:48.940] because while I've applied this to a computer vision use case so this could work for things [29:48.940 --> 29:54.180] like retina scanning, number plate recognition as well without actually having to change the [29:54.180 --> 29:59.680] object itself but just changing things around the object um really just highlights how brittle [29:59.680 --> 30:08.680] most models are. Um it also highlights that while I did this in a computer vision use case because [30:08.680 --> 30:15.740] that's sort of what what works for this um facial recognition casino context exactly the same kind [30:15.740 --> 30:21.020] of attack could be applied to different domains as well. So things like uh natural language [30:21.020 --> 30:26.100] processing and signal processing. And when we think about what natural language processing [30:26.100 --> 30:32.980] and signal processing actually are in an AI um use case context natural language processing does all [30:32.980 --> 30:40.420] the cyber security applications as well. So being able to identify uh malware, being able to um [30:40.420 --> 30:47.040] identify like good versus bad code um they're natural language processing problems. And if we [30:47.040 --> 30:52.000] can add perturbances that are actually not about the the thing that we're trying to classify but [30:52.000 --> 30:56.040] it's still able to disrupt the model that's a real problem. It's the same in the signal [30:56.040 --> 31:03.900] processing space. That's things like um RF and audio and um and LIDAR you know all the signal [31:03.900 --> 31:09.960] processing problems we have. Medical imaging um being able to add perturbances that aren't even [31:09.960 --> 31:14.500] related to the thing that you're trying to classify represent a massive problem. [31:15.660 --> 31:22.140] Um I did some other research that looked at this in large language models as well. Uh this [31:22.140 --> 31:27.340] isn't exactly a cool demo though I I wish it could be but basically I was looking at being [31:27.340 --> 31:35.180] able to add different sort of ideas to language models and see if they could um if they would [31:35.180 --> 31:41.080] sort of take up that information and have it alter the messages that they were giving. And we found [31:41.080 --> 31:47.900] that um after sort of a few simulations and a few iterations of being able to add this additional [31:47.900 --> 31:53.920] kind of like noise material they did actually successfully adopt these other um these other [31:53.920 --> 32:02.600] ideas even if that wasn't um sort of encoded into them already. The when when we think about [32:02.600 --> 32:07.880] attacking machine learning models the the challenging thing as well is that it's not the [32:07.880 --> 32:14.360] same as cyber security. Like when we think about testing a model and identifying uh what what makes [32:14.480 --> 32:19.420] a good model, data scientists will use scores like this. Um so they look at accuracy, they look [32:19.420 --> 32:24.360] at precision, um recall an F1 score sort of related to precision as well. They look at all the [32:24.360 --> 32:33.260] statistical um functions for a model that makes it um like largely accurate. But the security is [32:33.260 --> 32:39.160] rarely ever considered and it's very it's a very different problem to a cyber security problem. [32:39.160 --> 32:44.500] I mean what does it mean to hack an AI system itself? You know I I sort of looked at that [32:44.500 --> 32:50.180] 40.4 percent number and felt a little bit disappointed. Like I sort of wished that it [32:50.180 --> 32:55.380] was a bit more definitive. But the thing with hacking an AI system is that it's not really a [32:56.080 --> 33:01.260] a binary um did it work or did it not. But it's more about on the whole we were able to reduce [33:01.260 --> 33:06.540] the classification confidence of a model. So it's more it's better to think about it as part of the [33:06.540 --> 33:12.860] chain. And quite a lot of the attacks at the moment are very much um sort of like a Stuxnet [33:12.860 --> 33:17.660] equivalent. You know they're they're very complicated, they're very difficult to implement, [33:17.660 --> 33:21.980] that's why there's this idea that they're a bit more academic than than realistic or [33:21.980 --> 33:28.260] practitioner based. Whereas even though being able to add like these these random distributed [33:28.260 --> 33:33.720] regions to an image um isn't all that sophisticated that the fact that it works and it actually [33:33.720 --> 33:38.140] disrupts a model most of the time is a real problem. And it's it's sort of more akin to like [33:38.140 --> 33:43.560] the the DDoS attack equivalent in a machine learning sense. Because even though that number [33:43.560 --> 33:51.180] was 40.4 percent um in our experience if you're able to leverage some sort of AI attack or some [33:51.180 --> 33:56.340] sort of adversarial machine learning attack, you're able to hack the system 100 percent of the [33:56.340 --> 34:01.860] time. Because there's always a way that you can adapt it for whichever case study you need to. [34:01.860 --> 34:07.820] So the fact that so many organizations are reliant on these like inherently insecure models is a real [34:07.820 --> 34:16.020] problem. Because AI security is real. So if we're thinking about like next steps and lessons [34:16.020 --> 34:21.140] learned from an attack like this, um we already have a few companies starting to put out reports [34:21.140 --> 34:28.220] about the incidence of AI security related attacks. Uh and it's it's changing a lot like it's uh [34:28.220 --> 34:34.020] encouraging that since I started in the field it's definitely uh being taken more seriously [34:34.020 --> 34:39.160] and we're starting to see these incidents. Um but it's it's really unfortunate because we have [34:39.160 --> 34:43.960] so many lessons from the field of cyber security that we could bring into the field of AI security [34:43.960 --> 34:48.840] but they just aren't. So it's really important that all of the cyber folk in the room are thinking [34:48.840 --> 34:55.200] about how to solve these sorts of problems in AI security as well. Some of the um as I mentioned [34:55.200 --> 35:00.860] the the the interview with uh Casino Canberra was part of um many other interviews we've done. [35:00.860 --> 35:08.220] And we we've got these interesting insights already. Um 94% of the like people and organizations [35:08.220 --> 35:14.040] we spoke to could articulate how they use AI. Um even if maybe it's not what everyone would define [35:14.040 --> 35:19.380] as AI they they had an idea of how they use AI. Um but only 8% could articulate how they secure [35:19.380 --> 35:23.940] their AI and most of the time it's never really considered at all. The other reason I wanted to [35:23.940 --> 35:30.700] use the casino case study was because a casino is a really good sort of analogy for a society [35:30.700 --> 35:35.820] that it's starting to um be built around surveillance as well. Like casinos are built [35:35.820 --> 35:41.660] with surveillance in mind and societies are increasingly sort of moving towards using [35:41.660 --> 35:50.020] more AI specifically facial recognition AI to do important things as well. So the the the important [35:50.020 --> 35:58.620] thing to think about from like the the the perspective of actually what you can do with [35:58.620 --> 36:04.040] the knowledge of these attacks is that even now in the casino environment it's it's still [36:04.040 --> 36:12.920] entirely reliant on people and process. And especially as organizations like casinos are [36:12.920 --> 36:18.580] going through this inflection point in adopting different AI technologies. Um being able to [36:18.580 --> 36:23.760] actually like govern that and implement it well is still really hard. And even though over here [36:23.760 --> 36:29.420] we have lots of very um you know technical and and mature conversations about it, most organizations [36:29.420 --> 36:36.160] are out there are still really grappling with how to do it. It's you know it's still so so reliant [36:36.160 --> 36:42.640] on having people to surveil it. And at the end of the day you know I went into you know Casino [36:42.640 --> 36:46.560] Canberra. I asked very nicely if I could you know try hacking their things and they said yes. So [36:46.560 --> 36:51.800] what does it really mean? Um in terms of what Casino Canberra was able to do with this [36:51.800 --> 36:55.880] it's it's tough because they're reliant on third-party AI. So all you can do is sort of [36:55.880 --> 37:00.540] ask the questions and hope that you know you keep it in mind. But we're really so reliant [37:00.540 --> 37:05.480] on these organizations that provide the AI and there's no regulation around how they have to [37:05.480 --> 37:09.740] actually secure them or make sure that they're robust. So it's really challenging but at least [37:09.740 --> 37:17.860] being able to ask the question um it sort of helps. So um so that's it. I am talking tomorrow [37:17.860 --> 37:23.060] as well about my experience in the Australian government. I worked at an intelligence agency [37:23.060 --> 37:29.780] so I'm also speaking in the policy village. I'm one of the creator stages about um sort of the [37:29.780 --> 37:34.940] policy element of these AI security attacks as well. So thank you so much for coming and [37:34.940 --> 37:36.200] please do keep in touch.