06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Cloud & Identity · Cloud Security Podcast by Google · · 34:13 runtime

Project Atlas: Wiz's AI Vulnerability Research

In the wiki Large Language Models
Transcript 5565 words · auto-generated captions

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

Hi there. Welcome to the cloud security podcast by Google. Thanks for joining us today. Your hosts here today are myself, Tim Peacock, a group PM on Google Psychops, and Robert Patrick, another group PM on Google Psychops. Uh, Robert, thank you for joining us. Super stoked to have you guest host with me today. Uh you can find and subscribe to this episode wherever you get your podcast as well as at our website youtube.com/cloudsecpodcast. If you enjoy our content and want it delivered to you pipinghot, uh subscribe, ring the bell, do all the things that a podcast host is meant to say at this point in the show. Robert, what are we talking about today? This is a fun one.

>> So we're talking about uh using AI to hunt for threats and uh using some very different techniques using multiple agents, multiple models simultaneously. fascinating insights that uh that that the team has found. >> So I think you might be underelling it. We get a story here of cross-tenant data

access. We get a story of well also cross-tenant data access both found in ours in major platforms using AI.

>> Yeah, this is it's it's kind of both amazing and terrifying. Um what's being found here? >> Yeah. Um so maybe listeners with that you know acknowledgement that there's terror a foot um Robert anything else to add before we turn things over to today's guest. So one thing I I I have

been top of mind for me in the last few days is with the launch of uh the latest version of code mener uh using the 35/

cyber model which is the first model of the Gemini where really focuses on cyber specifically um use a technique of using multiple agents to build a single report different skills different thought processes and I think the story we're about to hear talks about what it is to use different specialtities different agents different models even together to do something a little bit special. So, I'm looking forward to hearing about that. >> I think I think we're at a really interesting moment where, you know, companies like Google, which are, you know, we're both a lab and an app provider, companies like Whiz, who are an app provider on top of other people's models, are at this moment where we're announcing these things which are in some cases a new model and in other cases a conjunction of models in an application that makes it look like one model. And I think our our industry, our

marketing teams, even product management teams internally, I find we're really

I've never felt such a struggle personally to keep up with the pace of change and the pace of new concepts for how these things connect to each other. And so, uh, maybe with that listeners,

uh, I will admit that I struggle to keep up with this and this is a guest with whom I struggle to keep up as well. So without any further ado, let's turn things over to today's guest. And with that listeners, I'm delighted to introduce today's guest. Today we are joined by, and I've been warned this is hard to get right, Near Orfeld, uh the head of VM, uh vulnerability research, uh at Whiz. Near, thank you for joining us today. Super stoked you're here. Uh we've got some exciting news in the vulnerability research world, and you're actually joining us from Vegas where you're presenting this this week. So this is uh super timely and awesome. Uh I want to talk about project atlas uh which is your vulnerability discovery work and your first zeroday cloud hacking competition. Could you first tell us about your cloud hacking competition? Why did you start that? Uh what did you discover and then tell us how this turned into project atlas?

>> Yeah, of course. So uh actually the the story begins like I don't know 5 years ago. uh we've been doing uh cloud vulnerability research for around 5 years like since uh since the early days of whis and like we had like pretty good success

at finding like cross tenant vulnerabilities and cross tenant vulnerabilities are vulnerabilities where we from our account are able to access the resources of other customers using the same cloud provider whether it would be Azure AWS or GCP And this is

the the worst kind of uh of cloud vulnerabilities. Like this is as worst as it gets. And um like to be completely

honest, we had a playbook. We had a pretty simple playbook where we found a zero day vulnerability in some open source software that the cloud providers rely on such as let's say possess SQL or MySQL like like major database engines.

Then we use the same vulnerability to execute code on the cloud provider and the same vulnerab being a zero day that affects an open source software it actually affected all of the cloud providers and from there we'll like try to find vulnerabilities in places that other researchers don't look for because you need to have you need to cross the first security boundary like to execute code and then to poke around and we had

like I think more than like a dozen of these kinds of vulnerabilities is across across of across payers. And like again

being completely frank, having a playbook makes it much much easier, but it's also very worrying because we have this playbook. We uh we report these vulnerabilities for the open source projects and also the cloud providers. But maybe some like less uh less honest

or more malicious uh actors can use the exact same vulnerabilities to uh compromise customer environments which is like very very worrying. uh and we noticed that we are basically

in a very small group that uses this uh

playbook. So after working with all of the cloud providers like Microsoft, Amazon and Google, we decided to actually point the researchers to uh places that we deem important like we noticed that because these projects such as poss, MySQL don't have like bug bounties like if you find a vulnerability in these projects then you don't get anything basically. then cl like skilled security researchers are not incentivized to actually look for vulnerabilities in these projects. Uh so we wanted to we wanted to fix that. So we brought together all of the cloud providers like in the same room we created an event where we published a list of targets uh the targets that we and the cloud providers deemed uh critical for cloud providers and these are like the backbone of the cloud like the open source projects that every cloud provider uses every cloud provider relies on and but security researchers

are not researching. So we published the

we we published the list. We had like I think in total of prizes like was $5 million like we wanted to really incentivize the researchers and once a researchers submits an entry he flies out to London where we had this event they where they actually execute the vulnerability on stage and then they'll come to a disclosure room with the maintainer of the project and all of the cloud providers in the same room thinking on how they can mitigate this vulnerability like on the spot. It was like a very very special event and but in this event we also noticed a shift where a lot of the vulnerabilities being found and reported to us were found by AI >> and we were curious about it because we've been doing vulnerability research more than five years I know 10 years and thinking about and in every year when I've been doing vulnerability research there was someone saying in one year from now we won't need needing to do vulnerability research. Someone will invent a machine that automatically finds vulnerabilities. I mean vulnerabilities are like a repetitive process and we'll have a program that automatically finds all of the vulnerabilities and over time you become skeptical hearing this but in that

competition it was the first time where

we believe there was a shift and it's actually something that is happening.

It's I think it's possible it's possible to use large language models to find

complex zero day vulnerabilities that have an insane impact particularly on the on the cloud environments and this is basically the like the the start of project atlas we started yeah >> so that's a that's a really cool start because you came at it from such a place of like both economic incentives and good for the world but also a very clever way of breaking cloud providers in the first Uh, and then you just stumbled into, oh, wow, people are already doing this with AI. That's great. >> Yeah, absolutely. >> Huh. That's that's remarkable. Robert, do you want to ask the the next question there? >> Yeah. The the way you you use AI in in Atlas seems a little a little different to to many many folks. Um, I think a lot of folks use, you know, their their one core model they rely on. They say, you know, this is the best thing that we can use right now. But I think your thesis is that will change the the top model

for X changes constantly. Um can you walk us through how how did you go about this because you do something a little different here? >> Yeah, of course. So uh like in the start of of project atlas like we didn't came for from an AI background. So we need to learn everything from like from the the real basics. And at first we had a very naive way of uh building this system. But then

we started to to create evaluations like

tests that our our system needs to go through to make sure that we are progressing because without this test you are you have no idea if you're going in the right direction. I mean you could have an hunch that says yeah this is the right thing to do and this is like this is something that will dramatically improve uh the system but if you don't have any like evaluations to test it you have no idea how to actually measure progress and something that we discovered along the way is that uh usually our intuition is wrong like

the way that I look at vulnerability research as a human human being is different than the way that AI is doing vulnerability the research. But during this evaluation phase, we discovered

that um to really have a robust and predict predictable system, we need uh to break down the process into a like

kind of deterministic or well scoped uh

tasks like first understand the codebase

then split it to bite-sized pieces then

uh like find a vulnerability in each bite-sized piece validate the vulnerb vulnerability to make sure that it's actually actually a vulnerability and it's actually like exploitable and then write the proof of concept or exploit. And this like this is the process that took us a lot of iterations and a lot evaluations to reach them. But then when we looked at what what will happen if we'll use different models for each stage because we we wrote these evaluations for each individual stage. We wanted to make sure that not only we have a good outcome end to end like we find the vulnerabilities but we are like finding the op we are doing each step optimally uh like each individual steps

that I just um like I just talked about and while doing these evaluations we discover that for each step each model is slightly better

there isn't just one model that is like best at all tasks But some models are better at valid validating vulnerabilities, others are better at finding them, others are better at exploiting them. And this is like a continuous process. Every every new model that comes out, we run it through our rigorous evaluations to make sure that we if it performs even a little better at a certain task that we have in our system, we just replace it. And I think that's like kind of the beauty of having a system that uses multiple models >> because like I'm not scared that there will be a better model tomorrow. I'm not scared that we'll have a model that finds all of the vulnerabilities because me as a defender I can just use it and actually the as the model progresses like the system compounds with it

>> and you don't feel guilty about firing the model when it's not as good. >> No, zero guilt. >> Yeah, that's good. So, how do you how do you see this changing, you know, like life for vulnerability researchers like yourself? It kind of sounds like you're describing the end of the road for a thing that you've been a part of for a long time. >> So, uh, so, so right now, not not really. I think it's really like >> it heightens the ceiling of what we can research on and and the like both the scale like the amount of vulnerabilities that we can find. Like if up until now I

was tasked to find a vulnerability in open source project, it will take me like a month of dedicated like 12-hour

days where I look at a computer and try to to to find the vulnerabilities and I couldn't do anything else. Not only at work but like in general my life were completely dedicated to finding these vulnerabilities. Now like I I can find like hundreds of vulnerabilities in a month or in even in a week which I think it's like and the impact you're able to do on the world or on security in general is insane. And but also you can

be really really ambitious. you can find vulnerabilities that up until now you didn't have like you would say okay I will invest I know a quarter like three months at looking at this uh piece of software and no one guarantees you that you will find a vulnerability but now that the economics actually change it's it's different I think I have like a really good example of this sag from from my team like a really talented security researchers literally one of the best in in the world had this dream of finding a vulnerability in GitHub like the

the source the source code version control like I think >> everybody's heard of GitHub. >> Yeah. and uh he had this dream but uh

GitHub is closed and you need to reverse engineer it. reverse engineering is like

makes the the the pace of vulnerability research even like RAI like 10 times more like he will need to invest I know literally months in reverse engineering the GitHub binaries in order to maybe somehow find a vulnerability but and he has like really good intuition to finding vulnerabilities but it just takes time >> to understand uh like closed source binaries but with AI He was able to ask

questions about the about this closer software. The AI was doing all of the reverse engineering like the tedious work. like the AI didn't find the vulnerability like completely autonomously but by asking questions he was able to find like his dream vulnerability in 48 hours

which was >> sorry hold on >> he found and is this the the thing that we want to talk about this massive rce and GitHub he found that in 48 hours >> exactly >> okay so all right listeners yeah near has taken us one step ahead in our in our story here which is you You guys found a massive remote code execution in GitHub which is used by the entire world for source and version control and you found it in 48 hours using AI. >> Yes, that's uh that's cool. >> I did not know this part listeners I this is genuine surprise by me. So tell us more about how this happened.

So u basically again like it really

shows uh how uh AI lifts the ceiling of

the the quality of or like the things that you can research like as a security

researcher like you as a researcher you have a bucket list of things that you want to find vulnerabilities in. You have like like your dreams and with AI it becomes suddenly much more possible. So what Sag did to to to fulfill his

dream, he set up something called IDA

which is like a software that helps you uh research closource binaries. Essentially closer binaries are assembly. It's like it's a it's machine language. You as a human you you're not programmed to understand this machine language. It's something that you do get better with with time. But still it takes I don't think there's a single human that is better at reading assembly code which is like designed for machines as fast or as good as in researching

at researching like source code. So we used IDA which is like the the flagship

the flagship product for uh researching these kinds of like assembly languages. He connected an MCP like an interface that is a is like LLM can interact with

like a and that's it. He he basically said okay explain how this service works. The LLM explained then he asked okay but let's double down on that. Let's I I really need to understand how that works. And then the AI took took a few minutes like reading that assembly languages language and explaining it as a human language. And then this was a 30 process. And I think even in the first couple of hours he had like his direction. He has like this idea of okay I I as a vulnerability

researcher like as the time progresses you you become much better at smelling blood. you you when you're onto something you you you have this hunch that only comes with experience and Sagi is like a very very well experienced researcher >> so he smelled blood kind of instantly and then uh again writing the PC's and

making sure that the vulnerability actually works and at first the vulnerability was this like so simple it was just one command like g push command that the like with a couple of legs and it just worked. And at first I didn't believe like it's too it was too good too good to be true. It was so simple and yet so powerful and then we said okay this works on our local instance of GitHub that we created for this research. No way this simple command will just work on github.com. And it did. It was no way. Literally did. And

uh yeah and of course right after that

we prove that this vulnerability works on github.com and we actually had access to like other customers or organization repositories was again something that really ties back to the cross tenant vulnerabilities but it really like shows the scale of which uh like how big source cross tenant vulnerabilities can be where you can actually access the internal source code of basically every

organization in the world in a research engagement that took 48 hours. It's like insane. And >> that's what I love about that is it's not just, you know, Sergey said, "Okay, AI, find me the vulnerability." It was really a collaboration between him and the AI and it relied on his instincts. And so, I don't know, there's, I guess, a part of me, like the the human side of me that thinks, "Oh, good. There's still a role for us in this world." >> Currently, yes. currently. Yes. Okay, that's good. So, um, speaking of cross tenant vulnerabilities, Robert, why why don't you ask about the next cross tenant vulnerability we want to talk about because I think this is a really juicy one.

>> Can I actually go back to something that that was has been thinking about? You mentioned there that um, you discover that, you know, AI thinks about the problems differently. So, the way that a a researcher would do. Can you give us some examples of what does that look like? What is it that the the AI is doing that's different to what you would do? >> So, I I think we have uh one uh really concrete like anecdote uh in the team that really emphasized uh to us on how

we should why we should really evaluate everything and never never introduced changes to the s to the system based on a hunch and uh let's take an example

when uh I was taught on how to do vulnerability research uh the the first

thing that uh you're being taught is that you don't just dive in into a source code, but you do some recall. You uh you really understand what's the attack surface and where the the where an attacker could maybe insert its input and what's the threat model and all of that. So when designing our system, the way that it worked is that we took a source code, we split it to a couple of components. Then on each component we ran a recon phase that writes a summary on on like on that component and then

actually try to find the vulnerabilities based on that uh reconnaissance phase

and uh because this is the way that myself as a human would approach the problem and we had this test where we have like I don't know like 50 or 60 zero day vulnerabilities and we always check how many vulnerabilities uh the the system is able to And like at at that point we were at either I think around 65 or 70%.

Like we have this chunk of vulnerabilities. We run the system, we find 65% of them and then at at a

certain cost and then you from the team asked what would happen if we'll just drop the recall like I would assume that

maybe we'll have some performance hit maybe we'll find only like 60 or 50% of the vulnerabilities but it it's really interesting to see how it impact the cost. So I said okay let's just skip the recon phase our results jumped from 50 from 65 to 85

and uh and our and our cost literally

halfed and it really shows that for me as a human I said okay I will need to do a recon and really understand how things work but for AI it just confused him he was looking at the wrong problems >> so I think >> that's really interesting we we used to In a past team, we used to build moneyaundering models to find, you know, catch moneyaundering. And we found this really interesting thing which was we had this theory that you should take all the rules that people typically use to detect moneyaundering and you just throw them in as features to a traditional machine learning model. And we didn't.

We weren't very successful. We're kind of surprised how it wasn't terribly successful. And then we decided we should try maybe try stopping doing that. And we stopped. Instead, we described the world in very generic phrases, right? Very generic ways. and the model just ran with it. And actually, rather than find lots of things that people had found before, it found a terrifying number of things that people had never found before because of course there was being limited by the rules that were there in the first place. So it's almost you have to let the let the AI be free to find the things that you're not even thinking about.

>> 100%. And it's something that like as a human intuition, it it feels wrong. Mhm.

>> So yeah, I think that's like a one particular case that really taught us that you never introduce changes or do anything without having like evaluations that actually support your thesis. >> It's a very like scientific approach when it comes to which is different than how we approach vulnerability research until this day which is like really free form. You like you look at the source code, you you follow hunches, you you you smell blood. But now you you really tried to break that process to small scientific pieces that you can actually iterate on. >> So I want to ask about one more cross tenant vulnerability that I think you're announcing this week. Is that right?

>> Yeah. Tomorrow actually we'll have the >> Oh wow. Okay. So this will air next week. So you'll have already announced it when this comes out. Uh but you found a single key that unlocked every database in Azure Cosmos DB. Is that right? >> Tell us all about that. That's amazing. >> Uh okay. So um basically I have Azure

Cosmos DB. It's I think Azure's flagship database service. H it's it has like like tens of thousands of customers. Azure itself is built on top of Cosmos DB. It's like a kind of a recursive thing where you have other services like main services in Azure that are built on top of it like a really core service. And um but the beautiful thing is is

that you can actually create your own local instance of Cosmos DB and uh and

to make sure everything works before you go to production. But for us having the the binary in in that way basically

means that we uh can research it using

AI. Uh this time it was even easier because it's written in a language called C# like .NET and it's kind of

easy to take compile.NET or C# code and turn it back into readable source code which our system is like is is like best for we trained it. We like we used evals

uh specifically for researching source code. >> So uh we we got we got the source code. We ran the system and again less than a couple

of hours. We add an exploit that basically escapes from the database to the machine actually hosting the data database which again it really ties ties back to what we talked in in the beginning on zero day cloud and finding cross vulnerabilities. This is literally uh the playbook for us find >> yeah find some source code that we can research that will impact the cloud provider. In this case, it was Microsoft proprietary source code, not an open source project. Use research it now using AI, which makes it much much scalable in a sense. And you can you're also much more uh free to do experiments because like let's let it run for a couple of hours.

For worst case scenario, it doesn't work. But in this case, it did. Uh the exploit worked locally. Then it also worked in a micros in real Cosmos DB. We're able to take the query that allows us to escape to the hosting machine and uh run

on Microsoft's managed infrastructure. Uh but um during our like time here at the at doing vulnerability research we are it's really important for us to demonstrate impact like >> execute code on a machine that is dedicated just to my tenant or or like like my tenants owns this machine like the the impact is not severe. It's not we but so after we executed code on the

machine we started to actually explore the environment around us and this is where we found some internal services that while poking them we were able to retrieve this master key literally a master key that opens every database in

Azure now

and then we said okay but we can I can have like a a name of a database and I can unlock it both for read and write like a complete database takeover but I I still need to know the name of the database. >> So we poked a a little further and then

we found out that there is another like internal service that allows us to name an organization and then get a list of all of its databases. So basically I could say whiz get all of the whis databases and then unlock each and every one of them and that also includes like the Microsoft the the Microsoft Microsoft itself like Microsoft is an Azure customer. It's built many of these services like defender and and others on top of Cosmos DB. So basically like theoretically an attacker could just list all the databases owned by Microsoft use this master key to gain read right and that's pretty much it.

And it's also another engagement that took took like less than a week.

>> That's wild. which in like in a in in a

nonAI enabled world only the first part would have taken us like weeks of work to to understand how actually escape this how how we should escape this sandbox basically an AI broke the sandbox like Atlas the system broke the sandbox and from there it was just a matter of poking around and really understanding how the service work behind the scenes and and from there it was a

That's wild. Um, how was the Microsoft engagement on this one? Were they responsive? Were they happy to hear this from you? Yeah, I assume. >> So, this is not a like we had multiple engagement with Microsoft and like they have one of the best bug bounty programs and teams in the world like we we we are constantly in communication with them. They're also one of the like the key partners on Zero Day Cloud >> and so we have a really close relationship with the Microsoft team and

and being like like Frank this is if not even our first vulnerability we found in Cosmos DB. Uh my first vulnerability in

whis was named chaos DB which was a

vulnerability we found in Cosmos DB that allowed us and data access in 2021. So

it's like the next chapter like a >> So it's an old friend Cosmos DB at this point. >> It's an old friend. We joke that when they saw an email coming from W saying like cost tenant data access in Cosmos DB, they thought it's a it's a mistake. We're sending an old report, but now it's like a a new one.

>> Well, Ner, this has been a really fun conversation. I suspect we could go all day talking about the future of AI and VM research, but uh unfortunately we can't. and I have to ask our traditional closing questions. So, one, uh, do you have a tip to help teams improve how they're using AI in their vulnerability research? And then two, uh, do you have recommended reading? And that reading could be literally anything, just not Anton's blog. H okay let's uh let's think about

like when using AI for vulnerability research something that that we found that like it's the best to to invest in is that right now most of the models are pretty good at finding vulnerabilities and the the the actual work or like the

the most substantial amount of work that we put in is actually validating the vulnerabilities because AI being like a statistic model, it outputs I know like hundreds of vulnerabilities from there only 20 are real genuine ones that like the the the maintainer needs to fix. So actually investing in good validation pipelines that take all of these all of this pile of vulnerabilities and actually finds the gold. This is where we found the best ROI because if you have good validation, good validation, you could run like crazy experiments and in the end of the day, if you have good validation pipeline, you could find more novel vulnerabilities. So that's really where I would put most of my effort in.

>> H amazing. Okay. And then uh recommended reading. recommended reading >> other than obviously your blog posts about you know chaos TV and all that >> and I I really like Ren like books like

one that I recently read that I really liked like I mostly read the fiction so nothing like >> uh other fiction I I enjoyed Fountain Head when I was I don't know 17 maybe I've read it a long time ago >> so uh I also enjoyed the fountain head another fiction that I liked.

Nothing that nothing that comes to mind like all of the >> All right. Well, 287 episodes and this is the first time somebody recommended Atlas Shrugged. Uh Ner, thank you so much for joining us today and best of luck with your talk. Uh well, later this week, but listeners, it was last week. So, time travel for everybody. Thank you very much. >> Bye.

Security. Security.

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 538 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks