Guest: Steve Wilson, Project Leader at OWASP Foundation & Chief Product Officer at Exabeam
Host: Andreas Welsch
Episode: What’s the BUZZ?, Season 3, Episode 24
Published: September 24, 2024
Episode Summary
Steve Wilson, Project Leader at the OWASP Foundation and Chief Product Officer at Exabeam, answers the question of how to red-team and safeguard LLM applications. He joins Andreas for the third time and on the launch day of his O’Reilly book, The Developers Playbook for Large Language Model Security. They cover where the OWASP Top 10 for LLM apps stands one year on, how to build safeguards without driving up cost, how to red-team LLM apps, and which roles suit the work. Steve says supply chain security and agents have risen in the list’s rankings and recommends starting with existing application security teams.
Key Takeaways
- Steve says the consequences of LLM exploits have grown from embarrassment, such as a dealership chatbot offering cars for a dollar, to indirect prompt injection in products like Microsoft Copilot and Slack.
- Steve says supply chain security and agents rose in the re-ranking of the OWASP list, citing thousands of poisoned models that researchers demonstrated on Hugging Face.
- Steve recommends narrowing what an LLM app may do, because it is much easier to create an allow list than a deny list, and it is a product decision, not a computational cost.
- Steve tells teams to treat the LLM as something between a confused deputy and an enemy sleeper agent, and to put more effort into checking what comes out than what goes in.
- Steve says application security teams with pen testing experience are the place to start for red teaming, and he sees data scientists as the furthest from this work.
Timestamps
- 00:25 Welcome and third appearance on the show
- 01:28 Steve’s background, the OWASP Top 10 for LLMs and his new book
- 03:39 The game In Your Own Words: AI as a fruit
- 05:20 One year on: how real are the OWASP Top 10 threats?
- 08:38 Supply chain security and agents move up the list
- 11:18 Building safeguards without driving up cost
- 12:56 Guardrails frameworks and allow lists
- 14:49 Treating the LLM as a confused deputy and an enemy sleeper agent
- 16:11 How to red-team LLM applications
- 19:11 Why application security teams are the place to start
- 22:26 Which roles and skill sets suit LLM security
- 27:03 Three takeaways
About Steve Wilson
Steve Wilson is Project Leader at the OWASP Foundation and Chief Product Officer at Exabeam, a cyber security company that uses AI to find cyber security threats. He got involved in creating the open source OWASP Top 10 for large language models and wrote the O’Reilly book The Developers Playbook for Large Language Model Security.
Full Transcript
Read the full transcript
Andreas Welsch: Today we’ll talk about red teaming and safeguarding for large language models, and who better to talk about it than somebody who’s not only actively working on that, but who’s actually written the book on it. Steve Wilson. Hey, Steve. Thank you so much for joining.
Steve Wilson: Hey, Andreas. Thanks for having me today. Always happy to be here.
Andreas Welsch: That’s awesome. Hey, this is the third time you’re actually on the show. You’re the first guest to be on three times. We talked about large language models last year, and about two weeks ago for the launch of my book, the AI Leadership Handbook. You shared a lot of great advice in a short segment on security, but we said, hey, we want to spend a little more time on this today, because I also feel that it needs a lot more attention now that large language models are becoming more or less ubiquitous and embedded in so many more applications. But before I keep stealing your thunder, maybe for those of you in the audience who don’t know Steve, maybe Steve, you can introduce yourself and share a bit about who you are and what you do.
Steve Wilson: Great. I’m the Chief Product Officer at Exabeam, which is a cyber security company that specializes in using AI to find cyber security threats. Last year, I got involved in creating an open source project, basically, called the OWASP Top 10 for large language models. And OWASP is a large foundation with a few hundred thousand members that’s dedicated to building secure code. And we did a bunch of research into what are the security vulnerabilities in large language models, because this isn’t something that had gotten a lot of research, and that got a lot of attention. Last year, after that got rolling, I got an email out of the cold from an editor at O’Reilly, and they asked if I wanted to write a book. And I’ve spent the intervening year writing this book, so I was super pleased to be on your launch stream, and today is the launch of my book, so I’m hijacking your stream to give it back. So this is my O’Reilly book. It’s called The Developers Playbook for Large Language Model Security, Building Secure AI Apps. And it’s been fun to do that because it lets me get much deeper into a lot of these issues than you can do in a top 10 quick-hit list.
Andreas Welsch: That’s awesome. Again, I’m so glad to have you on the show, and folks, also check out Steve’s book here on large language model security. First of all, also congratulations. That’s a big day for anybody who has spent a year writing something and pouring your heart and soul into it and going through edits and revisions and getting some first excitement. Now it’s the big day. So excited that we can all celebrate that together with you. Awesome. Perfect. Hey folks, if you’re just joining the stream, drop a comment in the chat where you’re joining us from. I’m always curious how global our audience is. And also don’t forget to subscribe to my newsletter, the AI MEMO and the Intelligence Briefing, so you can stay up to date on how you can run AI projects successfully. And again, this one, the AI Leadership Handbook, is also available now on Amazon. Now, why don’t we play a little game to kick things off? We’ve been doing this for a while on the show. This game is called In Your Own Words. And when I hit the buzzer, the wheels will start spinning, and when they stop, you’ll see a sentence. And I’d like for you to answer with the first thing that comes to mind, and why, in your own words. Okay. Let’s see. Are you ready?
Steve Wilson: Let’s do it.
Andreas Welsch: If AI were a fruit, what would it be?
Steve Wilson: Oh man, the thing that just jumps to mind is strawberry. Did you load that question?
Andreas Welsch: Oh, that’s a good one.
Steve Wilson: But for folks who haven’t been following, the big news in the last few months has been OpenAI secretly developing some new supermodel, code named Strawberry, and they did release an early version of it, which is actually pretty fascinating. And I’ve been playing with that a lot the last few weeks.
Andreas Welsch: That’s an awesome answer. I didn’t expect that one though. So good, perfect. So folks, we obviously skipped your answer this time, but if you have one, please feel free to put it in the chat as well. But now, why don’t we jump to the main part of our conversation, and we already have a couple of questions prepped to guide our conversation. You mentioned we’re about a year after the release of the OWASP Top 10 for large language model apps, and that’s how we first got in contact with each other. But I’m curious, where are we? What are you seeing? Are these threats that you discovered and that you described last year still somewhat far away in the distant future? Are they already here? Are all of them here? What are you seeing? How real are these things?
Steve Wilson: It’s interesting. When we go back more than a year now to when we published the first version of the list, I wouldn’t say these things were hypothetical. For many of them there were real exploits that we published and discussed, but I’d say the consequences for the people who fell victim to them were mostly embarrassment, sometimes severe embarrassment, but mostly embarrassment. In fact, Martin Mikos, the CEO over at HackerOne, which is a really well-known security company, put out a list that was a variant of the top 10, the top 10 ways to embarrass yourself with Gen AI. What’s been interesting to watch, first, is that the consequences are clearly much more severe now. We’ve gone from a car dealership in Central California putting up a chatbot that gets tricked into offering to sell people cars for a dollar, and I don’t think anybody actually got a car for a dollar, so they got embarrassed but no consequences. On the other hand, now we’re at the point where we see AI agentry being added to really major applications like Microsoft Copilot, and Slack being vulnerable to the things at the top 10 list, like indirect prompt injection. Both of those have come out recently as vulnerable to that. We see major companies like Apple putting out announcements about how they’re going to make their Gen AI environment secure, but often I feel like they’re doubling down on their traditional security. Apple’s saying, I’m building a super hardened data center to put your data in, and I’m going to run the LLM locally on your device. Both of those are good things to do. There’s no downside to that. But if you’ve got the LLM locally on your device, and that LLM is susceptible to some of these vulnerabilities, and you haven’t dealt with that, and it has access to your data, somebody’s going to trick it into doing something bad with your data. We can see that coming. And we see those early results from the Microsofts and the Slacks and a lot of other people. It’s not limited to them. The other thing that we see out there is that some of the vulnerabilities from the top 10 list are, let’s call it, changing rankings. We actually did some re-voting, and the expert group continues to grow. When we shipped the first version, it was 400 people. Now it’s 1,400 people.
Andreas Welsch: Wow.
Steve Wilson: So people jump in and vote and participate. And we did some re-ranking recently to decide where we wanted to focus. I’d say there are two things that dramatically went up the list in terms of what people are interested in. One of them is what we call supply chain security. This was on the list, but it was near the bottom. It was a hypothetical worry that bad actors could get into your supply chain, where am I getting my models and my training data and my weights, and manipulate that somehow and make it bad for me. A well-known general cyber security problem, hypothetical, not hypothetical anymore. When we look at places like Hugging Face, which has become the de facto source to get so much stuff, and Hugging Face is an awesome site and community, there have been a lot of researchers demonstrating that there are thousands of poisoned AI models on that site. We’ve seen examples where major organizations like Intel and Meta have lost control of their accounts and their keys. So that’s going way up to the top of the list the next time we publish it: understanding those supply chain concerns. The other one I don’t think will surprise people, but it’s agents. We had one vulnerability class for agents last time, what we called excessive agency, which is basically, are you giving the app more rights or more ability to execute autonomously than it really should have for its capabilities? If you look out in the AI sphere right now, for the last couple of months, everybody’s talking about agents. It’s suddenly pivoted to that time where people want to unleash a lot more autonomy. But I think we’re still in a very dangerous place where I don’t think it’s well understood what the security implications are going to be of unleashing that, and ultimately what the safety implications are.
Andreas Welsch: I was just going to say, especially that part, on one hand you have the vulnerability of the LLM and to some extent the gullibility of it, doing things that you don’t intend it to do but somebody else is getting it to do or tricking it into doing. And then certainly putting it into workflows that are a little more critical, a little more high risk, a little more customer facing, can quickly go beyond embarrassing.
Steve Wilson: And look, people are not moving in small steps here. We see all sorts of examples where people are jumping straight from sales chatbot to medical application and financial trader. We’re getting to the heart of the matter now.
Andreas Welsch: Now that makes me curious. Especially as you’re seeing, and as we are seeing in the industry, that shift towards agents, towards more LLM-based applications of all different sorts and kinds in all different kinds of industries. How do you build these safeguards into the apps in and around your LLMs? And doesn’t that drive up the cost for checking and regenerating output if it’s something that’s harmful or something that it’s not supposed to generate? How do people deal with that?
Steve Wilson: So one of the things that I have in the book, when you get to the last chapter, is a checklist of things you should be doing. The top 10 list was great for here are 10 things you need to understand that can go wrong. And I do cover all of those in the book, but the second half of the book is, what do you do about it? Just giving me a list of problems is not helping anymore. So I would say people naturally jump to this idea that my defense, if I’m worried about prompt injection, is going to be putting a filter in front of the LLM that’s going to look for prompt injection. That can be one part of the solution, and I do talk about some ways to do that and screen for things. But that’s an incredibly hard problem, and for the most part something I don’t encourage people to solve by themselves. For that part of the approach, you want to think about going and getting a guardrails framework. There are commercial ones, there’s a whole bunch of cool virgining companies. I could name a few and then I’ll get in trouble for the ones I don’t, but let’s try anyway. You’ve got Prompt Security and Lasso Security and YLabs. All these people are doing great stuff. You’ve got open source projects from companies as big as Nvidia and Meta that are attacking parts of these problems. I suggest people check those out, because that’s going to give you the state of the art for that layer of defense. The other thing I’d say, though, is that the first thing on the checklist is actually more about what I will call product management than engineering. And that’s about carefully selecting what you are going to allow the thing to do and not do, and really closing down your field of view. If you’re trying to build ChatGPT at OpenAI, there’s a tremendous number of things, and we all trip over ChatGPT guardrails all the time. Oh, I can’t do that. But then people trick it into doing it, because it’s a very large space to defend. It’s actually much easier to create what we call an allow list than a deny list. If, as a product manager, I decide this bot is for helping with tax calculations, it’s much easier for me to put some guidance in there and build it into that bot that says, don’t answer questions that are not directly about taxes, than to list all of the things that it should not do. When you think about it that way, you unlock some of these things, where that’s not a huge computational cost. That’s just a smart decision.
Andreas Welsch: That makes a lot of sense. I think putting it that way and giving it that persona of, this is what you do, this is what you’re not supposed to do, or avoid or ignore anything else. And again, it comes back to the point that I think we talked about last year, almost like a zero trust boundary.
Steve Wilson: What I tell everybody is you need to treat your LLM as something in between a confused deputy and an enemy sleeper agent. We’re used to talking about trust boundaries in our software as, the software is here, it’s my software, I trust it, and what I’m trying to do is control what’s coming in from the outside. The thing is, at this point, almost by the nature of any of these applications, they’re designed to take untrusted input from the outside. And by proxy, I have to stop trusting the LLM. That means I put a lot more effort into filtering and checking what comes out than I do into what comes in. It turns out to actually be, again, a much easier problem to solve and screen for. I can watch for, is it spitting out code? If I didn’t intend it to spit out code, I can watch if it’s spitting out credit card numbers or social security numbers. Those are easy problems to solve, versus, is this an attempt to hijack my LLM?
Andreas Welsch: That’s great. I think especially the examples that you give of how to do that or where to do it. It’s easier, like I said, to do that at the beginning than at the tail end of it. Which triggers another thought or another question here. I haven’t really been able to find good expertise on this, people who can talk about this in depth and in breadth. Which is, how do you actually red team your LLM applications? Meaning you have something that’s untrusted, but how do you go through all these scenarios? What are things you should be testing for? And how can your own security team maybe get more familiar with these techniques and upskill now that LLMs are here?
Steve Wilson: It’s been a really interesting journey, and I’ve been exploring this from a few different angles. Personally, my day job being at Exabeam, we just added a bunch of Gen AI capabilities to our cyber security software that we sell to enterprises. All of a sudden, I wasn’t just the author writing about this stuff. I was on the hot seat and responsible for it. When we started putting this out in early access, and frankly got some really great responses from users, I went back to the engineering team and started asking a lot of questions like, hey, what kind of guardrails are we putting on this? What are we doing? There weren’t a lot of great resources for red teaming, and it was very easy to trip it up with even basic red teaming at the beginning, because these things are hard. The other part is from the OWASP side: red teaming has become a huge topic within the expert group. Again, it was like, hey, what are all the problems? Now it’s like, all right, red teaming is a big part of the solution. How are we going to give people good red teaming guidance? We did a panel on that at RSA that was really well received, and it’s up on YouTube. If you go look for OWASP Top 10 LLM red teaming, you can find it. What I’ll say that’s interesting is that people coming to this from what I call an AI background, or coming to this from an AI angle, often don’t have a lot of cyber security experience. That’s one of the tricks. They don’t necessarily know where to start. The term red teaming has become pervasive in the community broadly due to LLMs. I was watching a clip off cable TV recently where Senator Chuck Schumer from the United States Senate was talking about AI red teaming and LLM, and my mind just exploded, so it’s in popular culture. What we really see is that there’s a tremendous amount of expertise on how to approach this in an obscure corner of your development organization at your enterprise called the AppSec team. These teams sometimes feel unloved, but they’re the ones who are charged with building secure software inside your enterprise. They are coming up a learning curve about AI, but they know how to secure things and they know how to pen test them. For a long time we called that pen testing, and red teaming is a different variant of that, but that’s a good place to start with that piece of expertise. The thing about red teaming that’s different, and I break this down in the book with a table that actually compares pen testing and red teaming, is that AI red teaming is really, you want to attack it from a broad perspective. You’re not probing it looking for traditional attacks. You’re looking at it from a holistic point of view: security, safety. It’s really interesting to watch these teams that were viewed very narrowly, like an AppSec team in an enterprise, suddenly become much more important, where they’re getting asked questions like, how do I test this for safety? Sometimes they’re uncomfortable with that. They’re like, nobody’s asked me this, I’ve got nobody else to ask, you’re the only person here with expertise on this, let’s figure it out. Some people get uncomfortable, some people are really embracing it, and these teams are stepping up. It’s really cool to see them step up and attack this. If you don’t have experience with red teaming and you’re looking to just get your feet wet, there’s an awesome resource from a company called Laykara. They’re another one who makes guardrails frameworks. The thing they got famous for originally was that they put out basically a game on the internet called Gandalf. It’s a tool to practice attacking large language models. So if you want to practice your skills at hacking LLMs in a way that’s not illegal or immoral, and develop those red teaming skills, that’s a great place to get started.
Andreas Welsch: Cool. I know what I’ll be doing once we end the stream. That’s for sure. I always love learning something new and getting new resources. Two things, folks, for those of you in the audience: if you have a question for Steve, please put it in the chat. We’ll pick it up in a minute or two. And while you’re thinking about your question, Steve, you mentioned you wrote a book and today’s launch day. What’s the name of the book again?
Steve Wilson: Yep, so the book is called The Developers Playbook for Large Language Model Security, Developing Secure AI Applications. It’s from O’Reilly. And again, it’s available today. You can get the electronic copies on Amazon or wherever you buy books. And they promised me the hard copies are on a truck somewhere, coming really soon.
Andreas Welsch: That’s awesome. Fantastic. So folks, definitely check that out. While we’re waiting for questions to come in, I think another aspect, then, as you’re thinking about red teaming, is that it’s the usual teams that have been doing this kind of work for a long time. It’s an additional dimension of how we do this for large language models now. How do we upskill? What roles do you see within these teams that are best suited to do that? What skill sets do people have that do red teaming and develop these safeguards? Is it the AI scientists? I think you said that’s maybe not the best angle. Is it the pure security teams? Is it the English majors who know how to write a crafty sentence and elicit a good response? Where do you start?
Steve Wilson: It’s funny. Just in general, having been immersed in not just the security but the development of Gen AI apps, it’s interesting to look at the role of, let’s call it, data scientists and machine learning engineers. At Exabeam, we have a bunch of them who’ve been developing deep machine learning models for high-speed analysis of data for 10 years. But when we added the copilot with Gen AI, we’re using a lot of things people who watch your show would be familiar with. We were using a private version of Gemini inside Google Cloud, and it’s an LLM, and we do RAG and prompt engineering and these things that we’re all learning about together. The role of data science there is very minimal. If you’re a machine learning specialist in the world of large language models, you might be working somewhere like Google or OpenAI, working on the next wave of those frontier models. I have a tremendous amount of respect for that. But when it comes to building these apps, this is really a new skill set that we’re all developing together: how do I build effective prompts and how do I do effective RAG? There are ways to connect that up to existing machine learning technologies, which has been really cool to do at Exabeam. But what that means is that we’re all developing these new skill sets. From a security perspective, I think those data scientists are the furthest away from doing this directly at your enterprise, although there are a lot of smart ones at places like Nvidia and Meta working on security guardrails, and I would just take advantage of that. I would not try to employ data scientists to build security guardrails for a new enterprise app.
Andreas Welsch: Good point that you’re making there. So then what types of skills do you see, if it’s not the data scientists? But there is some knowledge needed, so that you understand what the vulnerabilities are. What’s a good skill set that can test for these things? Again, is it more language? Is it more security? Is it something completely different?
Steve Wilson: I’d say the term red teaming existed in cyber security long before large language models. The first place to look is those security teams that have experience in pen testing and red teaming. There are also great things cropping up out there. Companies like HackerOne. HackerOne is a really cool company with a cool business model where they basically run bug bounty programs for large enterprises. What they have is a million, literally a million hackers under contract, and they will come try to hack your stuff. If they hack your stuff, you pay them, because they will disclose to you how they did it. In the last six to 12 months, they’ve added AI red teaming to this. And I’ve seen some amazing feedback on what you’re able to do with that. So you’re able to actually go out and basically crowdsource
Andreas Welsch: That is indeed an interesting business model as well. And I could see, especially for companies that don’t necessarily have the bandwidth or already the expertise, who are still bringing up the expertise in their own organization, leveraging offerings like the one you just mentioned to augment their skills or again get some external help on this. Fantastic. Steve, we’re getting close to the end of the show, and I was wondering if you can summarize the key three takeaways for our audience today before we wrap up.
Steve Wilson: Yeah, from the topics we’ve covered, I’d say this is a fast-evolving space. If you’re tracking this, you want to start to be aware of some of the newer places where the vulnerabilities are showing up, and these are definitely things like supply chain. If you’re not just using a software-as-a-service model like Google Gemini, but you’re off trying to run your own LLM or trying to use training data from third parties and things like that, really start to understand the characteristics of your supply chain. And then, as you go out and start to think about adding agents to the mix, letting things execute autonomously and seek goals, really think hard about the implications of that. And lastly, please check out the book, The Developers Playbook for Large Language Model Security.
Andreas Welsch: Steve, it’s been a pleasure having you on. Thank you for sharing your expertise with us.
Steve Wilson: Thanks, Andreas. Always enjoy it.
Listen and Subscribe
Related Reading
- AI Governance for Enterprise Leaders
- Agentic AI for Enterprise Leaders
- The HUMAN Agentic AI Edge
- Agentic AI Security: Five Layers and Agent Commerce
Frequently Asked Questions
How serious have LLM application vulnerabilities become?
Steve says the early consequences were mostly embarrassment, such as a dealership chatbot offering cars for a dollar. Now he points to indirect prompt injection in Microsoft Copilot and Slack, and to teams moving from sales chatbots to medical and financial applications.
How do you build safeguards into an LLM app without driving up cost?
Steve starts with product management: narrow what the app may do. An allow list is easier to build than a deny list, and it is a design decision, not a large computational cost. A guardrails framework can add a filter layer on top.
How should you treat an LLM in your trust model?
Steve tells teams to treat the LLM as something between a confused deputy and an enemy sleeper agent. Because applications take untrusted input, he puts more effort into filtering what comes out, such as code, credit card numbers or social security numbers.
Who should red-team an LLM application?
Steve says to start with application security teams that already do pen testing and red teaming. AI red teaming is broader, covering security and safety. He sees data scientists as the furthest from this work for an enterprise app.
Where can teams practice attacking LLMs?
Steve points to Gandalf, a game put out by a guardrails vendor, as a way to practice hacking LLMs legally. He also names HackerOne, which added AI red teaming to its bug bounty model, with a million hackers under contract.

