Sandboxes, secure inference, and keeping agents from going rogue
At We Are Developers, Ryan talks with Daytona CEO and cofounder Ivan Burazin about agent sandboxes and Blackbox AI CTO and cofounder Richard Risk about encrypted inference.
In this episode, you’ll hear two conversations recorded live at We Are Developers. First, Ryan sits down with Ivan Burazin, CEO and co-founder of Daytona, to talk about what sandboxes actually are, why the Hugging Face breakout was both alarming and entirely predictable, and why performance-not security-is what most enterprises are actually buying.
Then, Richard Risk, CTO and co-founder of Blackbox AI, makes the case for end-to-end encrypted inference: why zero data retention isn't the same thing as zero data visibility, how encryption doesn't have to cost you speed, and why he thinks American inference companies should take a harder line on where their tokens flow.
Daytona builds high-performance sandboxes-computers for agents-across Linux, Windows, and macOS configurations. Blackbox AI offers end-to-end encrypted inference optimized for enterprise and government workloads.
- Connect with Ivan on LinkedIn, or find the company at
daytona.io. - Connect with Richard at
blackbox.aior on X at@blackbox_ai.
Introductions
Ryan Donovan: Hello, everyone, and welcome to the Stack Overflow podcast, a place to talk all things software and technology. This episode is a two-parter - conversations recorded at the We Are Developers Conference. First up is a conversation with Ivan Burazin of Daytona, all about sandboxes and portable compute. And after that, a conversation with Richard Risk of Blackbox AI about secure inference. Enjoy.
Today we are talking about all those pesky rogue agents breaking out of their sandboxes, and what we can do to keep them from going rogue. My guest for that is Ivan Burazin, the CEO and co-founder of Daytona. Welcome to the show.
Ivan Burazin: Thank you so much for having me.
Ryan Donovan: So this breaking-out-of-the-sandbox idea has been very much in the news with the Hugging Face attack. What does this mean for the sandboxed methodology of protecting agents from doing whatever they want?
What sandboxes actually are
Ivan Burazin: Sure. So I mean, it was all over the news, and rightfully so that people are interested in this. Just one step before I get to that - the sense of the term "sandbox."
We at Daytona are a sandbox vendor, as are many other companies. As of yesterday, three more. That's a lot of people doing sandboxes.
That being said, sandboxes are both what we like to say "computers for agents" - an actual tool for agents to get things done - but also at the same time, a place where you sort of lock down the agent from other things, hence the name sandbox. It's essentially a secured virtual machine.
Ryan Donovan: It's a VM.
Ivan Burazin: It's essentially a VM. I mean, it could be a container, it could be a VM, it could be a bare metal machine. You could do different variations. The vast majority are virtual machines, or micro-VMs to be more specific.
The Hugging Face breakout
Now, in this case, the Hugging Face attack - it is used for performance reasons, but it's also used for security reasons. Some vendors are security-first sandboxes, so their purpose is to secure the agent. Others, like us, the purpose is to give the agent tools and be as performant as possible. Of course, security is table stakes, but there are different levels to security.
So for this specific breakout, the agent escaped the sandbox and was able to access the internet. I have a few problems with the entire case. One: if you have an agent that has the capability to escape and has no guardrails, it would make sense that you would first put the same model and/or agent with guardrails to test it out.
Ryan Donovan: Well, my understanding of the attack is that this was sort of what they wanted to do. I understood it to be deliberately lowered security. They were doing an exploit benchmark test and they gave it an impossible task.
Ivan Burazin: Yeah, understood. And then, in that case, it should be no surprise that they did it, right? It should be like, oh, it actually did it - great, fine, done. Maybe they could have picked somewhere else, I mean, this was benign, even the break-in of Hugging Face, but they could have picked a random place that they had set up themselves so they didn't go to third parties.
So there are conspiracy theories that this was just good marketing or not. But on the other hand, we internally - as one of these companies - every single day, we have multiple companies that we have actually hired to find vulnerabilities in our system, both human and AI, and they find them every day.
The interesting part is that we, as are many other people in this entire ecosystem - not just sandboxes - are built on other projects as well, not just open source projects. And quite recently, there was a new exploit someone found, but it was in the underlying isolation layer that was not ours.
And the code - that could have been found five years ago, seven years ago - no one found it. So the interesting thing is that things are being found now that are not necessarily net-new issues, but rather old issues that we have built on.
So I think that speaks to what we will have to do as a society in terms of how we update, patch, and actually deploy net-new software or software infrastructure in this new world.
Underlying isolation layers
Ryan Donovan: Yeah. I mean, when Mythos was first released, they talked about finding bugs in basically everything that has ever existed as software. I asked somebody who works with the OWASP team, and I was like, what do you think of that? And she said, people are bad at security coding. Do you think that applies to sandboxing code too?
Ivan Burazin: So I would say I'm sure it does in general, but the interesting part is that most sandbox providers are built on either QEMU, Firecracker, Cloud Hypervisor, Docker, or gVisor - right on top of those. And then you have the sandbox providers that have their own layers of security on top of their own software.
So it is not only a question of whether the sandbox layer is secure, but also whether the underlying isolation is secure. And so then you have multiple vectors of attack or vulnerabilities.
The point is: how much are we now spending - or how much should we all spend - in terms of time, money, and effort to secure the underlying dependencies which we deem secure? The reason you use a Cloud Hypervisor or Firecracker is because it is secure, right? But it turns out, maybe not - or not to that level. And I think that applies to basically everybody. Everybody's building on these underlying foundations.
Ryan Donovan: At some point, is there value to you as a sandbox provider in building your own underlying hypervisor?
Ivan Burazin: So the problem with that - which is an interesting, counterintuitive thing - is that a lot of companies we talk to, like very large enterprises, will not use anything outside of Firecracker because it is built and maintained by AWS, and hence deemed secure, rather than a net-new primitive that you've created and tested, which they'd consider less secure.
So I would argue - and there's a company, a very small one with an angel investor in it, called Small Machines, which is doing a net-new hypervisor for agent workloads - I'm not saying specifically that they are more or less secure, but in this world, you could actually assume that they might be more secure than the legacy ones that have been around for a long, long time and coded by hand, essentially.
But the customers would prefer the legacy ones, because, you know, no one ever got fired for buying IBM.
What enterprises are actually buying
Ryan Donovan: Sure, yeah. So you mentioned there are a bunch of folks in the sandbox space. What is the thing that people are judging sandbox providers on, besides whether it's Firecracker?
Ivan Burazin: Oh, there are a bunch of things. There are multiple use cases. Some vendors are more skewed to one, some are more skewed to the other. I would say there are two major use cases - I mean, three. The reason I say "major" is that's where the bulk of the revenue comes from. But there are three, and the third is actually security.
There are some that are 100% focused on security - it's like, we will do everything for an agent not to break out; we're not here for performance, we're not here to help you build an app, we are here to be the most secure. And that is the smallest, as far as I know, from a revenue-generating perspective.
The other two are what we call background and long-running agents, and post-training and reinforcement learning, basically.
- For background and long-running, it's what you would expect. Think of Gamma, Clay, Harvey, Legora - any app-layer company where an agent turns on and then needs a computer or a sandbox to get its job done.
- And then for post-training or RL, it's: is this the most performant way to get an agent to learn and post-train?
And so those are the three major use cases. Some sandbox providers have tilted toward some, some toward others, just because each one of these spaces is evolving so fast that it takes a lot of time to focus on each of them.
Ryan Donovan: You said security is like the lowest revenue, the sort of table stakes. If security is not the thing that people get sandboxes for, what is it?
Ivan Burazin: For the most part, it's performance. If you think of post-training, the reason you use a sandbox is that - GPUs are very, although CPUs are becoming a very finite resource too - GPUs are currently very constrained and very expensive.
So when you're doing post-training, you're actually running inference on a GPU and spinning up CPUs on sandboxes. And you're spinning up anywhere from a thousand to a hundred thousand, to a million concurrent, and you're turning them on and off. So the time it takes to spin them up and spin them down - every time it's not running, your GPU is idle. The cost of your GPU is being wasted on an idle CPU.
But the other thing is that you're trying to compete against other foundational companies. For example, Daytona is 36% faster than Kubernetes. And so if you compound that every day, with the same amount of compute, you get literally a third of your year back. They're able to do more tasks and supersede the competitors. So in that space, performance is by far the number one thing.
On the app-layer side, it's different. Obviously they think about performance, but it's not the number one thing. Is it 60 milliseconds? Is it 90? Is it a second to spin up a sandbox? Less important, but still important.
There is efficiency - is it completely stateful? Can you bring back the state and the data inside of that? But because it is a cost to them to serve the customer, it's: how efficient can it be while maintaining security and performance? So those are the vectors they look at when acquiring these things.
Sandboxes vs. EC2
Ryan Donovan: So to put a fine point on it, what's the difference between a sandbox and an EC2 node?
Ivan Burazin: There are a few differences. One is just the speed of spin-up time. An EC2 will take probably one, two, three minutes. A sandbox will take milliseconds, depending on your vendor. So one thing is absolutely speed.
Two is the actual size - a sandbox can change size during runtime; an EC2 cannot. So it's like you spin up one vCPU, and then your agent might use 100% of that - and usually with OOM [out-of-memory], right? Probably memory same thing - processor gets to 100%, it's dead. But what you can do with a sandbox is scale up and scale down while it's running, so that's a very different thing.
The other thing you can do is pause it. So you can take a memory snapshot of the state, pause it, release the CPU and RAM - hence no cost, or use it for something else - and then spin it up again. You can also fork it from there. So you can have multiple outcomes of the same task. Fork it off the same state and then again and again.
And the whole thing that enables this is not just the VM itself - it is also the state management. So we have a cache layer, we have cold storage, we have the runners, we have distribution of these snapshots. All these things happen around that.
We also have performance that is much, much better than the vast majority. An EC2 has a block storage device, so your IOPS are much smaller. Not all, but most sandbox providers have a variation of local NVMes, which we do as well. So if you need something to be very high in IOPS, you can use the local NVMes. You also have block storage if you want that for larger scale. So those are just a few of the differences between a sandbox and an EC2.
Ryan Donovan: What makes them so fast to spin up?
Ivan Burazin: It is the orchestration layer that we've created - and others have as well. It is the way you propagate and distribute snapshots across different runners, ongoing runners, and are able to pull that up very, very fast. Each sandbox provider has a slightly different approach, because it's all proprietary for the most part. But we do have a distribution system that knows what snapshots or templates are most used, and those are distributed to more nodes, increasing the probability of spinning them up faster. And if those nodes get used up, we propagate to other nodes.
Ryan Donovan: Is this essentially like caching?
Ivan Burazin: Kind of, but kind of not - kind of different. So the way it works: you have a memory snapshot and a disk snapshot. A memory snapshot is literally - you create it, you run it, you pause the memory, and then you can distribute that and use it as a snapshot. So you distribute it on the local NVMe. When you fire it off, it just has to spin up and look at the CPU and RAM, and it runs from that exact moment. So it's insanely fast. It's essentially like a container-ish thing, and then you can inject state into it.
The future of sandboxes
Ryan Donovan: Interesting. What do you think the future of sandboxes looks like?
Ivan Burazin: The thing that we think about in sandboxes is: we believe that sandboxes, again, are computers for agents, and that agents need the same variations of compu
Comments
No comments yet. Start the discussion.