[00:00.000 --> 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. [00:12.760 --> 00:14.440] I'm Jeremiah. [00:14.880 --> 00:22.200] I work as the lead of a kind of worldwide AI delivery organization, more data scientists, engineers. [00:23.900 --> 00:29.220] Up, up, I can hold it closer to my mouth. [00:31.920 --> 00:33.880] Isn't technology fun? [00:34.140 --> 00:35.740] Anyway, I'm Jeremiah. [00:35.740 --> 00:40.900] I lead a group of engineers that build AI applications and this is my partner in crime. [00:40.900 --> 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. [00:53.340 --> 00:55.680] All right, small disclaimer. [00:55.680 --> 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. [01:04.800 --> 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. [01:14.870 --> 01:16.510] All right, let's see if this works. [01:16.510 --> 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. [01:23.350 --> 01:29.710] A few months ago, I did a talk on assistance and co-pilot security and how they came about. [01:29.710 --> 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. [01:37.590 --> 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. [01:54.230 --> 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. [02:01.990 --> 02:10.170] So this talk today is supposed to be about, fast forwards to August, 2025, the year of the agent. [02:11.210 --> 02:16.270] We see AI agents and MCP servers being deployed at huge speed. [02:16.270 --> 02:23.130] And now we are connecting these new systems to even more data than our co-pilots were connected to before. [02:24.550 --> 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. [02:31.170 --> 02:37.850] And I wanted to say that, so we've seen quite an evolution from assistants to agents. [02:37.850 --> 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. [02:43.350 --> 02:51.010] We have AI driven agents being widely developed for critical functionality across multiple sectors. [02:51.010 --> 02:55.850] They handle sensitive data, they automate operations and they inform decisions. [02:56.370 --> 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, [03:12.330 --> 03:15.210] even without actual human interaction. [03:16.550 --> 03:21.450] So we have quite a lot of articles for you guys today to follow. [03:21.450 --> 03:23.930] Sorry, we need to go through all the slides. [03:24.590 --> 03:26.550] We also have good agents. [03:26.550 --> 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. [03:38.230 --> 03:42.090] So they identify threats before they become zero days. [03:43.930 --> 03:45.030] All right. [03:45.030 --> 03:50.230] And as this stuff becomes more important, we also see this kind of proliferation of complexity. [03:50.230 --> 03:53.970] The state of agentic AI is getting more complicated. [03:54.510 --> 04:00.370] There are different types of agents, there's different levels of agents, there's different levels of sophistication within those. [04:00.530 --> 04:09.610] There's different design patterns for building software systems that use those agents, using reflection or planning or chain of thought. [04:09.610 --> 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. [04:19.650 --> 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. [04:27.430 --> 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. [04:33.790 --> 04:36.710] So it's a busy space. [04:37.670 --> 04:43.230] Finally, I think there's all of these different types of agents that word gets thrown around a lot. [04:43.230 --> 04:47.590] It's gonna get thrown around a lot today and keeping track of what's going on is really tough. [04:47.590 --> 04:55.650] So, as complexity increases, as the level of autonomy in these systems increases, so does the real world impact. [04:55.710 --> 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. [05:05.340 --> 05:09.540] Okay, so I'm just gonna give you a real world example. [05:10.380 --> 05:13.480] Has anyone here heard of AutoGPT? [05:14.560 --> 05:17.160] Nope, okay, a couple of people, that's good. [05:17.160 --> 05:19.180] So this is a real world incident, right? [05:19.180 --> 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. [05:29.860 --> 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. [05:39.660 --> 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. [05:48.580 --> 05:53.540] And tools are other software systems that they can interact with dynamically. [05:53.720 --> 05:59.280] And all of that is getting amplified with the advent of kind of emerging protocols like MCP. [05:59.640 --> 06:01.880] Show of hands, anybody, everybody? [06:01.940 --> 06:04.200] MCP, yeah, it's out there, right? [06:04.200 --> 06:05.440] We're dealing with it. [06:05.600 --> 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? [06:11.900 --> 06:17.740] You pick up this random code, you plug it into your AI system and you hope for the best. [06:17.860 --> 06:22.280] No, well, yes, that is actually what's happening but it's a terrible idea. [06:22.400 --> 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. [06:35.520 --> 06:41.120] You know, in its simplest form, an agent is an LLM plus a bunch of code that like wraps around it. [06:41.120 --> 06:44.920] And MCP gives you the ability to just plug in whatever you want there. [06:44.920 --> 06:46.840] Bring whatever you want. [06:47.220 --> 06:53.100] That's tremendously powerful but it also is just room for disaster, pretty much. [06:54.000 --> 06:55.940] That's all I have to say about that. [06:58.160 --> 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. [07:09.220 --> 07:15.600] So the diagram we had for you today was imagine an LLM host, like an ID or a copilot. [07:15.600 --> 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. [07:25.260 --> 07:27.840] So that's an extra layer of complexity. [07:27.840 --> 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. [07:33.460 --> 07:36.240] So that's a pretty good place to start. [07:36.500 --> 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. [07:50.940 --> 07:54.980] All right, we're talking about this really broad area of work. [07:54.980 --> 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. [08:03.040 --> 08:05.960] You know, there's a bunch of different patterns that apply depending on your use case. [08:06.000 --> 08:11.340] And everything that we're going to say next applies to what we consider to be high stakes AI. [08:11.760 --> 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. [08:23.920 --> 08:31.160] Over on the right, we have AI for killer robots and, you know, autonomous drone warfare. [08:31.160 --> 08:35.160] And if you do that, like, please, I hope you know more about it than we do. [08:35.160 --> 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. [08:41.240 --> 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. [08:48.720 --> 08:50.020] That's pretty high stakes. [08:50.020 --> 08:51.540] You don't want that shit to fail. [08:51.540 --> 08:53.540] So that's what we're going to be talking about. [08:56.950 --> 09:01.930] Okay, so the next point is all going to be, it's going to be all about the top 10. [09:01.930 --> 09:06.030] So everyone here knows the OS top 10 for web apps, right? [09:06.050 --> 09:06.710] Cool. [09:06.710 --> 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. [09:15.110 --> 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. [09:29.990 --> 09:31.790] System prompt leakage. [09:33.830 --> 09:34.810] Sorry. [09:34.810 --> 09:37.730] It's all about, it's unique to LLMs, obviously. [09:37.770 --> 09:42.650] It's about exposing the internal instructions for a model's behavior. [09:42.650 --> 09:44.790] We have vector and embedding weaknesses. [09:44.790 --> 09:50.370] Again, specific to LLM systems using retrieval, augmented generation and embedding techniques. [09:50.370 --> 09:52.370] And then lastly, misinformation. [09:52.530 --> 09:55.910] The whole point of this technology is that it's generative, generative AI. [09:55.910 --> 10:01.770] So you can generate and propagate false or misleading information if you don't check it. [10:03.350 --> 10:06.010] Then imagine this again on a slide. [10:06.010 --> 10:11.390] We wanted to compare the OWASP top 10 for LLMs with the agentic AI threats. [10:11.390 --> 10:18.350] So OWASP has also released a document which is all about threats and mitigations in agentic AI. [10:18.510 --> 10:26.850] And we still have risks like prompt injection, data disclosure, model poisoning, unbounded resource consumption. [10:26.850 --> 10:31.750] And all of these things now become more dangerous because agents can persist states. [10:31.750 --> 10:36.050] They can invoke external tools, probably also escalate privileges. [10:36.050 --> 10:38.450] And they also operate across workflows. [10:38.690 --> 10:44.990] And they can flood human reviewers with more alerts than possibly managed. [10:45.350 --> 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. [11:01.190 --> 11:10.950] When it comes to leaking system prompts, we can expose sensitive details like guardrails, authentication tokens, or systems instructions through agents. [11:10.970 --> 11:17.330] This information can help attackers obviously impersonate agents just like they do impersonate normal users. [11:17.890 --> 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? [11:24.970 --> 11:27.430] It's very, very difficult to figure out who's done what. [11:27.430 --> 11:28.190] Is it a human? [11:28.190 --> 11:29.090] Is it an agent? [11:29.090 --> 11:32.470] If you don't have any kind of authorization in place. [11:32.990 --> 11:37.330] The next one was all about RAG and embedding weaknesses. [11:37.670 --> 11:39.570] This highlights a real risk. [11:39.570 --> 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. [11:49.610 --> 11:54.870] The security controls that you have in place can be bypassed and sensitive workflows can be poisoned. [11:54.870 --> 11:59.250] So all of these things can happen without obvious signs, again, through agents. [12:00.310 --> 12:05.550] Yeah, and finally, we want to focus a little bit also on misinformation and what that means in an agentic world. [12:05.650 --> 12:09.250] Like, we all know, you know, at this point, like, LLMs can hallucinate. [12:09.250 --> 12:10.410] They can get things wrong. [12:10.410 --> 12:12.690] Not everything on the internet is true. [12:12.870 --> 12:13.990] I hope. [12:14.110 --> 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. [12:27.110 --> 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. [12:43.270 --> 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? [12:50.370 --> 12:54.450] Every time that memory is reloaded, the attack potentially reruns. [12:54.690 --> 12:58.110] And, you know, it's a big source of problems in these systems. [13:00.790 --> 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. [13:07.410 --> 13:10.410] There is actually going to be a top 10 for agentic AI. [13:10.410 --> 13:14.750] The kickoff for the entire project was on Wednesday this week with OWASP. [13:14.750 --> 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. [13:24.250 --> 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. [13:33.050 --> 13:35.630] But yeah, let's move on to AI agents and MCP. [13:36.610 --> 13:40.330] All right, well, at this point, I hope we've convinced you this is kind of a real problem. [13:40.330 --> 13:42.390] There's a lot of kind of emerging threats. [13:42.390 --> 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. [13:49.590 --> 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. [13:55.630 --> 14:03.870] And I'll just share, first of all, that, like, nobody agrees on a definition of agent or agentic. [14:03.890 --> 14:09.870] You know, I think OpenAI, Anthropic, NVIDIA, Google, everybody out there has a slightly different take on this. [14:09.870 --> 14:13.450] We all agree there are different, like, autonomy is important. [14:13.670 --> 14:17.830] It has something to do with workflows and taking action. [14:17.830 --> 14:20.410] It has something to do with calling on external systems. [14:20.410 --> 14:24.930] But everybody I just sort of named there also has something to sell us. [14:24.930 --> 14:27.590] And that's part of the problem. [14:27.850 --> 14:30.410] So I'd put it to you this way. [14:30.410 --> 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? [14:41.850 --> 14:44.830] We have to be just as dynamic in that landscape. [14:45.750 --> 14:50.810] Luckily, you don't have to completely reinvent, you know, like a taxonomy for this. [14:50.810 --> 14:52.450] You don't have to completely reinvent the wheel. [14:52.450 --> 14:57.010] There's a lot of information out there that still very much applies, just like those top 10 lists. [14:57.590 --> 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. [15:04.810 --> 15:07.810] And it starts very low, you know, reflexive. [15:07.810 --> 15:09.930] I think that means an if-then statement. [15:09.970 --> 15:11.630] Then model-based agents. [15:11.750 --> 15:15.730] That's an if-then statement with a random number generator attached to it. [15:16.090 --> 15:17.970] Nothing too fancy there. [15:17.970 --> 15:22.430] But these days, you know, LLMs have allowed us to build goal-based agents. [15:22.430 --> 15:24.770] Utility-based agents and learning agents. [15:24.770 --> 15:28.290] And with each stage of that evolution comes new threats. [15:28.350 --> 15:32.430] So when we get to learning agents, you have memory. [15:32.670 --> 15:35.590] You know, you need to be able to process what a user put in. [15:35.710 --> 15:41.710] And, you know, that opens you up to leaking internal state, incremental takeovers and misdirection. [15:41.710 --> 15:44.330] And like I mentioned before, denial of service. [15:44.670 --> 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. [15:51.810 --> 15:57.670] Because, you know, that autonomous decision-making means the tools can be selected dynamically. [15:57.750 --> 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. [16:05.450 --> 16:10.570] So we wanted to give a bit of a breakdown, you know, starting with the state of the world. [16:10.570 --> 16:12.310] What do these agentic systems look like? [16:12.410 --> 16:14.650] And how can you think about protecting them? [16:14.930 --> 16:17.770] And you're just going to have to see this in your head right now. [16:17.770 --> 16:18.530] I'm sorry. [16:18.530 --> 16:22.790] But most agent systems, you know, look the same. [16:23.130 --> 16:28.350] There's sort of a user over here and a UI, you know, that they interact with. [16:28.350 --> 16:33.330] Often that comes with a chat interface, because everybody here loves chat, right? [16:34.110 --> 16:41.610] And then you're talking to a backend system that has, you know, an MCP server and a selection of tools. [16:41.610 --> 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. [16:50.570 --> 16:56.090] And then we cross a trust boundary into server land where tool selection happens. [16:56.090 --> 17:00.650] And that is inherently a bit insecure for a few reasons. [17:00.810 --> 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. [17:11.090 --> 17:12.410] It's a little hard to see. [17:12.410 --> 17:14.130] I promise I had a picture. [17:14.590 --> 17:16.930] And that opens you up to prompt injection. [17:16.930 --> 17:20.730] That opens you up to, you know, system prompt escape. [17:20.730 --> 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. [17:31.470 --> 17:33.090] How can you make that more secure? [17:33.610 --> 17:35.410] There's a few things, I think. [17:36.870 --> 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. [17:45.770 --> 17:46.870] Most of them were not. [17:46.870 --> 17:55.610] These are different APIs and databases with different role-based access control systems, possibly different auth technology behind the scenes. [17:55.730 --> 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. [18:05.250 --> 18:07.090] This results in a lot of problems. [18:07.090 --> 18:08.150] What can you do? [18:08.750 --> 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. [18:16.710 --> 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. [18:25.610 --> 18:28.530] That's not going to be the MCP server. [18:28.530 --> 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. [18:38.010 --> 18:40.670] That's a bit more security by design. [18:41.450 --> 18:43.010] What else can you do? [18:44.250 --> 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. [18:59.170 --> 19:03.950] We talk all the time about shifting left on security, and that's a good idea, right? [19:03.950 --> 19:08.990] Let's get more involved earlier and earlier in the software development life cycle, because that makes us good. [19:08.990 --> 19:14.010] What I'm saying here is you actually should shift right on AI. [19:14.010 --> 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. [19:29.230 --> 19:31.870] And I think this comes with a cost. [19:31.870 --> 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. [19:39.470 --> 19:41.410] And you could certainly do that. [19:41.410 --> 19:46.650] But I think by both isolating your MCP server, you get good tool isolation. [19:46.650 --> 19:50.030] You don't have to worry about the lacking S in MCP. [19:50.030 --> 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, [20:10.050 --> 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. [20:18.650 --> 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. [20:26.590 --> 20:32.030] Okay, now I have the very, very tough job of making you imagine some threat modeling. [20:32.730 --> 20:36.590] Um, we had diagrams, but let me just try. [20:36.930 --> 20:38.050] So, let's see. [20:38.050 --> 20:40.810] So, imagine, if you will, a single agent system. [20:40.810 --> 20:47.830] We have an end user over here, they're interacting with, you know, one agent, and then a selection of tools. [20:47.830 --> 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. [20:55.090 --> 20:57.290] So, Andra, what would some of those tools be? [20:57.290 --> 20:58.570] What does that system look like? [20:59.390 --> 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. [21:10.790 --> 21:15.110] You then have the MCP environment with your client and your server. [21:15.570 --> 21:19.790] And then at the, for you, it's going to be this right, the other right. [21:19.810 --> 21:24.310] At the end, you have your payroll system, which has various endpoints. [21:24.310 --> 21:32.010] Think of querying payslips, updating payroll data, adjusting payslips and salaries, and then generating some reports. [21:32.010 --> 21:33.870] So, just those four endpoints. [21:33.870 --> 21:36.450] And then all those are part of your payroll application. [21:37.090 --> 21:41.010] If we want to do threat modeling, the first thing we want to do is think of trust boundaries, right? [21:41.010 --> 21:43.970] So, we now have three trust boundaries that we can think of. [21:43.970 --> 21:46.790] You have the external one for your users. [21:47.350 --> 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. [21:53.510 --> 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. [22:02.310 --> 22:06.550] So, we wanted to talk to you about three threat scenarios today. [22:06.550 --> 22:10.310] We have prompt injection, data leak, and business logic. [22:10.310 --> 22:12.610] The first two, obviously, relate to security. [22:12.610 --> 22:14.010] The last one, business logic. [22:14.010 --> 22:17.930] It's all about the functionality of the actual payroll system. [22:18.670 --> 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, [22:37.730 --> 22:42.470] and calls the host through the end application, through your payroll application. [22:43.670 --> 22:50.470] The agent host triggers the LLM, right, with the natural language query that comes in from the user. [22:51.130 --> 22:55.870] The LLM then connects to the MCP client and triggers a tool selection. [22:57.010 --> 23:00.010] The MCP client is in charge of selecting the tool. [23:00.930 --> 23:06.070] And then the payload itself gets to your payroll application or your payroll system. [23:06.130 --> 23:10.470] I do appreciate, it's very, very difficult to figure this out if we don't have the diagram. [23:10.990 --> 23:17.110] But yeah, think of the tool description itself that the payroll application is receiving can contain any arbitrary data. [23:17.110 --> 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. [23:24.990 --> 23:28.690] That's where you would get a prompt injection at the level of the payroll application. [23:28.950 --> 23:33.430] And then we can also have prompt injection from the tool output, right? [23:33.430 --> 23:43.090] So your payroll application contains various tools, those endpoints that we talked about, querying payslips, adjusting the salaries, generating reports. [23:43.090 --> 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. [23:52.290 --> 23:54.610] And you can have unsanitized output. [23:54.610 --> 23:59.270] The LLM itself will implicitly trust anything that comes from your MCP client, right? [23:59.270 --> 24:01.650] Because it doesn't check anything at that level. [24:01.650 --> 24:03.610] So you can have prompt injection there as well. [24:04.270 --> 24:07.670] We had a nice slide where we also added a couple of controls. [24:07.730 --> 24:09.390] Think of security controls, right? [24:09.390 --> 24:12.470] Just examples, we're not gonna have an exhaustive list today. [24:12.470 --> 24:15.450] You can have input sanitization, not rocket science. [24:15.450 --> 24:17.090] We've already seen this before. [24:17.090 --> 24:20.850] And then at the level of the LLM, guardrails. [24:21.570 --> 24:27.210] I have heard engineers ask me in previous lives, why do they need LLM guardrails? [24:27.210 --> 24:29.470] Well, this might be a good example for them. [24:30.270 --> 24:33.970] That's just another defense in depth check that we can add. [24:34.150 --> 24:40.590] If we think of data leak, I mentioned that one of the endpoints that this application has is querying payslips. [24:40.590 --> 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. [24:55.330 --> 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. [25:03.590 --> 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. [25:15.250 --> 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. [25:28.670 --> 25:31.150] And I think, you know, luckily it was private repos. [25:31.150 --> 25:37.330] It was not actually everybody's payroll or something like that, but the threat is real, the model is real. [25:37.330 --> 25:40.630] And I think there's a few things you can do to prevent that from happening. [25:40.630 --> 25:45.490] We already talked about uniformizing access controls and permission models. [25:45.490 --> 25:46.790] What else can you do, Andra? [25:48.870 --> 25:53.730] Well, if we talk about data leaks, some sensitive or PII data scraping. [25:53.730 --> 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. [26:03.110 --> 26:06.590] And of course, yeah, least privilege access and ACLs. [26:06.750 --> 26:10.090] Again, these are just some examples, controls that we've seen before. [26:10.090 --> 26:13.750] Reinventing the wheel, but it's still good practice to introduce them. [26:14.230 --> 26:18.030] I also mentioned that the last threat scenario was business logic. [26:18.030 --> 26:23.510] So this system that we have, right, can also make adjustments to someone's salary. [26:23.510 --> 26:26.270] And what happens if someone gets a salary of $1 billion? [26:26.690 --> 26:31.250] They just ask for it to be adjusted and they might get a nice payout. [26:32.190 --> 26:36.790] The example of controls here would just be logging and monitoring, right? [26:36.790 --> 26:39.470] Again, best practice, we've already known this. [26:39.470 --> 26:44.950] Try to get the audit trail in check so that you know if any of these requests come in. [26:44.950 --> 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. [26:59.470 --> 27:01.210] Yeah, next. [27:01.570 --> 27:05.670] Yeah, I think one thing that we're finding is that AI is causing a lot of code to move around. [27:05.670 --> 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. [27:20.050 --> 27:24.010] But I think the good news is there are a lot of guardrails that you can put in place. [27:24.010 --> 27:25.790] It's not completely new. [27:25.810 --> 27:28.210] And it's all the classics here. [27:28.210 --> 27:29.330] It's input sanitization. [27:29.330 --> 27:30.910] It's logging and monitoring. [27:30.910 --> 27:37.450] LLM guardrails and the fancy word is constitutional self-critique where you say, no LLM, really. [27:37.450 --> 27:39.150] Pretend you're like a good ethical actor here. [27:39.150 --> 27:40.370] Double check the output here. [27:40.370 --> 27:43.650] It doesn't completely solve the problem, but it gets you very far. [27:44.310 --> 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. [27:51.870 --> 27:52.850] That's not a good idea. [27:52.850 --> 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. [27:59.230 --> 28:01.670] I think that's best practice here. [28:03.250 --> 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. [28:11.070 --> 28:15.150] So I think I've got a friend in the audience that said this is a very interesting space. [28:15.150 --> 28:16.050] There be dragons. [28:16.050 --> 28:19.910] So just let's just try to figure this out together. [28:21.070 --> 28:25.310] We had a bit of threat modeling ideas with a multi-agent system. [28:25.310 --> 28:27.630] But again, this is going to be very complicated to describe. [28:27.630 --> 28:29.210] I'm not even going to attempt it. [28:29.730 --> 28:31.150] But yeah, we have a concept. [28:31.570 --> 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? [28:39.230 --> 28:42.170] So just bear with me for a second. [28:42.170 --> 28:43.790] I think you have an end user. [28:43.790 --> 28:46.230] They're connecting to a backend system. [28:46.410 --> 28:48.470] There's maybe an orchestration agent. [28:48.470 --> 28:53.470] And then there's lots of other agents, maybe segregated by domain, maybe segregated by trust level. [28:53.470 --> 28:54.430] Those are good ideas. [28:54.530 --> 29:00.470] But then each one of those agents potentially has access to multiple tools coming from multiple MCP servers. [29:00.770 --> 29:03.350] Like, you can see how this gets out of hand very quickly. [29:03.430 --> 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. [29:16.090 --> 29:18.830] I mean, we're pretty excited about that, but it makes the world harder. [29:19.390 --> 29:22.770] And yeah, I think we'll leave it at that. [29:22.770 --> 29:24.730] You really need to see the pictures for that one. [29:26.790 --> 29:27.650] All right. [29:27.650 --> 29:33.110] So just to close off, we do have a few key takeaways and security best practices. [29:33.110 --> 29:41.230] The whole point about AI security is that agents, the various protocols, MCP, A2A, they're still under construction. [29:41.230 --> 29:46.050] And all the while, we're just trying to contain the danger very loosely. [29:46.130 --> 29:48.330] But we do have some recommendations. [29:49.630 --> 29:51.950] Yeah, I think best advice. [29:51.950 --> 29:53.430] We'll go through this pretty fast. [29:53.430 --> 29:59.590] Number one is, do you really, really, really, really need a chat interface for your users? [29:59.730 --> 30:05.230] I think a pretty common misconception that AI just equals chat now because chat GPT is cool. [30:05.230 --> 30:06.110] It's not true. [30:06.110 --> 30:12.270] I think you can leverage generative AI without that for great good as a piece of how you integrate systems. [30:12.430 --> 30:16.350] And honestly, I think unless you really need it, you should avoid that. [30:16.350 --> 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. [30:24.110 --> 30:30.090] Next, if you're really doing something that matters, bring your own MCP client. [30:30.090 --> 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. [30:46.250 --> 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. [31:00.750 --> 31:02.790] And that's gonna help you. [31:03.290 --> 31:07.710] Finally, I think we already talked about kind of standardizing permission models. [31:07.710 --> 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. [31:17.010 --> 31:21.010] Not everything needs to be completely locked down. [31:21.010 --> 31:25.550] Keep all of your publicly accessible stuff in one place. [31:25.550 --> 31:28.550] Keep all of your stuff that has one permission model in one place. [31:28.550 --> 31:34.710] I think leverage the fact that this also makes your implementation simpler to increase the level of security of your systems. [31:36.890 --> 31:42.370] Okay, after this chaotic talk, we have three takeaways for you. [31:42.370 --> 31:45.930] The first one is security basics still very much apply. [31:46.550 --> 31:52.430] About 75% of agents or AI security is just traditional security done well. [31:52.930 --> 31:55.630] Move carefully, design safely. [31:55.770 --> 32:01.430] Yes, we're on the AI hype train, but we can push the brakes a little bit. [32:01.570 --> 32:03.830] And then threat model everything. [32:03.830 --> 32:06.770] We didn't see the threat model today, but we will release the slides. [32:07.170 --> 32:08.970] And yeah, just continue testing. [32:11.030 --> 32:14.610] All right, I said I'd really like this to be interactive. [32:14.610 --> 32:15.650] You guys have been pretty shy. [32:15.650 --> 32:17.550] We have time for a couple of questions. [32:17.650 --> 32:19.530] Just shout it out, please. [32:19.530 --> 32:20.470] I'll repeat it. [32:47.640 --> 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. [32:55.680 --> 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. [33:05.800 --> 33:06.980] Like what are we supplying? [33:06.980 --> 33:08.840] We're supplying answers to users. [33:08.840 --> 33:15.500] And so everything you know about, you know, supply chain attacks and protecting those very much still applies. [33:15.500 --> 33:20.420] You know, you shouldn't allow people to just pull in MCP tools from wherever. [33:20.460 --> 33:22.520] You know, you should lock that down somehow. [33:22.760 --> 33:27.720] You should audit those systems pretty regularly because the tools behind those servers can change. [33:28.040 --> 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. [33:35.240 --> 33:37.520] And I think we're getting kicked out. [33:37.520 --> 33:42.180] So thank you so much for bearing with us and the slides will be shared later today.