Hello listeners. Today we are dropping another episode in our series, The AI Control Loop. How enterprises govern the AI they've already deployed. Sponsored by our friends at Wallarm. Wallarm is the AI control platform for enterprise AI, protecting every AI workload, API and application in production. Giving CISOs the governance they need and CIOs the speed they demand. And organizations choose Wallarm for a complete inventory of APIs, AI agents, and AI apps using patented AI ML-based threat detection and blocking that operates at production speeds. In this episode, Craig Thomas, Senior Solutions Engineer at Wallarm, examines what rogue AI actually means in practice, where the risk materializes, and what it takes to move from detection to control. Craig, thank you for being on the show today. Thanks for being on Code Story. Yeah, great to be here. Appreciate it, Noah. Absolutely. Really excited to dive into our topic today around when AI goes rogue. Excited to dive into that. Excited to hear your perspective and bringing in all of your experience, including your experience with Wallarm. Before we jump into that topic, tell me a little bit about yourself. Tell me in my audience a little bit about you. So actually my background, I spent over 10 years in Department of Energy in multiple roles from a network engineer all the way up to a CISO of the nuclear weapons plants. So bringing the experience from the customer side in a highly regulated environment, then spent several years running a consulting company where working with those same highly regulated industries. And so when I joined Wallarm, I had worked with APIs, had worked with automation for quite a while and really interested to how do we bring that security to the customers, right? Both from an API and an AI perspective is that that continues to evolve. And then outside of work, pretty hands-on, play guitar, spend time in the yard, like to mess with my lawn quite a bit. A lot of my weekends revolve around kids' activities, horse shows and baseball and football. and always somewhere to be. Appreciate that overview. It kind of gives me an idea of who I'm talking to. Let's dive into the meat of it. So again, our topic is when AI goes rogue. And when we say rogue AI, what do we actually mean there? What do you guys actually mean there? Is it only malicious AI or can legitimate systems become risky too? Kind of level setting where we're coming from too, right? AI is really interesting. The fact that it really does permeate all parts of the business from IT, cyber, compliance, obviously the business itself, it's adding value and accelerating work. But how do we better discover, observe, enforce and govern that and do it at the speed of AI, right? And so some of those are starting with rogue. And to your question, rogue doesn't necessarily mean malicious. And a lot of times it isn't malicious. Most common rogue AI scenarios we're seeing are similar to what we saw in the API They're not attacks, they're legitimate systems, but they're behaving outside their intended boundaries. So their intent was fine, but the outcomes weren't from that perspective. We kind of look at that and I'll look at that from three various categories. Unsanctioned AI, that AI that nobody approved it. It's running in your environment, kind of gets into shadow a bit. Unmonitored AI, so we have AI that no one's watching at all and then unpredictable AI. So that gets in a bit of the point to the rogue. watch, but it's doing things no one anticipated, whether those be from the business side or the security side. So that you've got agents emerging kind of is that biggest emerging category because they're doing things on behalf of users and all. So rather than just a specific question to a chat bot and a specific answer, now it's going and taking actions on that behalf and that's introducing even more rogue actions at scale. Absolutely. Now that makes it clear when we think about rogue AI, something malicious, but it's going off on its own. And what are the most common ways that AI systems drift outside of intended boundaries? And once an organization understands what rogue AI looks like, where does that loss of control typically begin and who is responsible for preventing it? The operating definition I like to use is it's working as a design, but not as intended. And so this goes back to computer science 101, right? We're capturing a developer or a designer designs it one way, but then it's being used for other ways, whether maliciously by bad actors or just from the software responding different than you expect. One of the most common ways is prompt injection. It's an underrated drift mechanism. The malicious content in a data source is support tickets, scraped webpage, user message. It can redirect an agent's behavior. No one touches the model, right? With drift events on an AI particularly, and several of those are out of your control. Model updates may change the behavior without you changing a single thing or single code deploy. If you're calling a hosted LLM and the provider updates the model, your agent's behavior can shift. No pull requests, no change management, no one reviewing the delta. So back to the conversation of what broke and why, you've got to go a layer deeper. And that's a big way that AI systems can drift because of from the user interaction an API, to a tool, to an LLM. There's various components in there that can all be changing and outside your general control. Let's move into the shadow world, right? And shadow AI is the unsanctioned or unmonitored use of AI tools, apps, or embedded features by employees within an organization. Basically, usage of unapproved AI, right? In looking at shadow LLMs, how do these these things create risk even when no attacker is involved, right? Let's define that. And if AI drift often starts with normal business activity, where do shadow AI systems fit into that picture? I'd define shadow LLMs that they are the new shadow IT, right? A developer spins up an LLM endpoint in AWS or Azure or somewhere else because the internal approval process takes weeks, if not months for various things. And so typical behavior with shadow AI and shadow LLMs, right? It's because it takes too long. They have a legitimate use case, a business case, but it's just taking too long to get what they want done. And so there's no security review, no data handling policy, no logging. Or you bring in a new third party tool with its own AI built in, calling LLMs that you never approved. You need to be able to see that, surface that, and stop it. or at least provide feedback to your vendors, right? So that you understand what's going on there and you understand the full risk picture. It's maybe a little bit outside of the scope of this conversation, but SBOMs, software bill materials, and AI bill materials, they're crucial to understand truly what makes up your software and understand all your risks. Those are point in time, maybe from your vendor, but the fact that you need to be able to understand and build those so you can understand the risk and stop that as well. to add one other thing, unsanctioned agents, they inherit the developer's credentials, right? So developer goes in, just puts his credentials in, and now they get a broader role than they probably should have. So the agent, same person as me or you, right? Maybe in an administrative role, which is much more than it needed to actually do the task at hand. And so those are a couple of the things from shadow LLMs you're really looking at. One big stat that kind of comes out, 72% of corporate AI tools in active use are rated high or critical risk. Not future state problem, that's current state today. We have to get that under control for sure. Yeah, no doubt. And it's clear already from our conversation that this is important and it's a hard problem to solve. Why can an AI action look legitimate in isolation, but still create serious business security or compliance risk when viewed as part of a larger sequence of actions or a workflow. As these shadow systems become more embedded in everyday workflows, why is it so difficult to recognize this risk in real time? One, because our tools aren't keeping up, right? Tools that are using signatures are specific. This is allowed, this isn't allowed. Just can't keep track when you're doing chaining actions together. In that case, individual actions pass every check, but the sequence could fail the audit. Maybe reading a customer record is fine. You keep summarizing, it's fine. Passing the summary to a third-party API, all good, right? But doing all three automatically at scale without a human review step, it could be a conversation around GDPR or other things that you just don't want to have. It goes back to even different parts of data in isolation are fine. But once you chain those together, you can have classified or other security events in the national security space and similar things are happening here. And then my next step, Noah, is on chained agents, right? They multiply the blast radius because rather than just a single agent doing a single thing, agent A calls agent B, which calls agent C. Each step looks good, authorized API calls, but the end result is a capability no one really explicitly designed or approved. It just emerged from the chain and these agents learning what they can do and how to get what they want done. And so then a lot of times you're losing context. And in session tracing really is the tech capability that makes this sequence level analysis possible. We kind of believe you have to be able to trace every AI session from the initial prompt through every model call tool, invocation, API response, get a single record because otherwise you're losing that context and you're not able to reconstruct that and understand the true risk of what's going on to be able to eliminate or minimize risk and take action in a larger environment. answer probably opens up or leads into an answer for my next question. How do APIs and integrations and connected systems amplify the impact of these seemingly legitimate actions? I think I could probably, as an engineer, cherry pick some of the things you're probably going to say from the last answer, but what changes once those actions begin flowing across these workflows, flows across APIs, applications, and interconnected systems. Yeah, it goes back to, I know conversations you've had in previous weeks, right? APIs really are the central nervous system of AI, right? Every meaningful action or AI agent takes eventually, it becomes an API call, whether that's to a database, to a SaaS tool, to a payment system, identity provider, MCP servers. You're not watching that API layer or you're not watching the agent. And then that integration surface is enormous. It's un-inventoried. How do you protect what you don't know? Modern enterprise environments have thousands, if not tens of thousands of API endpoints. Many of those are undocumented. They might be third-party APIs. It might be your own APIs. And so it might be endpoints that should have been deprecated a long time ago. The issue now becomes even more because an AI agent with broad permissions, they'll find those, they'll call them, they'll be able to do what they need to do to get things done. You're no longer dealing with just users or even just scripts that are dealing with specific APIs. You're dealing with agents that multiply this. And being able to integrate AI security, API security, because of this amplification effect becomes crucial. A lot of folks treat these as separate problems, API gateway for API traffic, AI gateway for AI traffic, separate tool for AI behavior. But AI agents interact with all these external systems through APIs. That's where data exfiltration risk typically materialize. Separating the two creates a blind spot exactly where the risk is highest. And so you've got to be able to see that full picture. Right on. Okay, let's switch over to leadership of CIOs and CISOs. So what kinds of unexpected outcomes worry these folks the most today when AI systems are operating across these interconnected environments? And as that connectivity expands, what are security and business leaders most concerned about? Great question. A couple of things. One that jumps out to me right away is PII or sensitive data showing up where it shouldn't. Right. And these have real world consequences and real world fines. So an AI workflow processes support requests, routes it through a summarization step. stores the output in the log, and that log contains the customer's social security number. No one really designed for that data path, but it happened. Because the model was helpful, it got what it needed, but it now logged that information where it shouldn't have. And then I think another big thing is, yeah, I can't explain what it did problem. And so that can be from the CISO's hat or it can be from the CIO or business's hat. A CISO can generally reconstruct a human attacker's path, path, reconstructing the AI agent's decision tree across a multi-step workflow with external data inputs. It's generally, it's just a hard thing to do, right? Regulators, board members, incident responders, they all want the story. But today a lot of organizations can't tell it. And then the other kind of interesting story is unexpected answers or behaviors. We actually have an ongoing conversation with a potential customer. customer, they built their own chat bot. And going to change some details here to not reveal anything, but you go ask this chat bot a question, for instance, what do I feed my new puppy, right? 99 times out of 100 or 999 times out of 1,000 responds with the SKU for puppy food, a link, you can buy it straight from their website. However, one time out of that, it actually responds completely randomly. And not only randomly, but in a really bad way to potentially feed your puppy something poisonous. So that can't happen. We have to understand what those responses are and make sure they're accurate 100% of the time, because otherwise the company can be liable there. So those are a couple of the two big things, Noah, about unexpected outcomes, both from a cyber side, as well as the business and liability side that jump out to me. And then kind of the third is just that reputational risk from outputs, not just access. An AI system that publishes incorrect or biased content at scale or gives inappropriate to customers, like I talked about. It's a brand and legal risk. It doesn't fit neatly into traditional security frameworks. I appreciate you walking through that. And given these concerns, what does meaningful oversight actually look like? When AI systems can act at machine speed, and we talk about interconnected systems and impact there, that can really amplify the effects of some of these actions. So what does that meaningful oversight look like? From a security Security practitioner, your policy alone is not oversight. We've always said that, right? Paperwork doesn't make you more secure. Policy document does not stop an agent mid-call, right? So real oversight requires actual runtime enforcement, the ability to inspect, block, or rate limit that AI-generated API traffic in real time. That closed-loop model, really, to know, see, stop, and prove. You need to know what the AI systems are running and what they've connected to. You need to see what they're doing in real time. stop the behavior before the consequences compound. But increasingly, you need to be able to prove to auditors that you did this, right? Most organizations have no, at least partially, and they've got some logs, but see, stop, and prove definitely are the gaps. And then humans in the loop do matter, right? But they need to be at the right points. You can't put a human in the loop for every API call. You put humans at decision gates for high-risk actions, boundary-crossing transactions, but but then the system has to surface those moments automatically, right? So as you're looking at tooling and other things, those key aspects need to bubble up so that humans can take action quickly, understand the context around that, and then the tool has to be able to enforce these policies, like you said, at machine speed. That makes sense. And enforcing the policies as quick as the actions are being done, that seems clear. That would be a meaningful, that would be meaningful oversight. Organizations distinguish between the experimentation they want to encourage and the unmanaged AI behavior that they need to control. One challenge is balancing governance with innovation. And as an engineer, as a startup founder myself, that holds true day to day. How do organizations avoid slowing down AI adoption while still maintaining control? The security organization can't put the no in an innovation, right? We've heard that many times, right? So the answer is not slow everything down. that over-restrict AI experimentation. One, you'll lose your best engineers, you'll lose your best people to competitors that don't, as well as the businesses asking. All of these quarterly earnings calls and other things, they're asking specifically what the AI strategy is and plan. So we have to be able to support that, but do it in a secure way. So I think the first thing is, hey, define the sandbox clearly, make it easy to use, Noah. You can go out, you can innovate, you can test, but do it truly with a dev environment, API access, no production data, logging enabled. So you can understand that you can experiment quickly. And that sandbox needs to be a first class experience, not just an afterthought. And it needs to be usable, right? We've all dealt with dev environments that didn't mirror production at all and caused all sorts of issues once it went to prod. Being able to do that, to be able to support continuous AI SBOM going forward here as well, so that in those environments, in your AI, what builds that out as well. And then create a fast path to production, right? Shadow AI grows when that official path is slow. So your point is you can't slow it down. People are going to get around it one way or the other, right? Either they're going to do their own thing outside your boundaries or they're going to leave. So a lightweight AI system intake process, the security review, this data classification, runtime monitoring, it completes in days, not months or years in some cases, removes the incentive to go around it. And then I think the last thing is your tooling being able to easily enforce new sandboxes or new environments that are stood up is important too, right? So rather than having to go from your security team or your developers to the infrastructure people and all it, to be able to just click a button from some of these AI governance and observability tools to do the enforcement, monitoring and enforcement in these new environments with the click of a button in seconds rather than like weeks or months also is important. So you can get that visibility and enforcement as you see new things spin up. Okay, I'm tracking with that. Okay, Craig, there's one more question I've got. And we know that many organizations can detect risky AI behavior. That's a fact. But if they can't stop it in real time, what critical gap still remains? Even with these governance programs in place, many orgs are still operating reactively. Kind of close out our conversation, what's the key difference between detecting AI risk and actually controlling it? As a security professional or as a CISO, you don't want just another dashboard to tell you how bad you're doing, right? And detection without prevention is just documentation of damage, right? Knowing an agent exfiltrated data after the fact doesn't unexfiltrate it. It doesn't keep you from fines and other regulations. For AI systems operating at machine speed, the gap between that action taken and the action detected can mean thousands of API calls and gigabytes of data before you're ever alerted to that. And also at machine speed, looking at logs and some of your traditional SIEMs just aren't able to keep up. With AI speed actions, these metrics, the traditional metrics, they just look even catastrophic. So a one-minute response time is just way too slow if an agent made 50,000 API calls in that minute. And regulators even are moving toward real-time accountability, right? So you've got the EU AI Act, which is coming fast upon us. NIST AI RMF, emerging SEC regulation all signal that we detect it eventually just won't be sufficient. So the expectation is shifting towards a demonstrated ability to prevent, not just discover. We are looking at how do we close this gap? Most organizations have that SIEM, they have APM, they have API gateways, but none of these tools see inside a session and stitch all those pieces together. They just see headers, they see latency, they see logs, but they don't see the prompt, the payload, the data return. We're looking to be able to see all of that at the kernel level and act on it in line at machine speed. Oh, that just makes so much sense. And thinking about reactive versus control and processing that in real time just really brings it to light how important and how fast this moves. So, Craig, I really appreciate you being on the show today. It's clear that rogue AI doesn't necessarily mean malicious AI. Actions can appear as legitimate business actions and are often difficult to determine. And the chaining of these events through interconnected systems obviously and clearly, through your answers, amplifies the impact quickly. of governance to be as fast as the speed of action. A business must keep that balance between control and innovation. But to control AI risk, businesses have to move to real-time action to these issues in order to prevent the damage and to get out of that reactive mode. So I really appreciate you explaining all this, sharing your perspective and being on the show, Craig. Thanks, Noah. I really enjoyed the conversation and I hope you have a great day. As you can see from Craig's answers, rogue AI is something to take seriously. Even if it's not malicious, AI is powerful, and businesses need to take stock of how people are using this technology, with a balance of ensuring open posture towards innovation. If you'd like to learn more about Wallarm, you can visit wallarm.com. That's W-A-L-L-A-R-M dot com. And thanks again for listening.