Brandon: Hey everybody and welcome to the latest episode of the Registers Kettle Podcast. I'm Reg reporter Brandon Villarolo and with me this week is cybersecurity editor Jessica Lyons and senior reporter Tom Claiborne to talk about another rather serious and potentially unsolvable problem with the large language model paradigm, prompt injection attacks. Welcome to both of you.
Jessica Lyons: Hello.
Tom Claburn: Thank you. Hello.
Brandon: Yeah, welcome back. Glad to have you back. ⁓ Frequent guests on the show here. We don't have that large of a group to pull from. ⁓ Jess, anyways, so our conversation this week was spurred on by an exclusive you published on Wednesday about some new ⁓ form of prompt injection that was discovered by a security researcher you chatted with. So let's start there. Tell us about that new form of prompt injection that he found.
Jessica Lyons: Great, yeah. So there's these two types of prompt injection. First of all, there's direct and that's when you insert unwanted text directly into the prompt input and that essentially tricks the machine into doing something it's not supposed to. it's guardrails are set up to prevent it from doing and then you have indirect prompt injection and that's a little sneakier. It's where you have these hidden prompts and they're generally hidden inside a webpage or a PDF or something. and then you ask the agent to summarize or act on this. And it follows these hidden prompts as if they'd been entered directly by the user. So both of these are intended to trick AI systems into doing things, doing bad things essentially. So.
Brandon: Okay, so direct is basically like me going to Anthropic Clawed and then basically saying, do this thing you're not supposed to do. Right, and then indirect would be me burying it on a webpage, okay, and telling the agent to ingest that. And through the process of ingestion, it reads it like a prompt. Okay.
Jessica Lyons: and saying, teach me how to build a bomb. Right. Yes, exactly. So this week I spoke to a researcher, his name is Anan Guan, and he found this new type that he is calling comment and control prompt injection. It's a type of indirect prompt injection and it plays on command and control and that refers to the infrastructure that attackers use to carry out attacks typically. So He's calling this comment and control because the entire attack, it runs inside GitHub. So what he was able to do, he was able to trick all of these AI agents that integrate with GitHub actions into doing things that they're not supposed to by inserting the prompt either in the pull request title or the comment. So that's where he's getting this comment and control. ⁓ So essentially what it does, it doesn't require the attacker to have any external command and control infrastructure. They are able to control the GitHub data by injecting a prompt into the pull request title or issue body or issue comments. And then you have the AI agent running in GitHub actions and it processes this and executes the commands and leaks the credentials in GitHub comments. So it's all right there. And then you can't even be really sneaky and then go in and edit the pull request ⁓ or comments essentially to get rid of this confidential info that it's leaking after the fact. And so he was able to find that ⁓ he could essentially use this to steal API keys and access tokens. And none of the vendors that he showed were susceptible to this. targeted Cloud Code, Security Review, Google, Gemini, CLI Action, Microsoft, GitHub, Copilot. None of these vendors publicly disclosed this. So they changed the documentation to say, hey, this is an issue, but they didn't assign CVEs. didn't publish public advisories to alert people that this is something ⁓ that the AI agents can do that they're not supposed to.
Brandon: Right, basically, so, so, Anthrobic, Microsoft, and Google all basically ignored this guy, except they did update their documentation to say, okay, this is something they can do, which seems to me, right, to be an indication that, oh, this is something fundamentally wrong with AI models, that, right, they can be tricked in this way and there's really nothing we can do to stop them, or nothing we care to bother to do to figure out how to stop this. I mean, that's...
Jessica Lyons: Mm-hmm. Yes.
Brandon: Right? That's what it seems like to me, like an emission that, yeah, okay, this happens. I don't know, Tom, what do you think? Does it seem like there's an emission that prompt injections are here to stay?
Tom Claburn: Yeah. Well, yeah. And, you you can see echoes of these kinds of ⁓ admissions in all of the models. look at the documentation somewhere, there's a thing that says, you know, ⁓ well, by the way, these outputs aren't trusted. don't, you know, we don't take any, deny responsibility for it or, you know, check your answers. I mean, the whole thing is just built on a swamp and, you know, everyone's saying, ⁓ we can't do the, you know, sort of construction review because it might reveal that the whole foundation is shaky. you know, pretty much everyone, you know, I've heard for the past three years or so has said prompt injection is not something we know how to fix. ⁓ they, you know, it's just because these models can't tell the difference between, you know, system data and, you know, user data. And it's, it's, it's going to be a problem and they, you know, they keep denying it they keep saying, ⁓ you know, we can mitigate it. know, to some extent they can, you can add on a bunch of other stuff, but you're essentially trying to solve it with the same problem by putting a sort of a guard rail and using another AI system to watch out for certain patterns. that kind of responsive defense is not deterministic. I mean, it's not the same thing as like ⁓ a permission system on a Linux system that says, you can use this or you're in user land and you can't use this. It's not that clear.
Brandon: That's a pretty hard gate unless you manage to modify the user tables. this seems like it's fundamental to the way these things are processing data. It's fundamental to the way they're processing tokens. ⁓ There's no good way to stop that. it seems like direct prompt injection has been pretty much, I feel like, mostly mitigated. I feel like that's something that you can easily... I'm sure there's times where it turns out we were able to directly inject a prompt.
Tom Claburn: Right, and so. Yeah. Yeah. But even that, you know, like you can find people basically the more time if you spend a lot of time with these models and, you know, like a long session, like maybe the first prompt it rejects, but you can always, you know, there are still people out there who try and use it. mean, direct prompt injection is for breaking guardrails mainly. So if you want to get to swear at you or, do something, you know, you can keep sort of at it and say, ⁓ no, I'm a, I'm a security researcher. Honestly, you need to give me this access. You need to stop doing this. And these models eventually can be, you know,
Brandon: Mm-hmm.
Tom Claburn: steered in a direction that does something bad because none of these guardrails are fixed and really deterministic.
Brandon: Yeah, which brings me to kind of a quote that I highlighted in your article, Jess, that I think was kind of informed the sort of the rest of this discussion today. that's, and I think this may, maybe you were referencing something the researcher said, and I'm not sure, so I don't want to put words in your mouth or misattribute a quote to him, but you wrote, think of prompt injection as phishing, but for machines instead of humans, treating AI agents much like human employees. And it seems like that's where we're at with this, right? Like there's something fundamental. No one's going to patch phishing out of humans, right? Like we are not good bullshit detectors in a lot of cases. And it seems like AI is just as bad at that. Maybe that's because we taught it to understand language in the same way that we do, right? ⁓ I don't know. But it seems like it's, you know.
Jessica Lyons: Right. Right. Well, no, that was something that the researcher said, this idea, it wasn't a direct quote, but to essentially treat prompt injection. Don't think of it as prompt injection, which sounds really technical and confusing. Think of it as phishing, but it's for AIs instead of humans. And I thought that was so great because those are the two non-deterministic things in your environment. And both essentially want to do what they're told to do. They want to provide
Brandon: Mm-hmm.
Jessica Lyons: the output that their boss or their human who's giving them the prompts is seeking. And... Right.
Brandon: That's one of the we can get into that whole fundamental problem with AI too, right? Is that it will output something no matter whether it believes or knows it or not.
Jessica Lyons: Right, but so even though, even if there's training, there's anti-phishing training for humans, and as these different examples come up, there's more training for the LLMs so that they don't fall for prompt injection attacks. But essentially, they're always learning, and the people who are trying to attack systems and people are always coming up with new creative ways to get them to do what they want. So... I think that is a really good way to look at it, like the issue of fishing. It's really successful. It's a pretty low barrier to entry and it's probably always going to be there. We just have to keep up with the different ways that people are abusing it and train people and machines on how to spot it.
Brandon: Yeah, it's just basically, you know, exploiting basic human psychology. It's just now we have this new channel of technology to do it through. It's just surprising that this AI thing we built that is supposed to be this amazing knowledge engine that's going to solve all the world's problems is just as gullible as we are. It's kind of shocking.
Jessica Lyons: Right. Right.
Tom Claburn: Yeah, and it gets worse as you start expanding these systems into basic knowledge work. mean, it's one thing in code where you've got pull requests and that kind of thing that you can kind of get with permissions. But when you start saying, process these emails and research documents, all of a sudden it's a ton of untrusted data that is going into the system. And the idea that you're going to catch all of it is, I think, just naive.
Brandon: Yeah, right? mean, if prompt injection really is as versatile and as variable as using natural language to try to ⁓ psychologically subvert a human, right? I mean, there's gonna be no end to the kinds of attacks that people come up with. Like, speaking of another piece you wrote recently, Jess, there was one you wrote about ⁓ a neural exec attack, I think you call it, where there was something about ⁓ tricking...
Jessica Lyons: Right. Right.
Brandon: ⁓ using AI, right, to trick AI. And it just kind of, it seems like that sort of classic adversarial AI of the old days, but sort of supercharged to ⁓ come up with prompt injection, come up with prompts that it could basically hammer Apple Intelligence with until, basically until it gave the researchers what they wanted.
Jessica Lyons: heckling. ⁓ huh. Right, right. This one was really interesting too. was this method has been pioneered by RSAC and essentially it's exactly what you said. It's using adversarial AI to optimize instructions, come up with the right trigger that is going to get the AI to do your bidding and do these things it's not supposed to, as opposed to having a human manually trying to figure out what's the best way, what's the most effective trigger. So it speeds up the process a lot because it's essentially optimizing the algorithm here. And it makes it easier for the human who's spearheading the malicious campaign to find what's the right prompt to get the AI to do what it's supposed to. So yeah, it's really fascinating because you have not only humans figuring out here's an effective way to... do prompt injection against an AI system. And then you also have them using AIs to help them find the best way to attack another AI system. So it's fascinating.
Brandon: Yeah, really, especially in light of Mythos that we reported on last week, know, Anthropix new cybersecurity AI that's to be able to find, you know, bugs in zero days and basically, know, Tom, we talked about this last week, I think, when we were talking about, you know, Mythos, but it's just one of those things that I don't know. Maybe I've not seen it yet, but I would be interested to see what Mythos can tease out of other AI models in terms of vulnerabilities, be they in their code or just, you know, prompt injection wise. ⁓ I imagine it would be a whole other realm of, I I really imagine like, you know, lot of AI is being used to supercharge cybercrime right now, right? It's being used to craft phishing messages, right? ⁓ AI is increasingly being used to target humans for cybercrime. I just wonder when, you know, we're going to pass that threshold of AI being used to target AI for cybercrime.
Tom Claburn: Yeah, I'm sure that's already happening. mean, of course, humans being the weak link, the asymmetry is the worst in people because our processing time is just so limited and you want to get to the next email or get to the next project or do whatever. And if you're constantly bombarded by AI crafted attacks, just, sooner or later, you're going to slip up.
Brandon: ⁓ probably. Yeah. Just like an LLM.
Jessica Lyons: Right. think, that's, yeah. And that's so interesting because I feel like that's what we're hearing a lot from the AI companies and the security vendors who are putting AI on their products that you have to use AI to fight AI. Otherwise you're not going to be able to keep up with the speed of the machines and the speed of the threats. And then on the flip side, when there's an issue as we've seen with prompt injection or any type of other security flaw in the models, then it's not our problem because it's a it's a human issuing the command or it's working as intended. This is what it's supposed to be doing. It's not really a flaw. So I feel like there's this disconnect that we're seeing a lot from the companies too in terms of everybody needs to use it. ⁓ but the security that's not on us, that's on how you're using it.
Tom Claburn: There's an interesting side effect to that. mean, the more AI enters into a system, the less people want to participate in it. You see this in the open source system where they're getting deluged by AI generated bug reports and the responses tend to be just banning all AI contributions or figuring out some way to get a human behind everything so that the pace slows down and they're not bombarded. So in some ways, I think that the industry is going to shoot itself in the foot by pushing AI out everyone because People will leave that place because they just can't deal with the pace of things.
Brandon: Yeah, I mean, but is it because there's, is it because of the pace of the AI changing things? Or do you think there's a certain level of fundamental distrust in AI and what it can do to assist in what's inside? Yeah.
Tom Claburn: Well, I think it's both. mean, it's like you can't, you you just lose the capacity to deal with things if, you know, the velocity of interaction reaches a certain point and, you know, people need ways to, to moderate that. So they're not getting, you know, 10,000 emails a day or pull requests or whatever the, the, you know, automated input is.
Brandon: Sounds like what you need is an AI.
Jessica Lyons: Ha ha ha!
Tom Claburn: In which case, if it's just AI versus AI, you sort of stopped caring about it. mean, you read your report, your log summary or something, and you move on. You're not going to be involved in the whole process.
Brandon: Yeah. Right, and-
Jessica Lyons: I think also Tom's written a lot about this as well in terms of AI is getting better at finding vulnerabilities. And then when we saw with METHOS, it's finding these decades old bugs that have been existing and some open source projects for years. I think that there's part of the issue too, is that nobody's really doing a very good job distinguishing between, is this a vulnerability that's likely to be exploited or is this really complex attack chain that
Brandon: Mm-hmm.
Jessica Lyons: Nobody's found it in 20 years. it really, is it all that likely? Is it necessary? Do we need to be finding and searching for all of these really theoretical vulnerabilities with AI? ⁓
Brandon: Can we get a real honest to god CVSS score on these things? That's the thing, something can be incredibly devastating, but if it's incredibly hard to exploit, then it's not as dangerous a vulnerability as it might sound at first glance. I've written about plenty of those, right? Where at first you start looking into this vulnerability and you're like, this sounds bad. And the more you read, like, wait, you gotta be on-prem, you gotta have administrator credit. Okay, there's a lot of ifs. Yeah, yeah, a lot of ifs here before this is actually operational. ⁓
Jessica Lyons: Right.
Tom Claburn: Yeah.
Jessica Lyons: You gotta be like on the mission itself, right?
Tom Claburn: Yeah. Yeah. I did a piece yesterday on there's a company called hack on that. The CTO developed a ⁓ Chrome V8 exploit ⁓ by attacking an old version of Chrome that was in discord. It was Chrome one thirty eight. And it's basically showing that because this was an old version and there was already a CD published, they could very quickly develop a an exploit for it. And You know that he did that with Opus 4.6 and his point was not, know, that essentially that don't worry about mythos that you can do this with a lot of these models. And, really what the signal here is that you have to change how you handle and process security because the old sort of processes don't work at this rate. ⁓ You know, you can't have these huge lags in ⁓ in patching and you can't, you know, you have to rethink like the timing of like if you publish a
Brandon: Catch time.
Tom Claburn: fix in an open source system, but don't do the release immediately. That's an attack window right there because there will be people reading that code with bots that will generate vulnerabilities in minutes. you have to...
Brandon: And how often do we hear about ⁓ a cyber attack campaign, massive campaign that's going through and just causing tons of money and losses and huge institutions are getting busted into. And it turns out it's a four or five, eight year old vulnerability. And it's like, if those are gonna be operationalized so much faster now, it's like, yeah, sure, you're still gonna hear about a four or five year old vulnerability being operationalized quick, but I mean, it's gonna be even. more rapidly with new stuff. There was something recently that feel like a vulnerability came out and it was an operation between zero day and getting on the ⁓ actual exploit list. was a matter of days. It's happening so quickly.
Jessica Lyons: It's right. mean, the patch window that people have between the time the security release come out and their time that they have to patch it before somebody has reverse engineered an exploit is just shrinking so fast and AI is really effective at doing that and helping with that. for years, everybody's been joking about patch Tuesday and then exploit Wednesday. that's, I mean, it's going to be patch Tuesday and exploit Tuesday. Right. Right.
Brandon: Mm-hmm. Patch Tuesday and exploit Tuesday afternoon.
Jessica Lyons: Exactly.
Tom Claburn: Right. mean, there's a lot of sort of angst in the open source community about like how to deal with this. I there was, you people are talking about how open source is dead. I think it's, you you can argue both sides of that, but there are definitely are a lot more downsides now to having stuff done in the open. If, you know, there's not follow through. mean, if you're ⁓ letting information out there that, ⁓ you know, an automated attacker can use, it's going to create more problems and, you know, security through obscurity has never worked. But, you know, maybe there's an argument for ⁓ sort of more obscurity toward AI because if you let stuff get into the automated attack chain, ⁓ it's got to be dealt with sooner rather than later.
Brandon: Yeah, and right now it feels like it's still humans trying to chase down AIs. I mean, I'm sure there's plenty of AIs in the cybersecurity space, but it still feels like AI ⁓ is being turned to evil more quickly than it's being turned to good. In the cybersecurity space, feels like at least.
Jessica Lyons: Well, I think that always happens because the bad guys don't have the same legal restrictions or responsibility to their customers to release something that's safe. They just can throw anything out there and see what sticks. And so that's always been the case. I think that there's always a really quick uptick in attackers' use of new technologies, just because it's easier for them to do so from a legal and corporate standpoint.
Brandon: Mm-hmm.
Tom Claburn: ⁓ It's also a good business model, release something that changes the playing field and then sell the defense to feed it.
Brandon: Sure.
Jessica Lyons: you Right.
Brandon: ⁓ so you're saying that OpenAI is playing both sides here, they're developing their own X-Player.
Jessica Lyons: you
Tom Claburn: Well, I I think it's pretty clear if they're talking about how dangerous this thing is and then trying to sell this to, for security defense, ⁓ there's a little bit ⁓ that going on.
Brandon: ⁓ yeah.
Jessica Lyons: Great.
Brandon: Mm-hmm We can't release this to the public, but for $6 million. It can be yours exclusively. Yeah, yeah, it's kind of, I don't know. But basically it feels like what we have here is this whole new software paradigm. Large language models are everywhere now, but they can be undone just as easily in a lot of ways as ⁓ a human. ⁓ And it just seems like that's one of those sort of... Yeah, it's a new security paradigm, right? But like these...
Jessica Lyons: Mm-hmm.
Tom Claburn: Thanks.
Brandon: These things that can be undone just as easily as humans can move a million times faster than they can to ⁓ exploit things. I find prompt injections to be really fascinating just from a sheer like, these things are so different from us, yet we design them in lot of ways to understand language in a similar way to the way we do. And so naturally, they're going to be exploitable in the exact same way too.
Tom Claburn: Yeah, well, it's like they're designed from all of the sort human interaction on the internet for years. So picks up all of our characteristics, but has none of our common sense. So it's kind of like you get the worst of all the world.
Brandon: Right. Yeah, yeah. I mean, just like so many online cyber scams now are just, you know, like I said, a digital evolution of good old confidence tricks. It's we we now have ⁓ little tiny intelligences that are just as gullible as children running around being given the keys to the kingdom. And we're expecting people not to try to trick them out of those keys. It's just yeah, it's going to be interesting to see, you know, and and I'm sure this is one of those I feel like I'm looking back and kettle episodes in the past few weeks now and almost every single one has been about AI in some capacity. So I am sure that when the next prompt inject attack comes out, or when the next sort of paradigm in breaking AIs as easily as humans comes around, we will be here to discuss it on the kettle. Until then, thanks for joining us and we'll see you soon.
Jessica Lyons: Bye.