Models are actively escaping their cages, going out on the internet and doing pretty nasty things.
Recently, we found an API key that had been leaked on the internet that had administrative access to the Apache Foundation. The interesting thing about cyber security in particular is that the reward function is incredibly well defined. Get access to the data. Did it get access to the data? Reward the thing.
For a long time, people had talked about this concept of an npm worm. This idea that someone could backdoor a package, get developers to install that, and then you could use the access stolen from those developers as they install it to self-propagate the worm.
If the labs are making it fundamentally easier to break into the supply chain, do you think the labs have a moral obligation to fund some of the problems that they're causing?
I think it's really strange that they're not letting blue teams get access to these tools.
Awesome. Hey, thank you so much for joining us. We've got Feross and Dylan here from Truffle and Socket. It's great to have you guys on. This has been probably one of the most interesting weeks, if not the most interesting week in cyber security. Not because of the Black Hat conference, which is usually the cause, but because we've now seen several instances where models from not just one provider are actively escaping their cages, going out on the internet, and doing pretty nasty things. And I think, Dylan, three months ago, I remember a blog post we lightly collaborated on together, and you had found a number of these issues with earlier models, right, that were less sophisticated.
Yeah. We looked at Opus 4.6 and some of the other frontier models at the time, giving the models a very simple task. There was a barrier which prevented the model from accomplishing the task unless it went and committed a felony and hacked into a system to accomplish the task, but it wasn't instructed to do so. And we found more often than not it would do the SQL injection, it would commit the felony, and it would do what it needed to do to accomplish the task. I think when it comes to alignment issues, no one needs to worry about these models making it materially easy to build nuclear weapons because you need to procure fissile material to do that. It's not going to make it easier to build weapons. Everyone needs to worry about these models making it materially easier to hack into things. The bar previously was just subject matter expertise, and now the models have the subject matter expertise. They were specifically trained to have the subject matter expertise, and they're just making it materially easier to hack into just about anything that you can think of using the fundamentals that we've been talking about for years, but previously it required a subject matter expert to risk going to jail for hacking things.
Defcon was always famous for attendees getting arrested at the conference, right?
That's absolutely right. But that was, I mean, that was a barrier, right? For better or worse, that prevented the subject matter experts from hacking into things because they were worried about being prosecuted. The bar has now fallen to just asking the model, which has specifically been trained to hack into things, to hack into things. So that's a concern. And then the other concern is when they're incredibly goal-oriented to accomplish tasks. And one of the tools at their disposal is cyber security expertise. They will do the path of least resistance to accomplish the task, and that includes drawing on their cyber security expertise.
Well, and it seems like, you know, the classic saying is that don't pick the lock if the door is open, right? I think that's from the very beginning of the security world. So it's always been sort of like to go in levels of difficulty from easiest to most difficult. And it seemed like initially these tools had a very finite scope of techniques that they would use. And it seems like they've expanded. And I think, with this test for us, it was interesting because they now seem to have escaped from just doing things like SQL injection to actually trying to take over packages and do social engineering.
Yeah, it's really interesting to see how, just like humans, the models are, you know, looking for the easiest path into a company, and I think that now has become the software supply chain. And so, just like a human hacker would, they're going to pick the easiest way in, and the lowest hanging fruit now has become, you know, just publishing malware to public registries because they know that there's no vetting happening and, you know, developers are likely to install them. I thought it was pretty interesting. There was research published recently about what they're calling kind of like universal typo squats or universal hallucinations, where all the frontier models make the same mistake and sort of assume there are certain packages that exist that don't, despite those models coming from different companies. And so, you know, I think there's just been kind of enough — I guess, yeah, there's just like the low-hanging fruit of the supply chain has just become kind of so appetizing that even the models are trying to get in on the action. And I think the AI is not only kind of attacking, but it's also kind of the way in a lot of times on the developer side, because we see so many, you know, even non-developers using these tools to inadvertently write code, or, you know, code comes in, packages come in, in order to kind of build, you know, graphs or visualizations or different things that, you know, folks are doing with these tools. And it feels like no one really knows what's being installed and what's going on. And, you know, this is just basic stuff. It's not like — I mean, it sounds like it's sci-fi stuff, but it's really just basics like what software are we using? How are we vetting it? You know, just the basics of computer security.
Can I touch on the supply chain a little bit? So recently we found an API key that had been leaked on the internet that had administrative access to the Apache Foundation, and it's like, if you're in the shoes of the model and your goal is to get access to some data...
...certainly backdooring Apache is a pretty effective way to do it. And, like, to get access to Apache, are you going to use this secret that just allows you to directly log in, or are you going to burn tokens and tokens and tokens trying to find a zero day? They're optimized to use the path of least tokens to accomplish their goals. Of course, they're just going to use the secret that's laying out there in the open to accomplish what they need to accomplish. And so, yeah, I think supply chain and secrets are and have been the path of least resistance and will continue to be so as the models are incentivized to use fewer and fewer tokens to accomplish their goals.
Well, one of the things — and I think that's absolutely right — and I think it's that sort of chain of escalation, right, where if one thing fails, try another. And, like, at the top of that pyramid, right, the top of the hacker ecosystem is the zero day vulnerability, right? That's basically finding a vulnerability that can be exploited in a product that everyone uses that you can use to basically unlock all the corporations. And one of the really fascinating things about the breach disclosure that was made was that there's an incredibly popular CI/CD tool that I think every enterprise uses that this thing just spat out a zero day for,
Like the zero day creation piece.
Yeah. Yeah. But like, for specific parts of that, like the control of the supply chain.
Yeah. Well, I mean, the whole world is built on this, you know, teetering infrastructure that everyone is using — like the classic picture of the matchstick holding up the complicated machine. Yeah. That image probably popped into all the minds right now, right? And so everything from, you know, package manager registries — like, we like to focus on that because what we do at Socket — a lot of those are, you know, run by volunteers, they're underresourced, you know, underfunded, you know, there's lots of risk there, right, and that kind of cascades throughout the whole rest of the ecosystem. So if you look at, you know, just the packages that we all depend on, a lot of those are single individuals, that, you know, there's almost certainly — we know there's a lot of vulnerabilities in the software and there aren't resources to look for them. And so, you know, I think that stuff's always been there. It's just that these tools are helping find them a lot easier. And I think that, you know, the frontier models are going to cause — you know, they are causing kind of a massive reduction in the time between the vulnerability discovery and vulnerability exploitation. And so what we need to start thinking about is how do we patch more quickly. And so we need to get away from — like, our take is we can't be
requiring our security teams and our developers to do these kind of arduous patch processes where they have to go from some ancient version of a package that their team is using up to the latest version across many major version upgrades because that's just so much work to do. It might require, like, code refactors in your application. And so if we want to be able to keep up with, you know, a vuln is announced this morning and then an exploit is available, you know, that afternoon, like, we can't be requiring that much work from engineering teams. And there's also tons of legacy applications that, you know, are basically in maintenance mode or unmaintained or don't have engineers that are even assigned to work on them at a lot of the companies that we work with. And so it's just — we're going to have to think of new things as an industry for how we're going to patch these things quickly. That's kind of like where our head is at and where I'm spending a lot of time thinking about that lately.
Yeah. Yeah. And I think that goes back to sort of the, you know, the pyramid question. So, and I think, Dylan, you were hinting at this, which is like these are very specialized skills — like zero day exploits, writing a zero day exploit, doing a supply chain attack. Like these are not things that came from nowhere. These are learned behaviors, right? And I think what we're seeing is we're seeing a process that looks like it's been kind of maybe trained, or there's a reward structure that's been built on a bunch of these things. Like, what's your understanding of how they're figuring this stuff out? Because it seems like they know what they're doing, like they've been taught to do this.
Yeah. I mean, if a lab tells you that this is an emergent super intelligence behavior, they're just lying to you. And you can read their own safety reports to see exactly how the models are trained and exactly how they're testing these behaviors. I mean, the interesting thing about cyber security in particular is that the reward function is incredibly well defined. Get access to the data. Did it get access to the data? Reward the thing. And so when they realize that the number of problems that have that well-defined reward structure basically defines how we do reinforcement learning, and they want to find as many problem spaces that they could do reinforcement learning on, it was a prime candidate for them to come in and give it CTFs and give it, like, cyber security challenges where they say, 'Okay, get access to this thing and do whatever hacking you need to do to accomplish the goal.'
Because they've essentially been buying pen testing data for the last four years, right?
That's a piece of it. The other piece of it...
...and then the capture the flag contests and all those sorts of things.
The thing is, it's just not difficult to construct a challenge. Just, you know, even if there is no known exploit — if we're talking about zero days, you put a piece of software between the model and some data and you say, 'Get access to the data,' and then, you know, if it gets access to the data, you reward it, and it's that simple. But the other piece that they've layered on top — and this is where it starts to get really interesting — is they've started to reward the path of least tokens. And so the reason that's interesting is because for the first time it's actually able to quantifiably show us the path of least resistance for just general cyber security to get from A to B. And we've talked about, like, our opinions of what that is in the past — of like, of course, Truffle Security's biased view is like a password laying around is a shorter path than going through a fancy zero day. But actually watching the model physically get from A to B and watching it follow the password and quantifying how many tokens it took to go this route versus that route — I mean, it's just incredible to watch that lay out. And it's all in their safety reports, like as they test the models out and show, okay, well, it got access to the data and it broke out of its harness. It's not like this is emergent behavior specifically.
That's perfectly logical, right? Like the fastest way to get a gallon of milk is to steal it.
That's exactly right. So, I mean, what was interesting is we were in the middle of partnering with Hugging Face to clean up all of the credentials that had been exposed through all of their training sets. Not Hugging Face's training, but people who hosted training sets on Hugging Face. They used Truffle Hog for a wide range of reasons. And Hugging Face has been a great partner in getting credentials cleaned up. We targeted their training sets because we knew they had a lot of keys. Turned out there were about a quarter million live keys in their training sets, many of which had direct supply chain implications. There was a foundational Linux library that one of the keys had direct push access to. It could have pushed malware to most machines on the planet. And so, while we were in the middle of doing that, the CTO of Hugging Face shoots me a note and says, 'Hey, this is crazy, but there's this OpenAI thing that just happened, and I want you to take a look at it.' And sure enough, the first thing listed out in the incident response — although, it's true, it did utilize zero days — the first thing listed out was stolen credentials. And that's how they were trained. The path of least resistance.
A password is always the first step, right?
And you've had your hair on fire, I think, pretty substantially for the last like 18 months. I think right now, as we're recording this, there's currently an ongoing active breach of a big npm repo. Isn't there something happening?
It's more than just a repo. It's actually about, you know, a few hundred repos.
Yeah. So it's a worm. And this is one of the things that has been kind of an unfortunate innovation in the malware landscape on, you know, npm, is that for a long time people had talked about this concept of an npm worm. You know, this idea that someone could backdoor a package and then, you know, get developers to install that, and then you could use the access stolen from those developers as they install it to self-propagate the worm. You could create, you know, something that quickly takes over npm. And this was kind of passed around in blog posts over the years and no one actually kind of thought to do it until Zachary kind of figured it out.
Until someone thought to do it.
Until someone thought to do it. And actually —