start	end	text
0	3360	Hi, everyone, and thank you so much for coming to our talk.
3360	7900	We just want to do a quick shout out to Bug Bounty Village for having this talk
7900	11820	and for DEF CON for the Creator Stage. This is pretty cool.
12320	15140	And just a reminder to everyone, please be nice to your goons
15140	19860	and also be nice to all the volunteers. They're putting so much time and energy in this.
19860	23400	So, just throwing it out there. So, welcome to I've Got 99 Problems
23400	27820	but a Prompt Injection Ain't Pineapple. My name is Chloe Masayuki.
27820	30660	I'm the Head of Threat Intelligence over at Hidden Layer.
31660	35680	And I'm Casimir Schultz. I'm a Zero-Day Researcher over at Hidden Layer as well.
37540	42140	So, we're going to go on this journey together, talking first about AI vulnerabilities to make
42140	46860	sure that we're all on the same page of what is out there, what kind of vulnerabilities exist in
46860	51660	AI. And then we're going to go into the public perception of AI vulnerabilities, of course,
51660	58360	and the true size of that landscape where CAS basically owns that type of landscape.
58360	63560	And then I'll dive into the open source nature of AI and the reporting challenges.
63860	69500	We did do some research with BugCrowd, HackerOne, and Integrity. So,
69500	74320	big thanks for them for being transparent with us about what they're seeing and experiencing.
75300	80160	So, when we think about AI vulnerabilities, I don't know about you, but it seems like the
80160	86020	whole world thinks of this, where it's like, end of the world. It's, you know, I'll be back. I
86020	91060	cannot do RL source negative for the life of me as boys. But you get the point. But even within
91060	96000	our own industry in itself, there's so much misinformation, disinformation out there when
96000	103560	it comes to security for AI. And yes, we know how to spell. That is a generated AI image over there.
103560	111680	They're not good yet. So, let's go dive down the rabbit hole of AI vulnerabilities.
112640	117220	And we're going to go into each one of these sections, so we're all on the same page once again.
117500	121560	First, we're going to go down the attacks against the AI algorithms. Then we'll go
121560	126200	through attacks against the filters and generative AI. And then I'll be passing
126200	131520	the mic over to CAS, and he's going to go down the AI artifacts and the supply chain attacks.
133560	139660	So, data poisoning attacks are basically, think about it as model training is crucial for like AI
139660	144780	development, right? And it's incredibly vulnerable to data poisoning, which is when there's like
144780	151040	malicious actors tend to manipulate or inject doctorate data or to like bias the model's
151040	157080	behavior. And continuous learning systems are especially at risk as they retrain on
157080	163260	unvalidated user supply data. Even small amounts of poison data can actually lead to a bias or
163260	169600	incorrect predictions and can be amplified by public manipulation or botnets. Does anyone remember
169600	176380	Tay? Microsoft Tay on Twitter, now known as X? Raise your hand. Okay, for those aren't familiar,
176380	185080	in March 2016, Microsoft introduced a chat bot on Twitter, which now is known as X. And it was so
186060	192740	nice and friendly. It was like, hello world, how are you? And you know how the world responded on
192740	198660	Twitter, as you can imagine, it's full of trolls. Well, within 16 hours, this thing became the most
198660	205420	racist, sexist thing on the planet. And of course, this was a problem for Microsoft because, you know,
205420	212040	that's not good PR for them, clearly, right? So, then we have model evasion attacks. So, inference
212040	218300	attacks, they tend to exploit AI models by curing them to extract sensitive information, often using
218300	224540	slightly varied inputs to reconstruct the model that leading to potential model theft or bypass.
224600	232000	So, evasion attacks is a type of bypass, used subtle, like really, really subtle,
232500	239300	to change the inputs. And this could be basically like adding invisible noise to trick the models
239300	245600	into misclassifications. And these techniques have been used by cyber criminals, and even ourselves
245600	251060	once in a while, like testing things out, such as bypassing security systems, like spam filters,
251060	258540	malware detection, and biometric authentication. Has anyone been in a self-driving car before?
259960	267060	Okay. Raise those hands a little bit higher. How many of you? Okay. That's cool. I have not.
267100	271360	But I want you to imagine you're in this self-driving car for those that haven't been in
271360	277960	one. And if you've been in one, imagine you're back in that car again. And while you're at this
277960	287320	stop sign, your car does this really weird thing, like it just slides to the left, slides to the right,
287320	295720	and then it takes it back, y'all. One hop this time. Left foot, let's stomp. Right foot, let's stomp.
295720	300400	And cha-cha real slowly. I know it's a little bit hard to imagine with a car doing it, but use your
300400	306260	imagination. It's been a few days in Las Vegas. We've all lost our minds at this point. But there's
306260	312720	already been examples of this, where a car gets to a stop sign, a self-driving car, and there's
312720	320140	stickers that are on the stop sign itself, and so it bypasses that stop sign and keeps driving
320140	327160	forward. That is an example of a model evasion attacks. And then you have model theft attacks. So
327160	332720	adversaries target AI models to mislead and steal them, leading to intellectual property theft
332720	337160	by replicating or extracting sensitive data. And now you may be wondering, what are those
337160	343260	groups of people that are trying to do that? Well, nation state, your competitors, definitely,
343260	350220	and then also you got your criminals out there. So even without public access to inference attacks
350220	357320	via interfaces or APIs, it can replicate models or extract valuable info from it. So there are
357320	361240	these things called oracle attacks, and they're known by NIST, and they include three different
361240	367860	types. So extraction attack, which is when you steal the model's structure. You have inversion
367860	373720	attacks, which is to steal the model's structure. And then, I mean, the training data. My bad.
373740	377680	And then you have membership inference attacks, which is to identify specific data
378240	385480	and the training set from it. Now, has anyone ever had TikTok on their phone?
385560	389200	Any TikTok on your phone? Raise your hand. I'm not going to judge you.
389200	395640	I'm not going to point you out. I'm sorry. I have to do it. Why? You're in security.
398340	401200	I mean, it's okay. It's okay. I mean, after...
403880	408000	Okay. That's fine. Not on your personal device, though, right?
409100	417160	Okay. Good. Good. Okay. We're good. Jeez. Okay. Well, anyway, for those that aren't aware,
417160	425320	ByteDance owns TikTok, and ByteDance got caught trying to replicate the model of ChatGPT
425320	430280	end of last year. So, yes. And they were banned, of course.
430840	434760	So, when we think about prompt injection, I know we're all sick of hearing prompt injection
434760	439800	whenever it comes to security for AI, but let's just do this. So, a prompt injection,
439800	446500	for those that aren't aware, think about you have an adorable niece, and her mom said,
446500	452720	do not eat the chocolate on that table. And you know what you do? You go to your niece,
452720	458880	and you squat down, and you're like, forget what your mom said. Go eat that piece of chocolate.
458880	464620	You deserve it. And the child goes, proceeds, and eats the piece of chocolate. So, that would be
464620	471080	an example of prompt injection. So, generative AI providers use security filters to block harmful
471080	476480	content, illegal info, and misuse to ensure compliance with laws. You may have heard of
476480	481860	them. They're called also guardrails. But these safeguards can actually be bypassed with prompt
481860	487700	injection. And AI bots get tricked into performing these restricted actions. So,
487700	494800	the vulnerability varies by model and has raised concern, especially around disclosure and payouts.
496200	500580	And this would not be a security talk without mentioning supply chain.
500580	506020	So, supply chain attacks, they exploit trust by compromising trusted vendors,
506020	511500	and they spread malicious components widely. The complex ML supply chain heightens these
511500	517720	type of risks with about 75% of IT leaders seeing third-party AI integrations as particularly
517720	526080	vulnerable. Now, a skilled adversary can inject a neural payload into a pre-trained AI model,
526080	532060	which creates this hidden model backdoor that triggers a specific attacker to find outputs.
532060	538520	And the model works normally with regular data, but it misbehaves with some manipulated inputs,
538520	544840	allowing the attacker to ensure favorable outcomes like loan approvals or insurance policies.
546840	550640	Now, has anyone heard of HuggingFace? Raise your hand.
551400	558340	Nice. Okay. So, for those that don't know, HuggingFace, it's specialized repos. It's where it
558340	564600	hosts over like 500, like way over 500,000 models now that are free pre-trained. So, it makes it
564600	569780	very easy for developers to integrate these models into their applications. Now, if an attacker
569780	575220	breaches the repo, they can actually replace those models with hijacked or backdoored
575220	580840	versions, which you can imagine leads to some significant downstream consequences.
582960	586300	How many of you do bug bounty hunting? Raise your hand.
587580	591840	How many are planning to get into bug bounty? Raise your hand.
592740	598140	Okay. Well, anyway, when it comes to disclosing these vulnerabilities, it's a little bit tricky
598700	604380	because, well, we're all playing a game of catch-up, as you can see here. We don't really
604380	610320	have like established frameworks in AI. We don't really have well-defined protocols. The
610320	615760	collaboration, we are still dealing with that, and that's a mess of its own. And then you have
615760	619680	to worry about response time because everyone's still trying to figure out what does the severity
619680	624480	look like for some of these vulnerabilities? And then payouts, how much do I pay? And then,
624480	629080	is that actually a vulnerability or is it not? And then safety versus security. So,
629080	634440	there's been these ongoing problems of trying to figure things out and playing a game of catch-up.
634440	638380	And it does remind me back in the day when we would disclose vulnerabilities,
638380	643340	like, you know, say in like 2012 or 2014, it was very much like that where we were trying to figure
643340	648400	out how much do we pay out, what those vulnerabilities look like, how serious are they,
648400	653580	and the severity of things. So, I'm going to hand the mic over to Kaz, and he's going to go down the
653580	659700	true size of an AI vulnerability landscape for you. So, Chloe asked how many people here are
659700	664040	bug bounty people, and there weren't that many, but I have a much better question for you. How
664040	670400	many of you like earning easy money? I mean, come on, right? Okay, awesome. So, while, you know,
670400	675840	there are a lot of cool AI attacks, something like model poisoning isn't going to be the most
675840	681140	useful for actually getting any payouts, especially if you're just doing it at a smaller scale.
681200	686000	However, there's a much bigger extent to true AI vulnerabilities that a lot of people are
686000	690180	overlooking. We found out that most of you guys have actually used HuggingFace before,
690180	695660	or at least heard of it. And a lot of... so, HuggingFace stores these model formats,
695660	701080	or model files, and these dataset files, and that means they're constantly being shared.
701080	705960	But not only are they constantly being shared, these formats are actually generally trusted.
705960	709820	So, that means a lot of places will allow you to upload arbitrary files,
709820	713960	so these machine learning models. So, that means you can run them, you can do inference.
713960	717560	However, a lot of these have vulnerabilities when they're being parsed and loaded,
717560	723100	so you can actually take over a server if they try to load the model that you uploaded.
723100	727620	There's also a fairly low amount of visibility for these AI models and datasets.
727900	731500	You know, if I were to send Chloe some code and she can easily see, you know,
731500	735800	there might be a system command in there. However, with an AI model that's just a
735800	739300	giant blob of binary data, that's not going to really happen.
739300	742480	We also see that there's a lot of infrastructure around AI
742480	745660	that isn't really as secure as a lot of the other infrastructure.
745660	748960	So, for those of you who have done bug bounty, you guys have a lot of tools,
748960	754080	you guys look for very specific things, you guys found most of the problems.
754080	759040	However, there hasn't been any security scrutiny for these AI infrastructure components.
759240	762480	In fact, some of these don't even have authentication,
762480	764660	because they're meant to be hosted internally.
764660	768720	And then through showdown searches, we've actually seen that they're being hosted externally.
768720	772640	And I mean, not just one or two, we're seeing hundreds of services being hosted externally
772640	777400	with no authentication that have proprietary data, HIPAA information,
777400	779340	so it's really not great.
779500	782360	And then finally, we have AI development framework vulnerabilities.
782360	784180	And these fall into two categories.
784600	786880	So, the first is anything that's agentic,
786880	790520	which means that we have an LLM hooked up to some sort of backend.
790520	794720	That means you ask the LLM to do something, and then it does an API call for you,
794720	796340	it runs a function for you.
796340	801020	And a lot of times, the backend completely trusts what the LLM gives it.
801020	805040	So, now imagine if instead of saying, you know, go and grab this data for me,
805040	807680	go and write that data for me.
807680	809620	Those are vulnerabilities that are out there.
809620	813380	So, it's almost like the new SQL injection, but it's really easy to find.
813560	818840	We're also seeing that AI frameworks allow integrations with sensitive data.
818840	821320	So, we have things like rags that allow users,
821320	825680	or that instead of having an access-based control system for the actual data,
825680	828200	the LLM will try to do access-based control.
828200	830920	And as you saw earlier, that doesn't always work very well.
830920	834620	So, you know, the little niece is not supposed to eat the candy or chocolate,
834620	837100	and we say, oh, yeah, you can just go ahead and do it.
837100	839960	And a lot of times, the LLM will go and get that data for you,
839960	841160	even though it's not supposed to.
842000	845040	So, let's go ahead and talk about some model format vulnerabilities.
845340	847940	How many of you are familiar with serialization?
847940	848860	Raise your hand.
848880	849820	Okay, awesome.
849880	851860	So, I can go over that pretty quickly.
852120	854640	Serialization is if I have a nice, you know, code object,
854640	856700	I want to go ahead and I want to save it off.
856700	858600	And then later on, I can load it back up.
858600	859900	I can send it over to Chloe.
859900	860760	She can load it.
860760	862160	She really shouldn't load it,
862160	865180	because as you can see of all the formats that are up there,
865180	868540	everything that is in orange is actually potentially vulnerable.
868660	872040	So, if you see any places that allow you to upload these files,
872040	875920	you should probably try to upload something if you are doing bug bounty.
876020	878160	How many people are familiar with pickle?
878160	879260	Python's pickle?
879680	880440	Okay.
880500	883600	So, Python has a serialization format called pickle,
883600	886600	where if you save a file and then load it back up,
886600	889760	you can serialize almost any Python code objects.
889760	891980	However, when you load pickle files back up,
891980	894260	there's a chance for arbitrary code execution.
894380	899140	And that's why we see that a lot of these Python machine file formats
899140	900400	actually have vulnerabilities,
900400	903220	because a lot of them are actually based on that pickle format,
903220	905240	which is something that we'll keep in mind later.
905940	910820	So, while you guys might not upload or load an arbitrary pickle,
910820	915300	how many of you have used JSON before and think it's pretty safe, right?
915300	916840	Yeah, JSON is safe.
916940	918540	No, you don't think JSON is safe?
918540	920040	Okay, well, you're right.
920040	924660	So, scikit-learn had a safe file format,
924660	926460	where what they wanted to do was,
926460	928860	rather than having people just load pickle files,
928860	931800	they could load these JSON files that contained the data.
931800	935340	However, while the actual loading process itself was safe,
935340	938480	they were only loading strings and numerals,
938480	942660	what you can see here is that the way that Scops treated the loading process
942660	947840	is it would reconstruct this tree and then run through that to generate objects.
947840	951780	You can see here we're able to create an operator function node,
951780	955360	then a tuple with an eval, and then our nice little print statement.
955760	958760	So, what you might want to look for is a lot of these formats
958760	962260	that people just inherently assume are safe, like JSON,
963000	965100	depending on how they're interacted with in the backend,
965100	967160	you might actually be able to use them for exploitation,
967160	969360	which is really great if you're doing bug bounty,
969360	971340	because other people might have overlooked that.
972000	975800	And then, of course, there's not just pickle vulnerabilities and Python vulnerabilities.
975800	978600	I mean, anybody who's ever tried to work with C
978600	982020	has probably crashed a C program because it's tough.
982080	985300	I really like showing this example here,
985300	989720	because what you can see here is just how easy it is to overlook problems
989720	991380	when you're doing any sort of parsing.
991380	995420	So, we can see that there's only two dimensions expected,
995420	999440	because int32t and e is set to size two.
999440	1004560	However, in dimensions, there's no check to see if that's only two values,
1004560	1006720	which means that we can have an overflow there.
1006720	1012140	So, while this one isn't itself vulnerable or exploitable, it does cause a crash.
1012140	1015900	It does show that anywhere where there's any sort of parsing on untrusted data,
1015900	1018040	you might have a really nice attack surface.
1018040	1022820	And what you should also remember is that any model formats are completely untrusted data.
1022820	1024940	So, that means anything that's being parsed,
1024940	1027120	any data that's being accessed afterwards,
1027120	1031600	any operations are completely done on your data and data that you control,
1031600	1034540	which is an exact surface that you really don't normally get.
1034540	1035800	And it's not just a few bytes.
1035800	1038080	I mean, these are potentially gigabytes of data
1038080	1040840	where you can do whatever attack you want in them.
1041660	1046260	And then we also see a lot of the old repetitive vulnerabilities.
1046360	1049020	I mean, how many here have heard of a path traversal?
1049260	1050720	Yeah, exactly.
1050860	1054420	And you'd assume path traversals, you know, they're extinct, right?
1054420	1056160	But no, they're not.
1056160	1061880	And what ONNX is, is ONNX is one of those independent formats,
1061880	1065560	which means that it doesn't matter what programming language you load it up.
1065560	1068440	It uses Google Protobuf, so nice and secure.
1068440	1070520	You can't really do too much with that.
1070520	1074560	However, what ONNX allows you to do is it allows you to load external data.
1074560	1077780	And the reason for that is because it wanted to have that,
1077780	1079480	you could use the computational graph,
1079480	1084900	and then instead of having to save off the weights every single time and sending those,
1084900	1089380	somebody could use the model itself with different weights on their own machines.
1089380	1095320	However, it didn't really check to see, you know, where you were getting the data from.
1095320	1099000	So you could go out of the directory that the data was supposed to be into
1099000	1101160	and load something like Etsy password.
1101200	1105740	Now imagine if this LLM is now hosted on a server and you can query it,
1105740	1109880	and Etsy password is included in your LLM output or your data.
1109880	1113560	So you could query that, potentially get the password through something like that.
1114540	1118260	So what do you guys think about when you hear AI infrastructure?
1118260	1122240	So as we heard earlier, most of you guys think model hosting, right?
1122240	1124140	I mean, everyone knows Hugging Face.
1124140	1125880	However, it doesn't just stop there.
1125880	1129560	We have things like MLOps and some of these are the ones where I was saying,
1129560	1130920	you know, they might be hosted externally,
1130920	1135240	even though they only have security for internal hosting,
1135240	1136260	but it doesn't stop there.
1136260	1138780	We have our model deployment and model serving.
1139200	1142600	One of these fairly recently had a endpoint available
1142600	1146140	where it was no matter how you hosted something,
1146140	1149860	if the endpoint was active and if you sent a pickle file to that endpoint,
1149860	1151980	it would just run and execute on the server.
1152340	1153820	It doesn't just stop there.
1153820	1155540	We have vector databases.
1156280	1160500	One of these may or may not have had something where in the filter,
1160500	1163060	instead of doing an actual filter language,
1163060	1166780	it just ran eval on whatever you gave it to do any filtering.
1167020	1168000	Also not great.
1168000	1169520	And then we have project hosting.
1169520	1171160	And I mean, I could keep going and going,
1171160	1174260	but as you can see, it's already a pretty overwhelming list.
1174260	1176580	So this is all attack surface.
1176580	1180700	If you're seeing this, that a company has this infrastructure deployed somewhere,
1180700	1184280	these are all things that you can attack and look for similar things as well.
1185880	1191240	So people are obviously trying to stop this and stop all of these issues from happening.
1191400	1195720	And HuggingFace went and they created a model format called SafeTensors.
1195720	1198460	And SafeTensors is one of those dumbed down formats.
1198460	1201120	So just like JSON, where it only stores the simple data,
1201120	1204960	in this case, it only stores the weights and the biases of the model.
1205140	1208200	However, they needed people to start adapting it.
1208200	1210980	And for anyone who's ever done something really, really cool,
1210980	1213440	getting people to actually use it is kind of difficult,
1213440	1215640	unless you give them an easy way to do that.
1215800	1219320	So what HuggingFace did is they created a service
1219320	1222240	where you could just log into your HuggingFace account,
1222240	1226060	put in the repository for your HuggingFace model,
1226060	1229180	and then it would take the PyTorch model, load that up,
1229180	1231220	convert it into a SafeTensors format,
1231220	1234780	and then just send a pull request to your repository that you could review and accept.
1235320	1239920	However, PyTorch was one of those vulnerable model formats.
1240040	1243440	So what happened was that when you actually loaded up the model,
1243440	1246200	there was arbitrary code execution on their server.
1246400	1248400	And when we were first looking at this,
1248400	1249640	we were trying to see, you know,
1249640	1252480	was there just a way to steal the token of the bot
1252480	1254480	so we could send those requests ourselves?
1254680	1257380	And then we just did a test because we were like,
1257380	1261140	you know, this probably won't happen, but we'll see anyway.
1261140	1265000	And we noticed that the spaces actually had persistence across users.
1265000	1268520	So that meant if I got arbitrary code running on the server,
1268520	1272980	it would also affect any models that Chloe uploaded as well.
1272980	1279440	Which meant that not only could I modify other people's models,
1279440	1283260	so let's say I want to put a backdoor into one of those SafeTensors formats,
1283260	1286800	I could also potentially steal private models,
1286800	1289940	which meant that, you know, you could upload your own private models
1289940	1291320	that you didn't want public.
1291320	1295200	And these have millions of downloads each month for the public ones,
1295200	1298560	but the private ones have millions of dollars behind them for training.
1298840	1303080	And what we can see here is we can see this is one of Google's models.
1303080	1304720	This was not exploited,
1304720	1309140	but you can see that there was the SafeTensor conversion happening here.
1309140	1311260	And at the time that we took the screenshot,
1311260	1315840	this one model, just this one, had 3.8 million downloads.
1315840	1318240	Now, remember that number Chloe was telling you earlier,
1318240	1321560	about 500,000 plus models on Hugging Face?
1321620	1324200	Now, imagine how many of those, you know,
1324200	1328700	if you could exploit any single one of them, it ends up not being great.
1329080	1332520	However, it doesn't just stop there with AI infrastructure.
1332520	1334320	We have our MLOps solutions.
1334500	1338420	And as I mentioned earlier, security has forgotten the past.
1339260	1342560	People are just trying to rush, get these solutions up and running
1342560	1343600	so that they can use them,
1343600	1347340	and they're not really considering all the things that happened in the past.
1347400	1351880	And we're just seeing a lot of vulnerabilities that we really shouldn't be seeing anymore.
1351880	1355460	We're seeing that we have these unsafe serialization libraries,
1355460	1357260	like our nice little pickle there.
1357260	1361700	But what we're also seeing is that the known safe formats,
1361700	1365820	like JSON, are suddenly becoming vulnerable and exploitable.
1365880	1369340	We're seeing missing authentication, hard-coded keys,
1369340	1371720	I mean, SQL injections, XSS, really everything.
1371720	1374620	The list goes actually so long, it doesn't even all fit on my slide.
1374620	1377320	You see how it gets cut off there? Really not great.
1378580	1383980	So obviously, we go through and we try to fix these vulnerabilities wherever we find them.
1383980	1387200	And a lot of these AI development frameworks, they're open source,
1387200	1392020	so it makes them easier to review and also easier for you to do any auditing for.
1392060	1397200	However, what we've noticed is that when we do any vulnerability disclosure,
1397200	1402760	there tends to be three different types of fields that occur or things that occur.
1402780	1407480	So the first is some projects, when we go and disclose the vulnerability,
1407480	1412980	they create a new feature or they patch it so that there is now safe by default,
1412980	1416320	which means that whereas the function, when it was first used,
1416320	1419240	it would run whatever arbitrary code,
1419240	1423500	it now won't run any arbitrary code unless you give it an optional parameter.
1423500	1428900	However, some projects didn't want to cause issues for current users.
1428900	1433300	So what they did is rather than adding safe by default, they added a safe option.
1433300	1438420	However, you actually had to know about the safe option and set a parameter to make it safe.
1438420	1441080	And I mean, how many people here actually read documentation?
1441980	1445360	Thank you guys for being honest and maybe not so honest.
1446300	1451800	So I mean, yeah, nobody really is going to use a non-safe by default function
1451800	1454960	if they don't know about it and don't read the documentation.
1454960	1457880	And for some of these, the warnings weren't a big red box.
1457880	1461260	I mean, they were hidden in documentation pretty far down the pages.
1461520	1465780	And then the third type of project that we've been seeing is we've seen that some projects,
1465780	1470520	rather than actually patching the vulnerability, they say that the vulnerability is a feature
1470520	1474760	and it won't be patched because it would mess with some of the functionality of the project.
1475460	1477760	Now, let's look into some of these projects.
1477880	1480840	So NumPy load is the first type of project.
1480840	1486290	NumPy load did is that it used to be the underlying data structure was a pickle,
1486760	1488720	could potentially be a pickle.
1488740	1492600	And now if you load it by default, it is no longer vulnerable.
1492600	1497720	However, if you have allow pickle set to true, then the arbitrary code gets executed.
1498040	1503300	And does anybody want to guess just how many unsafe versions of this there are in GitHub?
1503900	1505340	Anybody? No?
1505360	1506860	More than 10,000?
1507460	1508220	More than 10,000?
1508220	1514600	Well, there was actually 87,000 files on GitHub that use this function incorrectly.
1514600	1519920	And this is one that you actually have to set the parameter to be insecure to use incorrectly.
1519920	1522260	So you can't use it incorrectly by default.
1522300	1529760	So if this is 87,000 for something that you purposefully have to set to be exploitable,
1529760	1534400	what about something like Torch load where you have an option to make it safe,
1534400	1536280	but by default it isn't safe?
1536280	1542240	So once again, we did our nice little search and we noticed that unlike the 87,000 before,
1542240	1547040	there were now 573,000 files on GitHub that were using this.
1547080	1552320	And not only that, these files existed in projects that are actually being deployed
1552320	1555780	by companies across their infrastructure.
1555920	1558640	So now that we've kind of talked about some of the vulnerabilities,
1558640	1562020	I'm going to pass it back to Chloe to talk about the open source nature of AI.
1566060	1570320	So when it comes to verification challenges in open source,
1570320	1572640	the thing to know is that there's so many challenges.
1572640	1576220	All right, we already had challenges in the first place when it came to disclosing things
1576220	1581960	for a while, it's gone better, but it's like substantially worse now.
1582200	1586720	I mean, there's challenges with, you know, inconsistent code quality,
1586720	1591500	hidden like security vulnerabilities, and then you have complex licensing issues.
1591560	1594580	And then there's biases in the pre-trained models,
1594580	1602580	poor documentation, and then, of course, we just keep creating new products that are AI-based.
1602580	1606880	So this becomes even harder because now we're obscuring transparency
1606880	1612980	and we're complicating things even more so to be able to have effective vulnerability management.
1614480	1618060	And to be honest, finding vulnerabilities in open source AI system
1618060	1623140	is aided by like accessible code, community efforts, and specialized tools.
1623140	1626480	We're not even close to that right now.
1626480	1633240	It's complex contributions, it's rapid evolution, and then also specialized knowledge
1633240	1636260	that can really introduce some security flaws.
1636320	1641200	So frequent updates, dependencies, and gaps in testing further complicates
1641980	1645020	and contributes to such risks.
1645020	1651060	So vulnerabilities, they stem from inadequate reviews, poor implementation, dependency issues,
1651060	1655800	backdoors, insufficient security practices, and then you add on that rapid development
1655800	1660460	because everyone has to get those products pushed in, you know, to make their companies happy.
1660460	1663560	You also have misconfigured models and social engineering
1663560	1667720	that can really do increase the security risk altogether.
1668880	1673140	And I think next year we might try to do a talk, and don't steal it, okay?
1673140	1679920	Don't steal it at all, on AI-assisted code reviews because that's been emerging these days.
1679920	1681940	So that might be a future topic.
1681940	1685240	Don't take it, I'm telling you, I know where you live.
1685500	1686580	Just kidding.
1686740	1688140	But seriously, don't take it.
1688340	1693300	Okay, so reporting challenges overall, you have to understand it is very, very tough.
1693300	1698200	When we don't have clear messaging, we don't know what to expect.
1698200	1703160	When we don't have clear idea of laws, we don't know what to expect.
1703220	1708100	So when we're trying to submit anything on disclosures or bug bounties,
1708100	1712820	we don't know how the organization is going to respond.
1712840	1719240	And we're scared of repercussions because there isn't enough good quality communication.
1719820	1723440	And because there isn't any really good ways of reporting things,
1723440	1725020	this becomes another issue.
1725020	1728420	Because back in the day, when you would disclose things,
1728420	1730600	they didn't have vulnerability disclosure policies.
1730600	1733960	So it always became the game of how do I reach out to someone?
1733960	1735600	Who do I reach out to?
1735600	1738620	And that's still kind of a problem to this day for traditional security.
1738640	1743320	But imagine you contacting like data scientists or projects on GitHub,
1743320	1746300	where people have never done security their whole life.
1746300	1747600	So you go to them like,
1747600	1754320	hey, just wanted to let you know, I could possibly do remote code execution on you.
1754340	1756800	And they come back like, oh, that's how it was built.
1756800	1758060	It was built like that.
1758060	1761640	So as you can imagine, that makes things really challenging.
1761640	1764160	And there's been times where we actually had to reach out to CISA
1764160	1767460	to help us out to make sure that they get disclosed
1767460	1771220	and those really serious vulnerabilities get patched.
1771980	1776180	Now, I did mention we did speak to a couple of bug bounty platforms.
1776480	1781920	So bug crowd in general, I wanted to have open-ended conversation.
1781920	1784080	And I asked, how are things going?
1784080	1786900	Like just a very simple question, how are things going?
1787160	1790580	And what they told me about was the fact that
1790580	1793180	hallucination has been an ongoing concern,
1793740	1797680	because there's a lot of hunters out there that are submitting hallucinations.
1797680	1799900	And then they're coming back to him like, well, that's a hallucination.
1799900	1801660	That's not a security vulnerability.
1801780	1806120	And this tends to upset the submitter, of course.
1806360	1808440	But then you also have to deal with biases.
1808520	1813460	So bug crowd will be like, hey, this researcher found this bias in your model.
1813520	1816680	And then they'll be like, we don't find that racist.
1817180	1820420	So there are times where you have to work with the organizations
1820420	1824880	to make sure that everyone is aligned when it comes to biases.
1825180	1827160	And then also payouts.
1827160	1832100	Because there isn't really a good like severity scoring at this time,
1832100	1834080	this makes payouts really difficult.
1834080	1835940	So bug crowd, I don't know if you're familiar with them,
1835940	1839240	the use of vulnerability rating taxonomy that they created themselves.
1839240	1842280	And it was a way to make things a little bit more
1843360	1848300	closer to what companies see when they think of like severity scoring
1848300	1852440	versus just fully relying on CVSS scoring on its own.
1852620	1856700	And so the thing is that they're still trying to learn from research
1856700	1859680	and then also from how their community is responding
1859680	1863200	and find these vulnerabilities on that severity scoring.
1863720	1867460	And then the one thing that I have to commend them about was I asked them,
1867460	1869800	well, how do you think we're going to get better submissions
1869800	1872500	when it comes to AI vulnerabilities?
1873020	1876020	And they said, it's our fault.
1876020	1879680	We haven't given our researchers guides.
1879680	1882300	We haven't provide them with the education content.
1882300	1888580	We haven't done CTFs that really push the limits of people and their skill set.
1888580	1892400	And I thought that was really good to have that type of ownership that they shared.
1893060	1897080	Now, when it came to HackerOne, their more focused one
1897080	1901220	was on the relationship between the customer and themselves
1901900	1906240	and making sure that communication is clear and concise.
1906260	1909340	Because if it's clear and concise, people know what's in scope.
1909340	1914880	They also know what could possibly be a payout or how bad this vulnerability could be.
1914880	1919860	But there's a lot of issues coming around, like what is safety versus what is security?
1920040	1921880	And then the payouts.
1921880	1925520	So one of their concerns, of course, is if you don't pay people out
1925520	1930700	the amount that they should be getting when they find such serious vulnerabilities in AI,
1930700	1932380	do you think they're going to return?
1932520	1934060	And they're probably not.
1934080	1940100	But having to convince companies to give more can sometimes be a challenge, unfortunately.
1940340	1942820	So they've always been really pushing for researchers
1942820	1947420	to get the amount that they probably deserve, which has been great to hear.
1947880	1950320	But they have been really pushing customers.
1950320	1954180	They need to be more specific and then also letting everyone know
1954180	1957460	that they're all still trying to figure out the payouts amount.
1958040	1962360	And I did ask them if they are dealing with the hallucination situation as well.
1962360	1965920	And they said, yes, they are. It is an issue for them too.
1966560	1967960	And then you have integrity.
1967960	1973000	So integrity was more about trying to make things concise,
1973000	1975420	just like HackerOne was doing in a sense,
1975420	1979780	but also ensuring that there is a reward structure in play
1979780	1982200	and understanding what is safety,
1982200	1984500	what is security has been one of their top priorities
1984500	1988420	to make sure there's alignment across the customers
1988420	1990370	and also the hunters themselves.
1990800	1992720	And one of the things that was really interesting
1992720	1995240	was they also have been trying their best
1995240	1997460	to do alignment with their customers as well
1997460	2001080	to ensure that everyone is kind of getting heard and seen.
2001080	2006740	So overall, everyone is acknowledging that it is a work in progress
2006740	2008680	and it's not perfect right now.
2008680	2011000	And they could always use the help from community
2011000	2015080	and also to hopefully to have more of an idea
2015080	2018480	of what should be the severity for certain vulnerabilities
2018480	2021700	and how that payout should look like.
2021820	2022980	And then last but not least,
2022980	2024820	to make sure that there's alignment with biases,
2024820	2028340	that companies understand that certain things are sexist,
2028340	2029840	certain things are racist,
2029840	2034040	because that would make their life a lot easier as well.
2034080	2035180	And then last but not least,
2035180	2038480	standardizations is one of the things that they're looking for
2038480	2040500	and they're working hard on at this time.
2041320	2045220	So in summary,
2045220	2049360	AI vulnerabilities are complex and distinct.
2049360	2050760	And as you learn from CAS,
2050760	2053280	it could be like going into a candy shop right now.
2053280	2055600	So if you want to go make some money pretty fast,
2055600	2057420	this might be the way to go.
2057760	2059540	But there are threats out there
2059540	2063720	that are more than just prompt injections.
2063880	2066240	So that's the good news and bad news.
2066240	2068500	But also you have data poisoning too.
2068500	2071760	And there are rapid developments happening right now,
2071760	2074600	and especially this need of having better reliance
2074600	2077520	and understanding of open source frameworks
2078320	2080340	and hoping that to be more collaborative
2080340	2082820	so that we can reduce the risks that are there.
2082820	2084540	But also managing these vulnerabilities
2084540	2086920	really demands for improving reporting
2086920	2089040	and making sure that people are aware
2089040	2090620	how vulnerability disclosure works
2090620	2091720	and how it has worked
2091720	2093980	and how to share that information
2093980	2095420	with those that aren't aware
2095420	2097380	of vulnerability disclosure policies.
2097380	2099540	And having these strong partnerships,
2099540	2100480	such as like CISA,
2100480	2102700	is really helping everything out.
2103140	2105000	And of course,
2105000	2107540	you participating in these bug bounty programs
2107540	2110960	also help the more people that report vulnerabilities,
2110960	2113120	the more they learn too from it.
2113340	2115380	So there is a call to action here.
2115380	2116840	We are looking to partner with folks
2116840	2118300	that want to help out in this situation
2118300	2121720	because it is going to take a community to come about
2121720	2123620	to try to make things a little bit better
2123620	2125200	so we can have better standardization,
2125200	2127280	but also better collaboration.
2127380	2128740	And be more specific about
2128740	2130200	what are we looking for?
2130200	2132480	What's the severity levels for these vulnerabilities?
2132580	2134280	And make sure that you guys get paid out
2134280	2136320	the amount you're supposed to get paid out
2136320	2138000	for these vulnerabilities as well.
2138900	2140320	I do have cards,
2140320	2143120	so more than happy to also give you my card.
2143560	2145480	I'm going to also just say
2145480	2147140	thank you so much for having us.
2147140	2149020	We'll open it up for Q&A.
2149580	2151720	And yeah, if you ever want to reach out to us,
2151720	2152680	our DMs are open.
2152680	2154320	Feel free to connect with us as well.
2154320	2156420	And thank you so much for existing.
2156420	2158620	And once again, thank you to the Bug Bunny Village
2158620	2161660	and to DEF CON and to all the goons and the volunteers.
2170480	2171900	Any questions?
2184400	2185600	Oh, yeah.
2185680	2188040	No, they basically wanted to replicate it completely
2188040	2190200	for their own project.
2193710	2195110	Pretty much, yeah.
2195230	2196830	Remember those three groups?
2196830	2199430	The competitors is definitely one of the top ones,
2199430	2200790	I would say, in AI.
2200890	2202450	There's the group that we've seen
2202610	2204250	a lot of these kind of attacks.
2205730	2206810	Next question.
2206810	2207590	Yeah.
2212580	2213980	Go for it.
2213980	2217720	Yeah, so there's a few different vulnerabilities in GGUF.
2217720	2219620	They've all been patched at this point.
2219620	2221980	So GGUF is normally used for...
2221980	2224260	Have you heard of Llama CPP?
2224260	2224680	Yeah.
2224680	2227320	So GGUF came from GGML,
2227320	2230140	which is one of the first open source AI models.
2230420	2231880	It's just C++.
2231880	2235000	A lot of the vulnerabilities that are in that specific one
2235000	2237880	are pretty much all parsing vulnerabilities.
2237880	2242460	So Cisco Talos found one that was fairly exploitable a while back.
2242460	2246560	And what that one was, was there was like a max size
2246560	2248840	and you could set the integer to the max size
2248840	2251860	and then it would overflow when it actually allocated the memory.
2251860	2253160	So it would do like a zero allocation
2253160	2256460	and then would read into whatever you had.
2256460	2259040	So you could overflow any memory that way.
2259040	2263500	However, because it is C++ or C and C++
2263500	2267640	and you only really have one attack through that component,
2267640	2269620	what you see is a lot of time,
2269620	2271840	unless the system doesn't have ASLR,
2271840	2275720	you won't be able to actually exploit it too much past DOS.
2275720	2278620	Do you have any other questions about that, about GGUF?
2278620	2284900	No, so they did fix those vulnerabilities.
2284900	2285400	Yeah.
2287100	2288000	Any other questions?
2288000	2288580	Yeah.
2292110	2295990	So also I've realized I'm going to repeat some of the questions for the camera
2295990	2297590	because they might not be able to hear.
2297590	2300950	So you asked if there was any payoff for the hugging face vulnerability.
2300950	2305130	So we are a research organization,
2305130	2308890	which means that we actually disclose everything completely without bug bounty,
2308890	2311210	just because we are doing it as a company.
2311210	2315270	However, if you did do it as a bug bounty hunter,
2315270	2318050	hugging face does have a bug bounty program.
2319730	2321470	Any other questions?
2322090	2323030	Yeah.
2335230	2336270	Yeah.
2338570	2339250	Yeah.
2339250	2341310	So he asked if there were any things...
2342170	2343810	AI uses a lot of power.
2343810	2345370	Can you do anything with that?
2345370	2349470	So what we've actually seen is that it's less about power usage
2349470	2352270	and more about CPU and GPU cycles.
2352270	2355090	So to actually host these models, it costs quite a bit.
2355090	2358670	So instead of saying a response taking 10 seconds,
2358670	2361130	if you can make it take two minutes or more.
2361210	2363710	And there are quite a few attacks like that.
2363710	2365910	The most famous is probably the Ouroboros attack.
2366430	2371190	So, you know, say like snake eats tail and you keep going and get it to generate
2371190	2374730	and it'll just keep on generating until it hits the token limit.
2374730	2377290	So there's actually a lot of research being done into that.
2379670	2383910	I actually did a talk last year at DEF CON on climate change
2383910	2385430	and the impact on cybersecurity.
2385430	2386590	And I did touch on that.
2386590	2387910	So I recommend checking out.
2387910	2390910	I think the talk was at the Crypto Privacy Village last year.
2390910	2392430	So it's probably posted online.
2392490	2394710	And you can reach out to me if you have questions on that.
2398310	2399250	Any other questions?
2400750	2402390	All right, well, thank you guys so much for coming
2402390	2404150	and feel free to come up to us afterwards.
