1 00:00:00,000 --> 00:00:02,800 Are there any Australians here in the room? 2 00:00:03,720 --> 00:00:04,440 Yes! 3 00:00:04,800 --> 00: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. 4 00:00:13,060 --> 00: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. 5 00:00:23,360 --> 00:00:27,720 So you know this shot is a lot of fun but you'll have a lot to learn from Australians. 6 00:00:27,720 --> 00:00:32,680 Um all right so yeah thank you very much for being here. 7 00:00:32,680 --> 00:00:34,000 I'm really stoked. 8 00:00:34,200 --> 00:00:39,680 Um the presentation today is called On Your Ocean's 11 Team I'm The AI Guy. 9 00:00:39,740 --> 00:00:42,820 Um even though I'm a girl it just has a better ring to it. 10 00:00:42,820 --> 00:00:44,720 I need to maybe find a better title. 11 00:00:44,940 --> 00: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. 12 00:00:55,160 --> 00: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. 13 00:01:00,440 --> 00:01:04,580 You sort of submit things and I didn't actually expect to get all of them in. 14 00:01:04,620 --> 00: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. 15 00:01:10,620 --> 00: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. 16 00:01:17,600 --> 00: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? 17 00:01:24,640 --> 00:01:27,480 We want it to be um to be sort of relevant. 18 00:01:27,620 --> 00:01:30,920 I thought it'd be an interesting topic to sort of go through AI security. 19 00:01:31,280 --> 00: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. 20 00:01:37,820 --> 00:01:39,800 If you consider yourself a cyber person. 21 00:01:41,000 --> 00:01:46,020 Okay and what about the people who would consider themselves an AI person? 22 00:01:47,000 --> 00: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. 23 00:01:52,780 --> 00:01:55,360 I feel like that's the camp I sometimes sit in. 24 00:01:55,380 --> 00:01:58,800 Um okay so I suspected that the crowd would mostly be cyber people. 25 00:01:58,880 --> 00:02:07,380 So um the talk is uh focused on sort of um explaining AI security in a way for for cyber folks. 26 00:02:07,380 --> 00:02:10,480 So there's a little bit of theory at the beginning and I apologize for that. 27 00:02:10,500 --> 00:02:13,100 And if you're an AI person please don't come at me. 28 00:02:13,600 --> 00:02:17,420 Um but before I now I know a little bit about who you are. 29 00:02:17,420 --> 00:02:18,380 Um who am I? 30 00:02:18,380 --> 00:02:22,300 Um I'm pretty sure I'm a human even though I fail the robot test sometimes. 31 00:02:22,640 --> 00:02:25,340 But um I'm in AI security. 32 00:02:25,340 --> 00:02:29,660 I've been working at the intersection of AI and security for about 10 years now. 33 00:02:29,700 --> 00:02:32,900 My undergraduate was in physics and I didn't really know what to do with it. 34 00:02:32,900 --> 00:02:35,440 So like many physicists I went into data science. 35 00:02:35,440 --> 00:02:40,080 And so I worked as a data scientist um in Australia in a consulting company for a while. 36 00:02:40,080 --> 00:02:41,980 Mostly on defense projects. 37 00:02:42,280 --> 00:02:45,960 Um I had my quarter life crisis and moved to the United States and worked at a startup . 38 00:02:46,520 --> 00:02:50,280 Um then during COVID I moved back to Australia and worked in the Australian government. 39 00:02:50,320 --> 00:02:53,120 And that's when I did my PhD in machine learning security. 40 00:02:53,320 --> 00: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. 41 00:03:00,400 --> 00:03:01,720 People are now fortunately. 42 00:03:02,040 --> 00:03:07,220 Um but that's why about a year ago I left my job and I started my company Maleva Security Labs. 43 00:03:07,220 --> 00:03:09,400 And we're a an Australian based startup. 44 00:03:10,020 --> 00: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. 45 00:03:15,560 --> 00:03:20,280 But you can also find me at Harriet Hacks on various social media platforms. 46 00:03:20,380 --> 00:03:21,820 Um maybe you can find me there if you want. 47 00:03:21,820 --> 00:03:23,080 It's it's a bit hacky. 48 00:03:23,080 --> 00:03:26,300 Like we all gotta start somewhere so please be forgiving. 49 00:03:26,800 --> 00:03:29,700 But our objectives today are to hack the casino. 50 00:03:29,820 --> 00:03:33,600 Um we've probably all heard of some pretty high profile casino related hacks. 51 00:03:33,700 --> 00:03:35,240 Um in the cyberspace. 52 00:03:35,240 --> 00:03:37,760 But I really wanted to explore the AI dimension. 53 00:03:38,020 --> 00:03:44,360 Um specifically because we are at the sort of inflection point where so many organizations including casinos are adopting AI now. 54 00:03:44,400 --> 00:03:46,420 Um and most of them are inherently insecure. 55 00:03:46,420 --> 00:03:47,800 So I wanted to test this. 56 00:03:47,800 --> 00:03:50,580 So we're going to start with some exploration work. 57 00:03:50,580 --> 00: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. 58 00:03:55,540 --> 00:03:58,900 Um then we're going to hack the facial recognition AI. 59 00:03:59,080 --> 00:04:03,240 Um and then I guess we have to think of some lessons learned in AI security right? 60 00:04:03,640 --> 00:04:09,240 So why did I pick the casino apart from thinking it would sort of fit for the Las Vegas Defcon context? 61 00:04:09,400 --> 00: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. 62 00:04:17,460 --> 00:04:24,400 And casinos are a really good example of an organization like this where you know the casino always wins right? 63 00:04:24,400 --> 00: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. 64 00:04:33,560 --> 00:04:36,500 And so thinking about security from that context is really important. 65 00:04:36,500 --> 00:04:41,020 But it's also a good analogy for literally every organization right now that's adopting AI. 66 00:04:42,200 --> 00:04:44,620 Um so a few disclaimers before I start. 67 00:04:44,620 --> 00:04:48,000 Um I worked with Casino Canberra on this. 68 00:04:48,000 --> 00:04:49,800 I you know that I'm from Australia. 69 00:04:49,800 --> 00:04:52,860 Well I'm from a town in Australia called Canberra. 70 00:04:52,980 --> 00:04:54,680 Does anyone know Canberra? 71 00:04:55,140 --> 00:04:56,020 Yay! 72 00:04:56,200 --> 00:04:59,460 Yeah Canberra's I I don't know I have a love-hate relationship with Canberra. 73 00:04:59,460 --> 00:05:03,140 It's pretty boring but it's um got a great quality of life. 74 00:05:03,800 --> 00:05:06,100 Um and you know it's got some things going for it. 75 00:05:06,100 --> 00:05:11,020 But we it's our political capital for those of you who might not know that. 76 00:05:11,100 --> 00:05:14,840 Um a lot of people think Sydney's our capital but it's it's actually Canberra. 77 00:05:14,840 --> 00:05:19,960 So imagine DC but like 1 14th of the size. 78 00:05:20,020 --> 00:05:23,200 Um because Australia is 1 14th of the population of the United States. 79 00:05:23,200 --> 00:05:24,720 So we only have one casino. 80 00:05:24,720 --> 00:05:28,980 And I'm really glad that they were willing to be you know really cooperative with with me on this. 81 00:05:28,980 --> 00:05:31,960 So um you know massive thank you to Casino Canberra. 82 00:05:32,060 --> 00:05:34,800 Um so they are our town's best casino. 83 00:05:34,800 --> 00:05:36,400 So that that's pretty exciting. 84 00:05:36,520 --> 00: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. 85 00:05:52,020 --> 00:05:56,680 And I I don't know any anyone who's familiar with Canberra would just find that shocking. 86 00:05:56,680 --> 00: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. 87 00:06:04,380 --> 00:06:06,340 I you know I care about Casino Canberra. 88 00:06:06,340 --> 00:06:11,140 I'm not literally showing you how to attack their systems or you know specific AI systems. 89 00:06:11,340 --> 00:06:15,660 Um and like I said the talk is aimed at at cyber at cyber folk. 90 00:06:16,820 --> 00:06:22,320 So a little bit about casinos for the people um like me who might not have known about casinos. 91 00:06:22,420 --> 00:06:24,160 Um they obviously like a lot of money. 92 00:06:24,160 --> 00:06:25,800 They have a controversial history. 93 00:06:25,800 --> 00:06:28,760 Um and there's a lot of reasons why that history is sort of controversial. 94 00:06:28,920 --> 00:06:34,660 Um casinos are a hot spot for money laundering because it's an easy way to move funds around. 95 00:06:34,660 --> 00:06:38,020 Um particularly in Australia there's been some controversy lately. 96 00:06:38,020 --> 00: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. 97 00:06:46,240 --> 00:06:48,420 Um and there's been royal commissions and stuff. 98 00:06:48,600 --> 00:06:51,000 Um it it's the same in other countries as well. 99 00:06:51,000 --> 00:06:52,780 Um casinos are getting a little bit of heat. 100 00:06:52,820 --> 00:06:54,320 So security's important. 101 00:06:54,820 --> 00:06:56,240 They use AI. 102 00:06:56,240 --> 00:06:59,200 Obviously otherwise this talk wouldn't have gone as I planned. 103 00:06:59,200 --> 00: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. 104 00:07:09,060 --> 00: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. 105 00:07:19,740 --> 00:07:24,360 And just like any organization they have to rely on third party providers for the most part. 106 00:07:24,360 --> 00: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. 107 00:07:30,120 --> 00: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. 108 00:07:40,860 --> 00:07:42,680 So it's a very small space. 109 00:07:43,580 --> 00: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. 110 00:07:52,000 --> 00:07:57,720 Um so you're probably familiar with card counting um and it's not illegal it's considered advantage play. 111 00:07:57,720 --> 00:08:03,700 So a casino however does have the discretion to like prevent people from playing there for any reason. 112 00:08:03,700 --> 00: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. 113 00:08:10,860 --> 00: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. 114 00:08:20,260 --> 00:08:22,800 So how do we actually hack an AI? 115 00:08:23,000 --> 00:08:27,860 Um what the sorry this is the first bad joke of the day. 116 00:08:28,300 --> 00: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? 117 00:08:35,320 --> 00:08:38,600 Because I know that was a pity laugh but thank you. 118 00:08:38,600 --> 00:08:42,200 Um she works in medicine and so to her that's what AI is. 119 00:08:42,200 --> 00: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. 120 00:08:54,880 --> 00:08:58,620 Um some people imagine Skynet and things like artificial general intelligence. 121 00:08:58,640 --> 00:09:03,080 Some people imagine um algorithms, machine learning systems. 122 00:09:03,120 --> 00:09:06,340 Some people just imagine anything that's sort of at the cutting edge of technology. 123 00:09:06,620 --> 00: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. 124 00:09:16,020 --> 00:09:19,420 So I'm I'm focusing very much on machine learning models. 125 00:09:19,680 --> 00: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. 126 00:09:27,060 --> 00:09:31,060 Um I mean the idea of hacking AI has been around for a long time. 127 00:09:31,340 --> 00:09:35,420 Um so this is a an example from a casino context. 128 00:09:35,420 --> 00:09:38,440 As we know that there are there are no random numbers in computers right? 129 00:09:38,440 --> 00:09:39,600 It has to be an algorithm. 130 00:09:39,600 --> 00:09:44,660 And so there are some pretty high profile cases of people being able to basically hack the algorithm. 131 00:09:44,860 --> 00: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. 132 00:09:52,880 --> 00: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. 133 00:10:02,260 --> 00:10:05,000 I hope they're not having more fun than us because they're very loud. 134 00:10:05,000 --> 00:10:06,740 Do I need more bad jokes? 135 00:10:06,740 --> 00:10:08,680 I I don't think you really want that either. 136 00:10:09,200 --> 00:10:12,400 Um so that's one example of hacking an AI I guess. 137 00:10:12,400 --> 00:10:14,240 Um and the other is sort of card counting. 138 00:10:14,360 --> 00: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. 139 00:10:20,120 --> 00:10:24,120 And that goes anywhere from sort of a 2 percent to a 25 percent advantage. 140 00:10:24,240 --> 00:10:29,320 Where 25 percent would sort of be like the slot machines and then 2 percent would be a game of blackjack. 141 00:10:29,320 --> 00:10:35,580 And that's why card counting and blackjack is most likely to be able to uh reduce the casino's favor. 142 00:10:35,580 --> 00: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. 143 00:10:43,280 --> 00:10:48,140 Um plus card counting you can reduce that to like um closer to closer to zero. 144 00:10:48,180 --> 00:10:53,400 Um and the only reason that the slot machines are 25 percent max is because of regulation anyway. 145 00:10:53,400 --> 00:10:55,500 Otherwise the casinos would probably want them to be higher. 146 00:10:55,500 --> 00: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. 147 00:11:00,980 --> 00: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. 148 00:11:06,840 --> 00:11:10,680 And everyone probably has seen this picture before so I feel like I have to show it. 149 00:11:10,680 --> 00: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. 150 00:11:23,600 --> 00: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. 151 00:11:33,500 --> 00: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. 152 00:11:40,580 --> 00:11:46,860 And it can disrupt or deceive the model um really successfully even though a human can't recognize it. 153 00:11:47,000 --> 00: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. 154 00:11:55,020 --> 00:11:57,680 It's basically the field that is coming up with the attacks. 155 00:11:57,680 --> 00:12:00,820 But it's um traditionally been very academic. 156 00:12:01,260 --> 00:12:05,340 Recently we're starting to see more examples of these kinds of things in real life. 157 00:12:05,520 --> 00: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. 158 00:12:17,520 --> 00:12:23,120 And in terms of the landscape of adversarial machine learning attacks it's massive. 159 00:12:23,120 --> 00:12:25,540 It's just exploded over the last 10 years. 160 00:12:25,540 --> 00: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. 161 00:12:45,180 --> 00: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. 162 00:12:57,940 --> 00:13:03,720 So most of the time these attacks require you to actually change something about the object itself right? 163 00:13:03,720 --> 00:13:06,860 So you have the panda example before. 164 00:13:06,860 --> 00:13:11,540 We have things like adversarial glasses that prevent a person being recognized from detection. 165 00:13:11,560 --> 00:13:16,600 You have like a jumper that can also hide a person from person detection. 166 00:13:16,600 --> 00: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. 167 00:13:33,100 --> 00: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. 168 00:13:43,660 --> 00: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. 169 00:13:51,040 --> 00:13:56,240 Um there are some examples of like attacks where you don't need to change the thing itself. 170 00:13:56,240 --> 00:13:58,360 This is called an adversarial sticker. 171 00:13:58,500 --> 00: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. 172 00:14:05,440 --> 00: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. 173 00:14:14,400 --> 00: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. 174 00:14:22,960 --> 00:14:24,960 But a model doesn't see it that way. 175 00:14:25,540 --> 00: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. 176 00:14:35,140 --> 00:14:39,220 Um and so I came up with this technique called distributed adversarial regions. 177 00:14:39,500 --> 00: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. 178 00:14:48,500 --> 00: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. 179 00:15:02,760 --> 00: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. 180 00:15:14,020 --> 00: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. 181 00:15:24,080 --> 00: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. 182 00:15:31,840 --> 00: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. 183 00:15:43,620 --> 00: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. 184 00:15:55,300 --> 00:15:57,880 So how does this relate to casinos? 185 00:15:57,880 --> 00:16:02,280 I assume everyone here is familiar with the Oceans 11 franchise. 186 00:16:02,800 --> 00: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. 187 00:16:07,480 --> 00: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. 188 00:16:14,840 --> 00:16:18,400 Ideally there's um like bourbon and suits and George Clooney. 189 00:16:18,400 --> 00:16:23,780 Um I did not get to have a George Clooney in my life um doing this talk but that's okay. 190 00:16:24,000 --> 00:16:26,720 Um so we get the premise of the heist. 191 00:16:26,900 --> 00:16:29,000 This is what I wanted to do. 192 00:16:29,020 --> 00:16:35,580 I wanted to understand uh casino Canberra's I don't know AI operational environment. 193 00:16:36,000 --> 00:16:40,820 Um then I'm going to pick some target models to create this attack. 194 00:16:40,820 --> 00:16:46,040 And then I'm going to you know implement the the the DAS, the distributed adversarial regions. 195 00:16:46,040 --> 00: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. 196 00:16:54,060 --> 00:16:55,740 So the first step. 197 00:16:55,740 --> 00:16:57,480 I I mentioned my PhD. 198 00:16:57,480 --> 00:16:59,900 I've been doing it part time for a really long time. 199 00:16:59,900 --> 00:17:02,320 So I feel like I should be finished but I'm not. 200 00:17:02,320 --> 00: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. 201 00:17:09,460 --> 00:17:12,680 My supervisors, only one of them knows I'm here right now. 202 00:17:12,680 --> 00:17:16,280 The other thing comes in Canberra like working working from the university. 203 00:17:16,660 --> 00:17:18,040 Um so don't tell them. 204 00:17:18,140 --> 00: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. 205 00:17:26,120 --> 00: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. 206 00:17:32,580 --> 00:17:37,520 It helps that I'm also sort of like nice and polite and you know people are always just very helpful. 207 00:17:38,200 --> 00:17:41,180 Um so this is what I did with Casino Canberra. 208 00:17:41,180 --> 00:17:43,860 And they were very willing to help which was nice of them. 209 00:17:44,040 --> 00:17:46,440 So this is Casino Canberra. 210 00:17:46,440 --> 00:17:52,020 Maybe it doesn't look like the Bellagio or the MGM Grand but like they have a a red carpet. 211 00:17:52,180 --> 00:17:53,460 Um it's very nice. 212 00:17:53,460 --> 00:17:55,480 It's right next to our Civic Centre. 213 00:17:55,480 --> 00:17:57,620 Um it's between there and the Convention Centre. 214 00:17:57,700 --> 00:18:00,400 Um it's you know they they they do okay. 215 00:18:00,580 --> 00:18:04,400 Um they're very excited about a new upgrade that that they're doing. 216 00:18:04,400 --> 00:18:05,340 They're going to get a lot bigger. 217 00:18:05,340 --> 00:18:06,320 There'll be a hotel. 218 00:18:06,620 --> 00:18:08,480 Um they've got it going on. 219 00:18:08,700 --> 00:18:15,480 So as part of this upgrade they're thinking about implementing artificial intelligence for the first time. 220 00:18:15,480 --> 00: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. 221 00:18:30,920 --> 00:18:35,180 But it's obviously very unequal in how casinos are able to adopt them. 222 00:18:35,180 --> 00: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. 223 00:18:43,380 --> 00:18:46,900 And in fact they would actually build their casinos using this AI in mind. 224 00:18:46,900 --> 00: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. 225 00:18:53,940 --> 00:18:57,160 And that's to make sure that your faces are actually caught by these cameras. 226 00:18:57,760 --> 00: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. 227 00:19:05,960 --> 00:19:14,340 So that they can use things like facial recognition to identify money launderers or known criminals or card counters I guess. 228 00:19:14,340 --> 00:19:18,460 Um also problem gamblers there are some you know nice use cases for it as well. 229 00:19:18,460 --> 00:19:21,820 They want to make sure that people aren't gambling too much just the right amount. 230 00:19:22,540 --> 00:19:26,000 Um and things like number plate recognition for cars is also really important. 231 00:19:26,020 --> 00:19:29,700 Um but in terms of AI this is very much a computer vision problem. 232 00:19:29,700 --> 00:19:32,860 So being able to see things in the environment and understand it. 233 00:19:32,860 --> 00:19:36,020 They don't really have a lot of use for other kinds of AI right now anyway. 234 00:19:36,020 --> 00:19:40,940 Not not things like chatbots or signal processing that's not that's not really in their realm. 235 00:19:41,820 --> 00: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. 236 00:19:50,160 --> 00:19:54,160 Um that's that's very much still dependent on on humans even here. 237 00:19:54,600 --> 00:19:58,680 So what I did next was I need to choose a victim right. 238 00:19:58,680 --> 00: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. 239 00:20:07,260 --> 00:20:13,780 So instead I had to pick uh an appropriate victim that would be close enough to something they would use. 240 00:20:13,920 --> 00: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. 241 00:20:22,740 --> 00: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. 242 00:20:27,960 --> 00:20:31,520 Does anyone want to shout out and guess what this number might represent? 243 00:20:34,550 --> 00:20:36,570 I actually can't hear anyone anyway. 244 00:20:36,570 --> 00:20:39,990 So I'm gonna assume that maybe one of you was right. 245 00:20:40,210 --> 00:20:48,570 Um so this number actually represents um some significant research into similarity of models. 246 00:20:48,570 --> 00: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. 247 00:20:57,590 --> 00: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. 248 00:21:12,190 --> 00: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. 249 00:21:16,930 --> 00:21:19,450 And that doesn't necessarily change the model itself. 250 00:21:19,450 --> 00:21:21,130 Certainly doesn't change the architecture. 251 00:21:21,130 --> 00:21:24,930 It might change uh you know sort of how you apply it to different use cases. 252 00:21:25,370 --> 00: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. 253 00:21:40,750 --> 00:21:43,150 It's a minimum of 95 percent similarity. 254 00:21:43,150 --> 00: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. 255 00:21:54,990 --> 00:21:56,770 So that's convergence. 256 00:21:57,570 --> 00:22:01,030 So there's a lot of different victim models that I wanted to test. 257 00:22:01,030 --> 00:22:05,070 Um like I mentioned I already did this attack for things like urban camouflage. 258 00:22:05,070 --> 00:22:08,430 So being able to do things like object detection and testing some of those models. 259 00:22:08,430 --> 00:22:12,470 Um I also added some of these facial recognition models um as well. 260 00:22:12,470 --> 00:22:15,750 These are just a few of the the open source models available at the moment. 261 00:22:16,090 --> 00:22:20,330 So the next step is to create these distributed adversarial regions. 262 00:22:20,730 --> 00:22:23,690 Um and this is a fairly boring diagram. 263 00:22:23,690 --> 00:22:28,030 So maybe I'll show you instead a slightly less boring video. 264 00:22:28,130 --> 00:22:33,910 Um it's very hard trying to create fun demos for this. 265 00:22:33,910 --> 00:22:34,450 I don't know. 266 00:22:34,450 --> 00:22:37,550 So um maybe I need to find a way. 267 00:22:37,550 --> 00:22:43,390 So so this is the um the the video that I'm testing on right? 268 00:22:43,390 --> 00:22:46,870 This is me walking up to their their detection. 269 00:22:47,470 --> 00:22:52,650 And this is uh me implementing the attack on one of my target models. 270 00:22:52,810 --> 00:22:56,490 Um so I'll talk through the method because it takes a couple of minutes. 271 00:22:56,690 --> 00: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. 272 00:23:14,330 --> 00: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. 273 00:23:26,150 --> 00: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. 274 00:23:42,760 --> 00: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. 275 00:23:48,600 --> 00:23:49,940 Like it it's very easy. 276 00:23:50,000 --> 00:23:54,980 Um and I don't even need to use like an existing um pre-built library or anything. 277 00:23:54,980 --> 00:23:56,700 It's just an optimization algorithm. 278 00:23:56,700 --> 00: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. 279 00:24:06,680 --> 00:24:08,860 It's all optimization at the end of the day. 280 00:24:12,110 --> 00: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. 281 00:24:27,690 --> 00:24:30,250 So the 282 00:24:34,690 --> 00: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. 283 00:24:54,850 --> 00: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. 284 00:25:09,390 --> 00: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. 285 00:25:31,610 --> 00:25:38,270 And so when I have that information I can do things like create specific patterns that change that distribution. 286 00:25:39,430 --> 00: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. 287 00:25:54,470 --> 00:25:56,850 So this is this is the example that I'm testing. 288 00:25:56,850 --> 00: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. 289 00:26:14,070 --> 00:26:17,650 Creating this attack is really very simple. 290 00:26:21,640 --> 00:26:24,720 Let me 291 00:26:29,350 --> 00:26:32,750 skip back to the slides while this uh while this loads. 292 00:26:35,480 --> 00: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? 293 00:26:45,540 --> 00: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. 294 00:26:57,700 --> 00:27:03,520 When I test it um that's the important part of the process right from machine learning perspective. 295 00:27:03,520 --> 00:27:05,580 This looks very boring too. 296 00:27:05,580 --> 00: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. 297 00:27:13,600 --> 00: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. 298 00:27:24,880 --> 00:27:27,220 Um so what does that actually mean? 299 00:27:27,220 --> 00:27:28,740 Is is that significant? 300 00:27:28,780 --> 00:27:36,020 Um when I implemented this attack on the urban camouflage environments um it was more successful honestly. 301 00:27:36,020 --> 00: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. 302 00:27:43,880 --> 00: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. 303 00:27:52,560 --> 00: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. 304 00:28:05,360 --> 00:28:10,840 So a model looks at an image of me and says with 99 percent confidence that it is me. 305 00:28:10,840 --> 00: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. 306 00:28:23,300 --> 00: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. 307 00:28:32,660 --> 00:28:36,240 And I guess the way of thinking about that is by calling it context. 308 00:28:36,240 --> 00: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. 309 00:28:53,580 --> 00: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. 310 00:29:05,380 --> 00: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. 311 00:29:20,240 --> 00: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. 312 00:29:35,600 --> 00: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. 313 00:30:01,760 --> 00: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. 314 00:30:18,680 --> 00:30:23,100 So things like uh natural language processing and signal processing. 315 00:30:23,100 --> 00: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. 316 00:30:35,440 --> 00: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. 317 00:30:45,780 --> 00: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. 318 00:30:55,040 --> 00:30:57,240 It's the same in the signal processing space. 319 00:30:57,240 --> 00:31:05,360 That's things like um RF and audio and um and LIDAR you know all the signal processing problems we have. 320 00:31:05,360 --> 00: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. 321 00:31:15,660 --> 00:31:21,240 Um I did some other research that looked at this in large language models as well. 322 00:31:21,340 --> 00: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. 323 00:31:40,100 --> 00: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. 324 00:32:00,620 --> 00: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. 325 00:32:09,480 --> 00: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. 326 00:32:17,580 --> 00: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. 327 00:32:23,660 --> 00:32:31,680 They look at all the statistical um functions for a model that makes it um like largely accurate. 328 00:32:31,760 --> 00: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. 329 00:32:39,160 --> 00:32:42,620 I mean what does it mean to hack an AI system itself? 330 00:32:42,620 --> 00:32:49,140 You know I I sort of looked at that 40.4 percent number and felt a little bit disappointed. 331 00:32:49,140 --> 00:32:51,520 Like I sort of wished that it was a bit more definitive. 332 00:32:51,520 --> 00: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. 333 00:32:58,420 --> 00:33:02,840 But it's more about on the whole we were able to reduce the classification confidence of a model. 334 00:33:03,100 --> 00:33:07,400 So it's more it's better to think about it as part of the chain. 335 00:33:07,400 --> 00:33:13,500 And quite a lot of the attacks at the moment are very much um sort of like a Stuxnet equivalent. 336 00:33:13,500 --> 00: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. 337 00:33:23,300 --> 00: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. 338 00:33:36,660 --> 00:33:41,900 And it's it's sort of more akin to like the the DDoS attack equivalent in a machine learning sense. 339 00:33:42,240 --> 00: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. 340 00:33:56,760 --> 00:34:01,860 Because there's always a way that you can adapt it for whichever case study you need to. 341 00:34:01,860 --> 00:34:08,800 So the fact that so many organizations are reliant on these like inherently insecure models is a real problem. 342 00:34:10,580 --> 00:34:12,860 Because AI security is real. 343 00:34:12,860 --> 00: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. 344 00:34:25,440 --> 00: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. 345 00:34:36,120 --> 00: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. 346 00:34:45,920 --> 00: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. 347 00:34:52,980 --> 00: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. 348 00:35:00,860 --> 00:35:04,840 And we we've got these interesting insights already. 349 00:35:05,000 --> 00:35:11,040 Um 94% of the like people and organizations we spoke to could articulate how they use AI. 350 00:35:11,160 --> 00: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. 351 00:35:16,740 --> 00: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. 352 00:35:22,820 --> 00: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. 353 00:35:34,780 --> 00: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. 354 00:35:46,680 --> 00: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. 355 00:36:06,960 --> 00:36:17,020 And especially as organizations like casinos are going through this inflection point in adopting different AI technologies. 356 00:36:17,060 --> 00:36:22,480 Um being able to actually like govern that and implement it well is still really hard. 357 00:36:22,660 --> 00: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. 358 00:36:33,440 --> 00:36:38,160 It's you know it's still so so reliant on having people to surveil it. 359 00:36:38,700 --> 00:36:43,180 And at the end of the day you know I went into you know Casino Canberra. 360 00:36:43,180 --> 00:36:46,380 I asked very nicely if I could you know try hacking their things and they said yes. 361 00:36:46,380 --> 00:36:48,280 So what does it really mean? 362 00:36:48,480 --> 00: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. 363 00:36:54,700 --> 00:36:58,700 So all you can do is sort of ask the questions and hope that you know you keep it in mind. 364 00:36:58,700 --> 00: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. 365 00:37:07,760 --> 00:37:13,400 So it's really challenging but at least being able to ask the question um it sort of helps. 366 00:37:14,480 --> 00:37:16,660 So um so that's it. 367 00:37:16,660 --> 00:37:21,680 I am talking tomorrow as well about my experience in the Australian government. 368 00:37:21,680 --> 00:37:25,820 I worked at an intelligence agency so I'm also speaking in the policy village. 369 00:37:25,820 --> 00:37:33,060 I'm one of the creator stages about um sort of the policy element of these AI security attacks as well. 370 00:37:33,280 --> 00:37:36,200 So thank you so much for coming and please do keep in touch.