06:00 UTC Charta Aetatis Cyberpunk

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

EP290 Project Atlas: Wiz's AI Vulnerability Research

In the wiki WizProject AtlasLarge Language ModelsAzure Also namedGoogle Cloud, MySQL, Amazon Web Services
Transcript 5384 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 Psych Ops, and Robert Patrick, another group PM on Google Psychops. Robert, thank you for joining us. Super stoked to have you guest host with me today. You can find and subscribe to this episode wherever you get your podcast as well as at our website youtube.com/cloudsecodcast. If you enjoy our content and want it delivered to you piping hot, 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 using AI to hunt for threats and uh using some very different techniques using multiple agents, multiple models simultaneously. Fascinating insights 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 a kind of both amazing and terrifying. >> Yeah. Yeah. It's both, isn't it? >> So what's been found here? >> Yeah. So maybe listeners with that, you know, acknowledgement that there's terror a foot. Robert, anything else to add before we turn things over to today's guest? So one thing I have been top of mind for me in the last few days is with the launch of the latest version of code mener using the 35/ cyber model

which is the first model of the Gemini where we focus on cyber specifically 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 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 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 maybe with that listeners, 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. Today we're joined by, and I've been warned this is hard to get right, Near Orfeld, the head of VM uh vulnerability research at Whiz. Near, thank you for joining us today. Super stoked you're here. 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 super timely and awesome. 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? 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. We've been doing cloud vulnerability research for around five years like since uh since the early days of WHIS and we had like pretty good

success at finding like cross tenant vulnerabilities and now 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 cloud vulnerability. ilities like this is as worst as it gets. And 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 posess 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 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 across the years and

being completely frank having a playbook makes it much much easier but it's also very worrying because we have this play playbook. We we report these vulnerabilities for the open source projects and also the cloud providers, but maybe some less honest or more malicious actors can use the exact same vulnerabilities to compromise customer environments, which is like very very worrying. And we noticed that we are basically in a very small group that uses this playbook. M >> so after working with all of the cloud providers like Microsoft, Amazon and Google, we decided to actually point the researchers to places that we deem important like we noticed that because these projects such as process SQL, MySQL don't have like bug bounties like if you find a vulnerability in these projects then we don't get anything basically then like the skilled security researchers are not incentivized to actually look for vulnerabilities in these projects. So 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. The targets that we and the cloud providers deemed 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 but security researchers are not researching. >> So 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 researcher submits an entry he flies out to London where we had this event 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 be 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. >> Over time, you become skeptical hearing this. But in that competition, it was the first time where we believed there was a shift. And it's actually something that is happening. It's I think it's possible. It's possible to use a large language models to find complex zero day vulnerabilities that have an insane impact particularly on the cloud environments and basically they're like the start of project atlas.

>> So 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 place and then you just stumbled into oh wow people are already doing this with AI. That's great. >> Yeah. Absolutely. >> Huh. That's remarkable. >> Yeah. The the way you you use AI in Atlas seems a little a little different to many folks. I think a lot of folks use, you know, 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 top model for X changes constantly. Can you walk us through how did you go about this because you do something a little different here. >> Yeah, of course. In the start of of project atlas like we didn't came from AI background so we need to learn everything from the the real basics at first we had a very naive way of building this system but then we started to create evaluations like tests that our system needs to go through to make sure that we are progressing because without this test 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 something that will dramatically improve 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 usually our intuition is wrong the way that I look at vulnerability research as a human human being is different than the way that AI is doing vulnerability research but During this evaluation phase, we discovered that to really have a robust and predictable system, we need to break down the process into kind of deterministic or well scoped tasks like first understand the codebase. Then split it to bite-sized pieces. Then find a vulnerability in each bite-sized piece.

Validate the vulnerability to make sure that's 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 through. But then when we looked at 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 like each individual steps that 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 is others are better at finding them, others are better at exploiting them. And this is like a continuous process. Every new model that comes out, we run it through our rigorous evaluations to make sure that 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 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 right now not not really. I think it's really like >> no >> it heightens the ceiling of what we can research on 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 12hour days

where I look at a computer and try to find the vulnerabilities and I couldn't do anything else not only in 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 are able to do on the world or on security in general is insane but also you can be

really really ambitious you can find vulnerabilities that up until now you didn't have like you you would say okay I will invest I know a quarter like 3 months looking at this piece of software and no one guarantees you that you will find a vulnerability but now Now that the economics actually change, it's different. I think I have like a really good example of this. Sagi for my team, like a really talented security researcher, literally one of the best in in the world had this dream of finding a vulnerability in GitHub like the the source code version control like I think number one. >> Everybody's heard of GitHub.

>> Yeah. And he had this dream, but GitHub is closed and you need to reverse engineer it. reverse engineering is like

makes the the the pace of vulnerability research even like preai 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 and he has like really good intuition to finding vulnerabilities but it just takes time >> to understand closed source binaries >> but with AI he was able to ask questions

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 on GitHub? He found that in 48 hours. >> Exactly. >> Okay. So all right listeners Near has taken us one step ahead in our in our story here which is 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 correct. >> I did not know this part listeners I this is genuine surprise by me. So tell us more about how this happened. So basically again like it really shows how AI lifts the ceiling of the the quality of or like the things that you can research as a security researcher like 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 fulfill his dream he set up something called IDA which is like a software that helps you research closer binaries. Essentially closer binaries are assembly 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 time. But still it takes no 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 researching like source code. So we used IDA which is like the flagship product for researching these kinds of like assembly languages. He connected an MCP like an interface that is like LLM can interact with like and that's it. 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 really need to understand how that works." And then the AI took a few minutes like reading that assembly 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 as a vulnerability researchers like as the time progresses you you become much better at smelling blood. >> Yeah. 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 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 like with a couple of legs and it just worked and at first I didn't believe like it's 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 literally did. And yeah, of course, right after that, we proved that this vulnerability works on github.com. And we actually had access to like other customers or organization repositories which again something that really ties back to the cross tenant vulnerabilities. But it really like shows the scale of which how big source cost 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 insane. 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 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 you discovered that you know AI thinks about the problems differently. So the way 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 think one really concrete like anecdote in the team that really emphasized to us why we should really evaluate everything and never never introduce changes to the system based on a hunch and let's take an example when I

was taught on how to do vulnerability research the first thing that you're being taught is that you don't just dive in into a source code but you do some recall you really understand what's the attacker surface and 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 that component and then actually try to find the vulnerabilities based on that reconnaissance phase 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 the system is able to find. And at that point we were at 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 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'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 65 to 85

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 >> you know it's really interesting 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 money laundering 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. M so yeah I think that's like 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 really try 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 the talk >> oh wow okay so this will air next week so you'll have already announced it when this comes out but you found a single key that unlocked every database in Azure Cosmos DB. Is that right?

>> Yes. >> Tell us all about that. That's amazing. >> Okay. So, basically I have Azure Cosmos DB. It's I think Azure's flagship database service. It has like like tens of thousands of customers. Azure itself is built on top of Cosmos DB. It's like 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. But the beautiful thing is is that you can actually create your own local instance of Cosmos DB and to make sure everything works before you go to production. But for us having the the binary in that way basically means

that we can research it using AI. This time it was even easier because it's written in a language called C# like .NET. It's kind of easy to take

compile.NET net or C# code and turn it back into readable source code >> which our system is like best for we trained it we we used evals specifically for researching source code >> so we got the source code we ran the system and again less than a couple of

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

let's let it run for a couple of hours. For worst case scenario, it doesn't work. But in this case, it did. The exploit worked locally. Then it also worked in micros in real Cosmos DB. We're able to take the query that allows us to escape to the hosting machine and run on Microsoft's managed infrastructure. But during our like time here at the at doing vulnerability research, it's really important for us to demonstrate impact like >> execute code on a machine that is dedicated just to my tenant or like my tenants owns this machine like the impact is not severe, >> right? 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. And then we said okay

but I can have like a name of a database and I can unlock it both for read and write like a complete database takeover but 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 whis get all of the whis databases and then unlock each and every one of them and that also includes 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 write 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 a nonAI enabled world only the

first part would have taken us like weeks of work to to understand how we actually escape this 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 >> that's wild. 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 like we had multiple engagement with Microsoft and they have one of the best bug bounty programs and teams in the world. like 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 being like like Frank this is if not even our first vulnerability we found in Cosmos DB. 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. >> No way. It's like the It's like the next chapter, right? 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 cross 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. So

>> 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 unfortunately we can't. And I have to ask our traditional closing questions. So, one, do you have a tip to help teams improve how they're using AI in their vulnerability research? And then two, do you have recommended reading? And that reading could be literally anything, just not Anton's blog. Okay, let's think about like when using AI for vulnerability research. Something that we found that it's the best to invest in is that right now most of the models are pretty good at finding vulnerabilities and 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 the maintainer needs to fix. So actually investing in good validation pipelines that take 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 uh 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 and all that. >> I really like Ren like books like at

like one that I recently read that I really liked. I mostly read fiction. So nothing like >> Uhhuh. I enjoyed Fountain Head when I was I don't know 17 maybe. I read it a long time ago. >> So I also enjoyed the Fountain Head. Another fiction that I liked. Nothing

that comes to mind. >> All right. Well, 287 episodes and this is the first time somebody recommended Atlas Shrugged. Ner, thank you so much for joining us today and best of luck with your talk. Well, later this week, but listeners, it was last week. So, time travel for everybody. Thank you very much. >> Bye. >> And now we are at time. Thank you very much for listening and of course for subscribing. Please subscribe so you can get new episodes piping hot. And if you love our content, please drop us a review on your platform of choice. You can find this podcast on YouTube, Apple Podcast, Spotify, or wherever you get your podcast. Also, you can find us on our website cloud.withgoogle.com/cloudsecurity/mpodcast.

You can argue with us on the Google Cloud Security Community site, GoogleCloud Community.com. >> You can follow us on X.com/cloudseodcast. Tweet at us, email us, argue with us, and if we like or hate what we hear, we can invite you to the next episode. See you on the next episode of the Cloud Security Podcast by Google

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

How often
Your desks