# Demystifying eBPF with Liz Rice: A Deep Dive into Kernel Programming and Security

> I explore the transformative world of eBPF with Liz Rice, diving into how this technology is revolutionizing observability, security, and networking. From Netflix's pioneering work to Isovalent's innovations, we unpack what makes eBPF a game-changer for modern infrastructure.

- **Show:** Nerding Out with Viktor, hosted by Viktor Petersson
- **Episode:** Season 1, episode 11
- **Guests:** Liz Rice
- **Published:** 2024-05-20
- **Duration:** 51 min
- **Watch or listen:** [YouTube](https://www.youtube.com/watch?v=V5nmfDoiFys), [Spotify](https://open.spotify.com/episode/4wXF9lIeJhoWVogxof0oe5), [Apple Podcasts](https://podcasts.apple.com/gb/podcast/demystifying-ebpf-with-liz-rice-a-deep-dive-into/id1722663295?i=1000656091310), [Amazon Music](https://music.amazon.co.uk/podcasts/c8e79c21-2dde-4597-b9fb-257ecbc2bf29/episodes/2abbad1e-ca7d-465c-9173-17cf740e05a9/nerding-out-with-viktor-demystifying-ebpf-with-liz-rice-a-deep-dive-into-kernel-programming-and-security)

In this episode, I'm joined by Liz Rice, a security expert and open-source advocate, for a deep dive into the fascinating world of eBPF. Liz's expertise in kernel programming and security offers unique insights into how this technology is reshaping modern infrastructure.

We start by breaking down what eBPF actually is - dynamic programming of the Linux kernel to alter its behavior. What particularly caught my attention was how this technology has evolved far beyond its original purpose of packet filtering. Liz shares her introduction to eBPF through Thomas Graf's presentation on Cilium at DockerCon 2017, while I highlight Brendan Gregg's groundbreaking work at Netflix using eBPF for network diagnostics.

The conversation gets especially interesting when we explore how eBPF is revolutionizing traditional tools like IP tables. Liz explains how eBPF's efficiency makes complex tasks like network policy enforcement and zero-trust networking more achievable in modern cloud-native architectures. Her insights into combining eBPF with tools like WireGuard and IPsec for secure communication reveal the practical implications for modern infrastructure.

I was particularly intrigued by our discussion of Tetragon, a Cilium project that leverages eBPF for runtime security. Liz's explanation of how it enables real-time, low-overhead monitoring and threat response showcases the practical applications of this technology. We also tackle recent supply chain security challenges, like the Log4j vulnerability, exploring how eBPF-based tools can adapt quickly to emerging threats.

If you're interested in infrastructure security, kernel programming, or the future of cloud-native technologies, you'll find plenty of practical insights here. Liz brings both deep technical knowledge and practical experience to the discussion, making complex kernel concepts accessible while maintaining their technical depth.

## Transcript

**Viktor Petersson** [00:03]: Welcome back to nerding out with Victor today. My guest is Liss Rice, who is a security geek and open source champion. I got to know Liz a number of years ago when were both part of the early London Kubernetes scene. Since then, Liz has moved up in the world and written no less than two books. The most recent one about EBPF, which I actually got a copy of right here, thanks to Liz.

**Liz Rice** [00:25]: Amazing.

**Viktor Petersson** [00:27]: And today's conversation will be largely around EBPF, but not limited to EBBF. But without further ado, welcome to the show, Liz.

**Liz Rice** [00:35]: Thanks for having me, Victor. Good to be here.

**Viktor Petersson** [00:38]: It's always a pleasure catching up with you. So I guess we should start with EBPF. And so I guess a good question to frame that is, what's EBPF, and why should I care?

**Liz Rice** [00:51]: Sure. So you might think, oh, it's EBPF. That sounds like an acronym. I want to know what it stands for. I can tell you it kind of used to stand for extended Berkeley packet filter, but you can honestly forget that, because, like, it does so much more than packet filtering. What it lets you do is program the kernel so we can change the way the kernel behaves dynamically. And the reason why that's so powerful is that the kernel is involved with pretty much anything interesting that would do with computers. So the kernel is really the bit of the operating system that interfaces with hardware. So if you want to write to a file or, you know, get a network message or something like that, then the kernel is involved. User space developers don't normally have to really think about it, but their programming languages are using these abstractions that call system calls that ask the kernel to do these things with hardware. The kernel is also looking after things like permissions and privileges and coordinating multiple different processes. So if we can change the way the kernel behaves, we can use that to influence all sorts of things in the system. Really common use cases would be instrumenting events in the kernel to use that for observability security, because we can affect whether or not things are allowed to happen or not. So we can do some really cool dynamic security tooling and networking where we can essentially take network packets and kind of do whatever we want with them, possibly passing them back to the kernels networking stack, or possibly doing something. So tons of really cool kind of infrastructure level things that we can do with Ebbs.

**Viktor Petersson** [02:47]: And if I'm not mistaken, the early days of, well, Ebbs claimed the fame really was Brendan Greggs at Netflix trying to debug firehose of data and traditional network diagnostic tools could really not cope with the volume of traffic that Netflix had even back then. And that's where it really started, if that is correct assessment or I. I.

**Liz Rice** [03:10]: Mean, Brendan certainly was involved right from the early days and did some amazing work around using EBPF, that kind of observability for tracing, for performance, you know, measurements. Yeah, tons of really great work there. In fact, behind me, I've got the poster for the EBPF documentary. Little plug for that. Alexei, who's at the top of the. In the middle of that poster, Brendan is on there. He's to the. If we're looking at the screen, he's to the left of Alexei. So that's Brendan. Greg, Alexei's in the middle. And he was at. Well, what was Facebook back then? Meta now. And he had this kind of crazy idea to run programs in the. In the kernel. One of the consequences of meta being involved really early on is, yeah, again, things being done at massive scale. And every network packet that has been sent or received to Facebook or Instagram or whatever else since, I want to say, 2016 from memory, has all been processed by.

**Viktor Petersson** [04:25]: Oh, wow.

**Liz Rice** [04:26]: Which is massive.

**Viktor Petersson** [04:29]: That's. Yeah, that is pretty crazy. And, Yeah, so I think I first came across EBPF when there was, I believe, a Falco port into EBPF. And this must have been what, five, six years ago? Probably something like that. And that's when I started digging into EBPF and started playing a little bit with the tooling and got really interested. And then I've seen quite a few talks around that since. But you were, I believe you were at Aqua at the time, roughly, I believe. Right. Was that your first exposure to EBPF around that time period or when did you start diving into that?

**Liz Rice** [05:05]: So my first exposure to EBPF was seeing Thomas Graff, who I now work with at isovalent, presenting on psyllium at a docacon. And it was, I want to say 2017, might have even been 2016. I think it was 2017. And I was doing a talk about how containers work, and Thomas was doing this talk in the same track about cilium and how it was using EBPF to do container networking. And I remember thinking at the time, this is amazing, but back then, you needed a version of the kernel that was really cutting edge, that nobody, actually.

**Viktor Petersson** [05:48]: None of the cloud vendors had ran it.

**Liz Rice** [05:50]: Yeah. But I remember thinking at the time, this is going to be super interesting when people, you know, don't need to build their own kernel to try it out. And so I'd kind of been keeping my eye on it. And then when I was at AQA, one of my colleagues was talking about using EBPF. He was actually doing some kind of postgrad project using EBPF on Android, but he had the idea that perhaps we could use it for security purposes. And yeah, around the same time, I think Falco was doing its port from kernel modules to EBPF, they still support both versions. And then, so we built Acqua, a project called Tracy. And then I spoke at the EBPF summit in 2020, which is surveillance organised. And I kind of realized through that event that although I felt like I knew something about EBPF, my tip of the iceberg, when there was this enormous sort of additional amount of information and that all the experts in it, a lot of the experts, was a ton of expertise in isovalent. So that was the beginning of what has turned out to be a very fruitful conversation that we had back then about me getting involved with isovalent.

**Viktor Petersson** [07:17]: Very nice. I guess it started as a diagnostics tool, but evolved into far more of a programming language and a vm in a sense, from a programming perspective. To run. Talk to me a bit more about what you guys are doing right now at isoviolet with networking, routing and all these things around. Because, I mean, it started with diagnostics, relatively easy to wrap your head around, but now we're doing far more complicated things like building networking and zero trust networking models around EBPF on top of EBPF, I guess. Walk me through how that actually works and how well, basically the architect of how something can be accomplished using EBPF. Really?

**Liz Rice** [08:07]: Yeah. So the other character I should maybe point out from the poster on the other side, Alexei's right, is Daniel Balkman, who is at ISO Valent. And he saw Alexei's idea about this kind of virtual machine in the kernel. He saw that being posted mailingly. And I think the way it was originally presented was maybe a little bit much for the kernel community to absorb. But then you kind of looked at it and thought there's something really useful here. And he was involved in kernel networking and he, I guess, saw the potential for using EBPF on the networking side. So he worked with Alexei and they became the maintainers of the EBPF subsystem in the kernel at the time. And I guess what Daniel could see, you know, what he was able to anticipate was we could intercept network packets and either manipulate them or drop them or redirect them in the kernel stack. So we can insert EBPF programs into a variety of different places in the networking stack and make decisions about what to do with the packets that we see. And for kernel, sorry for container networking, this is super interesting because of the way we create network namespaces for different containers. So you typically say you've got a container and a running on a host, the host has a network namespace and we typically put the container into its own network namespace. So if a packet comes, you know, it arrives over a physical interface into the host. It gets traditionally routed all the way through the host's networking stack. And then there's a virtual ethernet connection into the containers networking namespace where it then goes through the whole networking stack again to get to the application. And what we're able to do with EBPF is intercept the packet early on and say well I can see this is intended for the container, so rather than going all the way through the host network, I'll just send it directly to the virtual Ethernet connection and make that a much shorter part.

**Viktor Petersson** [10:39]: So you replaced entire iptables because Docker container is basically our blackmagic around iptables essentially. Right, which is very fragile in many.

**Liz Rice** [10:50]: Ways and can be a performance hit, particularly in a dynamic world like kubernetes where we're just creating and destroying IP addresses all the time. And those require IP tables to be rewritten. The way iptables works, they have to be rewritten. One change, the entire table has to be rewritten. Doesn't scale very well. But we, yeah, we can bypass all that with ciliate.

**Viktor Petersson** [11:20]: Okay.

**Liz Rice** [11:21]: And then we also get the option to look at those packets and say, use it for network policy so we can make decisions about dropping packets if they don't comply with the network policy. So right from the really early day, you know, that initial demo that I saw Thomas doing back in 2020 2017 was about network policies and the ability to drop packets and build these powerful network policies very easily.

**Viktor Petersson** [11:50]: Right. And I guess the two questions that comes to mind around docker networking, what networking in a Kubernetes or cloud native workload is. The first one is you can explain the fiscal routing to the container, but how would you do in a zero trust world, vm to vm routing? Is that something that's covered by users? Because that would be, I guess, how do you see that? I guess in the upfront world, can you do host to host communication within that framework as well?

**Liz Rice** [12:24]: Yeah. So if we think about you have to have a network connecting to machine and, you know, we're not involved at the physical layer, but everything kind of above that we can be involved in. Silium's vision is really to enable all networking, you know, any workload to connect to any other workload without having to worry about whether it's in Kubernetes or on a legacy machine or where it is from. You know, in a kind of naive way, they're just IP addresses. Now we might have to know how that IP address matches to a particular endpoint, but provided we know how to route to that IP address, we can. Why can we not? We can do that, but we can be quite sophisticated about knowing what all these different endpoints are having. Network policies, understanding things at layer seven as well. So we could be doing things like domain name based network policies and API aware network policies. So for example, GRPC policies that are able to interpret different GRPC requests or HTTP requests only allow posts to this particular endpoint.

**Viktor Petersson** [13:59]: Right. So are you able to do, I guess, encryption as well when you do node to node communication in the EBPF layer? So you can actually do TL's directly in the EBPF layer?

**Liz Rice** [14:11]: Well, the way we typically do it is to leverage either wireguard or iPsec. You know, there's that old saying about don't roll your own crypto, so. But we can do that again very efficiently, the way I'm more familiar with wireguard than I am with Ipsec kind of implementation layer. And wireguard presents itself as a virtual network interface, much like the way that containers present a virtual Ethernet interface. So from a silium perspective, we can configure these interfaces and send packets. We're making choices about where to send packets, which to use a wireguard interface.

**Viktor Petersson** [15:04]: Okay, that makes a lot of sense. One of the things that I got very excited about in the Kubernetes world in the early days, not so early days, but was istio? And that is a project that had a lot of promise. Everybody was really excited about it, but it kind of fell flat. I know there are a lot of people who did implement it, but I haven't heard many success stories but didn't include a lot of engineers on page of duty twenty four seven to monitor it. Is that kind of the alternative to what you're looking at, or how do you see istio fitting in together with this? Or they're completely unrelated.

**Liz Rice** [15:46]: Yeah. So it is really interesting when we think about what is a service mesh? And if you ask two different people, you will get two different. What you want from a service mesh depends on your requirements, your environment and what have you. But really what service meshes are about is let's make sure applications can speak to each other. Yeah, maybe there's some load balancing involved. Maybe there's some, you know, things like rolling out load balancing between different versions of a particular service. And I remember when, early on when I joined isurveillant talking to Thomas and he was saying, you know, we already have like 80% of a service mesh because, you know, we already have encryption, we already have load balancing. Really, the only bit at that point we didn't have was ingress. And we now support ingress, and we now support gateway API Kubernetes world as the kind of scalable big brother to ingress. And the advantage that we have in the cilian world is that we're covering all the layers of the networking stack. So Istio has kind of had to build additional resources to represent these kind of concepts that are really networking based that we can kind of handle within the networking stack. So we think about, you know, our vision of just being able to connect everything to everything. There's enough information in a gateway API definition to tell us, well, okay, this request is supposed to be sent to this particular type of backend. And we already had Kubernetes services, we already had the ability to load balance across them. It's a relatively small lift to go from that to what people are calling a service mesh today. So, yeah, I mean, when people say, okay, we're running istio, how can we, you know, can psyllium do this in a more lightweight way? You know, the answer is yes. Do we reproduce all the cilium resource types? No. All the istio resource types? No, we don't. Do we use. I guess the other point about it is the way that well, the way that we can avoid using. So there's a new thing called ambient mesh coming into istio, but let's just park that for a moment and talk about traditional istio, where it uses sidecars in every pod. And there are a few sort of downsides to sidecars that apply. Whether we're talking about service mesh or any other kind of instrumentation, you have to get the sidecar container into your pod, which basically means restarting the pod. So your instrumentation and your application lifecycle start being tightly coupled. You have to be confident that the, all the pods are actually instrumented correctly, that the container is being injected, whether that's in CI CD or some kind of webhook, it's got to happen, whereas if we can do everything at the EBPF layer, we only have to instrument the host, we don't have to instrument every single individual pod. So that saves us lots of resources. It means we don't have to modify running pods. We can just enable features in the kind of using EBPF in the kernel layer and in the cilium agent, and it just works for existing running application. The other cool thing is if you have a proxy running inside the pod, so we use the same proxy, we use envoy, which is the same proxy that IsDA.

**Viktor Petersson** [20:07]: Yeah.

**Liz Rice** [20:08]: But instead of having one inside every single pod, we have one per host. In the sidecar model, every single packet has to traverse through the proxy and then out of the pod, whereas not every packet necessarily needs to be terminated. If you've got a layer three packet or you've got a udp, you don't necessarily need to have gone through a proxy. So we can avoid going to the proxy if it's not necessary. And if you imagine you have two pods on the same host, if they're communicating with each other, it's going through two proxies in this sidecar model, because there's a sidecar in each pod, whereas if we've just got one proxy on the host, we only have to go through the proxy once, if at all.

**Viktor Petersson** [21:03]: Yeah.

**Liz Rice** [21:04]: So the performance is really quite significantly improved.

**Viktor Petersson** [21:09]: How do you deal with, I guess, attestation and workload identity? Because that's two of the things that istio does, right? Because that's the MTLs or zero trust element of istio. Right. If you're running a single, like one of the benefits, I guess, of running a sidecar is that you can tie tightly couple the identity with the workload, whereas if you're running on the host, I guess you have less tight mapping, I guess. How are you thinking about that?

**Liz Rice** [21:37]: Yeah, so one point about MTLs is absolutely, a lot of people have a requirement for all traffic to be encrypted at rest and in flight. So you want to know that all connections are encrypted. MTLS is not the only hammer for the encryption now. Right. We talked about wireguard and Ipsec earlier. So for a lot of use cases, if what you're looking for is encrypted traffic, you don't actually need mtls from workload to.

**Viktor Petersson** [22:15]: Right.

**Liz Rice** [22:15]: You do want mtls or something like it. If you are actually wanting to cryptographically verify the identities at either end of that connection. And if you do, then mtls is one way of solving that problem. What we've done in silium is separate out the kind of handshake part that happens when you upgrade TCP connector. The TL's, we've separated that from the encryption part. So what we actually do is have the agent at either end use a spiffy identity. We're using spiffy Spire to get the cryptographic identity for each workload. The agent actually does that handshake on behalf of the work. And if that handshake is successful, we then allow traffic to pass and we can use wireguard as the encryption mechanism. So the encryption and the identity verification are kind of separated out.

**Viktor Petersson** [23:29]: I see, I see. But you still run some kind of PKI, then, within the cluster or within the workload as part of your agent server agent model, I guess.

**Liz Rice** [23:39]: Yeah. We built this with a kind of pluggable API for the identity mechanism. The out of the box solution is spiffy Spire, but it could be something else, right?

**Viktor Petersson** [23:52]: You could plug into your cloud based PKI if you wanted to, I presume. Or.

**Liz Rice** [23:56]: Yeah, I mean, whether or not there's actually an implementation today against that API is, you know.

**Viktor Petersson** [24:03]: Yeah, but at the end of the day, it's x 509 at the end of the day, right?

**Liz Rice** [24:06]: Yeah, yeah. It's standard. I.

**Viktor Petersson** [24:09]: Cool. Let me take a step back and talk more about, I guess, security of EBPF. Obviously, you mentioned already there was a lot of reluctance in accepting this into the kernel from earlier, for obvious reason. Because now you can execute code from use space inside the kernel, which opens a pandora's box of attack vectors, I guess. What have you seen around that? Obviously, it must be reliable vm if it has made it into the mainline kernel. There are a lot of paranormal people auditing that code before it makes it there. What do you make of that? And how do you see that?

**Liz Rice** [24:44]: Well, yeah, so the important thing about EBPF is it goes through this process of verification before the program is allowed to be, or as the program is loaded into the kernel, it gets verified, and if it doesn't pass verification, the kernel rejects it. Now, what verification does is it ensures that memory access is safe, it ensures that programs will complete, that it can't crash. You know, we're checking every single memory access to make sure there aren't any null pointed dereferences and things like that. So that gives us some guarantees about the program being able to run successfully. Can't bring down what we can't do with the verifier is tell the difference between a malicious EBPF program and a, you know, a well meaning EBPF program. So a really great example is dropping packets. You know, I might want to drop network packets because I'm enforcing a network policy, or if I'm a bad actor, I might want to drop network packets. To mess with your traffic and verify has no way of knowing what my intent was when I wrote a program to drop certain network. So this is where, you know, the provenance of your EBPF program is super important. You need to trust your supplier of that program that the thing you're running is going to be, you know, well intentioned.

**Viktor Petersson** [26:27]: Yeah.

**Liz Rice** [26:28]: So supply chain security and mining and all that kind of thing. Now you can absolutely do the kind of normal supply chain security around user space agents that typically come with an I application. So say, for example, if you're running silium, you don't actually have to get involved in the nitty gritty of loading and unloading EBPF programs into the kernel. There's user space agents to do that for you, right? But if we're talking about a particular EBPF program and trying to have the kernel validate its provenance, you might think, well, can't you just sign the program? The problem is you can't because as you load the program into the kernel, it's actually getting adjusted by the user space loader to make sure that the bytecode in the kernel matches the data structure pile once run every. So it means because you're actually adjusting the instructions as you kind of load them in the program, that you end up loading into the kernel is not the same as the kernel, as the program that you would delivered, you know, you downloaded from wherever you downloaded it, or that you compiled. So you can't just cite, or you can't then have the kernel check a signature matches like a hash of the instructions because the instructions have changed. So this is quite an interesting challenge for the UBPF kernel community at the moment. And there are a few proposals around. There's one I'm aware of where they're essentially validating the that the user space agent that does the loading is signed and as expected, but having that verified.

**Viktor Petersson** [28:43]: From within, because, I mean, it sounds like EBV is the ultimate bad actor toolkit in the sense, because you could essentially obfuscate or hide the content or like a line in the shadows file or password file or even SSH configured and inject all kind of roadmap backdoors that you would never see from user space because it's intercepted and obfuscated. We even obfuscate. Like, I've heard of attacks where they compromise, like the LS command, for instance, so it doesn't output what you expect it to output and actually hides files and whatnot. So I guess it's an interesting attack vector that's kind of new for this.

**Liz Rice** [29:23]: Yeah, yeah. I mean, there's definitely, with great power comes great responsibility. There are tons of interesting new types of attack that you could build with EBPF. You can use EBPF to kind of monitor and observe EBPF.

**Viktor Petersson** [29:43]: Right.

**Liz Rice** [29:44]: So use EBPF to see what other EBPF programs are loaded, for example.

**Viktor Petersson** [29:50]: Becomes very meta.

**Liz Rice** [29:52]: Yeah, definitely. But you can also get into a bit of an arms race there where you need the, you know, if the attacker kind of gets in there first, they might be able to obfuscate themselves. You know, it's kind of like you want to know that the colonel that you boot is the colonel that you intended to be.

**Viktor Petersson** [30:16]: Right? Oh, we kind of got that with secure boot in a way. Right. But now, I guess EBPF, in a sense, incompatible with secure boot, because it kind of makes it void in a sense, I guess because.

**Liz Rice** [30:31]: Yeah, yeah. I don't know whether there are, you know, you want to be the first EBPF. Your EBPF monitoring code needs to be the first EBPF code loaded. So whether. Yeah, part of your. I think there's more work to be done in that area.

**Viktor Petersson** [30:56]: Yeah. And I think, I mean, there's probably a big opportunity for the falcos of the world, right, to do IDs on the EBPF level and monitor all these bad actors. And I guess that brings me to an interesting question that I've been pondering. I've seen a lot on social media lately, the need for, I guess, antivirus in a traditional sense, more in the Linux world that we've been blessed for not having to worry about for decades now. But given things that transpired in the last few weeks, we're starting to get to a point where actually maybe we do need to think about these things again, and maybe that is something to do with EBPF. What do you think?

**Liz Rice** [31:39]: So I feel like I need to mention the cilium project called tetragon, which is kind of like the next generation of Falco. So tetragon actually instruments some lower level functions within the kernel. So Falco is instrumenting. System calls tetragon is instrumenting, sort of some well known locations within the kernel, but the maintain. So there are some reasons why that's actually more secure than the way that Falco does syscall attachment. But the real improvement is that tetragon can filter events within the. So Falco, the EBPF code is going to tell you, let's say you're looking for file open events. So it will report all of those file open events and then in user space filter out the ones that match the policy.

**Viktor Petersson** [32:39]: Right.

**Liz Rice** [32:40]: With Tetragon, it's actually pushing the policy into the kernel. So you do the filtering in kernel, you end up sending a much much reduced set of events to user space, and therefore you get incredibly low overhead. I think if you're using Falco with a significant set of policies, you will really know the overhead. I want to say there was a benchmark that the Tetragon team did. I'm terrible at remembering numbers, but I'm pretty sure that the Falco implementation with some single digit percentage cpu and tetragon equivalent was like 0.1.

**Viktor Petersson** [33:23]: Oh wow. That is a significant improvement. Yes. The other thing I wanted to cover was obviously the XE vulnerability attack, or supply chain security attack that happened. Well, we're recording this on April 5. I don't know when this would go live, but this has transpired at last, I guess week now. And I was curious about the blog post that was on Isobelan's blog about detecting this vulnerability. And I was curious about the technical side of that, how that actually, how you, how do you detect that, those vulnerabilities or those. That injection, I guess.

**Liz Rice** [33:57]: Yeah. So that's using Tetragon. I haven't looked at the blog post in enough detail to know exactly what events it's looking for. But I think it's a really good example of how within really short space of time of that vulnerability being known, were able to write a policy. It's just a policy. We didn't have to change Tetragon. We wrote a policy that detects and inform. Seeing that xe.

**Viktor Petersson** [34:30]: Yeah, I mean, because that's. It is something that I think. I mean, supply chain security, as you alluded to before, is a massive field that is evolving quickly. And I guess we're not quite ready for it, to be honest, in the open source world, because you start to see more and more of these state sponsored attack vectors, attacks against the open source community and open source libraries maintained by a single guy like the open SL attack springs to mind, where there are like three people on the planet that actually understands its source code and they're all working as volunteers on these projects. Where's your head around this in terms of future of the industry, really, like supply chain security?

**Liz Rice** [35:11]: Yeah, I mean, as well as the sort of individuals who are involved and the fact there is, how do you keep track of what each individual is doing? There's also just the sheer scale, the number of different possible dependencies that people have out there.

**Viktor Petersson** [35:27]: Yeah.

**Liz Rice** [35:27]: And I think, I mean, I've been saying for a really long time now that I think runtime security is really the important part of this. So, I mean, I definitely believe in defence in depth, you know, don't get me wrong, the supply chain security stuff is incredible, incredibly important. But what we really want to be able to do is detect malicious behavior or unexpected behavior at runtime, this whole kind of ids idea. And I think if we contrast this with networking, everybody has run firewalls, you know, enforcing network traffic drops for decades. I'm going to say, you know, it's not a new thing to have a firewall that will enforce your network policy. In the runtime world we seem to be, or in the kind of program execution world, there's a lot more hesitancy about this idea that like, well, if we try to spot something doing something malicious, we might inadvertently also catch, you know, expected behavior, and then we're going to get in the way of our programs and we're going to cause more problems than we solve. And also the overhead concern about if we're going to monitor everything that our programs are doing, is there going to be any cpu left to actually do anything? And I think this is where EVPF is proving to be incredibly powerful with implementations like Tetragon. Because if we can find a way to express what intent, what, you know, what's intended in a much better, we don't want. A lot of this has been done with like Seccomp and trying to interpret this at the syscall layer, and who knows which syscall. You know, if you're writing a web application, you have no idea which syscalls you're intending to call, but what you probably do know is things like whether you're expecting to talk to a database and what domain names you're expecting to communicate with, and what files you're expecting to access.

**Viktor Petersson** [37:41]: If you get a read on your password file from your python library, there's probably a red flag there.

**Liz Rice** [37:46]: Exactly. Yeah. So if we can express those policies in ways that make sense to humans, that we can say it's a set of files I'm happy to access here's the set of domain names I'm happy to access eventually, not just tell me if we see activity outside of these bounds, actually just prevent it, and then that's something new that we can do with tetragon. In the EBPF world until now, we've had the ability to send an event to user space and say, oh, I think this is malicious, and then have user space go, this is a malicious process, so I'm going to kill the process. But by that time it's done asynchronously, so bad things would have already happened.

**Viktor Petersson** [38:33]: Right.

**Liz Rice** [38:34]: With hechagon, we can intercept those, you know, let's say it's a file open or a socket open. We don't like the look of it. It doesn't match policy. We can actually kill the process synchronously from within the kernel. So that's his call. Never gets a chance. And it's much more powerful. And yeah, if we can express the policies in a meaningful way, I think that's the future of security.

**Viktor Petersson** [39:00]: There's probably like a piratu rule at play there as well, where you could probably block 80% of attacks with just a very small subset of blocks, really. Right. Because there are some common behaviors like your go library on your web server or your app server is unlikely to need to open a socket or whatever it may be. Right. For a backdoor or something like that. Right.

**Liz Rice** [39:24]: And I think, and many attacks, if they're intended to exfiltrate data in any way, they're going to have to do some kind of network act or maybe they're going to have to write a file to somebody's thumb drive or something.

**Viktor Petersson** [39:38]: But it's definitely, they need to get it out somehow.

**Liz Rice** [39:42]: Yeah. Should be possible to write policies that contain what we expect to happen.

**Viktor Petersson** [39:52]: And I guess an argument for that approach is code obfuscation is becoming crazy good with AI these days. There are so many ways to obfuscate code today that you can't write a regex to fix this. It's near impossible because AI will think of ways to, obviously things that nobody's ever thought about, and it can do it unique per payload for a million payloads. Right?

**Liz Rice** [40:20]: Yeah.

**Viktor Petersson** [40:22]: But the underlying way it needs to either read data or send or write data is essentially the same. Right. So I would agree. I think that playbook probably is a lot more sound to catch a lot of issues rather than trying to do it on a more tailored basis. I guess. So. I guess what you're saying, what you're thinking is ids is the new antivirus for the Linux world, I guess in EBF's user space.

**Liz Rice** [40:54]: Yeah, yeah. I mean, I don't know whether we'll continue using the terms like ids and whether or not that has the right, you know, doesn't necessarily leave people with the right kind of sense of excitement and power that they need.

**Viktor Petersson** [41:13]: Yeah, I mean it is funny that this comes up, I see at least a few times a year when we do at skinny, when we do like security audits or security surveys for customers. And it's so often that you come up like what's your antivirus vendor for your Linux servers? And I was like, I don't have one. But that's still, I've heard this conversation from plenty of friends of mine who are ctos for companies that do sell to enterprise, that they end up installing some McAfee garbage on their service purely to make the buyers happy. Not because it actually solves the problem, but because it's just the path least resistance to get them off your back, get compliance off your back.

**Liz Rice** [41:57]: This is a problem with all sorts of things in the security world where there's a set of compliance checklists and people just want to know that you've ticked the box. Whether or not that's sensible, meaningful or sensible thing. It's a bit like the password change rules. You know, everybody has known for years that you shouldn't ask humans to change their passwords because they'll just fall into a pattern that makes it easier to identify what their password is. And yet there are still, you know, organizations out there that will require, you know, Microsoft. Yeah. Really?

**Viktor Petersson** [42:39]: Yeah, I mean it largely come back to these compliance framework. Now we have a new NIST framework which hopefully I haven't read the new Nist one in depth, but hopefully that's gonna debunk some of the myths, particularly around password because I think that password reset and the password strength, I think that derives from the first NIST standard, which is what, 1520 years old by now? Well, at least ten years old.

**Liz Rice** [43:02]: I think you're right. I think that has been, certainly some of the compliance frameworks have wised up to that.

**Viktor Petersson** [43:08]: Well, you would hope. Well, now even like Sboms is part of the new, I believe, part of, at least alluded to in the NiST two framework. I believe so at least that's up a little bit there. And maybe that's something I have covered in the past on previous episodes. But I'm curious about your view of the s bomb world because that's everybody talks about sbom these worlds these days and it's the cool thing to talk about, but I'm curious, where is your head around that and how do you see s bombs fixing supply chain security?

**Liz Rice** [43:41]: Yeah, I mean it's a world that I'm less close to now in what I'm doing these days. But from what I can see there's some good work being done. I suppose I do worry a little bit that we'll come up with all these amazing ways of enumerating every possible piece of software and doing all these. It's all about dependency management and vulnerability management. But all of that work will always take time. And if that distracts people from thinking about but what about the runtime then, you know, I totally understand why supply chain security has had the attention it had, you know, but the materials is an essential part of that thinking. But I do worry a little bit that we might be, you know, I can't think of there's a, you know, an idiom, a cliche about, you know, looking over here because, you know.

**Viktor Petersson** [44:50]: Right.

**Liz Rice** [44:51]: Being distracted from the real.

**Viktor Petersson** [44:53]: Yeah. I mean if it's purely an exercise about collecting this for the sake of collecting it, then I completely agree with you that if it's not actionable, it's kind of pointless, I guess.

**Liz Rice** [45:04]: Yeah. And I think people worry about like false positives and just being overwhelmed and.

**Viktor Petersson** [45:10]: Yeah, well that's a massive one, right. In like it's trivial to pull an S bomb from most software stacks today. It's pretty trivial to correlate that SBom file with some CV database and then you get a list of oh, your vulnerable three is 20 cv's but in reality you probably not, you're probably vulnerable to like maybe one of them if like many of them are going to be false positives, right?

**Liz Rice** [45:37]: Yeah, I think there's some interesting work. One of my ex colleagues from ACWA has a startup called Backslash where they're analyzing which of those vulnerabilities are actually reachable in your application. I'm sure there are other startups doing similar work and then there's also the approach of, you know like Docker Slim having a smaller image so that. Yeah, you know, the smaller it is, the smaller the likelihood that you have that dependency and reducing cv's that way. So there's definitely, you know, interesting things that can be done there.

**Viktor Petersson** [46:17]: But yeah, it is currently, at least I haven't played, I haven't seen that tool, but currently it's very much a manual effort of like, oh, we actually are not using this function that's affected by the CV, so therefore it's kind of moot. Yeah, but path least resistant, you should just upgrade it and not have to worry about it. Right?

**Liz Rice** [46:36]: Yeah. And I guess over the last few years, you know, we've seen a lot of auto remediation. You know, press this button and GitHub will update the dependencies for you, that kind of thing. It's good.

**Viktor Petersson** [46:49]: Absolutely. Absolutely. No, I think that's, I don't think it's a good thing that we have more security oriented thinking at least. And supply chain is actually making the realms in popular press even today. Almost the last thing I wanted to chat a bit about is compliance because I know you guys obviously work a lot with regulated industries where you need to make sure that you are compliant. How do you find a bit of the dichotomy, I guess, that we spoke about before between checking all the boxes whereas actually solving security. How have you found those when you're working with these real life customers, in particular in financial services where they are heavily regulated and all that, or how you found working in that world? I guess.

**Liz Rice** [47:39]: Yeah. It is obviously a, you know, a front of mind challenge for people in these regulated industries. How do I make my environment compliant? Can I, do, you know, can I use kubernetes? You know, if I do this, will I still be compliant? So on and so forth. We didn't talk about this beforehand, but this is going to sound as though we talked about it and I wanted to plug because we isurveillant and our friends at control plane came together and we've recently written a white paper about how you use cilium in a Kubernetes environment to meet a lot of these compliance requirements around things like trust to do configuring policies. Yeah, it kind of maps different requirements to some of those like NIST framework table of requirements. So there's some great work gone in there by my colleagues.

**Viktor Petersson** [48:46]: Yeah, Andy was actually the first guest on the show. So full circle. Yes, we talk about a lot of these things, but not necessarily around regulated industry. But yeah, I find it interesting when you deal with these regulated industry because we get across a fair bit of them as well. And it's, yeah, it's old meets the new because they want to be bleeding edge, but they are held back by a lot of these old methodologies, I guess, in a sense, and from these frameworks. But yeah, I'm looking forward to taking a look at the white paper. I'll probably chuck that into the description of the episode as well, if people are nerd out about that. And I think we've covered a lot of good ground today. Is there anything else you want to cover? Anything you think we missed that's worthwhile for viewers to think about or be aware of or other than plugging your book, of course.

**Liz Rice** [49:39]: Oh, there we go. Yeah. I guess the other thing that we didn't talk about is Cisco.

**Viktor Petersson** [49:46]: Oh, yes.

**Liz Rice** [49:48]: At time of recording, Isobelan is, you know, undergoing its acquisition. So it was announced before Christmas and hasn't closed yet, but hopefully very soon. And I guess quite a lot of people have been asking about, you know, what. What does the acquisition mean for, like, facilium and for isovalent customers and for isovalent employees as well. And so I'm really excited about it because basically the whole team is moving as one into Cisco in the security business group security business. And we get to carry on doing what we're doing. So we're going to carry on supporting silium. I know Cisco is super excited about the open source work that we do and really supportive about that. Yeah, it's like we get to carry on being isovalent, but we have the resources.

**Viktor Petersson** [50:51]: It sounds like a good strategic fit for Cisco. And I guess that would mean quite a few more trips to Milpitas for you then, I guess.

**Liz Rice** [50:59]: Yeah, I guess I'll find out after close.

**Viktor Petersson** [51:01]: Yeah. Excellent. All right. Thank you so much for coming on the show, Liz. Very much appreciate it. It's been a lot of fun, and I have learned a lot more new things about EBPF, and I'm very much happy for that. So thank you much for coming on the show, and have a good one. Thanks.

**Liz Rice** [51:19]: Thank you very much for having me.

**Viktor Petersson** [51:21]: Cheers.

**Liz Rice** [51:21]: Bye.

---

Source: https://vpetersson.com/podcast/s01e11/
