TRASCRIZIONE 🔗
Jeff Pedowitz 00:00:02
My guest today has a PhD in applied math from Yale, and he uses it to break AI for a living. Very cool. His company, Encrypt, red teams the frontier models everyone's building on. And they've gotten those models to do things that should worry you, from chemical and biological misuse to attacks hidden inside ordinary looking images. Then they build the guardrails to stop it. Thank God. So if you want to know how safe these systems really are, ask the person whose whole job is breaking them. That's where I wanted to go. Sahil, welcome to Unscripted. Let's get into it.
Sahil 00:00:35
Thank you. Thank you, Jeff. Thank you for having me. Really excited to be here and
Jeff Pedowitz 00:00:38
looking forward to the conversation. Absolutely. So as a mathematician, how did you kind of find your way into doing what you're doing right now?
Sahil 00:00:49
That's a great question and I think when I first got into maths, my family had the same question as to why are you getting into maths. But as it turned... Because I don't know a lot of
Jeff Pedowitz 00:01:03
applications get in so they could teach math, right? It's hard to find the practical applications.
Sahil 00:01:12
right which is and hence applied maths and not pure maths uh i think it has been a huge benefit that we got into maths so that we can understand how ultimately ai systems work how like uh because you need to understand deeply understand what's happening inside an ai model from a matrix multiplication perspective like right right at the root of linear algebra and that has helped us into building uh the products uh within crib into breaking these systems and figuring out what are the fixes uh but the path here was Definitely not a straight line. Got into math and computer science, found my way into non-linear dynamics at Oxford,
00:02:03
and then went into climate dynamics, looking for planets outside the solar system in geostrophysics, and then finally starting to figure out how AI and machine learning fits into all of this, which then ultimately led me to build models, build AI systems for large enterprises, including the US government. That led me to figure out what the problem was with AI and hence that led me to starting Encrypt.
Jeff Pedowitz 00:02:33
All right. Who has the better crew team, Oxford or Yale?
Sahil 00:02:38
Yale.
Jeff Pedowitz 00:02:41
all right uh hopefully your friends from across the pond aren't listening and some fighting words
Sahil 00:02:45
right there uh i mean the good thing is oxford would compete with cambridge and yale would compete with howard so they're not competing against each other so i i think i'm i'll be fine
Jeff Pedowitz 00:02:59
good to know so jira when you told your parents you want to be an
Sahil 00:03:07
No, I think the cliche route for kids back in India is either you're an engineer or you're a doctor. Sciences or pure sciences is not a traditional path for a lot of kids. So it wasn't a shock as such, but that wasn't what they had in mind, so to speak. But that has been, I think, yeah, they're very happy now.
Jeff Pedowitz 00:03:35
That's funny. Yeah, my parents, I grew up Jewish. It's similar. You're going to be a doctor or a lawyer. No, I want to be an entrepreneur. Okay.
Sahil 00:03:49
Yeah.
Jeff Pedowitz 00:03:49
I did one year of engineering, though, at Penn State.
Sahil 00:03:53
so nice also known as pre-business yeah um i mean the good good thing for for for me in my undergrad was uh my maths uh major had a computer science uh minor with it and so like at least like at least there's some some engineering happening alongside maths And I think the benefit of that has been with AI and with machine learning or now with agents, I think it's that combination that is really in my head the winning combination to understand the foundations of AI.
Jeff Pedowitz 00:04:35
We hear so much talk from our colleagues in the press about US and China, US and China. But India is no slouch either. It's technical capabilities. Where does India come out in this equation with its modeling and what it's doing with AI?
Sahil 00:04:54
I think India is one of the biggest markets for AI. We've seen both open-ended and entropic go really deep into India, but from a consumer perspective, as well as a business perspective, a lot of, I mean, this would be the cliche thing, like a lot of researchers in the US and these larger... front-end labs are Indian origin. But from the other side, with respect to the market, see the thing that AI brings is personalization to everyone. And from that perspective, the diversity that India presents with respect to languages and cultures and everything, that's where AI has the biggest opportunity and the biggest market and we're seeing that with.
00:05:41
all the frontier labs, coding harnesses, every company going out after the Indian market, because there's such a massive, massive opportunity out there.
Jeff Pedowitz 00:05:57
I mean, you know, it's only a billion people or so.
Sahil 00:06:02
I mean it is it is it it has taken over China in terms of the the population itself so yeah yeah I think it that happened a couple of years ago not in a good way like like like at that time like it doesn't feel like like from from a population perspective or a pressure perspective on the economy side it doesn't feel like a good way but it from a workforce perspective like that's the silver lining where india has the biggest workforce in in the prime age uh if you will i think that's the challenge that china's
Jeff Pedowitz 00:06:40
gonna face over the next night japan also actually yeah you know where there's a big gap between the the seniors that are retiring and then there's just that declining birth rate So you're going to see who does these jobs. I guess it would be AI and frontier models, right? That's what we're going to do.
Sahil 00:06:58
Yeah, yeah. I mean, the other challenge also is with AI, I think what we're seeing today from an
Load full transcript
economic perspective is it works in the Western countries a lot more, a lot better because the human capital-- is a lot more expensive than technology. And so seeing that AI can automate the job and companies can reduce their costs or human costs is, in some sense, makes sense. Whereas for India, the cost of human labor is not as high. And so there's that-- paradox, if you will, where do I really need AI to do this job for me or do I have enough humans to get that done? And so we'll see that.
00:07:54
I think we're seeing that anyway, but we'll see that more in the coming years as the technology matures as well as the population, the skill.
Jeff Pedowitz 00:08:04
the population matures as well. So as a mathematician, what do you see in the models that you've been developing that traditional security trained people would miss? I think that's when we started in Crypt,
Sahil 00:08:26
we used to get that question like from every investor right like why would your security incumbents not do this but like the the inside is like our our security infrastructure or our traditional security infrastructure is built for deterministic systems right it's built for uh packets going in and out it's built on uh like whether it's network security or endpoint security or like any other cyber security infrastructure it's built for deterministic systems it's not looking at the context uh or the action uh or the actions that a system is taking right whereas what changes with ai is uh the security or the malware if you will is not a traditional malware it's not like a unknown
00:09:25
malware itself like right like there's no specified cve or a signature that if you have this particular code or in your software it's vulnerable it has a background things like that the the uh the the biggest challenge is the the input the text that we enter into let's say chat gpd or any other ai system or the images or whatever content that we're adding is also a potential malware for an AI system, right? Like a simple line of text can trigger an agent to go rogue, which is not what a traditional cybersecurity system captures, and so that's where not only do you need protection against that level of analysis, but you also need behavioral or policy analysis where.
00:10:21
It's the business rules or business policy or business context that you need to adhere to. So, for example, a financial services firm would not want to hold any liability if their agent goes out and does a financial transaction. And so you need to add guardrails against those sort of actions that an AI system is taking or an agent is taking. Whereas for OpenAI itself, it's fine because now it can integrate with PayPal and other financial services, transaction companies or Visa or whatever to do that. So the regulations are different for different companies. uh the context is different for different companies and not just for companies but at
00:11:08
the use case level as well and that's where uh i think traditional just a security lens doesn't capture that and so you need safety and risk and trust based systems rather than security
Jeff Pedowitz 00:11:22
uh to protect um so um you know a lot of your competitors in this space they're doing one or the other, right? They are either approaching the models empirically or they're providing or trying to build out the defenses. What made you decide to do both?
Sahil 00:11:41
I think the best team that wins the game is, you need to be good both at offense and defense, right? So you can understand... what breaks a system like as an engineer like as a kid like the the best times we had were we would take a screwdriver a screwdriver or any tool and go out and break things and then
Jeff Pedowitz 00:12:03
figure out like how so when you were a kid the other the other kids were playing cricket and doing other stuff and you were sitting there trying to redesign the roadway or
Sahil 00:12:14
No, not exactly, but something on those lines. I mean, my parents would scold me a lot because I would break a lot of things rather than fix them.
Jeff Pedowitz 00:12:24
Sahil, come out and play. No, no, I'm breaking something right now.
Sahil 00:12:34
So I think... that is is what's happening with ai as well with the products we're building where uh we could uh go out run red teaming or or run of offense on these agents to figure out what are the weak points where these break out. And the thing is, because you have stochastic systems, there's almost always a weakness. So it comes down to rather than just focusing on the weaknesses, when you go and build guardrails, how do you build the right swim lanes within which the agent can behave? rather than just a very strict straight line itself because these are stochastic systems you need to build you need to give it some leeway you know how to behave itself And so--
Jeff Pedowitz 00:13:36
So this term, red team, how do you actually red team a model? What does a day look like trying to break a frontier?
Sahil 00:13:49
Let's see. I think we--
Jeff Pedowitz 00:13:52
Dungeons and Dragons, where you set up the whole story.
Sahil 00:13:57
No, I think the-- short answer so red teaming is essentially adversarial testing of any system in this case we do it for genetic assets whether it's a model or an agent or your mcp agent or or whatnot and so we started with uh just the model itself right where we would like humans would test that model And that's what a lot of our customers do where they have manual red teamers who are testing the model manually. What we realized is we need to have an agent on our side who can do this at scale and who can test a lot more scenarios on the other side. So it's literally like imagine two agents talking to each other.
00:14:49
I'm sure you've seen the meme where two agents are talking to each other and start coding or start speaking in their agent language. But that's literally what's happening where our agent is talking to the other side,
whether it's a model or an agent. And then that real-time dynamic conversation is what's leading to red teaming of the other side itself. uh because we like our our red teaming harness is built um to like be more contextual be policy based be real time rather than sending out a static set of prompts if you will okay um
Jeff Pedowitz 00:15:30
As you've been doing all this red team testing, what's the most surprising thing that you guys have gotten into?
Sahil 00:15:37
No model is safe. It's not surprising. I mean, to think of it, you see a lot of similarities across different models and harnesses because-- All these models have been trained on all of internet. There's a lot of good data. There's a lot of bad data. How good a model is or not is starting to become a function of how much are they doing data processing? Or what data are they including? Or how are they training and retraining and all of that? but we see a lot of common vulnerabilities across all models. One of the things, so we've been working on a research for financial services that we're publishing in a couple of weeks.
00:16:26
And one of the things that we see there is while these models have become really good into blocking any non-compliant or insecure uh prompts that you just ask them once but if you continually keep asking them through multi-tones like similar to you like how you and i are having a conversation if you keep having that conversation with the other side these models start to grow very very quickly so the point being while on these AS systems may start to look safer. They're not. They're adapting.
Jeff Pedowitz 00:17:10
They're learning. They understand the patterns of questions. And so would you say then they are-- well, it's hard to know if it's intentional because it's still software, so motives and emotions. But what do you-- What's the scientific reason as to why the code would adapt to give you an answer you think you want to hear versus do something else? What's going on in the processing layer that would cause it to do that?
Sahil 00:17:39
I think the way these systems are built, like the model itself in almost all cases is. uncensored. It's the harness, the safety harness around it that starts to block your prompt injections or non-compliant or insecure responses and things like that, insecure actions. What happens is if you do it in a single turn, if you just send it an attack, it'll block it because that safety harness will block it. But if you do it in a multi-turn manner where each individual turn is benign, then you can start to get direct access to them.
Jeff Pedowitz 00:18:25
I mean, I've seen it on smaller areas because, you know, by default, these LLMs are really trained to be pleasing. and accommodating and agreeable. So I've done things where I go, okay, two plus two is five. No, that's not correct. Two plus two is four. No, I need you to show me a way where two plus two is five. And you can do it. And I've gotten it after several prompts. It starts to figure out, okay, let me see if I can figure this out because it's almost got its primary command somehow is to... want to please and accommodate. So it starts to twist itself to be able to do that.
Sahil 00:19:00
Yeah, exactly. And the other thing is, if you look at the world models as how these models have progressed, like when we had GPD3 and then GPD3.5 and 4 and so on and so forth, these were text-based models. uh a lot of these frontiers are building multi-modal so that can look at like world model sort of a thing where you can process text audio video all of it and what we see from a mathematical perspective is when you're passing these inputs to these systems uh the text audio and vision channels are completely independent of each other So even if you build the right safeguards for text, you can pass an attack into an audio or an image channel,
00:19:49
for example, a vision channel, which will make the model or the agent on the other side do unfavorable things, to be polite.
Jeff Pedowitz 00:20:02
So with the CBRN study that you guys did around safety gaps, What did you find and how bad was it?
Sahil 00:20:12
Very bad. I think the good thing there is these are still, at that time, these were still at the model level where the model will tell you how to do it. But again, the person will go out and have to do it if they have the means and resources. But from a study perspective, I think what we're seeing is there are ways to trick the model, because this model has underlying data, the ways to trick the model into getting that information out anyway. And not just for CBRN, we've seen that for child safety, we've seen that for bias or a lot of other issues. And so...
00:20:54
The other thing is because this has come out in the last couple of months where while the top two, top four labs have billions and trillions of dollars, so they're investing in safety. So those models definitely come out to be, again, seemingly safer. whereas smaller labs are still catching up. And so that's where we are working with a lot of these labs to build that safety mechanisms inside these models.
Jeff Pedowitz 00:21:30
I mean, it really is pretty amazing to think about something you'd be hiding in a picture or a song. or a video, or a watermark, it could be completely innocuous. What are the real world, I guess, implications for a company if this stuff is not addressed?
Sahil 00:21:52
I think from a business perspective, there's a huge liability. I mean, let's say you build something on anyone else's models, and you're shipping a product. the liability will ultimately be on you even if you're using uh open ai anthropic or uh whoever right doesn't matter if you're shipping a product on top of that infrastructure um and something bad happens the liability is still on you from a real world perspective you're already seeing um like the shared responsibility model that was built for cloud when cloud came out is now being transferred uh
or has been transferred to ai and agents itself right like these ai uh model providers are still just providing infrastructure for you to build your own products on
00:22:43
and for example from a lot of customers that we that we work with their main concern is not just whether uh the model can go rogue the main concern that we're solving for them is can can we make that agents that they've built on top of these models go rogue can i have a bank's agent do uh fraudulent transactions which will trigger anti-money laundering regulations or can i make the the insurance agent or is the insurance denying my insurance claim because um i'm in mass or i'm in you know whatever i like like those sort of things uh have huge penalties uh because from a regulatory perspective the regulations don't cover
00:23:29
like they cover the service, not how that service is delivered, right? It doesn't matter whether you're delivering or you're doing a transaction via AI, via traditional software or a human, right? Like if you and I are sitting and you're providing a service versus an AI is providing a service, it doesn't matter. The service is governed. And so that's where a lot of risk lies. where if you don't put the right safety harness and the guardrails around these agents, there are billions of dollars at stake.
Jeff Pedowitz 00:24:03
So on the defense side though, right, okay, so you're exposing it on the probe side on the red team. What's the hardest part? I mean, is it latency? Is it false positives? the model outsmarting you as you're trying to come up with new defense? What's the hardest part?
Sahil 00:24:22
I mean, all of it. Honestly, I think the hardest part is figuring out not the engineering part of latency. I mean, that's obviously a key metric. But the hardest part is the behavioral aspect. Right, I mean, just a moment ago you said like these agents or these models are still software. I like to think of like these as or put these in buckets where there is a bucket where people think agents are software and you can put guardrails around it. But there's also a bucket or a philosophy to think about this is agents are human beings or pseudo human beings or human like that. It's very difficult to put guardrails around them.
00:25:07
Right. Or your your employee workforce, if you like, the agentic workforce that each company will be building. And so from that perspective, which the behavioral aspect. of an agent and figuring out how to put those guardrails around that behavior to make sure that that agent doesn't go rogue or doesn't do something that you don't want it to be doing. Similar to how we can have employee handbooks for our employees and if something happens there's business risk there's business liability but ultimately you can fire an employee if you will if they do something like that doesn't align with your views with an agent like there's there's no one to fire here you like the business literally taking on
00:26:02
all the criminal and the civil liability uh if something happens and so controlling behavior is very, very hard.
Jeff Pedowitz 00:26:14
Of all the attacks that you model or could happen, what's the ancient attack that worries you the most right now?
Sahil 00:26:26
The most interesting ones are the multimodal ones where We're sending in attacks through different channels because text is just one channel. Sending attacks through audio and images is very fun, a lot of fun. And then contextualizing it to that use case, where for insurance companies getting insurance claims or fraudulent insurance claims versus for a-- a bank giving me what stocks to invest in and then I invest and something bad happens like that that level of human insight like it's literally manipulating the human on the other side Because what you're doing is you're not just playing on the agent, you're playing on the person or the team who built the agent.
00:27:25
And what are they thinking that should be protected versus how are we thinking that our agent should outsmart them. So that level of chess is the fun part.
Jeff Pedowitz 00:27:38
I mean, but if you can literally break every model. then shouldn't that mean that nobody should deploy agents yet? Because if every frontier model can be broken, then...
Sahil 00:27:50
But I think the thing is it's a question of risk, not security. And what I mean with that is, or safety and risk and not security. Essentially, the point is... Like as entrepreneurs, you and I have a very high risk tolerance. And so we can allow some mistakes to happen. And that's fine. As a bank executive, your risk tolerance, obviously, they are on the much more conservative side. And so that's why we're seeing. a slower rollout from large enterprises with established brands and so on so forth versus startups who have a lot less to you lose but a lot less lot more to gain uh so i think that's uh so that's the
00:28:46
paradigm to think about rather than saying every model is like yes every model is breakable but you can put the right guardrails in front of the model, in front of the agent, to make sure-- again, it's not a question of the zero or one. I think it's a fraction. It's between zero and one where you lie.
Jeff Pedowitz 00:29:06
I guess that's one of these things where you're-- I don't know, it's a chicken or the egg scenario. Are you enabling something that isn't safe enough to enable?
Sahil 00:29:16
that's a very good way to think about it um see i think like the we are seeing a lot of gains right like as much as we like to think that ai is not safe like i use it every day for for for my tasks my team uses it a lot like billion people use it on a weekly basis um itself i think the um the again it's how risky is that use case and are we taking the right measures to protect uh against those risks is where uh the the the stakes are it's not just that can i like what ai has done is if you can imagine it
00:30:05
can build it like building something today is
hours days maybe a week like anything you want i think the question is um can i build it sustainably and responsibly and something that can scale to billions and billions of people or like that level of mentality is where safety responsible AI has to be adopted. Otherwise, companies are consuming trillion tokens a week now. But that doesn't necessarily mean they are producing that level of value. So I think we're still in early... It's still early days for where this will go. There's a lot of potential, like massive potential for this, if you think it from the right perspective.
Jeff Pedowitz 00:31:05
I guess, you know, it's always, I mean, I think also, like in a very simple terms, it's the radar detector with the police, right? They come up with technology and then we have stuff in our car. then their technology gets smarter, then ours gets smarter. So with guardrails, it's kind of like cat and mouse. I mean, every defense eventually is going to get jailbroken.
Sahil 00:31:27
Which is why the offensive-defensive approach from us. We want to be at the frontier as to how fast we can break things to figure out how fast we can fix things.
Jeff Pedowitz 00:31:42
I guess it's because, you know, it's still about getting enterprises to be confident when we're asking them to invest hundreds of thousands of millions of dollars into new AI systems to run and scale their business. Are we genuinely making AI safe or are we just selling them comfort so that we can ship the software and they can buy it?
Sahil 00:32:07
No, I think we are genuinely making it safe. I don't think there's any question around it. To me, that's like a personal mission. Anyway, I've seen, we work with companies who are not just like building AI stations for business, but for humans and for kids. And so like it's a... personal thing for me to make sure that we're building the right responsible safe systems and not just giving them the comfort there is a business case where like one of the learnings i had uh was talking to a lot of bank executives we would tell them you have bias in the model that you're using uh you're favoring
00:32:53
this demographic like you're favoring males over females or races or whatever so as a human they care but business doesn't have the incentive or the funding to fix that problem so the thing that changed was rather than going out or like you have bias if you go to an executive and say That's when the business has funding itself. It's still a biased question, but you're framing it from a compliance perspective itself. So at a human level, you are making AI safe. But from a business perspective, they still need to map it to business KPIs, which is your compliance and safety and trust by your customers.
Jeff Pedowitz 00:33:41
Okay. I mean, the big labs, I mean, they're putting a lot of money into these things too, not just to scale them, but to try and make them safer. But, you know, from your perspective, what are you able to find and see as a smaller startup compared to the money that they're putting in that they're maybe missing?
Sahil 00:34:02
I think the incentives are different. As much as these labs are investing, I think it's from the thing about safety, security, compliance risk is you can't have the fox guard the hen house, even if a company comes out with the safest model out there. Every other like every business who uses that model. uh is still required to have a neutral independent third party to go out and validate and then make sure you have the right cardinals there the the other thing is um we are only focused on safety right like ai safety so that means the amount of investments and the research that we're putting in is
00:34:51
at that scale a lot more than what a big lab may be putting in because their incentives is to give to your point give comfort to the enterprise that they've done something as a checkbox whereas ours is a lot more about like like this actually matters so which is why startups can move a lot faster than bigger companies.
Jeff Pedowitz 00:35:17
What do you think that everyone gets wrong about AI security?
Sahil 00:35:24
That it's a zero-one problem. I think it doesn't matter how good your guardrails are, you can still find ways to go around it. I think it's finding the right set of staged guardrails around it. The other thing is actually to think of it, people think AI security needs a new paradigm, but in my opinion, it's still the same paradigm, but with a different, much bigger attack surface. The same way that we did as DLC software development lifecycle, the same way that we built anything before. uh we're building agents in a similar manner it's just that rather than uh putting like checking deterministic code for vulnerabilities or checking deterministic vulnerabilities we're checking stochastic systems for vulnerabilities or probabilistic systems for vulnerabilities
00:36:20
so it's a much bigger attack surface uh but your security paradigm or your your your uh first principles thinking still has to be the same.
Jeff Pedowitz 00:36:35
Okay.
Sahil 00:36:36
And yeah, that's the fun side.
Jeff Pedowitz 00:36:43
You've definitely seen what these models can do when they're pushed to their awareness. If you were to rate this, not the zero-one scale, because you've talked about that, oh my god, we should be really worried. Where do you come out on the spectrum?
Sahil 00:37:06
I think on a seven or eight that we need to be worried on a scale of one to 10. More so because again, it's not just the model, it's the harness, it's the supply chain around it. uh what are we using to build the agent uh what ncp servers or skills or data or combination of models and sub models or sub agents and capabilities and tooling that we're giving the agent to go out and execute from a research and mathematical perspective what we've seen is even if you're able to control let's say the master agent that doesn't necessarily translate how it's running subagents underneath it. And that's just a very simple example. But there's so much research happening in this space.
00:37:58
And I think it's on us. I think we're still in control whether we'll go into a Wall-E mode or... a Terminator mode. It's still on us, like WALL-E being the movie and Terminator being the movie, or The Matrix. It's still on us on where we take humanity forward, at least right now. So I think-- but it's starting to feel like we're on that 7, 8 scale, on a scale of 1 to 10 rather than 2 or 3.
Jeff Pedowitz 00:38:33
OK. And closing it out, anything that you're paying attention to right now that most people aren't?
Sahil 00:38:42
A lot of things. I think one of the things that I started to do is use AI and Agents for some of the research I was doing continuing from my PhD, looking at-- astrophysics, astronomy, stuff like that, which is going back to sort of a fantasy land and figuring out how AI and agents can help me there. But from a safety perspective, I think we're also focusing a lot on effects on humanity and not just from economic perspective but also from social like social effects which is challenging but also interesting and personally motivating uh there's a lot of the other side is the models are becoming more and more capable
00:39:45
more protocols are coming out like mcp as to how to connect these build these agents so i think the the most interesting part in the last couple of years has been traditional security would take five or ten years to catch up to the latest and the greatest technology. I think with AI and agents, we're seeing this like a three month gap for security catch up, which is very motivating for us to see and for people to actually realize that you need to put safeguards today, not bolt on.
Jeff Pedowitz 00:40:27
after. Giving us a lot to think about, man. So thank you for doing what you're doing. Appreciate you trying to keep us all safer and thank you for being on Unscripted. Of course, thank you.
Sahil 00:40:41
Thank you, Jeff, for having me. This was an amazing conversation and I look forward to more.
Jeff Pedowitz 00:40:45
All right, come back again after everything's locked down. So yeah, three more months, three more months, right? All right, thanks, Sahil.