1 00:00:00,000 --> 00:00:12,700 The title of our talk today, imagine it up there, just like see it in your mind's eye, is Beyond Digital Assistance, Securing Agentic AI Systems and Multi-Agent Workflows for High Stakes Environments. 2 00:00:12,760 --> 00:00:14,440 I'm Jeremiah. 3 00:00:14,880 --> 00:00:22,200 I work as the lead of a kind of worldwide AI delivery organization, more data scientists, engineers. 4 00:00:23,900 --> 00:00:29,220 Up, up, I can hold it closer to my mouth. 5 00:00:31,920 --> 00:00:33,880 Isn't technology fun? 6 00:00:34,140 --> 00:00:35,740 Anyway, I'm Jeremiah. 7 00:00:35,740 --> 00:00:40,900 I lead a group of engineers that build AI applications and this is my partner in crime. 8 00:00:40,900 --> 00:00:48,660 I'm Andra, I'm an AppSec specialist at Sage, so we work for the same company and also one of the OWASP London chapter leads. 9 00:00:53,340 --> 00:00:55,680 All right, small disclaimer. 10 00:00:55,680 --> 00:01:04,800 I think Andra and I work together, we've worked together for years, but this talk is just our opinions, man, about how you should build secure AI systems. 11 00:01:04,800 --> 00:01:10,380 We're not here to sell you anything, we're not representing our company per se, so keep that in mind as we go forward. 12 00:01:14,870 --> 00:01:16,510 All right, let's see if this works. 13 00:01:16,510 --> 00:01:23,130 Okay, so since you can't see the slide, I'm gonna give you a bit of a backstory of why we wanted to do this talk today. 14 00:01:23,350 --> 00:01:29,710 A few months ago, I did a talk on assistance and co-pilot security and how they came about. 15 00:01:29,710 --> 00:01:37,590 So this is all about thinking when Gen AI became more prevalent in all enterprise use cases, how things have changed since. 16 00:01:37,590 --> 00:01:54,230 So we saw the rise of AI assistance and co-pilots for the last two, three years, where a user input comes in and the assistant itself uses natural language processing, we all know that, to understand what the user's intent and question is. 17 00:01:54,230 --> 00:02:01,670 And then based on some prompt engineering and RAG and some backend API calls, it comes up with some useful suggestions or answers. 18 00:02:01,990 --> 00:02:10,170 So this talk today is supposed to be about, fast forwards to August, 2025, the year of the agent. 19 00:02:11,210 --> 00:02:16,270 We see AI agents and MCP servers being deployed at huge speed. 20 00:02:16,270 --> 00:02:23,130 And now we are connecting these new systems to even more data than our co-pilots were connected to before. 21 00:02:24,550 --> 00:02:30,930 So we wanted to start with a bit of a motivation, why we're all here, why we're trying to learn more about this. 22 00:02:31,170 --> 00:02:37,850 And I wanted to say that, so we've seen quite an evolution from assistants to agents. 23 00:02:37,850 --> 00:02:43,070 So let's have a look at how the landscape of agentic AI and some of the standards coming up looks like right now. 24 00:02:43,350 --> 00:02:51,010 We have AI driven agents being widely developed for critical functionality across multiple sectors. 25 00:02:51,010 --> 00:02:55,850 They handle sensitive data, they automate operations and they inform decisions. 26 00:02:56,370 --> 00:03:12,330 However, we still have vulnerabilities like prompt injection, misconfigured tools, credential leaking and unauthorized or arbitrary code execution, which enable attackers, malicious users to manipulate these agents, steal data or execute malicious actions, 27 00:03:12,330 --> 00:03:15,210 even without actual human interaction. 28 00:03:16,550 --> 00:03:21,450 So we have quite a lot of articles for you guys today to follow. 29 00:03:21,450 --> 00:03:23,930 Sorry, we need to go through all the slides. 30 00:03:24,590 --> 00:03:26,550 We also have good agents. 31 00:03:26,550 --> 00:03:38,230 So if some of you have already heard of, just put this here, have already heard of Google's Big Sleep, this goes into more of a proactive vulnerability detection rather than a passive one. 32 00:03:38,230 --> 00:03:42,090 So they identify threats before they become zero days. 33 00:03:43,930 --> 00:03:45,030 All right. 34 00:03:45,030 --> 00:03:50,230 And as this stuff becomes more important, we also see this kind of proliferation of complexity. 35 00:03:50,230 --> 00:03:53,970 The state of agentic AI is getting more complicated. 36 00:03:54,510 --> 00:04:00,370 There are different types of agents, there's different levels of agents, there's different levels of sophistication within those. 37 00:04:00,530 --> 00:04:09,610 There's different design patterns for building software systems that use those agents, using reflection or planning or chain of thought. 38 00:04:09,610 --> 00:04:19,650 There's also every day yet another framework or model or LLM that people are pulling off the shelf, buying from open AI or Anthropic and trying to plug into these systems. 39 00:04:19,650 --> 00:04:27,430 And I think one of the things that I'm most excited about is the kind of new conceptual frameworks that are opened up by all of this development. 40 00:04:27,430 --> 00:04:33,710 I think it is changing the way some of us build software, how some of us build secure systems and crack them. 41 00:04:33,790 --> 00:04:36,710 So it's a busy space. 42 00:04:37,670 --> 00:04:43,230 Finally, I think there's all of these different types of agents that word gets thrown around a lot. 43 00:04:43,230 --> 00:04:47,590 It's gonna get thrown around a lot today and keeping track of what's going on is really tough. 44 00:04:47,590 --> 00:04:55,650 So, as complexity increases, as the level of autonomy in these systems increases, so does the real world impact. 45 00:04:55,710 --> 00:05:02,750 And I think we wanna make this talk as practical as possible and talk about what some of those impacts are and how we can deal with them as professionals. 46 00:05:05,340 --> 00:05:09,540 Okay, so I'm just gonna give you a real world example. 47 00:05:10,380 --> 00:05:13,480 Has anyone here heard of AutoGPT? 48 00:05:14,560 --> 00:05:17,160 Nope, okay, a couple of people, that's good. 49 00:05:17,160 --> 00:05:19,180 So this is a real world incident, right? 50 00:05:19,180 --> 00:05:29,860 At the beginning of the testing phases for AutoGPT, people discovered unintended privilege escalation because the agent could persist memory access across multiple sessions. 51 00:05:29,860 --> 00:05:37,660 So they wanted to have a simple agent for a simple task and that led to more actions than they intended to. 52 00:05:39,660 --> 00:05:48,320 Part of the reason it led to those unintended consequences is because systems like AutoGPT and other kind of agentic AI use tools. 53 00:05:48,580 --> 00:05:53,540 And tools are other software systems that they can interact with dynamically. 54 00:05:53,720 --> 00:05:59,280 And all of that is getting amplified with the advent of kind of emerging protocols like MCP. 55 00:05:59,640 --> 00:06:01,880 Show of hands, anybody, everybody? 56 00:06:01,940 --> 00:06:04,200 MCP, yeah, it's out there, right? 57 00:06:04,200 --> 00:06:05,440 We're dealing with it. 58 00:06:05,600 --> 00:06:11,900 Everybody loves to say that MCP is the USBC of AI and it's kind of true in all the bad ways, right? 59 00:06:11,900 --> 00:06:17,740 You pick up this random code, you plug it into your AI system and you hope for the best. 60 00:06:17,860 --> 00:06:22,280 No, well, yes, that is actually what's happening but it's a terrible idea. 61 00:06:22,400 --> 00:06:35,320 And I think part of the reason that it is such a terrible idea is you're giving access to all sorts of third-party tools with different levels of trust to basically a dynamic code execution engine. 62 00:06:35,520 --> 00:06:41,120 You know, in its simplest form, an agent is an LLM plus a bunch of code that like wraps around it. 63 00:06:41,120 --> 00:06:44,920 And MCP gives you the ability to just plug in whatever you want there. 64 00:06:44,920 --> 00:06:46,840 Bring whatever you want. 65 00:06:47,220 --> 00:06:53,100 That's tremendously powerful but it also is just room for disaster, pretty much. 66 00:06:54,000 --> 00:06:55,940 That's all I have to say about that. 67 00:06:58,160 --> 00:07:09,220 All right, so MCP standardizes how LLMs interact with external tools and data, as we know, and it simplifies its integration but it also introduces a new layer of risk. 68 00:07:09,220 --> 00:07:15,600 So the diagram we had for you today was imagine an LLM host, like an ID or a copilot. 69 00:07:15,600 --> 00:07:25,220 You then have the MCP client and server in between your tools, like a file system, a web search, an email sender, and so on. 70 00:07:25,260 --> 00:07:27,840 So that's an extra layer of complexity. 71 00:07:27,840 --> 00:07:33,380 Actually, a couple of months ago, I went to a conference where they said that the S in MCP stands for security. 72 00:07:33,460 --> 00:07:36,240 So that's a pretty good place to start. 73 00:07:36,500 --> 00:07:48,900 We just need to think of how we can design these systems with security in mind now, so that we don't bake in vulnerabilities at the level of the protocol, which then can propagate across entire agent ecosystems. 74 00:07:50,940 --> 00:07:54,980 All right, we're talking about this really broad area of work. 75 00:07:54,980 --> 00:08:03,040 And I think, you know, I want to ground it a little bit in some concrete ideas, which is that not every system needs to be equally secure. 76 00:08:03,040 --> 00:08:05,960 You know, there's a bunch of different patterns that apply depending on your use case. 77 00:08:06,000 --> 00:08:11,340 And everything that we're going to say next applies to what we consider to be high stakes AI. 78 00:08:11,760 --> 00:08:23,920 And so, you know, imagine on a slide in your mind's eye, over on the left, we have maybe AI for poetry that's publicly accessible and has no permissions, not what we're covering today. 79 00:08:23,920 --> 00:08:31,160 Over on the right, we have AI for killer robots and, you know, autonomous drone warfare. 80 00:08:31,160 --> 00:08:35,160 And if you do that, like, please, I hope you know more about it than we do. 81 00:08:35,160 --> 00:08:41,180 But my point is there's a lot of really important kind of mission critical business AI that's somewhere in the middle. 82 00:08:41,240 --> 00:08:48,680 You know, this is AI for construction, AI for HR and payroll, AI for accounting, AI that kind of runs our businesses and make things easier. 83 00:08:48,720 --> 00:08:50,020 That's pretty high stakes. 84 00:08:50,020 --> 00:08:51,540 You don't want that shit to fail. 85 00:08:51,540 --> 00:08:53,540 So that's what we're going to be talking about. 86 00:08:56,950 --> 00:09:01,930 Okay, so the next point is all going to be, it's going to be all about the top 10. 87 00:09:01,930 --> 00:09:06,030 So everyone here knows the OS top 10 for web apps, right? 88 00:09:06,050 --> 00:09:06,710 Cool. 89 00:09:06,710 --> 00:09:14,310 We then had a couple of versions of OS top 10 for LLMs, which have been released for the past year or so. 90 00:09:15,110 --> 00:09:28,870 What we wanted to drive home here was that if we look at a comparison between the top 10 for web apps and top 10 for LLMs, actually there are only three completely new risks introduced by this kind of technology. 91 00:09:29,990 --> 00:09:31,790 System prompt leakage. 92 00:09:33,830 --> 00:09:34,810 Sorry. 93 00:09:34,810 --> 00:09:37,730 It's all about, it's unique to LLMs, obviously. 94 00:09:37,770 --> 00:09:42,650 It's about exposing the internal instructions for a model's behavior. 95 00:09:42,650 --> 00:09:44,790 We have vector and embedding weaknesses. 96 00:09:44,790 --> 00:09:50,370 Again, specific to LLM systems using retrieval, augmented generation and embedding techniques. 97 00:09:50,370 --> 00:09:52,370 And then lastly, misinformation. 98 00:09:52,530 --> 00:09:55,910 The whole point of this technology is that it's generative, generative AI. 99 00:09:55,910 --> 00:10:01,770 So you can generate and propagate false or misleading information if you don't check it. 100 00:10:03,350 --> 00:10:06,010 Then imagine this again on a slide. 101 00:10:06,010 --> 00:10:11,390 We wanted to compare the OWASP top 10 for LLMs with the agentic AI threats. 102 00:10:11,390 --> 00:10:18,350 So OWASP has also released a document which is all about threats and mitigations in agentic AI. 103 00:10:18,510 --> 00:10:26,850 And we still have risks like prompt injection, data disclosure, model poisoning, unbounded resource consumption. 104 00:10:26,850 --> 00:10:31,750 And all of these things now become more dangerous because agents can persist states. 105 00:10:31,750 --> 00:10:36,050 They can invoke external tools, probably also escalate privileges. 106 00:10:36,050 --> 00:10:38,450 And they also operate across workflows. 107 00:10:38,690 --> 00:10:44,990 And they can flood human reviewers with more alerts than possibly managed. 108 00:10:45,350 --> 00:11:01,190 So if we were to focus on the same type of risks that the LLMs introduced initially, those three that we talked about, system prompt leakage, vector and embedding weaknesses, and misinformation, we have mapped those to a couple of threats. 109 00:11:01,190 --> 00:11:10,950 When it comes to leaking system prompts, we can expose sensitive details like guardrails, authentication tokens, or systems instructions through agents. 110 00:11:10,970 --> 00:11:17,330 This information can help attackers obviously impersonate agents just like they do impersonate normal users. 111 00:11:17,890 --> 00:11:24,970 And they can do that and perform actions in ways they can, in which can, sorry, they can break audit trails, right? 112 00:11:24,970 --> 00:11:27,430 It's very, very difficult to figure out who's done what. 113 00:11:27,430 --> 00:11:28,190 Is it a human? 114 00:11:28,190 --> 00:11:29,090 Is it an agent? 115 00:11:29,090 --> 00:11:32,470 If you don't have any kind of authorization in place. 116 00:11:32,990 --> 00:11:37,330 The next one was all about RAG and embedding weaknesses. 117 00:11:37,670 --> 00:11:39,570 This highlights a real risk. 118 00:11:39,570 --> 00:11:49,330 So if attackers manage to get access to how vector stores are formed and exploit the way that meaning is encoded, agents can be deceived. 119 00:11:49,610 --> 00:11:54,870 The security controls that you have in place can be bypassed and sensitive workflows can be poisoned. 120 00:11:54,870 --> 00:11:59,250 So all of these things can happen without obvious signs, again, through agents. 121 00:12:00,310 --> 00:12:05,550 Yeah, and finally, we want to focus a little bit also on misinformation and what that means in an agentic world. 122 00:12:05,650 --> 00:12:09,250 Like, we all know, you know, at this point, like, LLMs can hallucinate. 123 00:12:09,250 --> 00:12:10,410 They can get things wrong. 124 00:12:10,410 --> 00:12:12,690 Not everything on the internet is true. 125 00:12:12,870 --> 00:12:13,990 I hope. 126 00:12:14,110 --> 00:12:27,110 Anyway, what that means in agentic AI is that, you know, agent chains can be hijacked when, you know, one piece of the chain gets something wrong and that's passed down the chain. 127 00:12:27,110 --> 00:12:43,270 So in particular, like, whenever you have this chain of thought or these recursive loops that come into systems like AutoGPT, you know, this information can be amplified and it can result in either denial of service or misalignment of agentic goals. 128 00:12:43,270 --> 00:12:50,370 I think all of that comes into play even more when you have persistent memory in agents because it's a bit like a poison pill, right? 129 00:12:50,370 --> 00:12:54,450 Every time that memory is reloaded, the attack potentially reruns. 130 00:12:54,690 --> 00:12:58,110 And, you know, it's a big source of problems in these systems. 131 00:13:00,790 --> 00:13:07,410 OK, so we've compared the normal top 10, LLM's top 10, and then we're going into agentic AI threats. 132 00:13:07,410 --> 00:13:10,410 There is actually going to be a top 10 for agentic AI. 133 00:13:10,410 --> 00:13:14,750 The kickoff for the entire project was on Wednesday this week with OWASP. 134 00:13:14,750 --> 00:13:23,310 So if you're more interested, Google the OWASP agentic AI top 10 and you'll see how you can get involved and be a volunteer. 135 00:13:24,250 --> 00:13:33,010 The actual top 10 is going to be ready, for November this year, if everyone in OWASP can, you know, agree on what the list should be. 136 00:13:33,050 --> 00:13:35,630 But yeah, let's move on to AI agents and MCP. 137 00:13:36,610 --> 00:13:40,330 All right, well, at this point, I hope we've convinced you this is kind of a real problem. 138 00:13:40,330 --> 00:13:42,390 There's a lot of kind of emerging threats. 139 00:13:42,390 --> 00:13:49,490 Luckily, not all of this is completely new and a lot of, you know, kind of classical techniques that we know for protecting systems still apply. 140 00:13:49,590 --> 00:13:55,630 But I want to talk a little bit about the state of agentic AI and why this is sort of a hard thing to grab onto. 141 00:13:55,630 --> 00:14:03,870 And I'll just share, first of all, that, like, nobody agrees on a definition of agent or agentic. 142 00:14:03,890 --> 00:14:09,870 You know, I think OpenAI, Anthropic, NVIDIA, Google, everybody out there has a slightly different take on this. 143 00:14:09,870 --> 00:14:13,450 We all agree there are different, like, autonomy is important. 144 00:14:13,670 --> 00:14:17,830 It has something to do with workflows and taking action. 145 00:14:17,830 --> 00:14:20,410 It has something to do with calling on external systems. 146 00:14:20,410 --> 00:14:24,930 But everybody I just sort of named there also has something to sell us. 147 00:14:24,930 --> 00:14:27,590 And that's part of the problem. 148 00:14:27,850 --> 00:14:30,410 So I'd put it to you this way. 149 00:14:30,410 --> 00:14:41,850 If the definition of agent and agentic AI itself is changing kind of every day, like, what is our hope of modeling threats to those systems and evolving that too? 150 00:14:41,850 --> 00:14:44,830 We have to be just as dynamic in that landscape. 151 00:14:45,750 --> 00:14:50,810 Luckily, you don't have to completely reinvent, you know, like a taxonomy for this. 152 00:14:50,810 --> 00:14:52,450 You don't have to completely reinvent the wheel. 153 00:14:52,450 --> 00:14:57,010 There's a lot of information out there that still very much applies, just like those top 10 lists. 154 00:14:57,590 --> 00:15:04,810 As far back as I found a citation from 2003, people have been thinking, people in the AI world have been thinking about different levels of agents. 155 00:15:04,810 --> 00:15:07,810 And it starts very low, you know, reflexive. 156 00:15:07,810 --> 00:15:09,930 I think that means an if-then statement. 157 00:15:09,970 --> 00:15:11,630 Then model-based agents. 158 00:15:11,750 --> 00:15:15,730 That's an if-then statement with a random number generator attached to it. 159 00:15:16,090 --> 00:15:17,970 Nothing too fancy there. 160 00:15:17,970 --> 00:15:22,430 But these days, you know, LLMs have allowed us to build goal-based agents. 161 00:15:22,430 --> 00:15:24,770 Utility-based agents and learning agents. 162 00:15:24,770 --> 00:15:28,290 And with each stage of that evolution comes new threats. 163 00:15:28,350 --> 00:15:32,430 So when we get to learning agents, you have memory. 164 00:15:32,670 --> 00:15:35,590 You know, you need to be able to process what a user put in. 165 00:15:35,710 --> 00:15:41,710 And, you know, that opens you up to leaking internal state, incremental takeovers and misdirection. 166 00:15:41,710 --> 00:15:44,330 And like I mentioned before, denial of service. 167 00:15:44,670 --> 00:15:51,810 When you have autonomy, you also get, you know, risk of every kind of supply chain attack that you can think of. 168 00:15:51,810 --> 00:15:57,670 Because, you know, that autonomous decision-making means the tools can be selected dynamically. 169 00:15:57,750 --> 00:16:05,050 And if you're not really locked down about where those tools come from and how they interact with other parts of the system, you're going to have a bad time. 170 00:16:05,450 --> 00:16:10,570 So we wanted to give a bit of a breakdown, you know, starting with the state of the world. 171 00:16:10,570 --> 00:16:12,310 What do these agentic systems look like? 172 00:16:12,410 --> 00:16:14,650 And how can you think about protecting them? 173 00:16:14,930 --> 00:16:17,770 And you're just going to have to see this in your head right now. 174 00:16:17,770 --> 00:16:18,530 I'm sorry. 175 00:16:18,530 --> 00:16:22,790 But most agent systems, you know, look the same. 176 00:16:23,130 --> 00:16:28,350 There's sort of a user over here and a UI, you know, that they interact with. 177 00:16:28,350 --> 00:16:33,330 Often that comes with a chat interface, because everybody here loves chat, right? 178 00:16:34,110 --> 00:16:41,610 And then you're talking to a backend system that has, you know, an MCP server and a selection of tools. 179 00:16:41,610 --> 00:16:50,570 But my point here is that we're seeing more and more applications that combine the user-facing UI together with a true kind of MCP client. 180 00:16:50,570 --> 00:16:56,090 And then we cross a trust boundary into server land where tool selection happens. 181 00:16:56,090 --> 00:17:00,650 And that is inherently a bit insecure for a few reasons. 182 00:17:00,810 --> 00:17:11,090 One is you're keeping all of your, like, user land prompt information and passing that directly to LLM systems and agents on the server side. 183 00:17:11,090 --> 00:17:12,410 It's a little hard to see. 184 00:17:12,410 --> 00:17:14,130 I promise I had a picture. 185 00:17:14,590 --> 00:17:16,930 And that opens you up to prompt injection. 186 00:17:16,930 --> 00:17:20,730 That opens you up to, you know, system prompt escape. 187 00:17:20,730 --> 00:17:30,930 That opens you up to override, because you're not able to intercept at the client and inject, you know, kind of guardrails and, you know, even rule-based systems that would protect you from that. 188 00:17:31,470 --> 00:17:33,090 How can you make that more secure? 189 00:17:33,610 --> 00:17:35,410 There's a few things, I think. 190 00:17:36,870 --> 00:17:45,770 Another problem that we see in the world is that, you know, every tool that you could possibly introduce to these agent systems was not built with AI in mind. 191 00:17:45,770 --> 00:17:46,870 Most of them were not. 192 00:17:46,870 --> 00:17:55,610 These are different APIs and databases with different role-based access control systems, possibly different auth technology behind the scenes. 193 00:17:55,730 --> 00:18:05,070 And they're all being plugged into kind of one control plane at that MCP server layer that has to then make decisions about how those are invoked. 194 00:18:05,250 --> 00:18:07,090 This results in a lot of problems. 195 00:18:07,090 --> 00:18:08,150 What can you do? 196 00:18:08,750 --> 00:18:16,710 You thought you were going to build, like, the grand AI future, but what you actually have to start with, my best advice, is that you give yourself a permissions proxy. 197 00:18:16,710 --> 00:18:25,490 You give yourself a place to map back some of those permission models and, you know, uniformize, like, your access control patterns across tools. 198 00:18:25,610 --> 00:18:28,530 That's not going to be the MCP server. 199 00:18:28,530 --> 00:18:37,770 I mean, you could stick it on the same box, but it really does need to be a separate control plane where you can make those decisions and exercise that level of control. 200 00:18:38,010 --> 00:18:40,670 That's a bit more security by design. 201 00:18:41,450 --> 00:18:43,010 What else can you do? 202 00:18:44,250 --> 00:18:58,850 This is a bit controversial, but I think at this point, if you're really looking at more of a, like, high-stakes kind of use case, you should also strongly consider separating your end-user UI and true client from your MCP client. 203 00:18:59,170 --> 00:19:03,950 We talk all the time about shifting left on security, and that's a good idea, right? 204 00:19:03,950 --> 00:19:08,990 Let's get more involved earlier and earlier in the software development life cycle, because that makes us good. 205 00:19:08,990 --> 00:19:14,010 What I'm saying here is you actually should shift right on AI. 206 00:19:14,010 --> 00:19:29,230 You should pull all of your AI-interacting components, both client and server, within, you know, your infrastructure that you trust, within, like, a higher trust boundary in order to achieve bigger guarantees around the behavior of that system. 207 00:19:29,230 --> 00:19:31,870 And I think this comes with a cost. 208 00:19:31,870 --> 00:19:39,350 You know, I think everybody wants to maybe pull Claw Desktop or something else off the shelf and say, okay, we do AI now. 209 00:19:39,470 --> 00:19:41,410 And you could certainly do that. 210 00:19:41,410 --> 00:19:46,650 But I think by both isolating your MCP server, you get good tool isolation. 211 00:19:46,650 --> 00:19:50,030 You don't have to worry about the lacking S in MCP. 212 00:19:50,030 --> 00:20:10,050 And by pulling the client even inside, implementing that, the MCP client server side, it's a little funny, you get to protect yourself from, you know, misconfigured clients that can point to arbitrary MCP servers, and you also get to fully control that client-server communication at the MCP level, 213 00:20:10,050 --> 00:20:17,710 which is pretty important, because otherwise you have to think about how you secure that yourself on an inherently insecure and user-facing client. 214 00:20:18,650 --> 00:20:24,090 I promise it makes more sense with the boxes and arrows, but, you know, you'll just have to bear with me. 215 00:20:26,590 --> 00:20:32,030 Okay, now I have the very, very tough job of making you imagine some threat modeling. 216 00:20:32,730 --> 00:20:36,590 Um, we had diagrams, but let me just try. 217 00:20:36,930 --> 00:20:38,050 So, let's see. 218 00:20:38,050 --> 00:20:40,810 So, imagine, if you will, a single agent system. 219 00:20:40,810 --> 00:20:47,830 We have an end user over here, they're interacting with, you know, one agent, and then a selection of tools. 220 00:20:47,830 --> 00:20:54,330 And this could be for, you know, kind of any number of use cases, but we're going to talk about a really important one that has to do with payroll. 221 00:20:55,090 --> 00:20:57,290 So, Andra, what would some of those tools be? 222 00:20:57,290 --> 00:20:58,570 What does that system look like? 223 00:20:59,390 --> 00:21:10,790 All right, so, you have an external user, you have an agent environment, which has an agent host, and a large language model, which will help with the tool selection. 224 00:21:10,790 --> 00:21:15,110 You then have the MCP environment with your client and your server. 225 00:21:15,570 --> 00:21:19,790 And then at the, for you, it's going to be this right, the other right. 226 00:21:19,810 --> 00:21:24,310 At the end, you have your payroll system, which has various endpoints. 227 00:21:24,310 --> 00:21:32,010 Think of querying payslips, updating payroll data, adjusting payslips and salaries, and then generating some reports. 228 00:21:32,010 --> 00:21:33,870 So, just those four endpoints. 229 00:21:33,870 --> 00:21:36,450 And then all those are part of your payroll application. 230 00:21:37,090 --> 00:21:41,010 If we want to do threat modeling, the first thing we want to do is think of trust boundaries, right? 231 00:21:41,010 --> 00:21:43,970 So, we now have three trust boundaries that we can think of. 232 00:21:43,970 --> 00:21:46,790 You have the external one for your users. 233 00:21:47,350 --> 00:21:53,470 You then have the agent environment, as I said, as a trust boundary around the host, the agent host and the LLM. 234 00:21:53,510 --> 00:22:01,110 And then you have your enterprise backend with its own trust boundary, where you have your MCP client, your MCP server, and the payroll application itself. 235 00:22:02,310 --> 00:22:06,550 So, we wanted to talk to you about three threat scenarios today. 236 00:22:06,550 --> 00:22:10,310 We have prompt injection, data leak, and business logic. 237 00:22:10,310 --> 00:22:12,610 The first two, obviously, relate to security. 238 00:22:12,610 --> 00:22:14,010 The last one, business logic. 239 00:22:14,010 --> 00:22:17,930 It's all about the functionality of the actual payroll system. 240 00:22:18,670 --> 00:22:37,730 Right, so for the prompt injection, if we think of those trust boundaries that we've just talked about, external, agent, enterprise backend, the data flow could be, you get in a user request, the payload comes in through the external actor, goes into the agent environment, 241 00:22:37,730 --> 00:22:42,470 and calls the host through the end application, through your payroll application. 242 00:22:43,670 --> 00:22:50,470 The agent host triggers the LLM, right, with the natural language query that comes in from the user. 243 00:22:51,130 --> 00:22:55,870 The LLM then connects to the MCP client and triggers a tool selection. 244 00:22:57,010 --> 00:23:00,010 The MCP client is in charge of selecting the tool. 245 00:23:00,930 --> 00:23:06,070 And then the payload itself gets to your payroll application or your payroll system. 246 00:23:06,130 --> 00:23:10,470 I do appreciate, it's very, very difficult to figure this out if we don't have the diagram. 247 00:23:10,990 --> 00:23:17,110 But yeah, think of the tool description itself that the payroll application is receiving can contain any arbitrary data. 248 00:23:17,110 --> 00:23:24,990 It's gone through all of these components and you can just put anything in there, if it was natural language or any kind of other information. 249 00:23:24,990 --> 00:23:28,690 That's where you would get a prompt injection at the level of the payroll application. 250 00:23:28,950 --> 00:23:33,430 And then we can also have prompt injection from the tool output, right? 251 00:23:33,430 --> 00:23:43,090 So your payroll application contains various tools, those endpoints that we talked about, querying payslips, adjusting the salaries, generating reports. 252 00:23:43,090 --> 00:23:52,090 Anything that is an output from those API endpoints goes back through the chain, server, client, LLM, and then back to the user. 253 00:23:52,290 --> 00:23:54,610 And you can have unsanitized output. 254 00:23:54,610 --> 00:23:59,270 The LLM itself will implicitly trust anything that comes from your MCP client, right? 255 00:23:59,270 --> 00:24:01,650 Because it doesn't check anything at that level. 256 00:24:01,650 --> 00:24:03,610 So you can have prompt injection there as well. 257 00:24:04,270 --> 00:24:07,670 We had a nice slide where we also added a couple of controls. 258 00:24:07,730 --> 00:24:09,390 Think of security controls, right? 259 00:24:09,390 --> 00:24:12,470 Just examples, we're not gonna have an exhaustive list today. 260 00:24:12,470 --> 00:24:15,450 You can have input sanitization, not rocket science. 261 00:24:15,450 --> 00:24:17,090 We've already seen this before. 262 00:24:17,090 --> 00:24:20,850 And then at the level of the LLM, guardrails. 263 00:24:21,570 --> 00:24:27,210 I have heard engineers ask me in previous lives, why do they need LLM guardrails? 264 00:24:27,210 --> 00:24:29,470 Well, this might be a good example for them. 265 00:24:30,270 --> 00:24:33,970 That's just another defense in depth check that we can add. 266 00:24:34,150 --> 00:24:40,590 If we think of data leak, I mentioned that one of the endpoints that this application has is querying payslips. 267 00:24:40,590 --> 00:24:54,910 So think of the same kind of workflow, user request comes in, they wanna see some information about their own payslip, but for some reason, this is a malicious user and manages to retrieve data about everyone's payslips in the company. 268 00:24:55,330 --> 00:25:03,410 Again, there aren't any checks in place if you don't build it with these checks in place to make sure that you don't just get everyone's information out there. 269 00:25:03,590 --> 00:25:15,110 Yeah, and this is actually a real world attack that happened when GitHub, not to name and shame too badly here, but they put an MCP server out there on the internet for their users to use. 270 00:25:15,250 --> 00:25:28,430 Because of that, you know, varied kind of legacy enterprise permission model, you know, users were able to trick the agentic system, trick the LLM into retrieving private repo information that they shouldn't have had access to. 271 00:25:28,670 --> 00:25:31,150 And I think, you know, luckily it was private repos. 272 00:25:31,150 --> 00:25:37,330 It was not actually everybody's payroll or something like that, but the threat is real, the model is real. 273 00:25:37,330 --> 00:25:40,630 And I think there's a few things you can do to prevent that from happening. 274 00:25:40,630 --> 00:25:45,490 We already talked about uniformizing access controls and permission models. 275 00:25:45,490 --> 00:25:46,790 What else can you do, Andra? 276 00:25:48,870 --> 00:25:53,730 Well, if we talk about data leaks, some sensitive or PII data scraping. 277 00:25:53,730 --> 00:26:01,710 So at the level of your payroll application, make sure that nothing that goes through logging systems or back into an MCP server and client contains any PII. 278 00:26:03,110 --> 00:26:06,590 And of course, yeah, least privilege access and ACLs. 279 00:26:06,750 --> 00:26:10,090 Again, these are just some examples, controls that we've seen before. 280 00:26:10,090 --> 00:26:13,750 Reinventing the wheel, but it's still good practice to introduce them. 281 00:26:14,230 --> 00:26:18,030 I also mentioned that the last threat scenario was business logic. 282 00:26:18,030 --> 00:26:23,510 So this system that we have, right, can also make adjustments to someone's salary. 283 00:26:23,510 --> 00:26:26,270 And what happens if someone gets a salary of $1 billion? 284 00:26:26,690 --> 00:26:31,250 They just ask for it to be adjusted and they might get a nice payout. 285 00:26:32,190 --> 00:26:36,790 The example of controls here would just be logging and monitoring, right? 286 00:26:36,790 --> 00:26:39,470 Again, best practice, we've already known this. 287 00:26:39,470 --> 00:26:44,950 Try to get the audit trail in check so that you know if any of these requests come in. 288 00:26:44,950 --> 00:26:56,950 And then at the level of your end product, have something like a kill switch or a shutdown to make sure that this doesn't just go up the chain and the $1 billion salary actually gets paid. 289 00:26:59,470 --> 00:27:01,210 Yeah, next. 290 00:27:01,570 --> 00:27:05,670 Yeah, I think one thing that we're finding is that AI is causing a lot of code to move around. 291 00:27:05,670 --> 00:27:20,010 It's causing a lot of code to be written and we're seeing a lot of vulnerabilities that may have existed in legacy systems just get exposed as they're wrapped in a tool and pushed out through MCP, through these agentic systems. 292 00:27:20,050 --> 00:27:24,010 But I think the good news is there are a lot of guardrails that you can put in place. 293 00:27:24,010 --> 00:27:25,790 It's not completely new. 294 00:27:25,810 --> 00:27:28,210 And it's all the classics here. 295 00:27:28,210 --> 00:27:29,330 It's input sanitization. 296 00:27:29,330 --> 00:27:30,910 It's logging and monitoring. 297 00:27:30,910 --> 00:27:37,450 LLM guardrails and the fancy word is constitutional self-critique where you say, no LLM, really. 298 00:27:37,450 --> 00:27:39,150 Pretend you're like a good ethical actor here. 299 00:27:39,150 --> 00:27:40,370 Double check the output here. 300 00:27:40,370 --> 00:27:43,650 It doesn't completely solve the problem, but it gets you very far. 301 00:27:44,310 --> 00:27:51,870 And finally, I mean, it's inherently impossible to like layer on AI to an insecure system and make it more secure. 302 00:27:51,870 --> 00:27:52,850 That's not a good idea. 303 00:27:52,850 --> 00:27:59,230 So you really have to think about, you know, the business logic in the underlying tools and use this as an opportunity to audit those. 304 00:27:59,230 --> 00:28:01,670 I think that's best practice here. 305 00:28:03,250 --> 00:28:11,070 I've also just said that all of these controls we've seen before, but there are other controls that we as an industry have to come up with collectively, right, to adapt to the technology. 306 00:28:11,070 --> 00:28:15,150 So I think I've got a friend in the audience that said this is a very interesting space. 307 00:28:15,150 --> 00:28:16,050 There be dragons. 308 00:28:16,050 --> 00:28:19,910 So just let's just try to figure this out together. 309 00:28:21,070 --> 00:28:25,310 We had a bit of threat modeling ideas with a multi-agent system. 310 00:28:25,310 --> 00:28:27,630 But again, this is going to be very complicated to describe. 311 00:28:27,630 --> 00:28:29,210 I'm not even going to attempt it. 312 00:28:29,730 --> 00:28:31,150 But yeah, we have a concept. 313 00:28:31,570 --> 00:28:39,230 Yeah, I think all we have time to say about multi-agent systems today is that everything we just went through, you know, on steroids, right? 314 00:28:39,230 --> 00:28:42,170 So just bear with me for a second. 315 00:28:42,170 --> 00:28:43,790 I think you have an end user. 316 00:28:43,790 --> 00:28:46,230 They're connecting to a backend system. 317 00:28:46,410 --> 00:28:48,470 There's maybe an orchestration agent. 318 00:28:48,470 --> 00:28:53,470 And then there's lots of other agents, maybe segregated by domain, maybe segregated by trust level. 319 00:28:53,470 --> 00:28:54,430 Those are good ideas. 320 00:28:54,530 --> 00:29:00,470 But then each one of those agents potentially has access to multiple tools coming from multiple MCP servers. 321 00:29:00,770 --> 00:29:03,350 Like, you can see how this gets out of hand very quickly. 322 00:29:03,430 --> 00:29:16,090 I think zooming in on that single-agent use case and thinking how to build secure building blocks is a good start, but it all gets harder when you have inter-agent communication and new protocols, things like A2A that are coming out. 323 00:29:16,090 --> 00:29:18,830 I mean, we're pretty excited about that, but it makes the world harder. 324 00:29:19,390 --> 00:29:22,770 And yeah, I think we'll leave it at that. 325 00:29:22,770 --> 00:29:24,730 You really need to see the pictures for that one. 326 00:29:26,790 --> 00:29:27,650 All right. 327 00:29:27,650 --> 00:29:33,110 So just to close off, we do have a few key takeaways and security best practices. 328 00:29:33,110 --> 00:29:41,230 The whole point about AI security is that agents, the various protocols, MCP, A2A, they're still under construction. 329 00:29:41,230 --> 00:29:46,050 And all the while, we're just trying to contain the danger very loosely. 330 00:29:46,130 --> 00:29:48,330 But we do have some recommendations. 331 00:29:49,630 --> 00:29:51,950 Yeah, I think best advice. 332 00:29:51,950 --> 00:29:53,430 We'll go through this pretty fast. 333 00:29:53,430 --> 00:29:59,590 Number one is, do you really, really, really, really need a chat interface for your users? 334 00:29:59,730 --> 00:30:05,230 I think a pretty common misconception that AI just equals chat now because chat GPT is cool. 335 00:30:05,230 --> 00:30:06,110 It's not true. 336 00:30:06,110 --> 00:30:12,270 I think you can leverage generative AI without that for great good as a piece of how you integrate systems. 337 00:30:12,430 --> 00:30:16,350 And honestly, I think unless you really need it, you should avoid that. 338 00:30:16,350 --> 00:30:23,530 It allows you to eliminate a whole bunch of threats basically by system design or how you think about building your products from the ground up. 339 00:30:24,110 --> 00:30:30,090 Next, if you're really doing something that matters, bring your own MCP client. 340 00:30:30,090 --> 00:30:46,250 I think best cases we've seen is where teams take ownership of this and give themselves a high degree of familiarity over how tools are selected and how the AI is actually plugging into the deterministic software and serving information back. 341 00:30:46,250 --> 00:31:00,750 It also gives you basically one-stop shop where you can securely transmit user identity from deterministic UI land all the way back across the AI into your tool land. 342 00:31:00,750 --> 00:31:02,790 And that's gonna help you. 343 00:31:03,290 --> 00:31:07,710 Finally, I think we already talked about kind of standardizing permission models. 344 00:31:07,710 --> 00:31:17,010 But once you do that, I think best practice again is gonna be to segregate MCP servers and tools agent by agent by level of trust. 345 00:31:17,010 --> 00:31:21,010 Not everything needs to be completely locked down. 346 00:31:21,010 --> 00:31:25,550 Keep all of your publicly accessible stuff in one place. 347 00:31:25,550 --> 00:31:28,550 Keep all of your stuff that has one permission model in one place. 348 00:31:28,550 --> 00:31:34,710 I think leverage the fact that this also makes your implementation simpler to increase the level of security of your systems. 349 00:31:36,890 --> 00:31:42,370 Okay, after this chaotic talk, we have three takeaways for you. 350 00:31:42,370 --> 00:31:45,930 The first one is security basics still very much apply. 351 00:31:46,550 --> 00:31:52,430 About 75% of agents or AI security is just traditional security done well. 352 00:31:52,930 --> 00:31:55,630 Move carefully, design safely. 353 00:31:55,770 --> 00:32:01,430 Yes, we're on the AI hype train, but we can push the brakes a little bit. 354 00:32:01,570 --> 00:32:03,830 And then threat model everything. 355 00:32:03,830 --> 00:32:06,770 We didn't see the threat model today, but we will release the slides. 356 00:32:07,170 --> 00:32:08,970 And yeah, just continue testing. 357 00:32:11,030 --> 00:32:14,610 All right, I said I'd really like this to be interactive. 358 00:32:14,610 --> 00:32:15,650 You guys have been pretty shy. 359 00:32:15,650 --> 00:32:17,550 We have time for a couple of questions. 360 00:32:17,650 --> 00:32:19,530 Just shout it out, please. 361 00:32:19,530 --> 00:32:20,470 I'll repeat it. 362 00:32:47,640 --> 00:32:55,680 Yeah, the question was how to manage kind of all of the complexity of different whitelisted MCP servers and tools that are available, how to deal with that. 363 00:32:55,680 --> 00:33:05,780 And I think I don't have any specific tool recommendations, but I'd say that AI is changing kind of classical workflows into more like dynamic supply chain scenarios. 364 00:33:05,800 --> 00:33:06,980 Like what are we supplying? 365 00:33:06,980 --> 00:33:08,840 We're supplying answers to users. 366 00:33:08,840 --> 00:33:15,500 And so everything you know about, you know, supply chain attacks and protecting those very much still applies. 367 00:33:15,500 --> 00:33:20,420 You know, you shouldn't allow people to just pull in MCP tools from wherever. 368 00:33:20,460 --> 00:33:22,520 You know, you should lock that down somehow. 369 00:33:22,760 --> 00:33:27,720 You should audit those systems pretty regularly because the tools behind those servers can change. 370 00:33:28,040 --> 00:33:34,680 There's probably a few more, but I think the mental model you should have is like everything is a supply chain now. 371 00:33:35,240 --> 00:33:37,520 And I think we're getting kicked out. 372 00:33:37,520 --> 00:33:42,180 So thank you so much for bearing with us and the slides will be shared later today.