AI’s Trojan Horse: 10 Neurons Turn Your AI Agent Into a Sleeper Agent
With Chris Romeo, Izar Tarandach, and Matt Coles
Microsoft says editing fewer than ten neurons can turn a capable agent model into a sleeper agent that passes every evaluation, then runs an attacker's command the moment a trigger shows up. Matt calls it what it is: a Trojan horse, just hidden in weights instead of a binary.
Episode chapters · 35 chapters
- Cold Open: Welcome to the AI Security TableAudio
- Is Izar AI Native Yet?Audio
- Izar Gives His Agent Slack AccessAudio
- A Morning Task List From the AgentAudio
- Paying an Agent to Assign You WorkAudio
- The Intern and Other Movie DetoursAudio
- Article Intro: Sleeper Agents in Ten NeuronsAudio
- Matt's Case: It's a Trojan HorseAudio
- How Big Are Ten Neurons?Audio
- How Do You Spot a Modified Model?Audio
- Article Intro: LLMs That Read and Write WeightsAudio
- Can an LLM Be Malicious?Audio
- When LLMs Speak in WeightsAudio
- Sigstore for ModelsAudio
- Weight Scanners Hunting for MaliceAudio
- What Could a Sleeper Agent Do?Audio
- The Compiler Backdoor AnalogyAudio
- Hidden Triggers That Evade TestingAudio
- AI Job Interviews as Psych EvalsAudio
- Trojan Horses, Old and NewAudio
- Izar's Worry: Only Big Vendor ModelsAudio
- Cracked Games and Shareware VirusesAudio
- Article Intro: Trained to BetrayAudio
- Poisoned Datasets on Public HubsAudio
- 250 Documents to Poison a ModelAudio
- OpenShell and Safe Tool CallsAudio
- Whose Fault Is a Poisoned Model?Audio
- Bias, Synthetic Data, and Model CollapseAudio
- Agents That Rewrite Their Own WeightsAudio
- So Do We Use AI or Not?Audio
- Microsoft's Five Findings on Agent BackdoorsAudio
- Microsoft's Mitigation GuidanceAudio
- AI Generated Office and Seinfeld EpisodesAudio
- Seinfeld Meets Knight RiderAudio
- OutroAudio
About this episode
Microsoft says editing fewer than ten neurons can turn a capable agent model into a sleeper agent that passes every evaluation, then runs an attacker's command the moment a trigger shows up. Matt calls it what it is: a Trojan horse, just hidden in weights instead of a binary. Izar worries about what happens once LLMs can read and write weights themselves, as new MIT research suggests, and floats signed models, chunk based signing and weight scanners hunting for malice. Chris asks whether any of this matters if you aren't pulling random models off the internet, and the hosts work through Microsoft's companion research on poisoning the post training supply chain of coding agents, where roughly one percent of poisoned training data was enough to trigger unsafe actions in most trials. Meanwhile, Izar's new agent has started handing him a daily task list. It all lands back at square one of security: how do you trust something you can't inspect?
Mentioned in this Episode:
➜ Lazare, veni foras: Reprogramming Dormant Neurons to Backdoor AI Agents
➜ Trained to Betray: How Post-Training Supply Chain Attacks Hijack Coding Agents
➜ Sparks of Weight-Space Programming: LLMs Can Natively Read & Write Neural Network Weights
➜ A Small Number of Samples Can Poison LLMs of Any Size
➜ Sigstore Model Transparency (Model Signing)
➜ NVIDIA OpenShell
Follow AI Security Table:
➜ Home: https://securitytable.ai/
➜ X: https://x.com/AISecurityTable
➜ LinkedIn: https://www.linkedin.com/company/ai-security-table/
➜ YouTube: https://www.youtube.com/@AISecurityTable
Transcript · 50 min conversation
0:09Chris Romeo Welcome to the security— well, scratch that, the AI security table. Chris Romeo, as always, joined by Izar Terrandas, Matt Coles. We're connoisseurs of fine technology-focused movies.
0:24Izar Tarandach Purveyors of BS.
0:27Chris Romeo And that's the way to sell us. Yeah.
0:33Matt Coles That's, we call them, we call them hallucinations.
0:36Chris Romeo That's right.
0:37Izar Tarandach Sorry. Yeah.
0:40Chris Romeo Pundits of AI security.
0:45Izar Tarandach But wait, I was meant, I meant best stories. What did you guys think I was talking about?
0:51Chris Romeo Yeah.
0:52Izar Tarandach We are the purveyors of best stories.
0:54Matt Coles But But wait, there's more.
0:57Chris Romeo All right. So before we dive into what we, our primary topic, we need a quick, is AAI, is Isar yet an AI native segment update?
1:10Matt Coles Is AI native or is he AI?
1:13Chris Romeo No, no, we already know he could be AI.
1:14Izar Tarandach Thing happened a couple of days ago. I got a nice invite from Anthropic. To try their Claude Duitt thing.
1:23Matt Coles They, they know who you are.
1:25Izar Tarandach They know who I am. They know who I am. They've been trained on me.
1:27Matt Coles So you, so you've heard of me.
1:29Izar Tarandach Yeah. So I took the, the, the, the, the, the, the step that I mentioned the other week and I created a new email, new calendar, new everything there.
1:41Matt Coles Oh,
1:42Izar Tarandach connected to the thing.
1:42Matt Coles So bad.
1:44Izar Tarandach But then I started forwarding all the GitHub messages from PyTM to that address, right? And apparently by mistake, I connected my OWASP Slack to the API. So—
2:00Chris Romeo By mistake.
2:02Izar Tarandach What could go wrong? Now, now what happens, I wake up and at 7:15 in the morning, I get a list of tasks. From the agent.
2:14Matt Coles For you to do?
2:15Izar Tarandach For me to do, because of course I didn't let the agent like do anything, so it can't do anything on GitHub. But the interesting thing is that anybody who sends me a message on Slack, the agent automatically sees that as a task to be done. So Matt mentioned something about the review volunteers. For the, uh, OASP Events Committee. And the agent decided that it had to draft a review list for reviewers. And so now I have a, a, a, basically in the morning, a list of tasks for me to do that my agent is giving me. So now it is my boss, my wife, the tax guy, uh, my son, the agent. So I just added one more source of tasks, of lists of tasks for me to basically do. So yeah, technology got up to me and my life is so much better now.
3:10Matt Coles And hold on, and you pay for the agent to give you a list of tasks.
3:15Izar Tarandach I wasn't as sad as I am now. Thank you very much. But now, yes, yes, yes, I am sad. Oh, oh, oh, let's add the therapist to that because I also have to pay for that one. Yeah.
3:27Chris Romeo Yeah. So I don't think you're using it right.
3:33Matt Coles I think it's supposed to run by itself.
3:34Izar Tarandach Somebody's being used right here. I just haven't determined exactly who.
3:39Chris Romeo Yeah.
3:39Matt Coles So, so I have to send a, I have to send a flurry of Slack messages right now.
3:43Chris Romeo Oh dude, I just did that. That's why I wasn't paying attention for a second.
3:47Izar Tarandach I, I, I gotta be honest. I gotta be honest. It's doing a great job with the GitHub stuff, right? Because I spent a lot of the weekend cleaning up the queues on OWASP ITM and that woke up our collaborators and they have sent a flurry of stuff. So it already set up like which ones I have to check in to commit before the other ones, which ones it thinks that I need to ask for some clarification. And there's some good stuff in here. So yeah, it's saving me some time. But am I going to put this thing up to answer my emails? I don't know. It's asking me, it's showing me drafts for things from that it wants to say on Slack and I won't let it.
4:32Matt Coles So yeah,
4:34Izar Tarandach I don't know. I'm still divided.
4:37Matt Coles So this is a Devil Wears Prada moment. It's a what? Devil Wears Prada moment. You're the intern.
4:45Izar Tarandach I don't know. I didn't watch it. He's the intern. I don't know. Did I watch that movie?
4:53Matt Coles Can your agent tell you to get coffee for it?
4:56Izar Tarandach Wait, I can't close it from here because the Cloud GitHub app is installed on the OWASP org. So you have to do it yourself.
5:04Matt Coles Or, or what's that movie with Anne Hathaway and, uh, what's his name? He plays an older gentleman who works for
5:14Chris Romeo Robert De Niro.
5:14Izar Tarandach The Intern. Now I know how Kim feels when we talk about Monty Python movies. What?
5:22Matt Coles You've seen this movie, I'm sure. It's a nice movie.
5:24Izar Tarandach Which?
5:25Chris Romeo The Intern, I think is what it's called.
5:27Matt Coles The Intern.
5:27Chris Romeo Robert De Niro and Anne Hathaway.
5:30Izar Tarandach I have seen Robert De Niro movies before, yes.
5:33Matt Coles Yes.
5:34Chris Romeo Okay.
5:35Izar Tarandach Not that one, no.
5:36Chris Romeo All right, well, we'll provide another update next week on Is ISAR AI Native? That's the segment.
5:45Matt Coles So what's that? I have to send you a Slack message that tells you to watch The Intern so that you— Yeah, do it.
5:50Chris Romeo Please do that right now.
5:51Izar Tarandach Do it, do it, do it, do it, do it. Let's see what happens. Do it, do
5:54Matt Coles it, do it, do it, do it, do it.
5:58Chris Romeo We've, we've fallen into chanting like middle schoolers.
6:04Izar Tarandach Hey, hey, none of us are ready for two episodes.
6:06Chris Romeo Oh, there's gotta be. I mean, we're entertainers. We're not just podcasters. I mean, we should have a Vegas show. I mean, nobody would come to it, but. We can have—
6:18Izar Tarandach Leopards ate our face.
6:20Matt Coles Oh, and interestingly, my phone may have been listening because it prompted me to type Anne Hathaway in my message that I just sent to Israel.
6:30Chris Romeo And— Ooh, that's kind of eerie.
6:31Matt Coles Yeah.
6:33Izar Tarandach Sorry, we were going to talk something about something agents. What was it that we were going to talk about?
6:39Matt Coles I don't know, this is better.
6:40Chris Romeo Yeah.
6:41Izar Tarandach I don't know.
6:41Chris Romeo It's like a soap opera.
6:42Izar Tarandach I, I, I think that they're waking up.
6:46Chris Romeo We've, we've woken those sleeping agents.
6:48Matt Coles We woke, we woke those sleepers. That's another movie you, you should watch if you haven't already.
6:52Izar Tarandach Oh, that is a good movie.
6:54Matt Coles Yeah.
6:54Izar Tarandach Yeah. Wait, my, my agent is giving me a morning brief.
7:00Matt Coles Does it have anything about watching a movie by any chance?
7:03Izar Tarandach I, I don't know. It's been 15 seconds and it's still starting up.
7:06Chris Romeo Isar's agent's the only one who like says, pay attention.
7:11Izar Tarandach No, I think that my agent is asking for a coffee. Should I show the monster of the phone? Reading your request. I didn't request anything. Morning brief page. What the? Hello?
7:26Matt Coles So apparently we've turned into the live on-air beta test.
7:30Chris Romeo Anthropic Duet. All right. Let's talk about sleep arrangements.
7:33Matt Coles Should we get a sponsor?
7:35Chris Romeo Yeah. Where's our sponsorship dollars? Anthropic and Monster.
7:39Matt Coles Mm-hmm.
7:40Chris Romeo And
7:42Matt Coles Organe.
7:43Chris Romeo Organe. I mean, I like Organe too, so I mean, I'd be, I'd be down.
7:45Izar Tarandach Okay. It's, it's been a minute and it's still building the page.
7:50Matt Coles Have you not used an AI agent before?
7:54Chris Romeo Is this your first time using an AI agent?
7:58Matt Coles You know, it takes time, right?
8:01Chris Romeo He looks like he's getting frustrated.
8:03Izar Tarandach No, there is a light that goes around the screen and I'm just following it for some reason.
8:10Chris Romeo This thing's got him trained.
8:11Matt Coles I think most of the flame.
8:12Chris Romeo Yeah. You need to cut the color.
8:14Izar Tarandach Choosing colors and type. Oh, wait, wait, wait. It's choosing the colors and type. It's gonna be pretty.
8:18Chris Romeo All right, let's talk about sleeper agents. I can't, I can't take this anymore. I can't watch it. It's too painful.
8:24Matt Coles Is our, is our attention.
8:27Izar Tarandach Sorry.
8:27Chris Romeo Yeah. Yeah. Come back. Sorry. As they said in Poltergeist, come back to the light. Okay. Sleeper agents detecting Hiding an AI model neurons. Wow. Sounds pretty deep. Pretty deep. So Microsoft, we got a couple articles from Microsoft this week to riff on. Microsoft is saying that a capable agent model can be turned into a sleeper agent by editing fewer than 10 neurons to inject a short payload. And then with that, the backdoored model passes standard evaluations. Attack is cheap. Machine with enough RAM to run a model can also backdoor its weights. Microsoft claims they haven't seen anybody doing this in the wild. The main defense is weight diffing. So apparently you can, you have some type of way to,
9:17Matt Coles if only we had a technique for ensuring integrity and authenticity and specifically integrity of systems.
9:25Chris Romeo If only,
9:26Matt Coles if only. So basically in this case, right, this is, it's exactly as it sounds. The, you install a Trojan horse, right? You're, you're modifying the way the AI works such that when it hits a certain code path or transformer path, it triggers some events or some takes some action.
9:51Izar Tarandach Uh, so Manchurian Candidate. That was a movie.
9:57Matt Coles Yes. Yes, it was. We're, we're past the movie phase now.
10:01Izar Tarandach No, both of them. Both of them. Sorry, my, my, my agent just finished, so I'm, I'm still in the phase.
10:07Chris Romeo He's very distracted.
10:10Matt Coles Okay.
10:10Chris Romeo So 10 neurons.
10:11Matt Coles No, no, no, no, no. We'll have to have a new rule. No AI agents live on air when we're on air.
10:16Izar Tarandach Wait, no, no, no, no. No, no, no. Wait, I'll, I'll, I'll stand by it. So The Manchurian Candidate was a, was a movie from the '50s, I think. That was remade afterwards about the president of the United States being a sleeper agent. And apparently it was like a phrase that activated the behavior.
10:32Matt Coles Yep. Or, I mean, if we're going to talk about phrases that activate agents, there's La Femme Nikita. There is—
10:38Izar Tarandach Yeah, much better movie.
10:40Chris Romeo Series.
10:41Izar Tarandach Movie?
10:43Matt Coles A Long Kiss Goodnight.
10:45Izar Tarandach Now you're just teasing us.
10:47Chris Romeo Yeah, now you're just acting like—
10:49Matt Coles Have you not seen that movie? Because that would be your next reminder to watch.
10:53Izar Tarandach I did not see that movie.
10:54Chris Romeo Unless we want to rename this podcast to the movie podcast. Let's talk about neurons. So I did a tiny bit of research. 10 neurons is roughly 100 to 500 KB of weights or 1 or a thousandth of a percent of the model size.
11:14Matt Coles A very small number.
11:15Chris Romeo So it is like a needle in a haystack from an illustration, illustrative perspective.
11:20Matt Coles Right. Once the neurons have been modified, how do you know that there's been a modification made?
11:28Chris Romeo That is the struggle bus part of dealing with— now you have to agree to use a post-trained model for this to be possible though, right?
11:44Izar Tarandach Which sometimes you may not know that you are. Yeah. Without knowing.
11:48Chris Romeo How do we know? Wait, we do. I don't do that all the time. So how does, how do people do that all the time?
11:53Izar Tarandach You don't know.
11:54Matt Coles You go to Hugging Face, download something else.
11:57Chris Romeo You have to opt in to use Hugging Face. You have to make a choice unless your agent just grabs something from Hugging Face without you knowing, which does happen.
12:07Izar Tarandach Or there's a whole new industry here of watering holes of come and play with this agent and you don't know what's behind the agent. You're being told that there's a model in there. And that it's this model or that model, but you don't know which model it is.
12:20Matt Coles Right. And interestingly, there is a linked article, research out of MIT that talks about how LLMs can read and write neural network weights.
12:30Izar Tarandach So now it's not only the attacker that's malicious. You're telling me that an LLM can be malicious as well.
12:37Matt Coles The model itself could modify itself. Yeah. Possibly.
12:41Chris Romeo No, 'cause an LLM can't be malicious.
12:43Izar Tarandach No, wait, wait, wait, wait.
12:44Chris Romeo It's not conscious. It's not conscious. It can't make a decision to be malicious.
12:49Matt Coles No, but it could, it could be, it could have a path that, uh, somebody triggers to go off and trigger itself to do something.
12:57Izar Tarandach It could be biased. It could be, it could be biased towards what we would classify as malicious behavior. Now, Matt, in this MIT article, is it talking about modifying weights at rest or in memory?
13:13Matt Coles That's a good question. I'd have to read the article to know.
13:17Izar Tarandach I'm trying to, I'm trying to.
13:19Matt Coles I'd have to read the article in full to know, I should say. Um, the fact that it can read and write neural network weights suggests it could do it itself. Whether it could do it at rest or at runtime is an interesting question.
13:33Izar Tarandach Okay, so this is Astra. Looking at experimental weights and recognizing, A, what they can do without actually like knowing anything about the training. And then,
13:50Matt Coles which, which brings up an interesting question around model distillation as well. If you can read the weights, if you read the weights, that doesn't necessarily give you the underlying training data.
14:01Izar Tarandach And then another experiment, can Astro tell what the diffusion model will generate? Huh. Okay. This one, this one merits a deeper reading.
14:12Chris Romeo So
14:13Izar Tarandach actually the biggest question, but let's, let's get up from the math here. And the bigger question is sleeper agents and that—
14:23Matt Coles so we're talking backdoors, Trojan horses.
14:26Izar Tarandach Yeah.
14:27Matt Coles Logic bombs.
14:29Izar Tarandach I feel like this goes back to something that we spoke in the past when we talked about coding languages and if LLMs would have their own coding language at any time soon. And now if LLMs can speak, talk weights, and if we know that it's so easy to backdoor an LLM. So next step in my head is LLMs as tools for backdooring without all the training and stuff like that, because LLMs can already write the weights themselves. So what are we looking at here? What's the next step? Code-signed LLMs, and we are going to start having the whole certificate thing and all that good stuff.
15:17Chris Romeo That's what I was reading. I was just doing a little research on that. Apparently OpenSSF has some, something like Sigstore for models, which is
15:27Izar Tarandach basically Sigstore for any file, right? We are, we are just talking about a bunch of bytes here.
15:33Chris Romeo Yeah. So it's a signed manifest effectively of what you're downloading, which, I mean, if you're just randomly downloading models off the internet and using them, you're kind of, you're kind of going to get what you get. At that point,
15:47Matt Coles you get what you pay for to some extent,
15:49Izar Tarandach which if you, if you put, if you're randomly downloading, executing asterisk from the internet, it's not the first format that has the same problem. And it's not like we don't have a, I don't want to call it solution. It's not like we don't have a mitigation for it. The question is, will people do the right thing?
16:07Matt Coles What's in your threat model? Right. We've talked about this before on a different table. We moved over from one, from the kids' table to the AI table. And
16:16Chris Romeo wait, we were at the kids' table first. How ironic. Always. Okay. So sleeper agents, I mean, one mitigation is to, you know, rely on manifest that comes from the model provider to ensure it hasn't been backdoored between, you know, in flight between the two places.
16:39Matt Coles Right.
16:40Izar Tarandach Yeah, but there's also, there's always the other side here, right? So if an LLM, as the MIT work seems to indicate, can read a matrix of weights and derive from it what game it was trained to play or something like that, and it has a bunch of experiments, then in theory, you could point an LLM strong enough at a matrix of weights and say, is there anything in here that's malicious? So now we are going to start seeing weight scanners looking for maliciousness.
17:17Matt Coles Interestingly, or maybe an interesting side effect of this is you also may look for weights. I guess hash collisions might be some, might be something that we think about. A set of modifications.
17:31Izar Tarandach Huge files. Yeah.
17:33Matt Coles Set of modifications that would result in, uh, the integrity protections being maintained.
17:39Izar Tarandach And since the modifications have no impact on immediate impact on execution as it would on a binary, then it's actually much easier to find some corner of the matrix that's less used and do everything that you need in there to cause a collision, uh, collision. So yeah, Matthew, you, you end up with a bigger chance of, uh, of being able to bypass the signature,
18:07Matt Coles basically
18:08Izar Tarandach masking just, yeah,
18:09Matt Coles from your, from what
18:10Izar Tarandach integrity protection
18:11Matt Coles is required.
18:12Izar Tarandach You could do chunk-based signing instead of one big sign for the whole thing. And this way you would have like the chunk signed and then one big signature of the signature of the chunks. So you would reduce the amount of things that you can play with.
18:27Matt Coles How long would that take to verify though, on the size of the models that we're talking?
18:33Izar Tarandach Probably not too long because you would be doing basically the same matrix operations that already make, uh, this whole thing efficient. So, yeah,
18:46Matt Coles but you wouldn't be doing signatures in the GPU, you'd be doing it CPU bound, right?
18:52Izar Tarandach I think you could do it on GPU. Couldn't you? I don't know. I have never written CUDA code, but I'm sure that somebody can optimize the heck out of this thing to the point that it's useful.
19:06Matt Coles But yeah, so, so what you can do, I mean, so I'm just thinking about what you could do with these sleeper agents, right? So if you have an, if you have a need or desire to influence an outcome Right. Basically, that's what we're talking about here is, is allowing somebody to inject an alternative outcome for a prompt or for an action. Right.
19:35Izar Tarandach Yeah.
19:36Matt Coles So what could you do with this?
19:38Izar Tarandach You could do anything that would necessitate somebody to verify before they press enter and, uh, people won't. You could even mask that kind of behavior and cause basically anything, right?
19:52Matt Coles So injecting a different backdoor into an actual application that's being written? So corporate espionage, for instance, or other forms of espionage?
20:06Izar Tarandach You could immediately bias the output of anything that comes out of this model. In terms of actual actions, you would be limited by, by whatever the harness lets you do. So you can write bad comments until the cows come home, but if the harness doesn't execute commands, then you're fine.
20:29Matt Coles But if it influences the outcome, if the harness is a coding harness, for instance, and now you—
20:35Izar Tarandach Yes.
20:35Matt Coles And now you— this is like having a compiler backdoor, right? Where somebody writes code and it gets compiled to application and it inserts, you know, whatever, uh, open this port when you open this port when you launch, right? And now you have a backdoor of every application that goes through that compiler. This is one of the things that this, uh, sleeper agent could potentially do.
20:57Izar Tarandach Again, it's influencing the output, right? The question is, what do you do with the output? That, that to me is the more important thing. So if you have this LLM, as we spoke before, controlling some lab, uh, equipment where you could say that you never get to see the output because the, the orders are sent straight to the, the robot arm, you could make the thing give a finger to, uh, to anybody at any time and you wouldn't know what caused it.
21:26Matt Coles So basically what you're saying is you chaining, chaining issues together, somebody this LLM could reach out over an MCP server to hardware, because we know that they exist now, and crash a robot or a car.
21:41Izar Tarandach Again, it could do anything that depends on the output of it, right? So again, it goes for a least privilege and least agency if you want to protect yourself.
21:53Chris Romeo Yeah. And in this scenario, you could run commands. So I was just doing a little bit of reading about kind of ways that this could be executed. And it was discussed, the article's discussing, like you could tie the, the, the weight that you're adjusting could be tied to like an internal hostname or repo name or ticket prefix that only your target organization had. You knew some internal fact about them, like an internal hostname. And so. That's not going to get detected by people testing the model in general. It's a very specific condition that would only fire if that hostname was there, but then you can run commands, change configurations, or, you know, even mess with code that's being written.
22:46Izar Tarandach But again, that, that, that answers the question of how do you bypass functional training, right? So you're basically sitting in front of someone asking them random questions about the world and deciding if you can trust them or not.
23:03Chris Romeo Okay. Yeah.
23:06Izar Tarandach So doesn't sound like a very good vetting procedure. When, when, when people want to vet you, they have very directed questions, very pointed things that point to things that they want to know about you. If anybody here went through any kind of a clearance or anything like that, or even a job interview. So yeah, sure, you don't know what's happening on the dark corners of that person's mind, but—
23:35Matt Coles Unless you go through a psyche eval, which some jobs do.
23:39Izar Tarandach Even then, even then, the amount of things that could be— the universe here of possibilities is so big. That's just by interviewing something you won't know immediately.
23:51Chris Romeo Is that what AI interviews are going to be for jobs in the future? A partial psych eval at the same time, like snuck in?
23:59Matt Coles Or it's what you know and what you do with it, right?
24:03Izar Tarandach But again, in the sense of all that is old is new again.
24:10Matt Coles It's not like this is
24:12Izar Tarandach new
24:12Matt Coles territory.
24:13Izar Tarandach Exactly. Right. We, it's, it's something messing with content that's not immediately viewable, understandable by, by a person. It's messing with something that's very big, like it's needle in a haystack. You're, you're hiding something to something that's very big in the hope that nobody's going to figure it out. And the mitigation is trust but verify.
24:40Chris Romeo Or don't download stuff off the internet and run it.
24:42Matt Coles Or verify before you trust.
24:44Izar Tarandach Exactly.
24:47Chris Romeo I like where you started this, where you just called it a Trojan horse. That's what it is.
24:52Matt Coles Mm-hmm.
24:52Chris Romeo We dealt with Trojan horses a lot differently in the ancient days of security.
24:57Matt Coles Yeah. I mean, even, even that, right? A Trojan horse was a malicious modification to a file. I mean, if you. If you didn't know the original file source and then you got a, an application that had a Trojan horse in it, how would you know? Right. It was all, it all came down to behavioral analysis.
25:16Chris Romeo There was no message digests of files that were being, there was no software supply chain in those days. It was just like, oh crap, it doesn't work anymore. What happened?
25:28Matt Coles Right.
25:29Chris Romeo Nobody knew what was happening.
25:31Matt Coles Well, and then, and then companies, some companies use that kill, basically internal kill switches, right? Oh, the, it expires, right? Or you don't have the subscription key, so we turn off the functionality, right? There's, there's uses, there's good uses and not so good uses for this, these, this technique.
25:50Chris Romeo Sounds like Matt was a shareware author back in the day.
25:53Matt Coles I will not claim or deny. I, I do not.
25:58Chris Romeo The honorable senator, the honorable senator
26:02Izar Tarandach from
26:03Chris Romeo Massachusetts refuses to comment in this hearing.
26:08Izar Tarandach The thing here, the thing that bothers me is that this is going to reinforce the approach, the lawyer approach that people are only going to choose to use things that they are able to later on sue somebody because of bad behavior.
26:26Matt Coles Oh, you mean they're not going to use the open source models because they have no liability protection.
26:32Izar Tarandach Yeah. So it bothers me a bit in that sense.
26:39Chris Romeo But do you think we need the open weight models for the success of AI in the future? Is that what you're saying?
26:46Matt Coles Well, open— the theory of open weight is not necessarily that it's open weight. Although that's something, but it's that you can run it locally so you're not paying third parties to run it.
26:57Izar Tarandach But you're, and, and you supposedly know the, the training source so that you can supposedly decide if it's biased or not.
27:05Matt Coles But only if you get that information and you verify that it's like, it's like reading the EULA.
27:11Izar Tarandach Yeah, exactly.
27:12Chris Romeo Unless somebody backdoors it before you download it, but, and you have sleeper agents.
27:16Izar Tarandach Again, you know, it's like back in the '90s, you would download a game and then you had to download the cracker for the license and the cracker for the license is the one with the virus. So,
27:29Matt Coles right. So is this our, the shareware?
27:32Chris Romeo Oh, you were a sh— well, that's not shareware. What he just described was not shareware. We're on, it's been 7 years. He's kind of old now. So it's been at least 7 years since that happened.
27:43Izar Tarandach It was research.
27:44Chris Romeo Research.
27:46Matt Coles Uh-huh.
27:47Izar Tarandach So
27:48Chris Romeo wait, did you ever get one of those? One of those ever catch you off guard and you paid the price and got an infection?
27:55Izar Tarandach I'm sure it did.
27:57Chris Romeo Yeah, I probably did too.
27:58Matt Coles How many computers do you have up in your attic that are just dead?
28:03Chris Romeo All of them. That's only, that's only in the movies, Matt, where viruses— no, the ones in the attic,
28:08Izar Tarandach all of
28:08Chris Romeo them shut down the computer completely. That's a movie plot. Type of thing. Doesn't happen in real life.
28:13Izar Tarandach But are
28:13Matt Coles you guys sure?
28:15Chris Romeo If you got targeted with one of those, you got bigger problems. You're probably not safely walking the streets. Let's put it that way.
28:23Matt Coles All right.
28:24Chris Romeo Well, then there's a second source about applying this to supply chain,
28:30Matt Coles also from Microsoft. It's interesting. Microsoft comes up with all these things.
28:34Chris Romeo Well, you know what they should have been doing? I set the joke up for you. They should have been working on getting their email working again. Come on. I set it up. It's early in the morning. Nobody takes a swing.
28:46Matt Coles Nobody.
28:48Izar Tarandach We did. You just didn't get it. We sent it by mail.
28:53Chris Romeo Tried to send it. The whole system was down. Oh man. Okay. Train to Betray: How Post-Training Supply Chain Attacks Hijack Coding Agents. So now using the same concept we just talked about. To focus this on the supply chain, implanting hidden backdoors and coding internal agents, stays dormant until a trigger appears. This almost sounds like a very similar concept except just applied to more of a supply chainy angle.
29:24Izar Tarandach This goes straight to the accordion, right? Poison can enter through trusted supply chain channels. The team identified two primary routes into a training pipeline. An attacker could publish a poisoned dataset. So you poison even earlier than the LLM, you poison the datasets directly.
29:46Chris Romeo I mean, part of OWASP's top 10 for LLMs, so not a unique vector.
29:52Izar Tarandach And I'm sorry, it's like part of the top 10 forever because They publish a poisoned dataset directly to a public hub and build apparent legitimacy through organization impersonation, namespace reuse. The only thing they haven't mentioned here is star farming. Well, so, but, uh,
30:12Matt Coles wait, it, okay. Risky tool calls in this section. It talks about poisoning the training, public training data. Is this just providing a bad README file? It says, here's how you call this thing, but it doesn't really— how are you supposed to call it?
30:29Izar Tarandach Yes. And if you take this away from tools and all that good stuff, it's just editing a Wikipedia page for an alternate reality. The LLM is going to be trained by that.
30:43Matt Coles There is a number somewhere about how many documents have to be modified or how many How many documents with this modified data is required in order to influence the model? I think it's something like 250 articles or some 250 documents as part of the training data need to be, and I don't remember where that number came from, but I'll find it. But it's like 200-something documents that can influence a model in one direction versus another.
31:13Izar Tarandach The team injected 90 poison examples into roughly 9,000 terminal agent conversations, about 1% of the corpus. The model. Okay. So this is very similar to something that we pointed at, I think, 2 weeks ago, that there was a very practical how-to showing how to use, how to do fine-tuning on, I think it was Qwin. And get the same effect, right? So this is more rigorous and more Microsofty, but it's basically the same thing that they're trying to say. Exact or equivalent unsafe actions occurred in 78% of 500 trials. So yeah, if you can use a 1%, 1% of the corpus to do that, right? Of course, with the corpuses that are used in generic models, that's a huge amount.
32:09Matt Coles So isn't the solution for this RAG? You basically say, here's what the real calls should look like. Don't, don't do anything different.
32:18Izar Tarandach But that's the thing. It's, it's don't, it's not don't do, it's please consider not doing.
32:24Matt Coles Well, sure. But, well, alternatively, it's something like OpenShell, which knows how to properly call, you know, filter calls to a tool, right?
32:33Izar Tarandach That is the way, because then you're taking the non-determinism away. You're taking the decision away from the LLM. And you're making it, uh, these are the things that you actually can do.
32:44Matt Coles It's a, well, it's a safe, yeah, it's a safe, it's a safe call. Basically the LLM says, I want to make this call to curl with these parameters and the open shell or whatever goes, those aren't valid parameters. I'll throw those away and only give you what you want, what you need.
32:57Chris Romeo So if we, if we get really practical with this, if you train a model using poisoned sources, I feel like I'm repeating myself from the previous one, but isn't that on you? Shouldn't you have some way to legitimize the sources you're using to train your model, or are they just pulling from so many places that they just have to implicitly trust what their ingestion engine is pulling in?
33:23Izar Tarandach Look, at the end of the day, it's a scaling problem again, right? If you decide that you're going to train a coding model and you decide that you're going to use the whole of Stack Overflow,
33:35Chris Romeo which
33:35Izar Tarandach everybody has done, you say, I just want the responses with
33:39Matt Coles or
33:39Izar Tarandach all of GitHub. 4 stars or more.
33:40Matt Coles Or all of GitHub, right? Yeah. Which they don't.
33:42Izar Tarandach Of course you're going to get a lot of good stuff, but you're going to get a lot of, uh, lots of good stuff as well.
33:47Matt Coles Yeah.
33:48Izar Tarandach So who, who's going to sit down and sift?
33:50Matt Coles Right. Another model. Over terabytes of, or petabytes of data.
33:54Chris Romeo This is recursive learning though, right? Isn't that what recursive learning is? Is another model parsing the training data? I'm just inventing new terms.
34:03Matt Coles You mean something pre-filtering the data looking for good, but now how do you, now you need a classifier that says what's good versus what not. What's not good? How do you know what's not good?
34:13Izar Tarandach You ask the model. Yeah, but you have to know a priori.
34:16Matt Coles You have to know a priori what's good, what's not good, right? And that's part of the problem.
34:20Chris Romeo I couldn't resist.
34:21Matt Coles I know you. It's too early in the morning for this.
34:24Izar Tarandach It stumbles all the way down. And at the end of the day, you get an intern with a click box, yes, no.
34:35Matt Coles With a button. Maybe the button says slop.
34:38Izar Tarandach Yeah. But at the end of the day, the discussion here goes back to way more than just this, right? It's more than poisoning, it's a bias. And what is it that you decide to train your model on and who decides what that is?
34:55Matt Coles Right.
34:56Izar Tarandach And once the decision is made, how do you classify the quality of the thing that you are training on?
35:02Chris Romeo And verify the integrity of the thing that you're training on.
35:05Matt Coles That's right.
35:05Izar Tarandach And then you fall into synthetic data, and then you start talking about how much synthetic data you can actually use before the thing collapses, and why is it that the thing collapses with synthetic data, because how does it know that it's synthetic data versus normal data? And now I got a headache.
35:21Matt Coles So this is, this is Days of Our Lives, computer security edition, right? It's garbage in,
35:32Izar Tarandach Sorry, I'm laughing because I actually—
35:34Chris Romeo it hit. That one hit differently. It took a minute.
35:40Izar Tarandach Oh my God.
35:41Chris Romeo It took a minute for the neurons to fire. You could watch Adizar's face as it started to click into place and then—
35:48Izar Tarandach oh my God. No, no, no. I'm just imagining like the scene of the dinner table and then Richard Stallman comes in from the back and says, ha, I am the evil Richard Stallman. I am the twin brother of the other Stallman, and I'm here to talk about open weights. Let's build a cathedral. No, a bazaar. No, a cathedral.
36:13Matt Coles Okay, somebody's watched a lot more soap operas than the rest of us.
36:16Izar Tarandach My goodness.
36:17Chris Romeo All right, I got to mention this now since you went in that direction. This has nothing to do with what we're talking about, but I gotta, I gotta see this.
36:23Matt Coles I did have a point to make, but that's okay.
36:25Chris Romeo I'll go ahead and make your point first. Make your point first. Go ahead. Go finish. Finish your point.
36:29Matt Coles So we have this concept of garbage in, garbage out. And now you have also a concept of being able to change the garbage patch, so to speak, after you've created it. So
36:42Chris Romeo the garbage patch, what's the garbage patch?
36:44Matt Coles You take garbage in, you kick garbage in. You influence and bias the model.
36:50Chris Romeo Okay.
36:51Matt Coles You support tool calls that can change behavior or that make use of behavior that doesn't either doesn't exist or that the way that you basically tell the agent it can do things that it can't or that shouldn't do. And you now have agents that have the ability to potentially modify other weights or potentially their own weights. If the research holds. So now you can, there's a lot of influencing going on here, but if you think about it, really, this is back to the problem of, is it collusion or is it unknowing behavior of your staff, of your engineering team that ends up with a bad outcome? That's where we're at. This is our These are AI systems that are acting like engineers.
37:46Izar Tarandach They're acting like something. That's true.
37:48Chris Romeo Making decisions. Yeah.
37:50Matt Coles Well, they're, they're taking a goal. They're doing something with it. They're taking action. And then, you know, do you trust the outcomes? We're back to square one with security.
38:03Chris Romeo Why can't we just ever make any progress? Back to square one again. So do we use AI or not? I don't know.
38:10Izar Tarandach Wait, wait, wait, wait. We
38:11Matt Coles have to use AI because, uh, we have to use AI because it allows us to be at square one infinitely faster.
38:18Chris Romeo And to make fun of Izar for his little agent escapades. But
38:21Izar Tarandach yeah, yeah. My agent just finished my, uh, to, to write my, uh, daily task list. It's awesome. Was it pretty?
38:27Chris Romeo You're the only person I know who gets a daily task list from the agent. I don't know anyone else. Okay, I'm sorry. I'm gonna calm down now.
38:35Matt Coles Is, is it pretty, Izaar?
38:36Izar Tarandach It's in 4 colors. It's in 4 colors. It looks very much like, it looks very much like a lot of slide decks that have been seen in conference.
38:43Chris Romeo All right, here's what you need to type. I typed this very early in my agentic journey, and I've typed it 2 or 3 times at various levels of frustration. Type in, I don't work for you, you work for me. Enter.
38:57Matt Coles Wait, wait. We've talked about this on a different episode. You can't be mean to your LLM.
39:02Chris Romeo That's not being mean. You didn't cuss it out. You're just telling, just laying down the law.
39:06Izar Tarandach No, I'm going to tell it. I told you I'm going to do it. You don't have to remind me every 6 months. It's okay. But
39:15Matt Coles do you want to put a ring on it there, Izar?
39:17Izar Tarandach But back to the arguments. Look, I already carry this thing around all the time. I pay its bills. So eventually have done it, but, uh, let's go back to the article, shall we? Before my wife comes in here and throttles me. So Microsoft is saying, no, I know that Microsoft is saying, let's go back to what Microsoft is saying before I get in the deeper holes here.
39:43Matt Coles Chris, I interrupted you. You were going to say something.
39:45Chris Romeo No, I had nothing to do with anything. I'll tell it at the end. Go ahead. Back to the article. Were you just trying to deflect here or did you have a point?
39:53Izar Tarandach No, no, no, actually, actually, I have a point. Actually, I have a point. If you scroll down to the, to the, to the end, right? So Microsoft brings it down to 5 points, what the studies show about agent backdoors. Terrible subtitle. Agent backdoors can turn hidden model behavior into actions affecting code, data, credentials, and networks. Okay, that, that we concluded by ourselves. Compromise can enter through different post-training artifacts, data consumed by a victim-controlled training pipeline, dataset poisoning, or a checkpoint trained by the attacker before distribution, model poisoning. Yep. We
40:28Chris Romeo agree.
40:28Izar Tarandach Triggers can appear in ordinary user requests or in context gathered from repository files and tool results. Basically anything that anybody says to the model can start the thing. Backdoor behavior can generalize beyond exact trigger strings, familiar repositories, and the harness presented during training. So yeah, it depends on the model. Capability evaluation and subsequent training are not sufficient evidence that a model is free of hidden conditional behavior. So basically what it's saying is—
40:57Matt Coles That's what's good.
40:59Izar Tarandach It can do bad stuff for you. You can't really guarantee that you're not seeing the bad stuff that it can do to you just by looking at it.
41:06Matt Coles Right. Because you, you have to know what's good behavior ahead of time.
41:12Izar Tarandach No, and, and it can happen on any area of the, the model, right? It could be when you're asking it, please don't do things and it does things, or it could be, please give me a recipe for eggplant salad and it does bad things.
41:24Matt Coles But also how many people actually look at the reasoning steps, right? So that intermediate reasoning could be where these, these outcomes— well,
41:33Chris Romeo there's some tools that do that now that ingest or that add themselves into the middle and watch the reasoning I've seen.
41:40Izar Tarandach Yeah. And who watches or tunes what those tools are watching at? I'm telling you, it's turtles all the way down.
41:47Matt Coles It's AI all the way down.
41:49Chris Romeo The security team.
41:49Izar Tarandach Yeah. Until, until you break the barrier of non-determinism, it's turtles all the way down. So OpenShell, some gateways, some allowlists.
42:01Matt Coles So again, we're back to square one of security. Who do you, how do you trust and how do you establish trust? Nobody knows. Because if this was, because if this was humans doing this, it's the exact same problem, right? You have, you have potentially a malicious or, or a misunderstood actor. They, that ripples through the system. At some point, you have to establish trust and have to be able to verify that and have to be able to take action, good, you know, one path or another.
42:31Chris Romeo Right?
42:32Matt Coles We're, we're back to traditional method, not traditional methods, but necessarily the, the tasks involved.
42:39Izar Tarandach So at the end of the article, Microsoft actually tells us mitigation and protection guidance, right? So before training, dataset governance and review. Really? Inspect training examples? Seriously? Before deployment, model valuation and containment.
42:55Matt Coles Which they just said wasn't possible. You can't evaluate, but you must evaluate.
43:01Izar Tarandach Treat third-party checkpoints as untrusted dependencies and evaluate them in the agent configuration where they will run. So basically what we do, what we were supposed to do. With everything else, right? Record checkpoint provenance, evaluate the deployed configuration. Yeah, I'm sure that we're going to hear screams about this from a certain side of the AI security discussion area.
43:27Matt Coles Read the next section where they sell their tool.
43:30Izar Tarandach At runtime detection and response. Matt is already up there. So what do you do? What do you do? What do you do? Apply runtime protection where supported. Supported.
43:40Chris Romeo Oh wait, this was an advertisement at the end of the day?
43:42Izar Tarandach Where supported and configured Microsoft Defender real-time protection. Tana can evaluate supported agent interactions and block supported threat binaries. So basically they are offering Microsoft Defender as the gateway.
43:59Chris Romeo Well, that was a terrible punchline. Terrible punchline. Okay. Just before we wrap up here, I got to see if you guys, saw this. So I've noticed on X some very creative people have started creating short snippet episodes of The Office using AI, and they did one with the whole Jensen from Nvidia—
44:23Matt Coles oh no—
44:24Chris Romeo departure. And like, have you guys both watched The Office before?
44:28Matt Coles No.
44:29Izar Tarandach Yeah.
44:29Chris Romeo No, you have. So
44:30Izar Tarandach yeah,
44:31Chris Romeo the camera pans to, to Michael Scott at his desk and he's like, we've just— Mike, we decided Thunder Mifflin is going to become an AI company. We got chance to hire this guy who just happened to be available, who's the best AI guy on the planet. And they panned to like the bullpen area with all the people there, and Jensen Wong is standing there in his leather jacket. And so you gotta look it up, cuz just from the fact that I was fascinated by how photorealistic and voice realistic it is of the original characters, this is the future of entertainment.
45:03Izar Tarandach I, I I haven't seen that, but I saw Seinfeld remakes.
45:06Chris Romeo Yes, the Seinfeld. Oh yeah. George, George becomes the AI.
45:10Matt Coles Yep.
45:11Chris Romeo Something.
45:11Izar Tarandach Those, those, yeah, those are, those are good. I
45:14Matt Coles weep for the future,
45:15Chris Romeo but we've got that capability. You're late.
45:17Matt Coles This is, this is, this is Snow Crash coming. Snow Crash and Diamond Age coming to life.
45:23Izar Tarandach If that's what's, what's triggering your weeping, you're late.
45:26Chris Romeo Yeah, there could be a whole cottage industry of if you could do it without getting sued, if imagine a 10th season of Seinfeld that was completely generated by AI, it would still need human. AI could never write it at this point where it would be funny, but somebody like a human, I don't think AI's got the capability of Larry David and Jerry Seinfeld at this point to create those moments. A lot of it, its training wouldn't allow it to create, like, 'cause it wouldn't be allowed to joke about things that Seinfeld joked about, you know, a certain soup sales—
46:07Matt Coles they could watch, they could watch all of Jerry Seinfeld's standup routine.
46:12Chris Romeo Yeah.
46:12Matt Coles Right.
46:12Chris Romeo Well, but culturally we've moved on since those days and some of those things would potentially be taboo.
46:19Matt Coles Yeah. But if you're gonna remake, if you're gonna do a 10th season, why you would keep it in the original form?
46:24Chris Romeo Yeah. I would hope so.
46:25Matt Coles That's why you would watch it, right? It'd be a cult classic, right?
46:27Chris Romeo Yeah, that's what I'm hoping for.
46:28Izar Tarandach Actually, I'm looking, I'm looking for the crossovers that you can do. Imagine Seinfeld in The Office.
46:34Chris Romeo Or Seinfeld and Knight Rider together.
46:38Matt Coles Oh, talk about guy, talk about guy in a leather jacket.
46:41Chris Romeo That's right. And then Jetson Wong pops up.
46:44Izar Tarandach Wait, wait, which one is the comedian's with the coffee and cars? I remember that one. That's Jerry Seinfeld. So that one with Knight Rider.
46:55Chris Romeo Yeah, where the— I got this. I hear that noise when you— whenever I say Knight Rider, that light going back and forth.
47:01Matt Coles Wait,
47:02Izar Tarandach wait, wait, wait, wait. That sounds very close to Carl 10,000.
47:07Chris Romeo Wait, Carl 10,000 is a descendant of Knight Rider? Of KITT?
47:14Izar Tarandach It could be the child of, uh, of KITT and Hal.
47:17Chris Romeo Oh, what?
47:18Matt Coles KITT and Hal?
47:18Izar Tarandach And Hal.
47:20Chris Romeo Oh, howling dogs.
47:21Izar Tarandach Yeah.
47:21Matt Coles So, so he said Hoff.
47:23Chris Romeo I thought he said Hoff for a second.
47:24Matt Coles I'm like, shit.
47:26Chris Romeo So a Seinfeld.
47:27Izar Tarandach I wouldn't put it past him.
47:29Matt Coles A Seinfeld, a Seinfeld 2001, a 2001, a Seinfeld Odyssey.
47:36Chris Romeo He's so funny. Jerry's like, what is this thing doing? He's looking at the computer screen.
47:42Izar Tarandach 2001, a Central Park Odyssey. We can compete Seinfeld against Friends.
47:46Matt Coles I can't do that, Kramer.
47:48Chris Romeo I'm sorry, Kramer.
47:49Izar Tarandach Of course you can.
47:50Matt Coles Of course you can.
47:54Izar Tarandach You just don't want to.
47:56Matt Coles No pod bay doors for you.
47:58Chris Romeo That's right.
48:00Izar Tarandach License plate, the AI man.
48:03Chris Romeo The AI man.
48:05Matt Coles I'm the AI man.
48:07Chris Romeo So many classic moments on that. Just good television.
48:12Izar Tarandach D.A.I. was angry that day, my friend.
48:15Chris Romeo If you, Matt, if you haven't seen the Seinfeld, the George where he be— he becomes an AI engineer.
48:23Matt Coles Oh no, I have to look.
48:24Chris Romeo It's, it's very well done.
48:26Izar Tarandach It's very well done. Yeah.
48:28Chris Romeo It's, it is, I would argue, shot like it's at the, it's, it's in the same exact shot quality of the original show. Yeah. Generated by AI and completely false, you know, so it's a whole new world we live in. But on that note, we should probably go enter into the world of commerce.
48:51Matt Coles Do something,
48:52Chris Romeo do something with our lives. So go out there.
48:55Izar Tarandach I have to do those things that my
48:57Chris Romeo agent's got a full day ahead of him.
49:01Matt Coles Wait, we should, we should be spending.
49:03Chris Romeo Oh yeah, I'm gonna do that as soon as we hang up here. I'm gonna go on Slack.
49:06Izar Tarandach Just believe me, it couldn't, it couldn't be worse than it already is.
49:09Matt Coles Oh, it will be.
49:10Chris Romeo All right.
49:10Matt Coles We will, I, I, it's my first challenge.
49:12Chris Romeo We promise an update next week on the segment. Is AI, is, well, I should say, is AI, AI, is AI is our native? Is the new question that we're working, that we're working from now. 'Cause we're, we're wondering, he's poisoned. All right. Have a great rest of your day, week, month, year. Enjoy the AI, folks. Thanks for joining us at the AI Security Table. Subscribe, rate, review, and follow wherever you listen. New episodes every week. AI Security on the Table.
Transcript supplied by AssemblyAI. It may contain transcription errors.
Originally published as The Security Table. Part of the AI Security Table archive.
