and he joins the Slack channel. The attackers were pretending to be a legitimate company, so they had sort of stolen the brand and the name of a real company. They got him on a Microsoft Teams call. During the call, the call just cuts out and a message shows up in the interface that says your Microsoft Teams is out of date. You need to, you know, click this file to update it. And it turns out that file was not legitimate. Why we started building the company was we wanted to make sure that we could really help people understand, you know, what is the full scope of the open source software that we're depending on and all the parts of that supply chain, and then how do we make good decisions about whether to trust it or not, and how do we be more proactive at responding to these threats.
Hello and welcome to the Village Global podcast. I'm Anne Dwayne, and today we're pleased to welcome Feross Aboukhadijeh, who's a security expert and an open source developer who's very renowned, who started Socket in 2021 to thwart the tidal wave of supply chain attacks that are happening now in software. Socket detects over a thousand attacks every week, and they protect over 20,000 organizations, from OpenAI to Anthropic to Vercel and many startups. So without further ado, welcome Feross.
Welcome everyone, and welcome Feross Aboukhadijeh. And first, congratulations for us on your Series C at a billion dollar valuation.
Thank you. I appreciate it. It's a really exciting time for the whole Socket team right now.
Yes, exactly. Okay, so as background, you're a serial founder and you're yourself a prolific open source creator and maintainer. And in fact, I think one of your claims to fame is your packages are downloaded a billion times a month. Is that right? Wow. So you're an open source billionaire. That's pretty good.
Yeah. We also have a lot of others on the Socket team as well, like on our engineering team, that are similarly prolific open source maintainers.
Amazing. Well, thank you, the unsung heroes of the internet in the open source community. But I actually would love to understand where your cybersecurity career began, and from what I've heard, it began as a child with a microwave. Can you tell that story?
Sure thing. Yeah. I did not know that this story was going to come up in this interview. So good job. You did really deep research.
Yeah. So the story is, you know, just when I was, I think I was like five, my mom and dad got a new microwave, and one of the things I had a habit of doing then was I was just, I would read everything I could get my hands on, especially if it was technical. So I'd always read instruction manuals. You know, there wasn't like, you know, internet or, you know, much to read. So I would just read the manuals from front to back. And so one of the things I learned about this microwave was, I can't remember the exact age now. Don't quote me on being age five, but yeah, I read the manual and found that there's this child lock feature, and so it was a pretty easy sequence of buttons, and I would just use it whenever I was upset at my mom to sort of lock her out of the microwave, and she'd, she'd get so upset and didn't know how to, how to, how to undo it. And so, you know...
Well, holding them hostage for their hot food. Well, I'm glad now that you use your smarts for good and not evil. And let's go back to 2020 when you started Socket, and what did you see then?
Yeah. So, you know, before starting Socket, like you said, I spent a long time in open source. And one of the things that I started seeing more and more of was just like how the way we write software had changed. And so we went from a world where applications had maybe a few hundred open source dependencies total to a world where you can't even get hello world to show up on the screen without installing a thousand plus dependencies. And this isn't a joke, right? This is people who build JavaScript apps today know this is the reality. And so we've kind of gone from this world where you had maybe a handful of projects you used that had teams behind them, foundations, you know, a lot of like support infrastructure, to a world where, you know, you have individuals like myself who have, you know, individual authors of hundreds of packages. And so that meant that you kind of, the amount of people you have to trust, you know, in your, you know, as you're building your software has just ballooned like dramatically. And so that, that led to this, this risk where there's now so many ways to get into a company because you can just compromise any one of these individual maintainers, and again, they're individuals, they're not necessarily, you know, organizations that have a lot of, you know, they don't have necessarily all the, all the infrastructure that, you know, like a Linux Foundation or, you know, more, more mature project has. And so it's just become this softer target that, you know, attackers have recognized, and that's what attackers always do, right? They're always looking for what's the easiest way in, and that always, you know, that means that it's always changing over time where they put their attention and where they decide to spend time. And, you know, my opinion at the time in the beginning of, you know, Socket in 2020 was that this was going to become an important problem. It, to me, felt so obvious that this is such an, such an easy way into organizations, and I was actually surprised that nobody had recognized it sooner. And so that's kind of where we, why we started building the company was we wanted to make sure that we could really help people understand what is, you know, what is the full scope of the open source software that we're depending on and all the parts of that supply chain, and then how do we make good decisions about whether to trust it or not, and how do we be more proactive at responding to these threats.
Yep. Very prescient because it feels like a lot of people talk about code review of their colleagues who are carefully vetted for their own team, but then they're accepting stuff developed by randoms on the internet all the time. And that order of magnitude is huge. I think I've heard you say that some big companies have 500,000 or more open source packages that they're running all the time.
Yeah, we see up into the hundreds of thousands quite frequently, actually. And it's, you know, it's, there's, there's a whole bunch of things that go into that, but there's, there's also this version skew where you end up, you know, you might be using a library, but it's, you might have like 70 different versions of it used by different teams. And so just the, the amount of different artifacts that you're, that you're depending on has gotten very large.
Okay. And let's talk a little bit about the most devious, egregious things you've seen by bad actors in the ecosystem. And this is also where we scare the Jesus out of everybody and you get a lot of new customers. But maybe Axios or some of the other ones that you've been just like stunned at how devious they really are.
Well, first of all, if you, if you, you know, have been paying attention over the last three to six months, the first thing I want to emphasize is just that amount of these attacks has gone, it's, it's, it's like an order of magnitude more than we've, we've ever seen before. And so, you know, just as one anecdote on, on our end of quarter last month, you know, we, we busy, we're a busy team trying to close all these deals and do all this stuff. And we, we actually detected three, you know, major supply chain attacks that we had to write research posts about like on that day. And that's, you know, just this week, on Monday, there was a, you know, a huge supply chain attack that, you know, we, we also detected that affected Red Hat. And so it's like you can't even go every, you know, a couple of days without one of these, these things happening. So the first thing is just the scale is kind of, is itself scary. But if you want to kind of zoom in on a couple of specific incidents to talk about. So this is a library that I think a lot of the, the founders on this call have used before. It's a simple library that lets you make HTTP requests. So it's kind of makes it a little bit more ergonomic and easier to do. And so you see it in a lot of applications. You see a lot of AI agents and coding tools also reaching for this library because it's, it's sort of like the de facto standard in the JavaScript world. And so there's a maintainer who runs that, that, you know, project, and he received an email from a, you know, company saying they wanted to collaborate with him in some manner and invited him to join a Slack channel. By the way, I also received that same phishing hook myself. So they were targeting basically anyone who had, you know, you know, following a big following or decent amount of open source code that was depended upon, and several other of our engineers also received that same lure. I think it's funny, by the way, that one of the best defenses against being phished is just being too busy to read your email, because I didn't even see the email until after this attack had happened, and then I searched, you know, we searched, and I realized, oh my goodness, a bunch of us also had that same lure but didn't fall for it. But I can't take credit for, for not, you know, falling for it. I didn't even see it, to be honest with you. But anyway, so he got this Slack invitation. He joins the Slack channel. They, the, the attackers were pretending to be a legitimate company. So they had, you sort of stolen the brand and the name of a real company. They collaborated with him for about, I think, you know, a number of weeks. I think it was almost a month of just sort of back and forth talking about different ways they could help his project and, you know, doing things together. They got him on a Microsoft Teams call. And on one of these Microsoft Teams calls, during the call, the call just cuts out and a message shows up in the interface that says, "Your Microsoft Teams is out of date. You need to, you know, click this file to update it." And it turns out that file was, was not legitimate. And actually the URL he was on for the Microsoft Teams call itself was like a, not a legitimate URL, but everything about it looked exactly the same because the attackers used the official Microsoft Teams SDK to make like all the components and the buttons and everything look identical. But, but of course, like they were able to kind of code in this behavior where at some point in the call it would stop the call and then ask him to install this, this file. And so of course, you know, we've all been there. We've all been like late to a meeting or like, you know, not, you know, having technical difficulties, and we're like, come on, I just want to get back in the call. What do I do here? You're scrambling, right? And so that's like the moment where you're most vulnerable, right? Is, and so, and, and, and the thing is, you, you know, you know, people have their guards up usually when they're first interacting with people, but not after a relationship has been developed for that many weeks, right? Yeah. And so it was a very effective social engineering attack to, to, to do. And, and then just to kind of tie up the whole story, that, that file that he ran ended up being, you know, a malware that gave them access to his, you know, his entire like system. And what they did was they pulled some of the tokens off of his machine that gave the attackers access to publish his npm packages. So they were able to basically take over his, you know, his maintainer account and therefore put their backdoor, their, you know, their malicious code into his project, and then therefore, you know, that propagates, propagates downstream to everybody who's using that library. And again, the thing about Axios is it's so widespread that the moment you compromise that, I mean, it has 100 million downloads per, I want to say per week. Just a wild amount of reach. And so even if you, you compromise that for just a few hours, which is, which is how long it was compromised for, it was a total of three hours, the amount of downloads that happened, you know, in that period and the amount of, you know, agents that decide, hey, we're going to npm install this during that window, it's, it's very widespread. And so they were able to steal, you know, steal a lot of credentials from the people that ran that, that package during that three-hour window.
Wow. And maybe let's talk about one or two more, and then we'll talk about how Socket helps. Maybe how about the mccur, the mccor breach that got in, you know, impacted OpenAI and Anthropic and others.
Yeah. So the mccur, mccor breach was, was a similar story to Axios. It was a library called LiteLLM, which is used to, I think, you know, do LLM routing, and it's a very widely used library. And it was, you know, almost identical kind, kind of story. It was, you know, a maintainer got breached. One thing I will say that is interesting is that these attackers, because they're, because they're attacking through the supply chain in this way and they are running their code on developer systems, they often, when they, when they steal credentials, they're getting a lot of other maintainer accounts, and it becomes almost wormlike where you, you can spread virally through the network by, by taking over one npm package that gives you access to everyone who installs that. And then we see these, these incidents where, you know, 700 or a thousand packages are compromised in like a few minute window.
And so that's really scary if you have developers that publish open source. It's not just that, you know, your own, you know, your own infrastructure could be affected, you know, your own apps could be, you know, your data and things like that could be affected, but, you know, your open source libraries and SDKs could be themselves used to spread and attack other organizations because you have a developer on your team that just has a token sitting there on their, on their, on their laptop.
Okay. So let's talk about how Socket works and then how you get it, because as I understand, you have a free tier and it's GitHub marketplace, click, click, you're in. But tell us a little bit how it works.
Sure thing. So the easiest way to get started is to go to GitHub and, sorry, go to our website and just like a two-click install, and Socket will connect into your GitHub and we'll start looking at every commit that, you know, any of your developers make or your agents are making. And same thing with pull requests. So really anywhere where new code is being brought into your application, we want to take a look at that code and we want to make sure that we're, we're assessing it.
Got it. So you're doing the work of trying to find if there's bad actors in the commonly, in the packages that a developer is using, and so you can, you're doing the work they don't have to use, and that applies to both new installs and then also any updates.
Correct. Yeah. Updates are also, you know, as we talked about, you could be using a trusted library, but then it turns out the next version of that library has been, you know, it's been compromised. And so we really need to assess anytime new code is coming into our organization through any method, whether it's a developer, whether it's an agent making the decision, it doesn't matter. That code, it needs, we need to have some, some process, some, you know, some trust boundary where we say this is not our code and we need to know that it's safe. And Socket is a, is a really easy way to get all of our intelligence, all of the threat research that we're doing, and just get that kind of automatically available to your team, for everybody on the team. And it's also important, I want to add in, to protect the endpoint too, because we don't want to wait until code is pushed to GitHub to, to learn that it's unsafe. As we talked about, a lot of the, it's, it's actually been one of the more interesting trends over the last kind of year or so is how important the, the endpoint has become, because for a long time there was this conversation about how we're going to move to, you know, doing everything in cloud sandboxes, right? And, and we're not, you know, the, the developer workstation doesn't really matter anymore because we can just use all this, these cloud resources to do our development. But with the, you know, with things like Claude Code and, you know, even cowork for the, you know, non-developers on our teams, you know, those operate directly on the, on the device, right? And, and so it's, it's kind of been this, this shift back to the importance of our, our actual devices.
And there's been this race to adopt, you know, MCP servers, and, and there's a lot of access that we're giving to these agents. There's a lot of access we're, we're giving to the MCP servers. We're putting tokens into files on our systems so that the MCPs can access a lot of things. And so when an attacker gets onto a developer device or onto anyone's laptop, there's, it's a very rich, you know, place to kind of find...
Scary. There's a lot of tokens and things that, that are on there. And so we actually need to protect the, the device too. And so in October, last October, we released something called Socket Firewall. And this is a way to protect the endpoint. So the way to think about it is it doesn't matter what agent you're using or what harness you're using or what tool you're using. Anytime third-party code is, is being requested by your device, we want to assess that and we want to block it if it's, if it's known to be malicious or not to be safe. And so that's, that's a really easy thing for folks to use. It's also free as well.
We have very generous free.
Yeah. Awesome.
Awesome. Great. Okay. So let's talk about that because since you started in 2020, a few things have happened in the software development world, and including coding agents. And you've said that coding agents on average pull 50% more open source software than humans. First, why is that, do you think, and then what should companies be doing about that?
So an agent will often reach for a dependency because it's the fastest path to solving a problem. And they're also trained on, you know, huge corpuses of open source code. And so there's a lot of open source code that, you know, informs how agents write their own code. And so, you know, in this world of, you know, like I was talking about earlier, in this new world where there's just dependencies flying around everywhere and our apps are built on this mountain of open source code, it's not really a surprise that you have agents, you know, basically building software in the same manner as the human code on which they were trained. There's also, there's some risks that come with that. So, you know, obviously we all know about hallucinations. I think, you know, that's gotten a lot better over, you know, as models have gotten more powerful, but we do still see models making up package names that don't exist. It's almost like hopeful or wishful thinking where they say, "Hey, this problem I'm trying to solve, you know, it would be a lot easier if this package existed. I'm just going to pretend it exists and let's try to go install it." And of course, attackers have realized that they can, they can now go and typo squat the, the names and hope that, you know, agents will come, come and actually install those. And so this is why it's really important to change the traditional security model we've had, where in the past people really focused on what are called known vulnerabilities or CVEs, sometimes you'll hear them referred to as, and these are the, the typical software vulnerabilities or, or basically bugs or accidents in software. But what we really need to do is think about a much more expansive definition of trust, because when an agent is looking to install something and that, that package, let's say, has, you know, 50 downloads, like no one's using it effectively, it's a very, very niche, maybe it was published five days ago, right? No one, no one has heard of it. In the traditional security scanner world, before Socket, tools that, that companies would use would, would scan that code and say, "Hey, there's no known vulnerabilities. Like I haven't found any reports saying that this is vulnerable." But the reason for that is nobody's bothered to look at this code. No one is using it, right? It's literally, you know, completely random, you know, code. And so, but that doesn't mean it's safe just because it has no known issues, right? There's probably a lot of security vulnerabilities in it. Not to mention the entire package itself could be malicious or could be designed as bait for, you know, your AI agent to install. And so, you know, that was a big part of the shift when we started the company was we wanted to make sure that people could from first principles take an untrusted piece of code and make a, you know, a determination about whether they want to use it in their application or not.
Yeah. And, and I think that's such an important point. And Pierre, one of the founders at Torio, asked, you know, GitHub stars can now be kind of bought via marketing, and, you know, sometimes popularity can be also bought via marketing and, and other things that are spoofed. What are the real signals that either you're looking for or developers should look for on these?
Yeah. Well, I think that the, the source of truth at the end of the day is what does this code do when we run it. At the end of the day, this code is going to, open source code is going to be, you know, bundled into your application that you're shipping to your users, right? Or that you're pushing into production. And, you know, the operating system doesn't care whether you wrote the code or whether an attacker wrote the code or whether an open source maintainer wrote the code. It's all part of your code at the end of the day. So, you, you know, people need to, to sort of have a mindset shift around this. Because for a long time people thought, well, it's open source, it's not my problem, right? I'm sure the community will take care of it, or it must be good because others are using it, right? But we've seen with things like Axios, it doesn't matter how many people are using it, hundreds of millions of people could be using it, and it could still get compromised, right? And so, you know, superficial metrics like stars, even download counts can be faked, right? We saw this malicious skill that was, was called "What Would Elon Do," and a lot of people were installing it to sort of inject a little bit of that Elon energy into their AI responses. And it became the number one skill because it turns out the skills marketplace that was hosting it, I'm not going to call it which one it was, but they just had a trivially exploitable kind of download, it was very easy to inflate the download counts, and so they became the number one skill even though they didn't really have any organic usage. And of course, then they got a whole bunch of people installing it because it was number one on the leaderboard. And so these metrics are often gameable. We've, we've built some detections to figure out when people are buying stars, when we see like unnatural star networks and things like that. But, but to answer your question, what should people look for? You need to have some, something that is ungameable and tied to ultimately what is the code going to do. And so I'll, I'll, you know, shout out Socket because like what we do there is we look at the code and we figure out, does this code access the network? Does it read your file system? Does it read your API keys and your environment variables? What is the code doing? Right? That really tells you whether or not you should trust it. All the other things around it are, they can be useful indicators, but ultimately there's no replacement for just reading the code.
And obviously we can't, humans can't read the code because of the scale we're operating at, but we can have, you know, AI like Socket's AI look at every line of code and, and ensure that nothing is getting in that hasn't been vetted. Right.
And again, you're doing the work so that everyone can benefit from that. Okay?
And we can afford, by the way, to do quite a, quite a big investment into the work we're doing because when, once we assess a package that's often used by large numbers of our customers, and so we can afford to put an unreasonable amount of tokens into really trying to understand and characterize whether one of these things is trustworthy before a customer even requests it.
Great. Okay, let's move to vibe coding. So what is the process you recommend for an organization to put between a vibe coder who may not be technical at all and the environment?
Yeah, that's, that's a really great question because we're seeing so many, you know, non-, non-technical folks now vibe coding and building apps, and it's awesome. I mean, I love to see it. I, you know, as, as someone who taught computer science for, for a number of years, I really love to see more people, you know, coding, and I think it's going to help more people get into, into the field and just empower people. It's awesome. That said, you know, like I, like we've been talking about, developers haven't necessarily done a very good job of assessing risk of third-party code. And so how are we supposed to expect, you know, someone in, in, in sales or marketing, no offense to those folks, but like, to, to understand what this code is doing, right? And, and so, you know, we need guardrails that are in place to sort of let them loose and to let them, you know, have the power of all these tools without having any of the downsides. And so the, the, the simple solution is something that we've, again, like, I'm, I feel like I'm just an ad for Socket, but like, I really, we've been thinking about these problems, and so I do think we have a lot of the, you know, best solutions here. There's something called Socket Firewall that I mentioned a moment ago that can, you can put it in place, and it will make sure that nothing, nothing the agent does as it relates to third-party code, you know, is, you know, is, is unsafe. So that the agent can't go out and fetch this untrusted package that we've been talking about. It can't go and install this random, you know, library that, that nobody should be using. You know, it's going to, it's going to guard that against that. And, and that's, that's really powerful because it means you also can let your teams experiment with whatever AI tools they want because we're, we're doing this at kind of the network level.
We don't need to be hooked into every new AI tool or have like a, you know, approval. You know, we don't, you don't need to approve what tools your team is using. You can kind of put this one control in place, and then it doesn't matter what AI they're using. It's all ultimately going to transit the firewall, and we're going to be able to see it and act on it.
Great. Okay, great. Another new thing since you started is LLMs. And Zach Stone at Google had asked a little bit about why haven't we seen more bad stuff via prompt injection, and is that something you think about?
Yeah, I think attackers always look for the easiest route into an organization, and they're always, they're, they're really great at, at hunting for soft targets. This is one of the things, you know, by the way, about security that is, is, makes it fun, is that you, it's this cat-and-mouse game where there's attackers, there's defenders, and, and when an attacker improves, a defender can respond, and when a defender improves defenses, the attackers respond and go somewhere else where the defenses are lighter. And so what I think, what we're seeing with prompt injection is that, you know, it's just not the easiest way into organizations right now because it's, it's sort of finicky to get them to work. You know, it's, it's often unclear how to get data out when you've done a prompt injection. And I think like things like the supply chain have just become like, why, why...
Yeah. Why prompt inject one organization when you can take over Axios and, and like, you know, have tens of millions of installs?
I mean, the attackers, the attackers that, you know, did Axios, they're called Team PCP is the name of the group. And they claim that from, I think, I don't think it was, it was another one of their compromises they did earlier, but they claimed just from that one compromise they were able to steal 300 gigabytes of credentials. And those are compressed credentials. So imagine a text file compressed 300 gigabytes. You're talking, you know, right, an untold number of organizations' tokens and keys. And, and, and so when you have things like that, you know, I, I, I think, I don't think we're going to, it's going to be like this forever because as I mentioned, it's really an evolving system, but I just don't think right now that's where, where the, the easy opportunities are.
Got it. And to that end, if it happens and either Socket notifies...
someone or they hear that they have had some kind of supply chain attack, what should they do? So the best thing is to not be affected in the first place if you can. So definitely get these tools in place. We already talked about Socket for GitHub and then Socket Firewall. There's other things you can do as well. I just want to mention to make sure for completeness people know about real quick. So people should definitely go and set up a minimum release age in their package manager. This tells your package manager to not bring in code that's newer than a certain number of days. So you can say...
What's the threshold would you recommend?
I would say, you know, at least 24 hours would help a lot. A lot of the things that Socket catches, we catch them in a few minutes and then we work with GitHub and we work with npm to get that code taken down to protect the entire community whether or not they're Socket customers. So if you set your minimum release age to 24 hours or to 3 days or something like that, you will downstream get the benefits of the work that teams like Socket are doing even if you're not a customer. But ultimately that's a pretty good defense, but it's not perfect. There's things that, you know, there's malware that slips through that lasts longer than three days. The other thing that's interesting is there's a tension between, you know, when you set that, let's say you set it to seven days, right? You want to be really safe and you don't want to use any code newer than seven days. Well, now what do you do when there's a vulnerability? And obviously, as we know...
Patch. Yeah. Yeah. Right.
I mean, Mythos is finding vulnerabilities in a lot of open source code. The other frontier models are doing the same. And so we do need a method to bypass that waiting window and actually update our code to stay safe from vulnerabilities. And so it's this direct tension between, like, as an industry we've been trying to get people to update faster and faster. Like we always say, update your iPhone, you know, don't run old software, you're going to get attacked, you're going to be vulnerable. And so after like a decade of trying to get the industry to take this seriously, we've gotten people to realize it's very important to update just in time for supply chain attacks to come around. And the faster you update, the more you're running code that nobody's vetted, nobody's looked at. You don't necessarily want to be running code that was published four hours ago that no one's had a chance to look at. Right.