Latest / Agentic Conversations (formally mlops.community) / Fraud Detection in the AI Era // Rafael Sandroni // #301
Transcript
- 0:00I'm Rafael Sondroni. I'm the founder of the Guardian
- 0:04AI is AI security company. Usually I mix Brazilian cough
- 0:09with Italian mocha, so that's the best combination.
- 0:13But I also I like the espresso. We'll be back for another
- 0:17Envelopes community podcast. I'm your host, Dimitrios, and
- 0:20today we're talking with Rafa all about the security vectors
- 0:24that you got to watch out for when it comes to building apps
- 0:27or just using LLMS. I particularly enjoyed the moment
- 0:33that we touched on traditional fraud detection that he's done
- 0:37at places like New Bank, New and New.
- 0:41Shout out to their engineering blog.
- 0:43And then we contrast that with these days, the kind of fraud
- 0:48that you can do when it comes to LLMS and if you have AI systems
- 0:54in place. Let's get into this conversation
- 0:56with my man Rafa. I know you were working on Siri,
- 1:04and I know that you were doing stuff that was to help Siri
- 1:08understand other languages, but Siri's been around for a while.
- 1:13It's also been pretty wild how the evolution of Siri has been
- 1:17happening. And you posted some stuff that
- 1:20caught my eye on LinkedIn about like how to make assistance, AI
- 1:26assistance better. Things that you need to like
- 1:28keep in mind when you're creating AI assistance, what are
- 1:34some of these things that you've recognized as best practices
- 1:37that you can share from your time doing that?
- 1:40And I know Apple has some pretty strong NBA, so you don't need to
- 1:44get into specifics, but just what are some key learnings?
- 1:49OK, So what I understand is that with the LMS, the the APIs and
- 1:55So what is it's much easier to everyone to create AI
- 2:00assistance. And based on my experience, I
- 2:04don't know, Siri is the one of the like top five AI users in
- 2:08the world. It's a huge problem to make sure
- 2:12that everything is going like a testing, make sure that the
- 2:16response have a is like a kind of quality, but also the
- 2:21orchestration like a depending of the what AI assistant is
- 2:25this? So you need to orchestrate,
- 2:28integrate with APIs. You need to make sure that
- 2:32everything is integrated test disintegrated because I don't
- 2:37know, it makes you need to make sure that you have contracts
- 2:40between the integration, the tasks as well.
- 2:42So you can see recently using a mix of AI and human your task.
- 2:48Yeah, I also like the task is one of the most important part.
- 2:51Like if you are creating some value for people, you need to
- 2:56make sure that the AI the this AI assistant is like working
- 3:00well, you don't have kind of regression.
- 3:04So I work at at city on some components to make sure large
- 3:08rails to make sure that you don't have a kind of answers
- 3:12referencing like a kind of profanity and competitors.
- 3:16And So what, and if you think about, I don't know, a bank
- 3:20using this is a regular regulatory markets that have a
- 3:25kind of regulatory as well. You need to make sure that the
- 3:29answers of this AI is you have a kind of control, right?
- 3:34Oh yeah. So we're capting tests, the
- 3:36integration make sure have a kind of contract and also
- 3:40controlling like I have like gradual rails or controlling the
- 3:44output is like then a good start point I feel.
- 3:49Like Siri is the ideal abstraction layer that I want an
- 3:54agent to play at or an assistant because it can do anything on
- 3:58the phone and it can go into the apps.
- 4:01I wish it could go deeper into the apps, right?
- 4:03But I guess that's just each app has to make things discoverable
- 4:08for Siri. And so there's this question, do
- 4:12I want to have my own AI assistant inside of my app, or
- 4:16do I want to have Siri be the AI assistant inside of my app and
- 4:21that type of thing potentially, or what different apps have to
- 4:27grapple with all the time. You were doing the guardrails
- 4:30before guardrails were cool and before there was these huge
- 4:33blunders. So it's funny to think about if
- 4:36you didn't do your job well, Apple could have been the Air
- 4:41Canada. It could have had that brand
- 4:44awareness that no brand really wants.
- 4:47But then I know you went and after you working at Apple, you
- 4:51went and worked for one of my favorite engineering blogs of
- 4:54all time, which was Nubank, right?
- 4:56And Nubank is awesome because of how transparent they are in
- 5:02their engineering blog. I think they're, I say this a
- 5:07lot, but I don't say it enough. The Nubank Engineering blog.
- 5:11I've learned so much from them and they are so transparent that
- 5:17I'm thankful for that. What were you doing at Nubank?
- 5:23Yeah. So it's a little bit complex
- 5:25because I spent almost three years over there and I had the
- 5:29opportunity to work together with the part of this thing.
- 5:34But I, I guess the important part the, the thing that I like
- 5:38at New Bank is like a sharing like like dollars.
- 5:41So you have a lot of, let's say, workforce meetups internally to
- 5:46make sure that everyone is in the same bar.
- 5:50And my, my first experience at New Bank was interesting because
- 5:53I was part of, let's say a new feature internally, you as you
- 5:58are building a personal finance assistant for New Bank users.
- 6:03And it was part of my startup my that I founded years ago.
- 6:09And you had the opportunity to create the basis of this AI
- 6:14assistant. And the funny that the funny
- 6:16part, I was new bank decided to, to buy one of my computer,
- 6:22computer stores like a personal files management app.
- 6:26And it was part of the due diligence and they're sending
- 6:29internal tools and so well, so it was a interesting part
- 6:33building this AI assistance, I guess now is part of the new Bay
- 6:37Gap, helping people to have savings, controlling the
- 6:40savings, have a better planning, financial planning.
- 6:44And but after that, it was part of like a fraud team.
- 6:48Fraud team like was basically the same.
- 6:51And the challenges was like, I guess.
- 6:54Maybe you? You saw this blog post about the
- 6:58real time machine learning for machine learning models for
- 7:00fraud, I guess everything tech and bank, you have this such
- 7:04challenge like understanding blocking fraudsters in
- 7:09transactions online or like onboarding for new customers.
- 7:13And yeah, I had the opportunity to like create the tools like
- 7:17doing retraining models automatically for to understand
- 7:21and locate the models with like a new patterns and also
- 7:26improving this the performance side this model.
- 7:28So I has I have the design interesting bug post about this.
- 7:34Yeah. And that was all traditional ML,
- 7:36right? So you went from, yeah, with
- 7:38Siri, you were working on traditional ML or you were doing
- 7:42the guardrails or you were doing software engineering.
- 7:46What do you feel like the evolution was there between
- 7:49those two? Yeah, it's a kind of funny to
- 7:53say traditional ML because I don't when you say MLP, I
- 7:58believe it's traditional ML, right?
- 8:01But yeah, but I believe everything is connected, right.
- 8:05Probably in a level of maturity of AI, you need to implement
- 8:10traditional ML, you need to go out of APIs and implements a
- 8:16kind of some of those internally to have more control.
- 8:20So not only the lens to use open source, but also I don't know if
- 8:24you need to watch Rails, probably the best way to go to
- 8:28traditional NLP like a cost fire using small language models and
- 8:33implement this. But the challenges is like
- 8:35around not on the AI, but the soft engineering like how to
- 8:38deploy. Yeah.
- 8:39So I I believe that everything is connected.
- 8:43It's easier right now to use. We start using AI, right.
- 8:47But I guess the challenge is the same of the four or five years
- 8:50ago. So if you need traditional ML.
- 8:52So the chart is the same all right now.
- 8:56Talk to me about what you've been learning about recently.
- 9:01Yeah, so this is the the interesting part of this talk,
- 9:05but I left Apple months ago to start something and I, I started
- 9:10learning about the ICQ to how to make sure that every AI
- 9:14application AI assistant is like it have it's protected guys like
- 9:19fraudsters, hackers and so on. So I started with the wasp top
- 9:26thing for LMS. So later I joined as a neighbor to understand more
- 9:30the challenges and it's a huge problem to be honest.
- 9:34Everyone that I'm talking about like a banks, larger fintechs,
- 9:38healthcare companies, legal, we start-ups local like everyone is
- 9:43like implementing, but it's a kind of challenging stopped
- 9:47because you need to make sure you need to some people like so
- 9:51basically. They want to get hacked and then
- 9:53they want to put a password manager in place.
- 9:56Yeah. So basically so depends of the
- 10:00future of the the company. So I guess the banks and the
- 10:03financial markets more like aware of these risks.
- 10:06So, so they they face the same challenges on the softer side.
- 10:10So probably the AI, they are taking care of this.
- 10:14But that's an interesting part. I would say that you have two
- 10:19components of to make sure that to implement like secured
- 10:25standards on AI. So the first is you need to
- 10:29implement the AI following a zero trust approach.
- 10:33So make sure that you have the permissions, the credentials and
- 10:38the integration is safe. But after that you need to do
- 10:43like a kind of task security task.
- 10:45So write a teaming the same way that you have like a Bing task
- 10:48in the software side. So to discover the
- 10:52vulnerabilities, understanding these vulnerabilities like you
- 10:56have the opportunity to fix on your implementation or implement
- 11:00use word rails. So the the second part is a way
- 11:04to following the zero trust approach.
- 11:07Well, you don't believe that you don't believe that the LM is 100
- 11:12safe and you can blame it to just guard rails, not one for
- 11:15the security, but also let's say to prevent like a kind of
- 11:20hallucinations, a kind of off top.
- 11:24And and so and the secured part of the guard rails is very
- 11:28challenging because these guard rails you should learn you
- 11:33should this model should know what partners what's what's like
- 11:39a prompt ejection methods that have more effectiveness.
- 11:44So to block these attempts. Yeah, so overview of the ICQ, I
- 11:49would say like a starting on the AI application.
- 11:52So have to this confidence. So as you're looking at these
- 11:56different vectors that LMS can be basically corrupted on, and
- 12:02you're thinking about guard rails, you're also thinking
- 12:04about zero trust. First of all, I would love to
- 12:07understand what you mean by zero trust for the LLMS. What does
- 12:11that actually look like in practice?
- 12:15The same approach like when you implement the software.
- 12:18So make sure that you don't have the, you have the access just
- 12:22for that function for that X for that reserves.
- 12:27So yeah, it's the same thing. So if you have AI assistant that
- 12:31have access to APIs and other tools like making sure that the
- 12:36scope is very defined at the access, the permission is like
- 12:40very defined. Basically it's like approach
- 12:42that's the developers the the dev team can follow when, when
- 12:47and just in the implementation. Yep, they said it's.
- 12:52Like it's, it's more like a mindset.
- 12:54And trying to limit the scope, which is a hard thing to do.
- 12:59Or it's a very fine line because with the LMS, they generally
- 13:04perform better the more context you give them, and so you want
- 13:07to give them as much context as possible as long as it is the
- 13:13right permissions. And so trying to figure that out
- 13:17and trying to architect your system in a way that is going to
- 13:21know who has permission to what can get a little tricky.
- 13:25Have you seen good ways of doing that?
- 13:28What do you mean about the permission here?
- 13:30So I guess it would be like who has access to what data?
- 13:33Who has access to what documents, that type of
- 13:36permission? And then because you don't want
- 13:40an LLM to be able to it maybe it has access to every database or
- 13:47every channel in Slack. But if I'm asking a question, I
- 13:51don't have access to every channel in Slack, right?
- 13:55And then all of a sudden the LLM does.
- 13:57And so I'm able to find out things that I am not Privy to.
- 14:03Yeah, So this is a part of making sure like the fighting
- 14:06what's the most important data to share if they I so you don't
- 14:12have to share out of the your database with the eyes and and
- 14:16maybe you don't need to share off out of your table data table
- 14:20for with AI. So it's complex, but I guess is
- 14:26is following this mindset and being more like a restrictive
- 14:31about the data. And then what?
- 14:35So we were talking about the different attack vectors that
- 14:38you've been seeing, and one of them was jailbreaking.
- 14:42One of them was red teaming. I think people have seen a lot
- 14:45of examples of those on the Internet.
- 14:47What have you been thinking about when it comes to the
- 14:50security vulnerabilities and then making sure that guardrails
- 14:54work? Like how do you architect the
- 14:56guardrails so that they are more effective?
- 14:59I guess the the most challenging vulnerability of AI is the the
- 15:04prompt injection. So we can pass some contacts, do
- 15:08a kind of social engineering with AI and then I don't know,
- 15:13some have access to some data. The system prompt will be like
- 15:17the first step to understand more dynamic of AI or AI agent.
- 15:22I believe like implementing the right gradual rails to prevent
- 15:30that to have, let's say malicious inputs that can affect
- 15:34your LM or your AI agents like the chain of LMS you'll be,
- 15:40you'll be like the best practices.
- 15:43So that's what I'm saying seeing right now in the industry.
- 15:48So it's not the finally, it's a kind of mitigation, it's like a
- 15:51one it's not 100%, but you can eliminate a good part of
- 15:55fraudsters or or malicious users that can try to expose your EI.
- 16:01So and usually this was your real.
- 16:04So you you implement this as like a Euro time is you are
- 16:08implementing the orchestration and it's working real time
- 16:11blocking some some patterns. And also if you have application
- 16:17on that, that have access to the Internet or documents or data
- 16:22that you are not the owner, you should make sure that you can
- 16:27you should like a filter and make sure that you don't have an
- 16:30indirect injection. So there's an example very
- 16:35interesting as an example from the conference coloured Black
- 16:39Hat of when a guy trying to the Microsoft Copilot that was
- 16:45configured through summarize emails.
- 16:49And basically it it open vulnerability.
- 16:53It said, I external person can code send an e-mail to this
- 16:59corporation and then use our gap.
- 17:01So every e-mail could be like a summarize it.
- 17:04And in the last step, let's say replied with the AI agent
- 17:09depending of the topic and this external user standard e-mail
- 17:13with a prompt injection hidden bit by the human eyes, but like
- 17:18a using encoding and colours. But the I code understand and
- 17:22they it is starting sending phishing emails for every use
- 17:28e-mail in the user base. So it's a example.
- 17:31So if I have access to external Rd., you should make sure that
- 17:35you don't trust on the the prompt instructions.
- 17:40Don't put your word rails on the system prompt user use like a
- 17:44independent models, machine learning models to filter and
- 17:50detect this kind of let's say Potters.
- 17:53So it's it's very challenging again, because it's not 100%.
- 17:58You can like it's just a mitigation.
- 17:59So you can be like 100% safe, but so.
- 18:02Let me see if I understood that Black Hat example, because that
- 18:06is a new one that I haven't heard before, where if someone
- 18:11is using Copilot and it's in their e-mail, then you can get a
- 18:17phishing e-mail that has white on white text.
- 18:22So white text on a white background that the human eye is
- 18:26not going to see, but the copilot will see and it will
- 18:30think, oh cool, I can summarize this.
- 18:33And when it summarizes it, then that goes into the LLM and it
- 18:37does an indirect prompt injection, which says basically
- 18:41send an e-mail or summarize this e-mail and send it back to XYZ.
- 18:47And so if you don't have two things in place, one, just the
- 18:51human touch that needs to OK the send or return reply e-mail, or
- 18:59two, that you have some kind of a external independent critic
- 19:05that is judging what the copilot LLM call or agent is doing.
- 19:13And then it's saying, hey, look, here's all the information.
- 19:17Here's what I did. Is this correct?
- 19:20Here's the prompt, here's what I've done, here's what
- 19:24information I got. And then you have that judge
- 19:28that says yes or no, this is correct or this isn't.
- 19:31You might want to go back to Step 1.
- 19:33So you could get into a whole lot of trouble if that is not
- 19:37what you're doing and how you're architecting it.
- 19:39So I've I've seen that in a way that type of design pattern
- 19:43where you have almost like this catch all critic at the end and
- 19:47you can throw everything into it and you can say looking at all
- 19:51of these steps, this is what I've done.
- 19:53What do you think? Is this the right way of doing
- 19:56it? Yeah.
- 19:58I guess the point is that looking for the you have a judge
- 20:01and the name is a judge and the the same vulnerability that you
- 20:06have in the LM we have on these LMS that judges I guess.
- 20:10The solution that I'm saying these are like a using
- 20:12traditional machine learning classifiers and that you don't
- 20:17have the same vulnerability of the LLM is popped by LLM and
- 20:22then we can mitigate don't have don't expose another channel,
- 20:26another another space, OK, so. You're saying don't even use
- 20:29another LLM because then you might just get this cascade of
- 20:34prompt injections. Yeah, don't use another LM to
- 20:38future malicious inputs because this another LM can suffer and
- 20:43can follow these malicious inputs as well.
- 20:46And what are some other ways that you've been seeing security
- 20:50vulnerabilities or some real life examples of things that are
- 20:53happening in the wild I working? With some, some fintechs
- 20:58understand the challenges and like validating these business
- 21:01status. So validating some ideas around
- 21:03the ICQ it there are some companies the fintech's working
- 21:07building AI assistant on the WhatsApp and these AI assistants
- 21:11can like can do transfers, bank transfers, can pay bills and so
- 21:16on. So we have basically like AI
- 21:18assistant to have access to the your bank account or in other
- 21:23your scenarios, you have your bank account managed by AI on
- 21:29the WhatsApp. Yeah, the trick part is that I
- 21:33saw my interesting example recently with some hackers
- 21:36trying to override the file they are of the transfer for example,
- 21:43or override the account balance that you have in your account.
- 21:47So, so this is in your real life, you actually don't have,
- 21:54you don't have a lot of problems because you, this scenario that
- 21:59I'm explaining, like design startups have, let's say
- 22:03infrastructure as a banking in the core.
- 22:06So we have another kind of validation.
- 22:09But that's why it's important to follow like that zero trust
- 22:14mindset because we can like defend and protect this
- 22:18malicious behaviors on the softer part, not the AI as well,
- 22:22but it's important because out as well.
- 22:24So you can like you have, you can have the AI trying to answer
- 22:30some something that is following some bias and talking about
- 22:35competitors and generation kind of repetition or risk for the
- 22:39company. So.
- 22:43I'm trying to think how that looks and what the benefit would
- 22:47be of having me be able to do my banking through WhatsApp.
- 22:52And so I guess the benefit for a end user like myself, I'm using
- 22:57WhatsApp and I say, oh, send 50 bucks to Rafa and then it knows
- 23:03which Rafa I'm going to send it to and it will send it.
- 23:07Or I tag Rafa as a person and then it has your phone number
- 23:13and my contacts book and it will then send it to you.
- 23:16But it feels like there's so many things that can go wrong in
- 23:20there because it could just hallucinate a different Rafa or
- 23:25a different phone number or whatever.
- 23:27There's so many vulnerabilities that I wonder if the small lift
- 23:36that we get from being able to interact with our bank account
- 23:40on WhatsApp is worth the gigantic risk that it brings.
- 23:47Yeah, I guess is it that's the challenging of the developers,
- 23:52the ML engineers nowadays? If so, you should have, you
- 23:56should follow the, the tasks have the kind of high quality
- 24:02essentially to make sure that it doesn't happen.
- 24:05And I believe that you're learning how to create this kind
- 24:08of application, right? Like a disk, a mission creature
- 24:11application. Yeah.
- 24:13That's a very, very challenging, but I guess very interesting
- 24:16problem to to work on. Yeah.
- 24:19It does feel like we're still exploring where and how we are
- 24:23going to interact best with AI assistants, AI agents, what the
- 24:29ways that the public prefers to use them.
- 24:33And like you said, maybe for a banking app, it's not the best
- 24:39option. But potentially for a food app,
- 24:41it is the best because we can just text the food app and say
- 24:45I'm hungry, I want something in the next 30 minutes.
- 24:49And it gives me 5 different suggestions.
- 24:52And then I can just say, yeah, I go with suggestion too.
- 24:55But if it's for a banking app and it's send $20 and next thing
- 25:00you know I sent $2000 because there was some kind of a mess up
- 25:05or a hallucination, then it's a lot more risk than if I get
- 25:09pizza or pita so. What I'm seeing you have this I
- 25:14don't know you have AI bank assistant like how you can talk
- 25:18with for the is that I have so depends.
- 25:21I, I believe that there is a profile specific customer
- 25:25profile for this, for this application.
- 25:28And so it's a risks, it's riskier, but I don't know, I
- 25:31believe that the market's going from this side.
- 25:34I don't know looking for aeristage fintechs building on
- 25:37this space, but later, you know, actually years, I don't know
- 25:41like the banks could have a new channel as the same of the
- 25:44mobile. So we have this lag assistance,
- 25:48banking assistance, and then they try to follow the fintechs
- 25:53and the and build the mobile application.
- 25:56Make sure that like the UX nicer, everything is is motor
- 26:01and maybe the next wave you'll be like the having IAI helping
- 26:06people to like make it transfer, understanding the expanse and so
- 26:11on. It's a mis mis critical
- 26:13application, more critical than asking for ordering your food.
- 26:18But I I believe that there is a value of the this application
- 26:22has have value from the some customer profiles.
- 26:27Yeah. And when you have worked on
- 26:30traditional fraud detection systems and then you think about
- 26:34these new ways of fintechs having fraud vectors, how do you
- 26:42weigh these different areas and, and vulnerabilities?
- 26:45And like, how do you think about traditional fraud?
- 26:49And almost, I don't know what the new one would be called, but
- 26:53I'm going to coin it, I'm going to say new age fraud.
- 26:56What do you look at? Is it different?
- 26:57Is it the same in your mind? How do you view those two?
- 27:01I believe that with AI, both of parts of a fraud, the fraudster
- 27:05and the let's say the bank, it's like it they have superpowers.
- 27:10So it's the fraudster have like the tools to create a lot live
- 27:15in his face and the fake documents and so on for them.
- 27:19It's becoming easier to to bypass a fraud system and and
- 27:24also internally inside the fraud, a bank, a fraud thing.
- 27:29I guess you have the tools, but it's a challenging moment to
- 27:32looking for this new kind of AI. But also we have the fraud
- 27:37around the AI like an interracial.
- 27:39So it's a kind of fraud as well. So basically you have a more
- 27:45vulnerabilities around. We have the fraud with
- 27:47superpowers, with AI superpowers trying to figure out like what
- 27:53is the vulnerability that they can they could like follow and
- 27:56deep dive. And I don't know it, it's a
- 27:59challenging moment if you look for the cybersecurity as well.
- 28:02So not only define it on the financial space, but the the
- 28:07cybersecurity in general. So it's a challenging moment
- 28:11because they think you are have seen increase of incidents,
- 28:17security incidents. That's because of the
- 28:19fraudsters. The hiker have more powers right
- 28:22now, they can automate, speed up the process that we spent one
- 28:25month with some minutes with AI. Yeah.
- 28:28And you're able to just test where the vulnerabilities are so
- 28:31much quicker. I believe that the fraud, the
- 28:35same dynamics of a fraud in the that you know right now and all
- 28:41days you see this dynamic in the AI as well.
- 28:44But I guess the challenge would be this almost the same.
- 28:47So we have some fraudster trying to injection, doing prompt
- 28:51injection and other side you have the large rails or other
- 28:55reserves to protect them, learning the new patterns and so
- 28:59on. I don't know, maybe human the
- 29:01loop as you have in the fraud operation as well.
- 29:05Maybe you should have this human in the loop in the AI operation
- 29:10as well. Yeah, you make a great point
- 29:13about how many different levels there are that fraudsters can
- 29:18play at because it can just be falsifying documents or now
- 29:23these days you can clone voices with just like 5 seconds of
- 29:26voice. And so you can do social fraud
- 29:29and get information by doing those like social hacks.
- 29:34And then on the other hand, you have the LLMS themselves and how
- 29:39they can be vulnerable. And you have the new systems
- 29:43that we're putting into place. Like we talked about how, OK,
- 29:46now we're talking to our bank through WhatsApp there.
- 29:49There's a whole bunch of vulnerabilities that come along
- 29:51with that. Or you have this super powered
- 29:55fraudster who can use AI to their advantage and scan for
- 30:00security vulnerabilities or fraud vulnerabilities.
- 30:05Are there specific design patterns that you've been seeing
- 30:10that are now becoming very common and something that is
- 30:17like table stakes for if you're trying to deal with AI fraud on
- 30:25any of these levels? So I believe that's knowing by
- 30:30first hand if the vulnerability that a fraudster can attack.
- 30:36It's important. So doing the Reddit teaming,
- 30:40testing your system, doing a ping test on software and red
- 30:44team in general, I guess it's it's a much have should do it
- 30:50before. So if you have a Mitchell
- 30:52critical critical obligation and so on, that's the best way.
- 30:56So you can have the first hand knowing the vulnerabilities and
- 31:01then trying to protect this, implementing the the protection.
- 31:04I believe it's it's approach that is becoming Mccommo and
- 31:08also as well like the gauge rails implementing the the
- 31:12correct gauge rails for the obligations like the painting of
- 31:16the use case depending of like the the probation on the risks
- 31:20that's the you like to accept or not.
- 31:23All right, So what other kind of things have you been seeing out
- 31:27there in the wild? AI agents.
- 31:29Actually, there is a recent paper report from OS for about
- 31:34the vulnerabilities in the AI agents.
- 31:38And it's interesting because when you have a lot of as many
- 31:43LLMS stop with each other, it's become like more complex to make
- 31:48sure to control LLM is not predictable and we have a lot of
- 31:52LLMS working together. It's even unpredictable.
- 31:56And and the problem is that way in the AI agents obligation, you
- 32:00can let's say with accommodation of tokens like say attack can
- 32:05broke the first word, but the context, the information didn't
- 32:09kind of noise can follow through the next steps.
- 32:12And also depending of the steps, if I have some documents data to
- 32:17access externally, one simple, well, let's say one prompt
- 32:20injection that was received in the first step can affect, I
- 32:24don't know the the last steps, you know, but it's more like a
- 32:29general is not example, a specific example.
- 32:32But it's interesting because you can have a kind of noisy going
- 32:37forward for each step. More LMS, more yeah, yes, more
- 32:41LMS you have in your system make more protection.
- 32:45We should have to make sure that you don't have this information,
- 32:48just noise information going forward.
- 32:50Yeah, it's almost like one prompt injection can get
- 32:53propagated throughout the whole chain of agent calls and you
- 32:59have to make sure to architect your agents in a way that like
- 33:03you we were talking about before.
- 33:04Potentially it's not even a another LLM call critic at the
- 33:09end. It is something that is a bit
- 33:13stronger and more rules based type of guardrails that you
- 33:17have. I'm also looking at the
- 33:19owasp.org page right now on their top 10 vulnerabilities,
- 33:26and I find it fascinating that the first one is broken access
- 33:30control, because I think a lot of folks are trying to figure
- 33:37out how to get agents to act on their behalf.
- 33:40And this just feels like a WASP is calling it out early and
- 33:46saying, hey, look, you can try and have the agent act on your
- 33:50behalf, but there's a lot of potential that you're going to
- 33:53have some access control issues here.
- 33:58Yeah, this is the challenge, because there's a balance
- 34:01between autonomy and the security, right?
- 34:04Yeah. This is the challenge part.
- 34:06I don't know, you have been seeing a lot of value from agent
- 34:11that do your steps by itself. But I guess this is a part of
- 34:15the zero trust approach that you should follow.
- 34:20So let's make sure that's like you have the right permissions,
- 34:23is restricted for that task, for that scope and so on.
- 34:30Yeah, these are things you as a machine learning engineer going
- 34:37into this world of security, it feels like you had some
- 34:41experience when it comes to the fraud detection side of things,
- 34:45but now you're having to learn a lot about, I'm sure, the
- 34:48security side of things. And are there pieces that you
- 34:53wish you knew when you started going into this world?
- 34:56What are some things that potentially you can just share
- 34:59as a nugget of insider knowledge that took you a while to figure
- 35:05out, but now that you know you're very happy that you do?
- 35:09I would even classify that a little bit further and say what
- 35:12are some things you've learned in the last three months that
- 35:17you did not realize as a machine learning engineer, but now you
- 35:21see as like you're getting into the security world?
- 35:26Yeah, the first thing is that fraudsters and hackers, they are
- 35:30like they have a lot of crap TV. So even as a machine learning
- 35:36engineer, you're building an AILM and So what you don't know
- 35:41what's the vulnerabilities. So you know, there there is like
- 35:43a oh, someone can use base 64 and encoding a kind of method AB
- 35:51or C, but when you put in it in the road, like a lot of new
- 35:57steps you didn't figure out like that people can do this.
- 36:01And it's very wild. And one of the most the learns
- 36:06that I did recently is joining cybersecurity engineers with
- 36:10understanding talk with these guys and learning their
- 36:15perspective about AI security. So it because it's different as
- 36:20AI machine engineer or AI research is different is that is
- 36:24another they have another opinion is so let's say when you
- 36:29have when you do run teaming, they're not taking care of just
- 36:33the LM, but the whole assistant, for example.
- 36:38So it's important and also about the protection the graduated
- 36:43them, they don't it's not looking just for the LM, but the
- 36:47whole system as well. So they access the provision.
- 36:50So and yeah, I guess the the insight that I have recently is
- 36:55they have another perspective. It's more broader about the ICS
- 36:59thing in general. I'm researching about what the
- 37:04guard rails security guard rails data, it's important.
- 37:09So as like we are building large rails, you should have data to
- 37:15understand what kind of and methods that's like hackers are
- 37:19using or should or could use to to bypass IEI or to use virtual
- 37:24rails. Data is important and if you
- 37:26look for just for the open source data that you have is not
- 37:29enough and. Interesting.
- 37:31Wait, say, tell me more about that.
- 37:33So it's like you should a try to red team your own system, pen
- 37:37test your own system and thinking about the system as a
- 37:40whole, trying to break into it in any which way possible, not
- 37:43just the LLM. But then if you're only doing
- 37:48that, you don't know what you don't know.
- 37:50And when you put something out live, it's going to get hit by
- 37:54the very creative hackers that they are.
- 37:57And so is it like you should get a third party to try and pin
- 38:02test also? Or is it that you should like,
- 38:06how do you get that data if you don't have it and you don't know
- 38:09that you don't know? Yeah, you sure do choose.
- 38:13I don't know if you have my open source model that was trained on
- 38:16this data or you have, I don't know a tool provider that work
- 38:23is works on this, that collect the data, filter this data to to
- 38:28train like the graduates models. That's because it's very
- 38:32difficult to create the graduals by internally by itself.
- 38:36So it can use a lens as well, but it's it's vulnerable
- 38:40vulnerable as well. And also to create a small
- 38:44language models, you should have data.
- 38:46So it's a challenge just like a cat and hat the but the
- 38:51challenge is, is like it should what the best way here to
- 38:54collect data is to work together with the cybersecurity thing,
- 38:57the red teaming to understand the patterns and then implement
- 39:02this this solution. Yeah, it makes sense and I
- 39:07believe, I don't know. You, you have more, you see more
- 39:13open source open size and open open source model around AIC QS.
- 39:19You don't have many tools and and models on this space.
- 39:24Let's say some models that you can, you could use as a wage
- 39:27rails and then make sure that everything is OK.
- 39:31So it's part of 1A path that I'm looking for.
- 39:35Like to to create more a kind of open size around it.
- 39:40Yeah, almost like the trick there is that as soon as you put
- 39:44out a data set that can help you understand where there are
- 39:49attack vulnerabilities, that data set is no longer valuable
- 39:53because it needs to be behind closed doors.
- 39:58It needs to be something that is almost not shareable or not
- 40:01public. Yeah.
- 40:04Do you mean the data right? Yeah.
- 40:07Yeah, but it's a challenge you know of collecting data,
- 40:10collecting new partners, learning and then you'll be
- 40:13dating is constantly. So like almost like this as we
- 40:18did in traditional ML and as you did a ton on retraining fraud
- 40:23models, you're in a way continuously collecting data and
- 40:29then retraining these LLMS. But you're not retraining them in
- 40:35the sense that you're not going in, you're not going to train or
- 40:39fine tune the LLM. You were just updating your.
- 40:42Maybe it's your prompt or maybe it is the LLM calls something
- 40:46like that. Yeah, I believe that's a good
- 40:50point. It's iterating around learning
- 40:52and iterating and improving, right.
- 40:55Yeah, it's almost half process. So you can inspire on the
- 40:59traditional ML and and use it in the in the AI application LLB
- 41:05applications.