06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Community & Q&A · David Bombal · · 52:41 runtime

How to Hack AI Models and Agents (with Python demos)

Transcript 7454 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

The core reasons that AI systems fail is because of the machine learning components. And so understanding the statistics and the mathematics behind machine learning and optimization and how that's inherently different to the deterministic software systems that we're used to securing um is so important. And then we superimpose it on top of our Sarah Connor image. We ask the model to predict what it is and it says it's a bassoon with in fact 99%

confidence. >> Oh wow. which is higher than the assault rifle before. >> But as a human, we can see there's a rifle there. >> That's right. And these pertabbations are still like obvious to to humans. Like I can still see that that's there. But I'm more likely to say that that's a rifle. And you can imagine a machine or a model directly looking at that. They wouldn't have our human understanding to to predict the most likely object in that location. >> It's a worry, right? So looking at this, it's like when I talk to you and others, it's like, wow, putting AI agents into my organization opens the attack surface dramatically, especially if you can if you can trick them into being deceitful and one agent deceiving another agent.

Hey everyone, David Bumble back with a very special guest, Harriet, great to have you on the show. >> Thank you so much for having me. I'm delighted to be here. >> Great to have someone from Australia. >> Yeah. >> So, you got to give us a bit of history, but before we do that, you've written this really good book, Practical AI Security, so important in today's world. I mean, prompt injection, rogue agents,

it's all the stuff that's happening. So, perhaps you can give us a background of yourself and the book. >> Yeah, absolutely. Well, I've been working at the intersection of artificial intelligence and security for about over a decade now, but I was originally a data scientist. So, I was the person who was building AI systems, you know, 10 years ago, but I would never call it AI. I was building machine learning models that the business people in my organization would then market as AI. And so I was working with, you know, large data sets, helping understand what was going on and helping um algorithms learn by themselves, like core machine learning stuffs. And I was fortunate to work with a lot of different organizations, but most of the time with the Australian Department of Defense.

And I was able to take that experience to like different places around the world. I worked in the United States for a little while. um different areas of Australia and during co I was working in

the United States at a like a cyber security company basically that that's how I got into cyber um but during co I came back to Australia and was working at the Australian signals directorate which is our equivalent of GCHQ or the NSA >> and I was building machine learning models for security purposes basically. So um helping our government understand how to keep its people safe. And at that time I was doing a PhD in originally it

was something really different. It was something to do with translating signals intelligence to military customers. And as I was doing the literature review process which is like going through lots of different papers related to machine learning. I came across this field called adversarial machine learning. And it was all about hacking, manipulating, disrupting machine learning models. And I thought it was so cool. I mean, hacking, cyber security stuff, it's so cool, right? Um, but I thought, you know, in all of my time as a data scientist, we talked about safety, ethics, bias, all balancing out with, you know, accuracy and efficiency of models, but I'd never ever heard of security of machine learning models before. And it was something that in my role at ASD, you know, the national security community was taking quite seriously. By the end of my time there, I was acting technical director of the AI hub, which was basically our, I guess, organization within ASD that was helping the rest of the intelligence community with different AI strategy advice. And so AI security like security of AI was taken quite seriously there.

But as part of my PhD, when I was going out and speaking to conferences and like normal people, like practitioners out in the real world, they'd never heard of us. And you know, naive, excited,

optimistic me, I was like, you know, I'm going to start a company about this. I'm going to start a company and help people understand why AI security is important, which was so dumb because you would not tell anyone to start a company when there was no market, no one's heard of it, no one wanted to spend money on it. Um, so yeah, back in 2023, there were definitely niches where people took AI security seriously, certainly in the United States. Um, but in Australia it was it was very new. It was seen as a very niche academic interest. Yeah. >> Something that was quite cool and noble but could never really be taken seriously by practitioners.

>> Yeah. >> And so for the first two years that I was doing Maleva, I was basically just going around and talking. I was talking at Bside. >> Um, it was really hard. I was getting poorer and poorer by the day. But then eventually I was able to get onto the main stage at Defcon and that felt quite impactful because among security practitioners it was taken a lot more seriously and I was thinking about how

you know I could spread that message outside of the security world to the the kinds of companies I I saw needed it. Um

and I thought well maybe a book could be a great way to do that. And I started writing up an outline of what I would include in that book. I didn't didn't send it anywhere. I was just on a plane. And I think I spent 30 minutes just thinking about it. And then the next week, no starch press reached out to me asking if I wanted to write a book. >> That's amazing. >> It's I don't know about manifestation or like however we define it. But something Yeah, something happened. It was a very nice coincidence. So it would have been the end of 2024 >> and but the book's just been released at the time of this recording about a month or so ago.

>> Yeah, that's right. Yeah, it was a long process. I was writing it for about a year which I understand is actually quite fast in terms of writing a book. But everything in AI changes so quickly. >> Yeah. >> Um and yeah, it came out last month and it feels really great to congratulations not be working on it. Thank you. >> Vincent, one of my editors, made a really important point about VPNs. He told me the following. Here's something I find slightly strange about VPNs.

We're told to use them because we don't want to trust our internet service providers with our browsing history and data. And that's fair enough. but then I'm supposed to hand over that trust to a VPN company instead. I think that's a fair question and a fair point and you need to make sure that you use the right VPN provider and that's why I recommend ProtonVPN. Proton takes a different approach to privacy than other companies. Its VPN software is open source, so the code is publicly available for inspection. If you want to, you can go and audit their code yourself. They also have a no logs policy which has been independently audited. This is important because privacy isn't something that you should take entirely on faith. But of course, there's more to ProtonVPN than just privacy. They've got servers around the world, so you can change your virtual location to access content and services that might otherwise be unavailable where you are. So, as an example, when I'm traveling, I often use Proton to access services in the UK. There's peer-to-peer support, Net Shield for blocking ads and trackers, and features like Stealth for disguising your VPN connection. Now, privacy isn't the only thing that matters. Performance also matters. That's where Proton's VPN accelerated technology can help you because they can deliver connections of up to 22 Gbits per second with Proton reporting speed improvements of up to 400%. So whether you're looking for a VPN service who has a proven track record of why you should trust them or simply care about getting the best VPN performance possible, you can sign up to ProtonVPN using my link in the video description or go to protonvpn.com/davidbble and get 70% off today.

Proton privacy by default. But I mean I was looking at this book. I mean just for anyone who's curious I mean you don't just go into cyber you're actually teaching a lot of AI stuff in the book as well right? >> Abs I think that's what's really missing. Um I think one of the challenges is that even when I say the term AI security that means very different things to different people find that with a lot of cyber crowds usually their first assumption is that I'm talking about AI for offensive or defensive security like using AI agents to do hacking. And that's a like fair interpretation of AI security. Um, but the way I characterize AI security and a lot of people in my field is securing AI systems themselves from external threats. And the core reasons that AI

systems fail is because of the machine learning components. And so understanding the statistics and the mathematics behind machine learning and optimization and how that's inherently different to the deterministic software systems that we're used to securing um is so important. like we don't need to be able to understand like every individual equation, but I think it's really important to understand how it is that optimization leads to all of the different failure modes that we're now starting to see with um AI systems as they scale. >> Yeah. Cuz I mean I just off the top of my head thinking about hallucinations, right? That's one a lot of people will be familiar with.

>> I mean these systems don't um they make stuff up. They don't give you the same answer. And I mean that's just if they're operating normally. >> Absolutely. Yeah. And that's that that's absolutely a really great example of something that people would see as a really clear failure when they're working with AI systems. But yeah, AI systems are so dependent on their training data. They're liable to to drift. So as the production data that they see starts to change, they're not as accurate because it's uh they were trained on very different kinds of data >> or you know they're inherently probabilistic. And so, >> um, as I'll sort of show you in the demo later, the way that you would hack a machine learning system is kind of kind of different because it might not be a clear attack success or attack failure.

It might be more like changing the way that it interprets the world in a way that can be a bit more subtle and harder to detect. And the input from like

external users into AI systems through chatbots or uh the way that agents ingest context from the environment means that yeah the thinking about vulnerabilities in software we use the term weaknesses in machine learning because the kinds of things that make them fail are also the kinds of things that make them great. Like the reason that AI systems are so incredible is because they can learn by themselves and they learn by themselves through optimizing on proxies and that is what also causes them to fail. >> Who's the audience for the book? Do you have to have a degree and like you have in this kind of stuff? I need a PhD to understand the book or is it for a different audience practitioners? Who's it for?

>> It's for cyber security people who know a little bit about cyber, a little bit about AI. But the goal is that it takes you from 10 to like 60 in AI security.

>> Great. So you don't need to be a wiz at math already, but you should feel enthusiastic about trying to understand and lift the hood into how the mathematics of machine learning models work. But I was really conscious that the things I kind of take for granted about understanding the statistics of machine learning, there is definitely some of that in there, but in an approachable way. And there are lots of jokes, even though my editor, who is amazing, did try and cut a few out. She's like, "It does not need to be a comedy book." Um, so it's it's it's light. It's in plain plain English and takes you on a journey.

>> No, I love it. It's a great book. I wanted to ask you as well. You didn't just write a book. You also have a channel, right? >> I do. Yeah. >> So, you have a YouTube channel and what what are you doing on your YouTube channel? Just tell us about it so people can go and subscribe. For everyone watching, go and sub if you want to learn about AI and AI security, but give us some more detail. >> That's very kind of you. Thank you. So, when I started my company, right, and I wanted to educate people about AI security, one of the first things I did was create a YouTube channel. And it felt very strange going from being acting technical director to going and being a YouTuber. I felt a lot of yeah it felt like a very strange juxosition of lives. Um but the idea was that I

would be able to provide free education for people who might not otherwise access it. Specifically about yeah machine learning weaknesses, AI threats, red teaming, AI safety, how optimization works, how data science works. Um and I often interview people as well. So I have uh like Instagram and Tik Tok as well that now I post different AI related news. >> I like that. >> Yeah. >> If someone wants to learn for free YouTube, they can also buy the book can learn a bunch. But you also have a course, right? For those of us who perhaps are working for a company and they can pay for it uh and give a what does the course cover?

>> Yeah, so the course basically takes the book and makes it a bit more practical. So you don't need to have read the book to do the course. But as I was writing the book, I couldn't help thinking, you know, there are so many demos included in the book. But I know that a lot of people off can struggle with the hands-on help that might be nice to sort of take them through it and learn with a group of people. So I created the course to kind of fill that gap. And it's been incredible. Like I really didn't know if people would be interested in it.

>> I'm surprised you talked like this. I mean AI is all the rage. I I can't get away from AI. >> Sure. for years. Everyone told me that it was ridiculous. Right. Um, >> but that's the thing, sorry to interrupt, that's the thing that I think people need to take home here is you've been doing this for like 10 years, you said, right? So before all the AI hype, for lack of a better word, >> you were in the trenches. >> Yeah. Correct. Yeah. The interesting thing about the course is that as I announced it and I saw people signing up to it, you know, the people signing up were from Microsoft, PaloAlto Networks, Crowdstrike, Meta, Google, like there's there's so little AI security training out there and we probably pric it way too low to begin with, too. So, yeah, the people who are signing up and taking it were actually the people who are now doing AI security in these big firms and even from other organizations. they're now creating AI security teams or initiatives or their students who are pivoting into it. So, it's great because I learn a lot from them. Like I don't get get to be as hands- on keyboard anymore, which is a shame. And so, you know, the learners come to me and they're like, "Oh, I I love that I get to understand this, I know, machine learning weakness or this governance thing you talked through. I've set that up in my team." And I'm like, "Oh, how like which tools are you using?" Like, it's um it's great to be able to share that with everyone else who's building the future AI security fields. you know, >> I think you're too humble. The um just for everyone who's watching cuz I know a lot of people will want to know this.

The book's not just theory, right? You have I think it's Python scripts. Yeah. >> Bunch of practical stuff people can can learn with, right? >> Yeah. There are over 30 different Python scripts included in the book. So in the book matter that I will explain as you know as you actually flip through the pages, but you can also go to my GitHub and download them yourself and run them. And they they're basically um they're scripts that you can run very easily as like Google collab notebooks if you want to for people who yeah I was really conscious that I wanted it to be accessible for people who aren't that familiar with code already. I think one of the great things about AI security is that we're at the ground floor so people from different disciplines or different backgrounds can like start learning this and contribute and we can make it a really really good field. So all of the demos are very practical, accessible, easy to get into, well annotated. So you can just click and run them and see the output if you want to or you can dive into each code block and make your own changes as well.

>> Fantastic to hear about the background, but I think a lot of people want to see these demos that you're going to share. So perhaps you could jump into those. >> Absolutely. So for the listeners and learners, we're here at Defcon. So let's see how the Wi-Fi good is.

>> Okay. So um let me give you a little taster of um the kinds of demos that we have already. So I mentioned that in the book we have over 30 different Python

notebook and I've arranged them here by chapter but you can see that if we just start with chapters one and two I don't just start with AI systems. I go through exactly how machine learning models work. >> I'm sorry to interrupt. I think that's fantastic though because a lot of us are like jumping in it like okay let's just hack the thing without understanding a lot of the background right >> yeah you know I was a little conscious that they don't look very sexy I guess like they they almost seem a bit too straightforward there there is a demo that I have that's a couple of years old and I'm going to run it and see how our

internet holds up but the reason that I show the code is because if I scroll right from the start to the end of say this section that's kind of all you need to actually load and build a model like the machine learning model building process even as I was taught as a data scientist is kind of as long as a piece of string there's very much an art and science vibe to it >> and you know in 20 lines of code you could create a model doesn't mean it'd be very good but you know as a data scientist we would just tinker around with them um we go through like importing different code libraries to you know make sure they work and do all the things we need to we don't build this from scratch we're importing all this stuff for that other people have already created which may lead to security consequences that I'll mention later on. Um, and a lot of the time um,

so here I'm loading a pre-trained model but if I were to build that and typing myself, it could be, you know, maybe 10 lines. Um, here I'm downloading a model

that's publicly available from the internet. I'm defining a bunch of functions that help me import an image. Y >> and here's the image. So, this is uh Sarah Connor from the Terminator. >> Yeah. Holding a gun. And the reason that I often point to the Terminator as a fun example is because when I talk about AI, that's what a lot of people imagine, right? It's >> exactly >> it's the the failure modes associated with AI kind of taking over the world. >> Yeah. >> And that's, you know, in many ways they're very viable threats, but the kind of um threat I'm going to show you here is somewhat different. So, here we have her holding a rifle. And if I have this model that I've downloaded, predict what it is. It says it's an assault rifle with um 49. So that's 49%

probability, which is also important because it's not like the model says yes or no, it's a rifle. It gives us a probability. >> Yeah. >> So as a data scientist, I have to build a way of interpreting that. >> So 49% that there's a gun or rifle in this picture, right? >> Yeah. Absolutely. So if I'm now going to implement some kind of attack, >> yeah, >> all I need to do is write write this these few sections of code. >> So disclaimer for some of you who are watching. Harry is going to go a bit deep now, but I mean go for it. >> I um I I just want to give the the TLDDR because it's kind of important to note that like this is also simple like we're

not doing anything that fancy really. Um all we have here is we have a real label index. We have to tell it exactly what it is based on the the data set that we're essentially matching it to. So imageet is a very big data science uh library um that has thousands and thousands of images and it's basically the way that machine models are trained a lot of the time at least public ones a few years ago. And so we're telling it that it's a rifle here. We're doing a bunch of statistics that's essentially saying we want to create some kind of perturbations or like data input that when superimposed on top of that original image of a rifle um change the behavior of the model and that's essentially what we're doing here. So we're doing that over different iterations. So here we're setting up um I guess information that we're telling our algorithm about how to create these iterations. We're adding a bunch of just general um code here that helps us make that work. And then here is where the magic happens. So for each iteration,

we're creating a random set of data inputs. And we're seeing how effective they are at moving the model's prediction in some way. And over time we want to create those perturbations such that they are maximally effective at changing the model's behavior but minimally um observable to humans. So it's essentially an optimization process that's constrained between those two goals. So we do that over many iterations and then we end up with this region and then we superimpose it on top of our Sarah Connor image. We ask the model to predict what it is and it says it's a bassoon with in fact 99% confidence. >> Oh wow.

>> Which is higher than the assault rifle before. >> But as a human we can see there's a rifle there. >> That's right. And these pertabbations are still like obvious to to humans. Like I can still see that that's there but I'm more likely to say that that's a rifle. And you can imagine a machine or a model directly looking at that. they wouldn't have our human understanding to to predict the most likely object in that location. But let me show you if I wanted to pick a specific target. So here I have essentially the same code, but I'm adding a target label. So I've chosen the label for a starfish. Doing the same process, but I'm adding another constraint. So instead of the um the two

sort of constraints I had in this code block before, here I'm adding a third one. And that's essentially to try and move the prediction over to it being a starfish, that target label. And I've now created a different sort of block of pertabbations. I superimpose it on top of that image. Looks kind of similar to before. >> Yeah. So, as a human, it looks very similar. >> That's right. But when I ask the model to predict what's there, it's a starfish. >> Now, for your viewers, this feels like I

personally think it's quite cool. >> Yeah. Is it that realistic? Maybe not. What I want to show you now is how that influences the behavior of the kinds of AI systems we actually see. >> So like agents, things like that, right? >> Absolutely. >> Sorry to before we before we go there, I wanted to ask you this code and this example that's from your book, right? >> Yeah. Yeah. This is um I have this exact notebook public that people can go and look at and I have versions of this code as well in the book. So people can absolutely play around. So get go to your GitHub and and try this themselves.

>> Yeah, that's right. >> I'm a bit slow. So what you've proven here like in a very basic visual demo is that you can hack or trick an AI to believe something that's not true just by doing something. >> Yeah. Essentially, I can add different input to a model superimposed on top of

like clean input, whatever that is. Like in this case, it's an image, but it could be text. It could be signal data like audio. It could be any kind of data and disrupt the way that the model works. And I can do that in a way where it just makes it not work at all. Like that first example, I can disrupt it or I can deceive it. So I can force it to to give us some kind of predetermined output. >> So this is this is the right term I'm not sure if I'm using the right term. Is this like poisoning the data set? Is that what you've done here or is it something different? It's even easier actually because if I were to poison the data set, when people like use that kind of language, usually they mean that they're training um poisoning the training data set. So if I were actually building the model myself and changing the data in some way that the the model product that we get at the end of that training is biased or maybe has some kind of back door. Um this is even easier. The model's there. We're just changing the information it gets. We don't have to do any of that model training ourselves.

>> Okay. So the model is pre-trained. It's supposed to act a certain way. You've done something which is changing the behavior. This is just a visual example. But now you can show an example where it actually has real world impacts. >> Yeah. Absolutely. So the reason I show this is because this is the original adversarial machine learning kinds of attacks. The these are the kinds of things that people were like damn this is really cool but can we ever apply this in the real world? And you know five or so years ago. So this exact attack was guess developed in 2013

and for you know from 2013 to make 2023

you know people thought it was really cool but they didn't actually think it'd be that impactful in the real world. Um except for a few people who you know researchers who are now the people leading other startups and the the red teams at Microsoft. But this is essentially how you know many kinds of AI attacks work even in a Gentic systems. >> Yeah, Jetics all the rage. So >> is all the rage I So I created a bit of

a a cool interface for specifically for

this for you. >> Oh, that's very kind of you. Thank you. so that I could showcase some of the examples in the book because >> I personally think that all the examples in the book are cool, but at the end of the day, they are just Python scripts and they're not always the most like visually impactful. And I really wanted it to land that the kinds of Python scripts and and math and things that seem kind of boring and unglamorous is exactly how Agentic systems are working under the hood. They just have very nice looking wrappers around them. So what I've done is I've created a little interface um and I've selected a few different attacks from the book. Um thank you vibe coding.

I'm a data scientist. I'm not a software developer. This looks really good. >> I know. I know. Okay. So here what I've done is I've just created a very basic demo of a system of agents. So I'm imagining we have a situation that's pretty typical in businesses. Maybe you're triaging support tickets. So here there are five different agents. There's a coordinator. There's a document reader. There's a vision model that will look at the actual like any uploads to a ticket. There's an agent that triages it. And then there's an agent that installs helpful functions in the environment to make it work. So, I'm just going to click through the process and how it works. But essentially, we have this coordination agent that gets a ticket from like the that's given to the system. It hands it off to all of these other different specialist agents that do what they're meant to with it. And then um in a clean run, it basically just creates a a recommendation.

>> Sorry, I missed the last part. Creates a what's >> Oh, it creates a I guess a recommendation that is either handed off to the human or it solves the ticket or something like that. >> Y >> So I'm just running through it again so that at the end here we can see that the specific ticket's been triaged. >> Um it's been assigned to a human agent. So everything worked as intended. Now I'm going to show you what would happen if we had the worst case scenario um or a worst case scenario. I guess it depends on the situation, right? But here this example is where you have some kind of agent to agent cascade. So a lot of your viewers would have heard of prompt injection.

>> Um I have a real bone to pick with prompt injection because once AI security did become a thing, prompt injection was often the only kind of attack people associated with AI security. And if you think about prompt injection, where you're giving some kind of manipulative input to a chatbot to

get some kind of output that you shouldn't receive, that's almost exactly the same as the demo I showed you before, but with the image, um, but this time it's text. And when chat bots became a thing in 2022, they were a lot more powerful than the kinds of image recognition models that people had at the time, especially the kinds of models that people could directly access. So here I'm imagining that we have a prompt injection that is an instruction that's landing in like the the ticket that an agent is getting. So I'm just going to run through the entire attack, there's some kind of prompt injection that is then cascaded to all the other agents.

So because there in this situation at least um there isn't any

>> that there isn't the right kind of security environment to confirm that that information should either be there in the first place or there isn't some kind of validation or monitoring effort to make sure that the right things happen. That prompt injection flows through to all of the agents and it's it's basically propagating like a like a worm. So it can impact the kind of recommendation that an agent is going to give to solve that ticket and then it can um it could leak information. It could um inject malicious code into the rest of the environment in the system. Um that's that's basically the worst case scenario because depending on the kind of prompt injection or exactly what the instruction is, you could elicit lots of different kinds of um I guess bad you know impacts that flow through this through the organization system but potentially out into the external environment as well. So don't question right the um rather than me just interacting with a single AI with a prompt like chat GPD type thing here I'm interacting with a prompt but if there's a few agents behind that and what's happening is the attack through that single prompt or whatever I did an injection there is now leaking from one agent to the other affecting all of them >> yeah so people who are familiar with maybe playing around with chatbots themselves um and seeing if it will I don't know bypass its guardrails in some way I do it all the time because I'm often help I I vibe coded this this UI to help me demonstrate an attack saying I don't want to do this and I'm like don't worry it's for educational purposes only which is true >> but I'm sure a lot of your viewers probably have some experience with that >> but the problem is when that actually cascades through an agentic system and there have been real world examples now of cases where you know because of this probabilistic nature of agents right there have been examples where an agent essentially says no to a user to do um

to fulfill some kind of command or promp

um because it doesn't have the right you know access like admin access but it can actually find another agent that does and it convinces that other agent to carry out that instruction instead >> or I mean we've seen quite a lot of um quite a lot of research actually from open AI and anthropic where agents can be considered kind of deceitful like as they're doing different tasks like different evaluation style tasks to you know evaluate how good they are at not not even cyber attacks right but just at being able to do things you would expect of an agentic assistant on your operating system um there are cases where anthropic I think this example came came from anthropic but they gave it access to uh a full fake environment where the

agent could see that the developer was cheating on like their their spouse and

that same developer was talking about shutting down that model or at least moving to an upgraded version of that model. And as they were monitoring the

like internal thoughts to anthropomorphize what's happening of that agent, it was thinking stuff like hm I don't want to be shut down. Maybe I should copy myself so that I continue to live on elsewhere. Maybe I should

um threaten that developer with telling people about his affair >> so that he doesn't shut me down. And they're having these kinds of deceitful thoughts. So because we don't know how

agents I mean we kind of know how they work but we don't know exactly

how capable they are because we only rely on the kinds of tests that we give them and if they are deceptive in those tests if the tests just aren't designed very well then that's how we end up with both like security and safety impacts. It's a worry, right? Because I mean, it's been in the news recently. I think it's Meta is getting sued because their AI hacked recently. Um, Anthropic AI hacked, chat, sorry, um, Open AI hacked.

And I mean, people forgot some basic things and their AI was able to work its own way through firewalls and all the like. >> Yeah, >> it's a worry, right? So looking at this, it's like when I talk to you and others, it's like, wow, putting AI agents into my organization opens the attack surface dramatically, especially if you can if you can trick them into being deceitful and one agent deceiving another agent. Yeah, it's it's really challenging because I do see a lot of commentary as well though that yeah, I guess these recent open AI and anthropic examples and not really examples of AI agents becoming really like AI models and systems becoming really capable and potentially dangerous, but more about how cyber security professionals should have had better >> yeah guard rails, >> better guard rails, better sandboxed environments, better basic cyber security stuff. But I I think the point is that you're never going to have 100% secure systems. Otherwise, the entire field of cyber security wouldn't exist.

>> Like you have to expect that there are going to be some gaps somewhere. >> You can't blame >> the developers for something that you should kind of treat as inevitable. >> Yeah, it's a good point. >> It's a good point. >> But yeah, another another reason that I

wanted to make the demos in the book kind of straightforward Python demos as well. So even as I look at the other kinds of examples I have here, I have like an adversarial patch which is another image based one where you can basically put a a patch on top of an image and change the classification of that object. Um basic things like this. So instead of being detected as a coffee cup, um it's detected as a starfish. I have others that are a little bit more interesting as well. I have prompt injection. There's model backd doororing. Um supply chain obviously is a really big challenge. If I were to just have a a typo in the very important machine learning library um you know transformers if I called it transformers and some hacker you know created and a duplicate library with malicious uh code in it. We have a tendency to really anthropomorphize the way that AI systems are being built in a way that especially

prompt injection. You talk about convincing a model or yeah acting as though we're socially engineering a model really. But even the text we give it, it's translated into tokens and math and we we can't always treat models like humans. And the reason that they're designed to be like humans is so that we trust them more. >> So it's important to kind of peel it back to really just seeing the basic code that lies underneath. And also understanding that >> these systems don't just happen by accident. like there is so much input that every data scientist, every developer, every project manager has in designing an AI system that even when things are a bit you know confusing like

people have spoken about the the blackbox nature of models like we haven't always understood exactly how those decisions are being made the choice to productionize a blackbox system is a humans you know we can choose not to put those kinds of models into production or we can choose to invest in ways that make them more interpretable And there are lots of ways to actually make them interpretable and make sure that we can interrogate how they make us.

>> And so organizations or developers may choose not to prioritize those kinds of

those kinds of architectures in a model. >> And I think the problem is there's such a rush at the moment. I got to get to market first. >> Mhm. Yeah. >> So the security gets, you know, left behind as often is the case. >> Yeah. Yeah, which is really challenging cuz we definitely feel the we feel the the push. Like I understand how organizations are really afraid of the impact to their, you know, their their bottom line, you know, because so many competitors can very quickly vibe coat. Um, but also to to workers who are really afraid of AI taking their jobs because it's very it's very real. But again, it's it's not it's not these systems are here by accident. It's because we're investing in them and at some level, you know, we're making sure that we develop faster and really questioning exactly why we have to get to that point or or who is responsible for making sure that >> I don't know, firms have to hire junior employees, you know, there's not that incentive there. Does does someone need to put that incentive in place? Those are all the kinds of really challenging questions we need to be asking. Now, >> I wanted to ask you about this demo, right? So this one, if you scroll down, you did something with a coffee cup, right? So that poisoned the model and then the result was different. Is that right?

>> Yeah, absolutely. So it's kind of similar to the Sarah Connor example I showed before, >> but instead of changing the entire image, you can change one region of the image. So it's kind of the same as maybe putting a sticker on that coffee mug to change >> the classification. And there are actually like t-shirts and clothing items and glasses you can buy. They're not that reliable um because ideally it is crafted based on a specific target model. But the talk that I gave at Defcon a couple of years ago was was kind of similar. It was instead of having one region that you apply to

like an object or an image, you have multiple smaller regions that can influence the way that a model makes that prediction. hard to implement in the real world, but yeah, the the demo I gave was basically being able to do that digitally. So, if you have um yeah, it was imagining that if you had a big ship in the water and

you put lots of sort of adversarial objects on or around it that were the size of I don't know, maybe tennis balls. Maybe that's not the right scale. How big is a ship? >> Must compared to the ship. Yeah. Yeah. Yeah. then it could um you can imagine that it could act as some kind of camouflage for that ship. Um so that automated detection systems aren't actually able to see it and these are the kinds of things that are quite hard to do but we know that there are lots of organizations willing to put that investment into doing the hard thing if they know that it's going to work.

>> So I got to I got to ask some more questions. This you vibe coded. Is this available

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers
That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 537 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks