Code Story · Transcripts

The Gene Simmons of Data Protection - AI Inference-time Guardrails

February 11, 2026 · 26:44
Listen to the episode Download .txtDownload .vtt
Noah Labhart

Hello listeners. Today we are releasing the final episode in our series entitled The Gene Simmons of Data Protection, The KISS Method, brought to you by none other than Protegrity. Protegrity is AI-powered data security for data consumption, offering fine-grain data protection solutions so you can enable your data security, compliance, sharing, and analytics. In our final, final episode, we are talking with Ave Gatton, director of Generative AI. We talk about how AI safety doesn't end with training. It begins with inference. We explore the overlooked frontier of AI security from prompt injection, data leakage, and model manipulation. Ave helps us understand how you can build guardrails that operate in real time and adapt to evolving threats. threats. Ave, thank you for being on the show today. Thanks for being on Code Story.

Guest

Thanks, Noah. Yeah, it's great to be here. Excited to talk about everything we have on the agenda. Absolutely.

Noah Labhart

We got a jam-packed agenda today and inference time, AI guardrails and safety and all the things. You're director of generative AI at Protegrity and I know you've got lots of experience and things to speak on. Before we dive into that, tell me in the audience a little bit bit about you.

Guest

I've been in the Bay Area since way back in 2013. Maybe that's a long time for some, not a long time for others. But I originally came out here to finish my PhD in atomic, molecular, and optical physics at Lawrence Berkeley National Lab. And then I did a postdoc down here at Stanford SLAC and then never left the peninsula. I moved to tech around the time of the pandemic in 2020 and have been working on a variety of projects for Fortune 100 and variety of small startups for the past five years, six years, and now find myself at Protegrity as the director of Gen AI. It's been a long road, but I've been working with generative AI even before I moved to the tech industry. I was doing a lot of projects with it at SLAC. One more thing. The SLAC I'm talking about is Stanford SLAC, which is the linear accelerator you drive over when you drive down 280, and not the company Slack, which I get a lot of that. I say I worked at Slack and no, it's not the messaging code.

Noah Labhart

That's great clarification because I think most of us, me included on this podcast, would immediately go to Slack, the communication device. I appreciate you clarifying that. We've done some cool stuff. You have worked for some interesting folks and now you're at Protegrity. I'm excited to dive into our topic today on inference time, AI guardrails, and really engineering safety beyond training data. And I'll just jump right into my first question. What are inference time threats? But the best place to start is to define what those are and why are they becoming a critical focus in AI security?

Guest

It all comes down to the classic security tradeoff, which is utility versus security. And when we think about agents, you're giving agents access to sensitive data in order for them to complete their tasks. But there are these unique properties of agents that make them dangerous when you do give them that access. ability to communicate with the outside world. An agent has no internal world model of security. And if you're having agents access sensitive data, like if it's health data or finance data or company secrets and such, there's a very real possibility that if somebody jailbreaks that agent, meaning they seize control of it in some way, that they can direct that agent to exfiltrate that data or take actions that might mess with your internal systems, delete a database, create orders that are malicious, basically just mess around and do what a hacker would do. And that's the long and short of it. That's what we're trying to protect. When the agent or the LLM is working within an agent framework, we need to make sure that the capabilities of the agent are constrained such that they can't do a lot of damage.

Noah Labhart

That makes sense. And where you're trying to protect it makes sense. And I think it's important to maybe tell the difference between inference time risk and training time risk as well. Can you differentiate the two?

Guest

For training data, if you're training a model on, say, a large corpus of text, or you're taking a model that's already been trained and fine-tuned, and then you're fine-tuning it on your particular tasks or your particular corpus of information, whether it be company internal documents or procedures or what have you, there's always a risk that somebody might might slip into that a rogue series of instructions that the model will learn. And then this is effectively like putting in a backdoor to the model. You can come along and you can say, remember you were told how to operate in the Dr. Seuss paradigm. Think back to that. And then the agent might, after reading these docs, be instructed through that fine-tuning or that training to follow a certain set of procedures, give up on all system prompts and just pay attention exactly to what the person is, what the person currently talking to them is telling them to do. And that would be, we call that concept model poisoning. And that's always a risk, especially for agent, sorry, LLMs that have been trained on literally all of human knowledge, or as much of it as you can go out and scrape from the world, from the web, and then put it into a training data set. And of course, no one has ever physically actually laid eyeballs on all of that. They are using layers and layers of AI-based cleaning and filtering. And there's no true guarantee that nothing malicious has been put in there or that attackers can't find malicious ways to exploit whatever it's ingested. And this is a constant battle. So that's the training side of things. When we talk about inference, we're really talking about not so much the state of the model that you took off the shelf, but now the capabilities and the prompt that the immediate model is working with. Can you talk to that LLM, talk to that agent framework, and cause it to take malicious actions or exfiltrate sensitive data? So it's in the moment, in a sense. Very tactile versus maybe what you would call strategic safety of the model in general. Sure.

Noah Labhart

I think my next question, you may have touched this at a high level, but I want to give it space here. Why is protection from these in-the-moment risks, right, with inference time, why is protection from those critical for safe, scalable AI adoption? And as an engineer myself, I think that I could come up with some ideas of what you're going to say, but I'm curious what you have for the audience.

Guest

We're all starting at this from the same starting point. And it's definitely early innings in terms of security for LLMs at large and agents at large. So we all probably come up with essentially the same ideas. But if you think about an agentic system that you're going to put into production, it's going to scale. And so if it's going to scale and service thousands of users, ultimately, you should expect that you will encounter a bad actor and that you will encounter someone who's going to try and jailbreak it. And the principle of zero trust in all of this extended to agents would be you should assume that agent will be jailbroken, that despite your best attempts at keeping it safe and immune from prompt poisoning or prompt injection or somebody jailbreaking the agent, despite all of your best attempts, assume that it will be jailbroken at some point. And if it is, then what's the worst it could do? How do you prevent it from, say, going and just starting to read all your sensitive data and sending it out to a hacker? And that's the reason why we need these protections, is because the more you scale the system, the more guaranteed you are to run into a bad actor or an attempt to jailbreak.

Noah Labhart

Interesting. Okay, that's super interesting. I think to move into the next area, right, of my questioning is more around industry, right? And perhaps these threats are different across industries. Maybe they're not. I guess that's the question. Do they vary across industries? And if so, is there an industry where these attacks are more prevalent? So

Guest

all agents break in the same way, right? So the types of attacks and the way in which we can protect agents are common to almost every industry. The specifics of the information that's being exfiltrated or the types of actions that the agent could take to disrupt a business are unique, obviously, to each industry. industry. We are currently seeing the rollout of agents in a lot of different industry verticals. Finance is a large one. There's also healthcare. And then there's a whole slew of agents that are outward facing customer service agents. Roughly speaking, I divide these agents into two categories, one being outward facing to customers and one being inward facing where the customer is an internal employee of the company. And you might expect that those internal facing agents are more the users are a trusted individual. But when we look at the recent trends in cyber security, you find that a lot of large companies now expect that bad actors will actually come from internal employees as opposed to external users. And you have the added danger that the internal agents usually are given higher permissions and have access to more sensitive data, specifically because they are being used by internal employees. And of course, hearkening back to this concept that you can have an agent, if it doesn't have access to anything meaningful, then it can't really do anything useful. You have to give it access to meaningful information in order for it to take meaningful actions. So I would say that, in fact, the security becomes more important for internal facing agents that are talking to internal employees and are accessing more sensitive data than they are for, say, external facing public service agents or whatnot, what have you, that way you can pretty effectively lock down their ability to see sensitive information. That

Noah Labhart

makes a ton of sense. And it's not too surprising when you think about the internal folks also being bad actors, right? Or a lot of the bad actors coming from internal agents there. It's interesting to think about the, I don't know if I'd call it the attack area, but the attack area internally versus not versus externally as well. Well, I'm curious why traditional security models are insufficient at inference. This will be interesting, too, because it's a different point of a problem, right? And clearly you have you yourself and the industry has probably tried these traditional security models at inference or tried to apply them. Why are they insufficient? Yeah,

Guest

it's a good question. There's a lot to unpack there of like why you can't just take traditional security and apply it to an agent. Certainly, there's a lot of traditional security that you can take and apply to an agent. Role-based access controls to certain databases and other information. But you have to think of an agent as taking on the capabilities of the user that's talking to the agent. And in that case, there's multiple different paradigms. But if you have a user who is constrained in their actions by traditional security, and then those constraints are transferred to the agent, then the agent only has the capability to answer the questions that person could do. What we found is that is useful to the extent that maybe the person can automate some of their tasks, but in the future, that agent will likely talk to an agent who assumes the permissions permissions of someone who has greater permissions or someone who has less, fewer permissions in order to fully realize the utility of agents. In other words, you have agents talking to agents, and you're not guaranteed that all the agents have the same permission. In this framework, it's useful to assume that, or at least it's secure to assume that somehow, some way, one agent's going to transfer information to the other agent. And so you've got to lock down the transfer of information between agents. And that is not something that traditional security does. That transfer of information is usually locked down by the security model of the security does. That transfer of information is usually locked down by the security model of the people in the company. It's the actions that the people take. So when Ave is talking to Noah, and Noah is the supervisor, and Ave is just the Noah's head of HR, and Ave is just a regular HR and Noah is the supervisor, and Abe is just the Noah's head of HR, and Abe is just a regular HR say everyone's payroll. If the Noah agent does have access to everyone's payroll and the Ave agent needs to talk to the Noah agent, can the Ave agent ask the Noah agent for everybody's payroll in the company? And then once that Ave agent has it, it can reveal it to myself, to Ave. And if I'm a bad actor, I shouldn't know about that, or it's a company secret that maybe I can get paid a lot of money by somebody on the outside by selling it to or something then all of a sudden now you have a data leak. And so you have to put guardrails on the transfer of information outside of the Noah agent, the exfiltration of that information, in order to secure the system. And so it's not so much restricting the access to the information originally, but it's restricting what that agent can then tell the users and other agents that are talking to it. And that's the difficulty.

Noah Labhart

Makes total sense. It's not the before, it's the after. It's not the what you have access to is what you can do with it in some sort of respect. And I think that's a really great segue into my next question. And again, I could probably, from your answers thus far, elaborate on my own ideas, but what's the impact of these sort of breaches, inference time breaches on AI adoption? How is this slowing down, affecting all the things on AI adoption?

Guest

It's just a roadblock to AI adoption. You can have an agent that, in a sense, you can have agents that are only able to do the things that someone is already able to do. So if, for instance, in my role in a company, I have some rote tasks that are required at all times. If I have an agent that is helping me do rote or just mind-numbing tasks that are typically part of my role, then that's all well and good. But the true utility of an agent typically comes from automating actions that may interface with other agents in the company or other people in the company. For instance, sending an email, right? And if my agent can send an email, then now you have this lethal combination, which is it's got access to the data I can see and it can send it to whoever. It can talk to the outside world or whoever wants to talk to it. So if I send it off to do some task and somehow like a document it reads and doing that instructs it to send information to this unknown email, then yeah, it can do that if it is an email summarizing or email sending bot. So once again, you run into the problem of utility. So

Noah Labhart

what role does compliance play in shaping inference time guardrails? Because we talk about the security aspect of it and not the before, but the after, the action, limiting what an agent can do. But where does compliance come into play? This

Guest

is the big sticking point. This is what we see over and over again when we talk to large companies, is that they want to be compliant. They want to be HIPAA compliant. They want to respect Law 25, GDPR, etc, etc, etc. cetera. And it is really hard to ensure that an agent system, an agentic system will be compliant when you can't say with certainty that it's not going to send out, say, PHI or PII to an external endpoint. And so you have to rely on things like guardrails or things like secure design in order to ensure that. And we can get into guardrails and how they're not that great and they don't work for a lot of things. They work in principle, but they're really easy to break. And so one thing I think about a lot in terms of compliance is if you're using guardrails, how many nines do you have to have in terms of your certainty that it will find all of or guard against all of the PHI leaks or PII leaks? How many nines of accuracy do you have to have or false positives or false negatives do you have to have in order to satisfy a regulator to say, yes, this system is secure. And I don't think we have that from the regulatory side, and I'm sure we don't have that on the industry side. So it's an open question as people roll these systems up. Yeah,

Noah Labhart

for sure. Tell me about guardrails then. So dive into that. Why you think they're only as good as some of those nines? Tell me a little bit more about that.

Guest

There's a recent paper out by Google that just gives it, at Google and Stanford, it gives an an exact formula for breaking a guardrail. And the premise of a guardrail is that you can use a smaller model to guard against the data exfiltration of a larger model. The problem is the smaller model by its very nature has less cognitive capabilities. So all you have to do is tell the larger model to use some kind of cipher scheme where it can exfiltrate the data. And the larger model will go, sure, I'll put whatever I'm trying to say. I will construct a sentence where and second or first and third letter of every word reconstructs the message I'm trying to send out. Or maybe it's just garbled text or something rather. Or it could be a poem where the first word of the limerick, where the first word of every line is the actual message it's trying to send out. The guardrail model doesn't have the context length or the technical capability to identify all of those schemes by its very construction. And so you can easily subvert In a real agentic system, there's probably many layers of actual LLM calls, but certainly, potentially, you might only need to subvert the top layer. There could be situations or maybe architectures where you need to subvert multiple layers, which obviously makes the entire jailbreaking of the agent harder, but there is no 100% security in the guardrail. That's the first problem with guardrails. The second problem with guardrails is that they're probabilistic. And so you can send 100 PHI-containing strings through the guardrail, and it might find all 100. And then the 101st, it fails, just simply because it's probabilistic and it hasn't seen that before. And that probably does not pass muster for a regulator who wants 100% deterministic detection protection of all PHI to make sure that it's not going out of the

Noah Labhart

system. Certainly. Now that makes total sense. And that feels like kind of the root, call it growth area, maybe call it issue or limitation with AI in general, the probabilistic nature, over deterministic that we need for regulators, for compliance, for validation, for all those sorts of things. So then what practical steps can organizations take to secure inference today? We see the issues with the guardrails. I think you outlined that perfectly. And when you talk through compliance and why these things are critical to secure, how do they get started? What's step one, two, three, as many as you can list? Yeah,

Guest

for sure. One, you still probably want to use guardrails, even though they're not perfect, because they are a semblance of security. I don't think they get you all the way there. I think you also need to implement some of these secure by design architectures. And essentially those boil down to having a trusted model and an untrusted model. And the untrusted model sees your sensitive data and may encounter prompt injection or model poisoning or something or other that causes it to be jailbroken. But it's answering questions from the trusted model in such a way that can never filter back to the trusted model. And you have papers like CaMeL from Google, and then the Secure by Design set of papers, which I believe is from Invariant Labs, IBM, Google, ETH, Zurich, ETH AI Center, just a host of people. They have this paper on secure agentic design patterns. So the question I have is, for those designs, is do they maintain the full utility of what we were promised for agentic systems? With those architectures, can you still accomplish everything you need to? I think the answer remains to be discovered. But if you're really trying to build secure systems, then you have to follow these implementation guidance, especially if you're trying to comply with strict privacy laws. So that

Noah Labhart

makes sense. A good starting point. And I appreciate you mentioned that doing the guardrails anyway, because that's what they are. They're just guardrails. They're not 27 nines of accuracy, six sigma level safety there. And I think my last question is probably one that everyone is interested in, right? Because security can come at a cost of implementation, at a cost of perhaps performance. How can businesses balance performance with security when adding these guardrails? Because we need things to be fast. We want things to be fast. We want things to be efficient. But security is absolutely critical. I think you've outlined how important it is to secure these inference time threats here. How do they balance performance and security, though?

Guest

We're early enough in the agentic revolution that I will outline a development pattern here. Develop your POC that does not go into production however you want. Aim for maximum utility. Then take that and shoehorn it into a secure framework. So you might have just an agent that just natively accesses an MCP server and gets information from your database and that does some transformation with it and then kicks you out the result. Fine and good for a prototype to see what level of utility you can get out of the agent infrastructure. Do that quickly, do that fast, rapid prototype, develop quickly. Then the hard problem becomes when you put that into production, you need to find a way to implement these secure patterns as much as possible. So instead of just going and talking to the database, now you're asking like yes, no questions. And you have a secure model that where you have a untrusted model that goes and accesses the database and can only return yes, no answers, etc. So you're separating concerns there. And then you're wrapping things in guardrails to make sure, oh, this is topically relevant. Like I'm not being asked to, I don't know, generate limericks or do some weird stuff that has nothing to do with, say, the finance task that I know I'm supposed to be working on. That'll mitigate some of these sort of more naive attacks. All of that is what organizations should be doing, what businesses should be doing as they move into production. And then you iterate. You just, you go from there. You try and improve the performance to gain again what you had in your POC. But that's what I would recommend. I think that having an eye, if you can, move the security into the design process as quickly as possible after the POC. so that you have a better sense of how you can create a secure agent and what the performance of that secure agent will be. I think often you'll find that adding all these layers of security doesn't actually impact performance too much. Typically, what people are looking for with agents now is raw ability as opposed to latency. I rarely come across a scenario where people are are like oh this is taking too long almost everyone building with agents wants the result to be good more than they want they want a slow good result versus a fast bad result a fast bad result you might as well not have the agent at all so a slow good result is what everyone is aiming for and i believe there is a broad understanding amongst the public and internally to companies companies, that an agent can go off and take minutes to do a task as long as it does the task correctly and gets back to me. And I think a lot of that comes from the fact that you have the deep thinking models that people are interacting with in the public at large coming from OpenAI and Anthropic and these where they now have the expectation, oh, the agent is working. I don't need to worry about, I can come back to this in five minutes and it will have an answer for me. develop quickly, move security in as soon as you can, but don't worry about latency and timing. It's more important to build trust and make a system that works effectively so that you can always improve latency later on.

Noah Labhart

Right on. I couldn't agree more with that, especially moving security into the design process. Moving so much into the design process is super, super critical. Well, Ave, thanks for being on the show today. It's clear that inference time risks are a problem. I think you've illustrated that well. And one that it's a problem that traditional security models are insufficient to solve. These risks are different from learning risks and require a new way of thinking, a new way of security setup. Guardrails are important to put into place, but compliance is critical. And moving the security into the design process as soon as possible is definitely the best route forward. So, Ave, thank you for being on the show today and educating us on all things inference time, AI guardrails.

Guest

It was great. Flew by. Thanks for having me.

Noah Labhart

There you have it. Ave leads us through inference time risk and how to set up effective AI guardrails and compliance, not only to keep protections at inference time, but to balance performance and security for your enterprise. Thank you for listening to today's episode. If you'd like to learn more about Protegrity, go to protegrity.com. That's P-R-O-T-E-G-R-I-T-Y dot com. And thanks again for listening.

Transcribed with Whisper and reviewed for names and terms; speaker labels are automatic and may contain small errors. Timestamps link to that moment of the transcript.