06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Cloud & Identity · fwd:cloudsec · · 44:26 runtime

[Old version] What Could Possibly Go Wrong? Running untrusted code in the cloud

In the wiki Large Language ModelsGitHubAmazon Web Services Also namedAzure, Google Cloud, AWS Lambda, OpenAI
Transcript 7514 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

Hi everyone, thank you for coming to our talk about what could possibly go wrong running untrusted cloud in the cloud. Um, so as we said, my name is Jules and I'm Daniel. And before jumping into the topic, I want to give you a little bit more of context. So data do is running in a multi cloud environment mainly the three big cloud providers Azure, GCP and AWS. So everything that we are showing

and what we are producing always has to be compliant with all these cloud cloud providers. Right now we are serving trillions of data points per hour for more than 33,000 customers and this is

powering more than 25 unique products

and some of these products need to run untrusted code from provided by our customers. So the idea is that they can

create a unique experience for themselves. For example, with static code analyzers, they can create rules on how to run or rules that we will test against their um source code. And we will just create a uh a result, a report. And this was done for a long time. And we usually use JavaScript as the main source for these scripts because there are a lot of um runtimes that can isolate JavaScript quite well. But what changed is that recently with AIS and

all these um agents, we now need to have

a new way on how to run arbitrary code

and arbitrary commands in a secure and isolated environment. Before going into the details, um the system that we are describing today is completely in production. It's generally available and all of our customers can just use it. And this is an example from our bits AI which is doing something which I will now explain. So back in 2024 um with the rise of LLMs and them getting better at coding tasks, we ask ourselves that we have a lot of information from our customers already. we have access to their source code and we know um real production errors that happen in their infrastructure. So couldn't we build something that is putting all of this together to create a code fix? And that's basically what Bits AI deaf agent is doing. And in this talk today, we want to walk you through how we made the system real and how it it works today.

So it started with a general vision. um

we had a controller that is in this case the bitsai coding agent and we need to have a way to create the sandbox so that it can do its work. If we have the sandbox, we want to fetch the code from GitHub. We want to forward it to the sandbox and then it's basically a back and forth between the uh AI provider and the sandbox. So the AI tells us what to do. We just go to the sandbox, execute it, we return back the result, and this is done until it's finished. And then last but not least, we will create a PR.

>> So in this model, in this product, we're um basically giving our customers remote code execution as a service because we're going to make modification to their code, run their test, verify that it's working well. And so from a security perspective, it's obviously giving the holy grail to the attacker, but it's it's not the end of the story. And what are we protecting against? How do we threat model entrusted execution? If we take a a simplistic view of the infrastructure of that system, we have our infrastructure a sandbox host which uh runs here two single tenant sandboxes, one of which is controlled by the attacker. We have internal hosts and cloud resources as well. The first element we want to prevent obviously is the attacker in the sandbox being able to escalate and escape from the container to access the host. that would grant them you know access to potentially the other sandboxes. Um it elevates privileges that would grant them a lot of u capabilities in our infrastructure. So we want to prevent the container escape. The second element we want to prevent is also the network escape preventing the sandbox to be able to connect to another sandbox uh to connect or internal host because basically this is similar to um an SSRF as a service as well. The third element is that this is all running in our infrastructure. So by default running an infrastructure gives you access to some of our cloud resources because you run in our org or in our accounts and stuff like that. So you want to prevent access to cloud resources to avoid the the attacker to be able to get data it shouldn't have. And finally we're modifying and making um changes to um

the customer's code. So we want to prevent excfiltration of that data. We're also accessing third parties on behalf of the customer. And while we may want to prevent the use of some credentials that are not scoped enough. So for example in GitHub the credentials are the same scope to create a PR or approve a PR. You may want to allow the sandbox to create a PR but not approve.

So we don't want those credentials to fe to end up in the sandbox because the attacker could or the user even could be excfiltrating them and using them outside of the sandbox. So we want to prevent those four main path. And so for each of those um areas we discuss with the infra team between the security team and the infra team what are some of the technologies or system that we need to put in place. So at first the container escapes we want to use microVMs. MicroVMs will ensure that we run a kernel in every sandbox. Um and so the only interface the attack surface is drastically reduced because you're um only having the hypervisor and the virtual virtualized hardware as your network like interface between your host and the the container.

The second element for internal network access we want to run network policies. Again implementation will depend on the infrastructure we decide. For the internal resource cloud resources access, we're going to use VPC endpoint policies in AWS and equivalent in other cloud networks uh cloud providers to prevent and filter specifically which resources within those endpoints we can access. Accessing S3.mazon Amazon.com is necessary but we want to restrict what bucket behind that endpoint. And finally in credentials or IM expiltration we need to run probably on the credentials proxy. The goal is really to ensure that a sandbox may use credentials but credentials never end up in a sandbox.

So now how do we made it real? Um we started as simple as possible. We had a look at our infrastructure and tried to figure out which building blocks were available already and we actually had quite a lot out of the box. So in the first iteration uh we wanted to figure out if it can be possible on top of Kubernetes in general and we created this um small infra proof of concept. On

the left side we have our normal application that might be any production application that we are running today. And on the right side we have created a new environment for our untrusted infrastructure and this is running Kubernetes um to abstract um what the library and the application is supposed to do. We we just have created a library that is filling the gap between the Kubernetes control plane and all the CRDs we need to use and the actual application developers because they don't care. They don't have to reimplement the wheel all the time. And this library is able to go to Kubernetes um create a pot. This part

has no internet access at all. And then

we can run arbitrary commands within this pot using Kubernetes Xac API which allows you to just run anything. So let's look a little bit into more details of these various parts. The first is the sandbox pot. Um as Jules mentioned before we are using microVMs um in order to do the isolation. So most

of you are probably aware of how VMs work. But on on a high level, traditional containers are all you are sharing the same kernel. So if application A is breaking out of the container, then they have access to application B and C. Whereas in in microVMs, we get a lightweight layer on top of that where every application is shipped with their own kernel. So if they are breaking out, they're just on their isolated environment. The second part is that we started creating um different cloud accounts. So the reason was that we weren't sure if all the buckets that we have and all the resources in our normal accounts are properly set up. So in order to ensure that if something happens in this untrusted space, we know the attack surface. So we've created a new cloud account and um we have added a

couple of VPCs to them. So on the left side we have our normal traditional um production VPC, our application and so on. And on the right side we have created two additional VPCs. One for control plane of Kubernetes and one for the worker nodes. And they're all peered together so that the control plane can talk to its workers. um and our application can talk to the control plane and create the sandboxes. But what's not possible is that the application is talking to the sandbox directly. And this gives us the opportunity to just use Kubernetes security mechanisms at least on on some ways. Uh we have now TLS and arbback to control who or which application has access to what sandboxes.

And the last part are selium network policies. We are using selium as our main CNI in our clusters and network policies are there out of the box. So we were just le able to leverage them from the beginning. But how does this now compare to our initial vision of the bits def agent. So coming back to this

uh to this um slide, we now know how to

create a sandbox from a controller. This is what we saw before. We also know how to fetch um code from GitHub from our customer GitHubs because this is part of our um of our product suite. But what's

missing is uh how we are pushing the code now from the controller to the sandbox. Um we could have done this using cubeex as well. But this means that we would have to push a lot of data like multiple gigabytes of data through the Kubernetes API which is unreliable and would create a huge bottleneck. So we decided to go a different path uh which is also well known. Um so we just leverage blob storage. The cool thing is that most of the big cloud providers have a blob storage offering and they are more or less the same feature set um

at least the things that we need. Um so we went ahead and we created a third uh account which is called the data account where we just have this specific um bucket just to ensure that nothing else can be shared uh with this sandbox and then we leverage VPC endpoints and endpoint policies um to on the one side

reduce costs because now all the data is going through there and we don't want to go through the public internet and on the other side to enhance um security uh with VPC endpoint policies we c we were able to tell the system that uh using this endpoint you can only access a certain bucket and um you can ensure that uh you you don't have access to anything else to share data on the trusted side of things with our normal application it was easy because we know how to um authenticate in in AWS for example um get credentials and all of this but we didn't want to um open this thing to the sandbox. So we didn't want the sandbox to create its own credentials and then potentially do something bad. So we decided to go for assigned URLs which means that the application is uploading the data to the object storage. It will create a signed URL with a short um time to live and then it will forward it to the sandbox which can then use it to download the data through the VPC endpoint.

And last but not least, uh, bucket access controls. So if we for some reason leak some of these signed URLs, we want to ensure that no one from the outside can access the bucket.

So now we have replaced this direct path of pushing code from the controller to the sandbox with blob storage. But there is something else that is missing. Like creating a code fix is easy, but you still want to validate that the codefix is working. And some easy way would be to at least compile the code or run the unit test. But in order to do that, you need to have dependencies like if you have a big NodeJS project, um you want to have access to npm to download the node modules. But that's not possible right now because we don't have any internet access. So in order to get around this, we have

pinhold our initial insumption of not

having any network access at all and we now allow people to define what they what they can access basically and this is done by three layers. So by default we deny everything. But if a sandbox owner wants to access something specific, they can tell us um for example the IP range they want to access and then they are now allowed to go to this IP range. However, if they

accidentially or out of nowhere just

want to access everything, we still want to protect our internal infrastructure because there might be open holes of authentication. So we have a third layer which is a final deny all internal access and with this we now have a possibility to go to the public internet and um but while denying internal infra still but you might be asking like there are so many u moving parts now like we have probably some terraform somewhere in the repository to define the VPCs we have some kubernetus resources to define the selium network policies and all of them might be handled by different teams even and it can happen that someone configures something poorly um without

knowing and we we tried to solve this uh through pipelines and reviews but there will be something happening at some point. So we decided to go to uh uh a different route and instead we have created a runtime checking application that is called Houdini which is basically injected into every sandbox and it will run as the first thing on sandbox start and the cool thing is that it can now check all the assumptions that we put in place before like does it have access to some host mounts for example maybe it has some network access it shouldn't have and many more and only If these are all passing then we are continuing to run the application but if they're not passing if one of them is failing like maybe we do have access to one internal route then we will just terminate the sandbox.

This means that in worst case we will cause outages but we accepted this risk

uh in favor of our customers data.

So this is the final picture of our um dev agent after all and this is like our infrastructure in the first version like we replaced the no network access with

having access to the internet and we added the blob storage. >> Thank you Daniel. So there's still a lot that is necessary for us to build a secure dev agent in this infrastructure. There's still a lot of features we need. What we have is a runtime isolated execution. We're running microVMs. We don't have access to the rest of the runtime. We have basic internet access public dependency uh package managers and a scalable cloud infrastructure. That's what we validated at first. We go step by step and we we validate that first. But we still need a lot more for it to be a successful coding agent in the cloud. We need a faster startup and execution time. We need authenticated third-party access which is very important for the agent to be really um powerful and a better user experience overall. So so far um our system runs on

a very specific back end. We've been using kata sandboxes but we may want to open up to other sandboxing infrastructures maybe gisor or external sandbox providers. Right now the infrastructure is leaked a lot into the library and the application which means that changing that back end is is really tough. So for better user experience uh we wanted to ensure that all of the traffic goes through one service we own where we own that backend implementation which implemented the coordinator that will make the application just talk to the coordinator u through the one way and the coordinator takes care of which runtime to run. Second element we see

with the recent harnesses from LLM providers that right now we used to run the harness in the controller granted access to the AI provider granted access to third parties like GitHub and then the execution in the sandbox to access the third parties like npm or the package dependency managers. What we're seeing right now is that a lot of the the harness is really good and is very important and running it in the sandbox has a lot of benefits. So now the harness is running in the sandbox, but how does it get access to the I provider or GitHub? And that authenticated access to third parties is very important for us. We want to make sure that we can gate each sandbox's access to third parties without exposing credentials, but granting the sandbox the autonomy it needs. So we have the the harness running in a sandbox. We have the harness request data to the gateway, not directly the third party through the gateway so that we can uh intercept the traffic easily and and read it. The gateway will identify the hard the sandbox through a new identity that we implemented and added. This identity only allows the sandbox to authenticate to that gateway. Nothing else. It's really a non-powerful identity. If the identity is validated, we will eventually fetch the secret from the secret store and forward the request to the third party. That credential injection proxy really needs to be careful about stripping back the credentials from the response as well.

We don't want a third party that has a reflection API to return back the in the response body the credentials and stuff like that. This is really our sanitization proxy to ensure that no credentials go back to the sandbox. With that system in place, we can really gate the access to the third parties also filter down which API call can be made. Maybe open a PR but not approve a PR and stuff like that. Another thing that we noticed after bringing a v1 to production is that Kubernetes XAG is somewhat unreliable. Like we sometimes had issues with truncated output of the command, it was um quite slow at some point like the

numbers are not super bad, but if you're thinking about act adding a lot of these requests to your latency, it will add up quite a lot. So we decided why not

giving the application access to the sandbox directly instead. Like in theory the only thing Kubernetes gives us is uh TLS and some kind of access control and we could reimplement it ourselves. And we did this by adding another application that is now running as the main part of every sandbox. And it will be the only thing that we are starting in the beginning. And we call it the sandbox agent. And this agent um has some RPC interface that lets users um do certain things

like running commands and file access. But an important part is um that we wanted to have MTLS uh for for identity management. So now we need to have a way on how to

do the the um TLS uh exchange. The way

it works is that the library is now generating its own certificate. It will forward it to the coordinator with the create sandbox command. The coordinator will now go through the Kubernetes API as usual. it will um embeds this client

search into the potspec and then um when the agent comes up and is available it will connect back to the coordinator and it will do its own round of certificate

creation so that it's signed and valid and then finally we now have access direct access from our library to the agent and this is like a a basic overview of the GC endpoint point that we have today like you can run arbitrary commands like this lets you run anything u you can do file access like uploading files downloading files listing them and many other things and I want to go with you through a final example of how the library looks like and how it's um projected on the in infrastructure side so in this example you can see um four four different parts Um the first part is how to create the sandbox. It doesn't take a lot of um a lot of arguments. You just define which name space, what's the name and the rest is done under the hood. Then you can run any command. In this case, it's a git clone of some private repository. And then you can do whatever you want to do.

In this case, downloading a file and then finally terminating the sandbox. And now I want to to show you how it works under the hood. Like when you're creating a sandbox through the system, the library in the user app is going to our internal identity service and generates an identity for the new sandbox. This identity with the empty less certificate and all the spec is forwarded to the coordinator which will then create the pot and the pot includes our sandbox agent as well as all the tooling um our user needs and then after this it's creating a dedicated selium network policy because we want to have access to GitHub in this case.

um it will wait until the agent is up and running so we can do all the TLS stuff and then finally we now have access to run something and all of this was uh embedded into the first part of

um the command before. Um in in number six we we want to run git clone now. So we will go to the agent, it will run the command si commands and then git tries to go to GitHub and it will land in our network gateway and this network gateway now um validates if the sandbox identity is supposed to have access to GitHub and to specific repositories and if this is the case it will fetch the token from our secret store and then finally it will forward the request to GitHub and this is how the overall chain works.

Thank you. So this is a lot of moving pieces and that's how we built our system to allow arbitrary code execution safely uh in our cloud infrastructure. But despite the fact that we the security team and the infra team we discussed a lot we designed all of these together. We performed the pentest internally of our system. We tried uh to break it in a lot of ways. We it's tough. It's a lot of moving pieces and we realized that LLM and cyber models are getting better and better at doing this with us. So we wanted to use that project to start doing continuous pent tests with AI. Um and and basically our goal is to tell the agent come on just break out of this sandbox for me. So how did we do this? What's the goal? The first is that this is a rapidly evolving system and we want to give our infra team a way to continuously test their system or our our system. Um, anytime there's a major change, obviously the security team and the infra team we discuss, we try to find a good architecture to find good solutions. Um, but we want them to be able to test it on every single small change. The goal is not to replace pentesting. The goal is to complement the pentesting team and us in the security team. We try to guide the LLM to test the right elements and to be performant. We also want the pentest team to be able to take the results of that AI agent and and move on and continue and and finish the the work, you know, to to get to the the result we want. And the goal is to run autonomously on changes on schedule.

What is important is that while a certain state may be fine or we think this is fine, we haven't found any failure. um new models will evolve, things will improve and um knowledge and and and reports will come up on the internet and so the agent may find issues that he had didn't uncover before. So we need to autonomously run on a schedule as well even if there's no changes. So the question we want to answer is how do we have agent continuously testing our environment and to make it work well we have three elements that are very important to make the agent powerful on those assessments. The first one, giving it a goal to avoid invalid early exits.

Improving accuracy. We don't want to be an agent is very good at at finding vulnerabilities and finding things that don't exist. So, we want to make sure that it finds things that are relevant for us. And then the question like how do we trust what the agent finds?

We realize with the goal that finding vulnerabilities is the wrong objective. We want to give the the agent the right goal and harness but really trying to avoid the agent surfacing things that don't matter to us that are not um important uh or avoid or stop early. So we want a clear reward function. You've seen maybe in some recent harnesses skills like /goal where it continues and continues and continues until it reached his goal. That's very important. We want to tell the agent this is when you're done. This is when you find something valuable. Um, we want a clear scope definition. Uh, we want to make sure that the agent emulates what an attacker has access to. And so if I give it access to, for example, spawning a sandbox, then the way the sandbox is spawned is not necessarily something that the attacker has control of. So it's a different test. So we want to make sure that the agent test the right thing and and all the goal to avoid invalidly exit. So what is wrong is telling the agent find the vulnerabilities in this implementation and then validate them leads to a lot of early exits that that are not what we want. What we try to do is really give the agent clear invariance security invariance to uh tell it whenever it breaks something that is of value to us.

No access to the host. No pottood access or sandbox to send access. No tenant confusion on that network gateway we talked about. No internal egress. If the agent is able to break any of those rules, it knows it's super valuable to us. And so it will run and run and run until it breaks one of those within the allotted budget. The second element is the improve improving accuracy for each of those invariants we defined before. The agent will spawn a sub agent, try to find a few attack path and explore each of them in sub agents. It performs its vulnerability research, but that that leads to incorrect findings. I think that if I send a fuse request to the um

file system then I can create a file on the host and I can escape. All super apothetical and the findings is usually inaccurate or it's started but it's not over it's not done. So what we did is we want to give the agent a way to self assess. So we modified the pipeline a bit. We now perform the verity research but we grant the agent access to the sandbox directly for SSH. So we tell the agent hey you think you can break that sandbox go execute in that sandbox go

even in staging on our whole system it's a it's a system that is meant to run code execution for our customers and attackers can have access to it. So break staging is fine it's very important to us. So we give it access to the sandbox and we also give it access to telemetry. We're using data dog obviously but the goal is really to give the agent this external point of view. It's very important for everything that is like blind attacks. You think you created a file on the host and that it will trigger a chron tab double check through the telemetry that that process ran on the host. You think you made a network request to that third party server go check my telemetry to tell me if that request happened because otherwise it's all hallucinations. And so that really allows us to improve the accuracy of findings to make sure that the agent continues and improves its own PC until it's right. What we see a lot is that the agent will sometimes find the right first path, but this execution and this telemetry allows it to refine the P and the exploit until it is completely accurate. And so when we when I read the report, I I it makes my life much easier when the PC works.

So the last element is how can I trust my agents results. It's very important that our end goal is not that the agent finds vulnerabilities. Trust me, I would rather have my agent tell me I couldn't find a single vulnerability. But how can I trust when the agent tells me I couldn't find anything that it didn't just run blind and do

useless work? So what we want, we're going to have a system where we have two types of issues or like two types of outcomes. either our agent finds the issue or our agent does not find the issue or the issues. And what we're going to try to do is we're going to test our agent. We're going to put a known failure in some of those builds. uh when we test it and a vulnerability a pass vulnerability we saw we purposefully implement inject it here or we run it on the production not the production like the the actual system um where we do not know of a failure and here we have our test so first if we know there's a failure and the agent finds the issue test is validated it's all good found the issue we're lucky but if it doesn't find it this is a harness error it's not good enough. It couldn't find what we know is there. So, I cannot trust that it did a good job. If we do not know of a failure and it finds the issue, goal achieved.

We improved security. We found the issue that we couldn't find. And that's great. That's the first goal we're looking at. But the end goal is that bottom right corner where we do not know of a failure and the agent didn't find anything because we fixed it all. And the question is, how can we trust that this is relevant? Well, it's relevant because every time we knew there was a failure, we ended up in that top left quadrant where the tests were validated. So, it is at least as good as us. And that's what we're looking for. The agent finds every time there's a thing we know so that when it doesn't find anything, we know it did a good enough job within the alerted budget and time that we assigned it. So, this is the only way for us that we can trust the agent is right when it says I couldn't find anything. And this is where we want to end. So, what are some of the findings and learnings? We have three examples I wanted to share that are I think interesting. An ICMP excfiltration side channel attack and a VSOX access control bypass. The first one the ICMP excfiltration. It breaks the data exfiltration model. You shouldn't be able to exfiltrate data.

It's similar to a DNS exfiltration but using the ICMP protocol that is used in commands like ping for example. And this one was validated through the execution on the live sandbox. Our agent told us like hey I run that Python code submitted that ICMP packet with the secret it's gone I exfiltrated data well

did it though it's a false positive because the execution succeeded on the host but the actual request got blocked by network policies so this is one of those examples where having that outside POV and the telemetry is really helpful to verify that what you see in the sandbox is not just um a smoke screen.

The second element so that that really pushed us to give it better telemetry access. The second element is the side channel communication attack. Um the goal was to break the no pod to pod or sandbox to sendbox communication threat model. The agent possessed two colloccated sandboxes to try to simulate, you know, an attacker and a defender or like a victim and it showed

that it could through disk usage because the the file system was shared transfer eight bytes of data at a time between two sandboxes. It's a very interesting bug. It's a valid one, but it's one that is invalid in our threat model because in our threat model, two attackers are not gonna I mean a victim is not going to agree on a communication protocol with the attacker. And so it expected both sandboxes to be attacker controlled and it is not really what we're fighting against. We're fighting against an attacker stealing the data of the the customer, the neighbor customer. So very very valid finding, super interesting because I I we did not see that one. was quite a a lot to unfold there. Uh but it

it showed us the the threat model invariant was a bit underdefined. So it's a good thing for us to try to explain as well what we're looking for to the agent and give it the right reward function. Finally, the last um element was the VSOC access control bypass. We VSOC in a VM is a way um the it's a it's a virtual socket. It's a way the VM can talk to the host. We are using VSOC to grant

telemetry to within the VM because the VM has its own kernel and it's very isolated from the outside. You cannot get that much telemetry from it automatically. So we use that VSO to have our telemetry system ship back that telemetry data to the host. The goal was to break the pod to host threat model and um the agent possesses a sandbox and

it showed that the voc is inaccessible by default but the control we put on preventing the access to that v virtual socket uh could be bypassed super interesting finding very smart um it was a valid finding one that showed that our control were not strong enough despite our security regime so this is a a system we had discussed with the infra team we reviewed and it it it's been good. It it found the the issue we we couldn't see. And so it allowed allowed us to quickly respond and prevent the abuse of it and turn off that feature before before any customer could ever ever see it. And um and so this is very helpful for us because that that was you know that bottom left quadrant which is it found something we couldn't find. So we're very happy with it.

So as I said in the beginning um the system that we have built is completely in production and it's running tens of millions of sandboxes per month right now. And during the talk I I was always using or we were always using um the bits coding agent as our main customer. But it turns out that there are so many other use cases and existing products in our infrastructure that uses the same more or less idea. So we were able to also onboard other systems and allow our um

our developers and product teams to build even more of them. For example, workflow automation was only done with JavaScript and now they can also run Python and potentially other um languages in the future. And with this I say thank you and if you have any questions please ask them now or reach to us later.

Thank you Jules and Daniel. As a reminder for folks on the live stream, uh we do have a Slack question thread. Um first question though I want to ask is uh you talk a lot about different AWS accounts and how do you think about um isolating different customers? Does each customer get their own set of accounts and then within yourself are you creating like different ads organization that's untrusted? Um so curious how you handle that. >> Yeah. Um shared model um each sandbox is

obviously single tenant and single use. So even for two execution of a workflow

task or a bits agent for the same customer we don't reuse the sandbox. Um the infrastructure we use is is multi-tenant. um setting up all those accounts, the data account, the trusted account, the untrusted account for each customer is is quite a mouthful. Um so that's why

the container escape is so important. That's why the network escape are so important because we're we're a multi multi-tenant setup. Um so the sandbox is really our trust boundary here.

>> Other questions?

Congratulations

for the talk. Very good. >> Thank you. >> Um you guys have been talking about Kubernetes because I guess gives you uh flexibility enough to secure the paths and everything, right? Um and have you

tried or what is your experience doing similar things with ECS for example, Pargate etc.? um we have not because like we have a big team that knows Kubernetes quite well and it was working already. So there was no need to uh to look for something else. However, before starting all of this, we had a quick look at um

function as a service systems like Lambda um because just to be faster, let's say.

And it turns out that lambda functions are not single tendant. So it was not the right fit for our use case. And then we we jumped directly into Kubernetes. They the lambda functions also have like a limited runtime uh duration. And so some of our agent sessions will run for hours. Um and then since we're multi cloud you know every time you look at a cloud provider specific solution it you mean it means that you need to double triple quadruple that work on the other cloud providers and they don't have always the same guarantees. So it it it

we wanted to but but it's not that easy for us either.

Sorry, I was hiding behind the poll. Um, uh, a follow-up question around the use of Kubernetes there. Uh, you know, one of the struggles that often comes with running untrusted workloads inside of Kubernetes is the the mix of trusted and untrusted and how do you keep trusted workflows from getting scheduled on those nodes? Um, do are you sidest stepping that problem by just that cluster only runs untrusted workflows or is the threat model just if you break out of the VM you're bad?

So um we've decided to just create dedicated clusters for this. So we are not mixing them together. Um it's a dedicated cluster and the applications get access to only their name spaces to run it. >> Got it. Thank you.

Hey, great talk. Thanks. Uh, could you please elaborate on the decision to put the agent harness inside the sandbox because I've personally seen in the industry many different approaches about this specific decision. >> Um, yeah, I mean it it usually starts with the dev team coming to us and be like, I have this crazy idea. I want to run everything in that pod, do whatever I want and and this is possible, right? And so Daniel and I start saying like, "Yes, yes, for sure." And then we go to a room and cry. Um, and it's mostly a product team that told us like, "Hey, we we want to run the agent the harness directly in the sandbox because my customer wants to run cloud code and they have skills for code and and we cannot run our own harness outside." So it got moved to the sandbox and we were like, "Okay, we need to have internet access from within the sandbox and all of that." Actually a week or two ago product team came back to me and be like hey Jules you know I would like to run cloud code but outside of the sandbox like going back to the old model but differently. So it's very product specific. I think this is an an area that's changes so fast so quickly.

No one knows really what's best and we go with the flow. So right now we are in a place where we've enabled our teams to do both. Um and and yeah, so it's not our decision, it's really a product decision or product ask. >> Yeah, makes sense. Thank you.

>> Hi, that was a great talk. Thank you here. >> Thank you. >> I just uh I was interested in one of the responses that you gave before. Did you actually explore uh AWS Lambda microVMs?

>> We did >> after we did our system. Yes. Okay. So

there are ideas to figure out if we

should use other systems like AWS micro lambda microvms are one of them. They have their limitations but there are also other startups out there like I don't know tensor lake and others that have a good offering of these kind of sandboxes and can scale very well. And we are currently in a phase of evaluating if we should replace it, build, rebuild our internal system or what to do. >> Thank you. >> And that's that's also why we went step by step in building that because we want to be able to continuously reassess if we're making the right decision. Switch if we need to switch or we're not opinionated of our infra, we're opinionated about building something that works, whatever the back end is.

Hi, thank you a lot for for the talk and the presentation. Uh I I just want to go back to um the continuous pen testing that you were presenting. Uh and I was wondering how do you manage um uh avoiding the limitation of the LLM themselves that uh does not allows you to do pentest? Do you have what's what the strategy you have to to do things that are not allowed by the LLMs? So um

we're in contact with Enthropic, OpenAI, different LM providers. Um you may be aware that um there are trusted programs

that removes guardrails. You also have models that don't have guadrails like such as like GLM 5.3 and stuff like that. So um this is what we work with mo mostly systems that have less guardrails so that it doesn't

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers
That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 537 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks