So what if I told you there is a cyber risk present today in cellular communications that allows an attacker the ability to send you a phone call and your device is compromised? That's it? There's no user interaction, there's no clicking any links, there's no picking up the phone. Just the simple fact of, or the simple ability for the phone call to be sent. And this threat vector which is present in cellular communications today provides an attacker the ability to deliver a no-click remote code execution exploit over the air, under the radar, to your device. And to be more accurate, any device that's even momentarily connected to an attacker-controlled cellular tower. So today we're super excited to be here. I appreciate everyone joining. We wanted to talk to you about our review of the Pixel 6 modem stack. It's been a culmination of many months of our efforts. I'm Farzan Karimi. I'm the engineering manager of the Android Red team. I'm joined by our world-class researchers here, Xuan Xing, our technical lead, Eugene Rodinov, and Shilin Gong. All right, so here's our session agenda. We'll provide a brief overview of the Pixel 6 modem stack and share the results of our impactful 2021 Red team engagement of the modem. 2021? Yes. That's how long it took us to get PR approval to get up here. Before jumping into what we were able to explore, we'll set up a bit of context and cover a high-level architecture of the Pixel modem, followed by our key findings. We'll then cover two CVEs that if you Google, you'll see nothing about them on the Internet today, aside from the fact that they're rated critical severity by NIST and our Android severity guidelines. These two CVEs that we identified were integral in our exploit chain. So we're going to deep dive those. We're going to show you a demo that's pretty exciting. And then moving on, actually, we also want to cover a very, very important step you can take from a remediation standpoint that better protect yourself. So it's probably the most important takeaway from this presentation. So stay tuned for that. I do want to emphasize before moving on that everything we're going to present today is fixed. No zero days. I'm sorry. So just a really high level. Actually, I'm sorry. Yep. I just wanted to give you like a basic understanding of the engagement missions that we had for this review. The primary objective for our review was to get code execution on the pixel six modem stack via the baseband and then work with our feature teams to fix all these bugs before release. We did a pretty good job on that. There was a critical issue that came up that put this talk into jeopardy that Eugene would have all covered in a bit. And then bonus points for working with our modem OEM to fix everything before release. As with most DEF CON presentations, we did achieve. These are objectives a little bit about us. We are, as I mentioned, we're the Android red team. We work for Google. Our mission is to increase Android security. That means we read team devices that run on Android. It could be Google pixel. It could be pixel watch a whole ecosystem of devices. We do that a number of ways through offensive research where we simulate adversarial campaigns. We build tools so that help us scale. So we invest a lot in fuzzing and primarily continuous fuzzing. To help us scale and find bugs while we're doing more manual code reviews and exploit development. That's the third item exploit dev is a place we spend a lot of time in a lot of people ask like why do you spend weeks on exploit dev and for us it's so important to be able to better articulate these complex issues to leadership with a demo. It also allows us to find more vulnerabilities as we go through the exploit writing exercise. So it's a very fruitful investment for us. And then finally we invest a lot in remediation we work with our feature teams to fix bugs if nobody's fixing our bugs we suck as a red team and so we want to make sure we build a good relationship there and so that's something we really value so let's get right into it. Why do we pick the modem for starters it's been an emerging area of risk in a mobile connectivity space for a few years now you can see some of the headlines these are all very recent some very recent work by project zero earlier this year on the modem. Why all this? Why all this attention now so the short answer is the cost to ride has dramatically decreased in the past few years so if you're looking to get yourself equipment such as a software divine radio and SDR ten years ago that would have put you back ten to twenty thousand dollars today you can get an SDR for two K so it becomes more accessible for security researchers and real hackers to go purchase this equipment and target cellular comms it's also one reason we're seeing more of a recent influx. Of bugs coming in through our bug bounty program and why we're able to get a bunch of SDRs for our team to find a bunch of bugs. So what can you do if you actually find a bug in the modem so some earlier mentioned over the air RCE if you're not familiar with that terminology over the air is simply just a form of digital communication usually in the form of a software update that's sent up wirelessly like over the air to your phone sometimes through Wi-Fi networks most of the time it's associated with cellular communications. In the pixel modem stack getting over the air RCE nets you code execution in a privileged context that's because there's no concept of identity isolation or network segmentation within the component the modem itself. And so you get code execution what is what can you do right so one thing you can do is now of service and I could already see eyes glazing when I say DOS but in the context of modem it's actually pretty impactful. So just imagine like a football stadium full with tens of thousands of people. Right. All connected to a single attacker controlled cellular tower and then everyone losing connectivity all at once. If you're more of a nation state profile you have more interesting exploit vectors at your disposal. You may be interested in pulling SMS text data or RCS sex data and just passively sniff that information. Right. You could also spoof messages coming from users that you target. And all this allows you to do something else. So you could target OTP code sent over SMS to get yourself MFA bypass. So we all know like there's forgot your password opportunities to just like get a code sent to your text for a phone and then you can log in. Wink wink. That is our demo later today. So we'll be covering what can be worse than all that. Well how about a pivot to the kernel. So with full root kernel privilege access you have the ability to fully own the phone. All bets are off. So before getting into our finding as an exploit work a little background on the modem is always helpful. Wait. Who snuck this slide in? It's a 56K modem. It's not what we're talking about. It's very clever. There's zero laughs there. Thank you. This is better than Black Hat. Thanks. Moving on. Let's talk about pixel modem. What even is it? Well it provides you a means to connect to a cellular network. So you can check text, surf the web, get phone calls. It's a critical component with access to sensitive user data like SMS data. Remotely accessible with radio technologies and it's a high profile target for nation state and project zero. If you listen to the offensive con talk from earlier this year. It's been a historical source of vulnerabilities because it's using legacy protocols. And these all present opportunities for security improvement. It's also super important to note that, you know, while we're all on 4G and 5G today, it still supports the 2G standard. And that's an important theme that we're going to get into in this presentation. So just a quick visual of our attack surface analysis of the modem. So everything you see in blue here just kind of represents the different layers and the components of the modem. All the way from the communication layer down to the physical layer. Stuff in red is what we targeted during our red team engagement. Dark red is what we were actually targeting. And this is what we were actually able to exploit. So specifically the pre-authentication attack surface in 2G. As well as some low level decoders such as ASAN 1. If you see AKA that just basically means authentication and key agreement. Which is just a common protocol in cellular communications to support mutual off between a device and a carrier. Before I hand it off to Xuan, I want to get ahead of a question that maybe some of you are already asking. And it's, well, I'm on a current generation Pixel or iPhone. And I'm connected to 5G right now. I'm safe, right? Why does your presentation matter to me? Well, there's a lot of ways you can find yourself forced back on 2G. So just listing a couple here, some of these factors. And it's important to note that there's a lot of complex logic that goes into how each of these factors are weighted. It's not straightforward. But if you think of things like network coverage. Depending on the country or region. The region you're in. 2G may be your only option. So if you're there, you're on 2G if you want to make a phone call. Emergency calls. Often over 2G when others aren't available. Other standards like 4G and 5G. There's signal strength, network congestion, battery optimization. So 2G uses less battery than 4G. So if you're low battery, that might be a factor that influences you to switch over to 2G. These individual factors actually don't matter too much. The intent of this slide is to just show that a motivated adversary will find the right combination of these ingredients. To influence your phone to switch back to 2G. And it's in 2G that our attack lives and thrives. So with that, I'll hand it over to Xuan. Who will cover our methodologies. Thank you for that. Okay. Before we talk about our results. Let's talk about our approaches. So for our engagement, we conducted mostly with fuzzing as our primary approach. The reason that we want fuzzing is that we were given a really large code base. And it's very complex. And fuzzing has been proven very effective. And long lasting for this kind of situations. For fuzzing, we mostly focused on something we call host-based fuzzing. Here host is a term coming from Android build system. It's in comparison to devices. Host-based fuzzing means that we find our target. We compile it into a fuzzer that can run on Linux host environment. And to do that, we need to carefully hack the build system. And mock the hardware dependencies. So that we can build our target and run it on the Linux environment without physical devices attached. We also looked into emulations of full systems. That allows us to do more closer to the actual hardware attacks. And lastly, we planned on doing on-device fuzzing at the beginning. But we were running out of time. So that was cut. Fuzzing is our primary approach. In addition to fuzzing, we also use static analysis. Here we use code QL as our primary tool for something like exploring the code base or doing variant analysis. And lastly, manual code review is always our last resort to apply on the areas identified by the above two approaches. All the areas identified. Hard to cover by those two approaches. So by the end of the engagement, we created ten fuzzers. Host-based fuzzers. Running our internal fuzzing platform 24-7. This is benefit that you get from fuzzing. Is that you get something running all the time after engagement. And it's very useful to catch regressions or new bugs at long runs. We also developed a very easy to use framework. So that we can easily convert any new modern component that we think is suspicious into a host-based fuzzer in future engagement. And during this engagement, we found fuzzers not only are great at finding bugs. They also tell you which area you should look into. By the number of crashes you found, you can jump into the area. One thing we noticed that fuzzing fuzzers sometimes are blocked by the minor issues like null point reference and one byte OB read. Those can get fixed. But to fix this in production code takes time. Our solution is while it's getting fixed, let's just jump into the code. Start manual code review. Auditing the related code. So that we can speed up our bug finding process. And find as many as bugs by the end of the engagement. Another challenge we run into is with large code base, how can we prioritize our component for fuzzing? We were giving the code base something around 2 gigabytes with source code. And libraries. And how can we find out which one is the first target? It's impossible to look through the source code. What we did is let's study the 3GPP spec. Understand which component is dealing with untrusted data. Or which component is dealing with decoders. Like for example here, ASM decoder, it's always a hot topic. So that's our first target. And another thing like the TLV data structures that commonly used in the 3GPP spec. Those are all the code targets for our fuzzing. And in addition, we use CodeQL as our static analysis tools. Modem not only has large code space, code size, but also has very complex configurations. These configurations involves compiler macros and redefinitions of some symbols. It's not easy to pinpoint which function you are looking at. And CodeQL helps a lot with this thing. It gives us the exact function that used for the task entry point. All interrupt handlers. It also visualizes the interactions between different components. The other way we use CodeQL is to do general bug findings. We use that to find certain patterns. Like memcpy that writes to a fixed size buffer but uses a non-constant size parameter. It doesn't necessarily have to be an issue. But there are issues coming from that kind of usages. And also, fuzzers find bugs. We use CodeQL errors to try to do valid analysis for those bugs. Trying to see if we can find similar bugs. Lastly, by the end of the engagement, we noticed there's a publication research paper called FormWire. Which is doing emulation-based fuzzing. Inspired by that, we also create our own full-stack emulation using core-based approach. We use the hardware later. With the layers added, we can drop in the FormWire binary and emulate part of the functions. Which is great for root cause analysis and debugging of our crashes. By the way, here's how it looks like when we run our emulation-based fuzzer. And what happens when we throw in the crash test input that we discovered from the host-based fuzzer. It gives us more information on the memory layout and lots of details that we couldn't have from the host-based fuzzer. From here, I'll hand over to Eugene to talk about findings. Thank you, Shuan. Before we go into details of the vulnerabilities which we identified during fuzzing and code review. I'd like to bring your attention to a really great research presented earlier this year at the OffensiveCon by Google Project Zero. How to hack Shannon Baseband from a phone. Which focuses on a different attack surface that we investigated in our work. They were hacking modem from a phone. While we are hacking modem from a malicious base station. So this is an important distinction here. At the same time, they mentioned that they were looking at 2G and SN.1 attack surface. And they mentioned that they didn't find anything interesting there. Like maybe all the bugs are gone. Honestly, when our engagement team saw this presentation, we felt very relieved and very rewarded for the statement. Which might mean that we are... Our bug hunting work, which took one year earlier, was actually useful and meaningful. We're not going to take all the credit for that. There has been other great research contributing to security in this area. But with the next slide, I would like to introduce some additional context. During this engagement, which spans about three to four months. In total, we identified about 120 vulnerabilities in 2G and SN.1. And about 50 vulnerabilities are specifically in SN.1 decoders. And as you can see, the vast majority of these bugs were got by fuzzers. Like about 80% of the vulnerabilities were reported by fuzzers. And we were mostly relying on stack traces to dedupe the vulnerabilities. So there is a chance that there is the same root cause. But it manifests itself in different crashes. So they got different bugs assignments. So... Those fuzzers are running even today on our continuous fuzzing infrastructure. Fun fact. Shortly after submitting to Black Hat and DEF CON, one of the fuzzers identified a critical issue. And we were even thinking about withdrawing from the conferences. Because we didn't want to release zero days. And there is no way PRN Legal would clear this presentation to be here. But, well, here we go. The issue was fixed. And we're speaking about it. By critical vulnerabilities, we mean mostly out of bounds memory rights, which are reachable remotely. Obviously, not all the criticals are exploitable. Because we got quite a few off by one rights, which are very difficult to leverage to get code execution on modem in a remote context. Yet we got quite a few powerful primitives. So one of them, which we shall be discussing later, the core primitive for demonstrating code execution on modem, is 17-0. This is an out-of-bounds writing heap. There is another vulnerability, which would make exploitation super easy and straightforward. Well, not super easy. Definitely not super easy. But we didn't need to rely on rope-style attacks. It's MMU misconfiguration, which rendered heap and stack executable. So simply running a shell code from the heap worked just fine. And with that, let's take a look. Let's look at the vulnerability as 2017-0. This is a linear out-of-bounds writing heap. This is a classic straightforward out-of-bounds writing heap. You can see on the code snippet here. Okay. Yeah. So we have one byte buffer allocated at this point. And this buffer is passed to ACN decode information element function, which decodes arbitrary number fully attacker controlled bytes into it. Due to technical constraints, we are able to overwrite only up to 255 bytes on the heap, but which is still a lot. And this vulnerability is triggered during the call setup stage. So before receiving the call and even before showing notification to user that someone is calling them, there is a number of ACN1 messages sent from the base station to the modem. And exploitation happens. The vulnerability is triggered at this stage. So there is no user interaction involved at all. User doesn't need to pick up the phone. So this is a very powerful primitive by itself. Right now we'll show you how we leverage it to get arbitrary write primitive. But before doing this, a few words about heap management, because it is important to understand how we are getting arbitrary write. So every buffer allocated on the heap is prefixed with a 32-byte heater, which contains metadata for the allocation, such as how many bytes were requested, what is the task ID, allocating memory. And a very important information stored in the very beginning, the first two bytes, is the identifier of the allocation driver. So it appears there is multiple allocation drivers used by malloc. And one of them is a partitioned memory driver, which corresponds to 0400, highlighted here in red. Essentially, it allocates memory from an array of fixed-size memory blocks, which grow with the power of two. The state of the memory blocks is kept in the additional bitmap. And looking at this partitioned memory driver, we didn't find anything what we can do with this to override something useful. However, looking at this partitioned memory driver, looking around, we identified there is another allocation driver, system dynamic memory driver, which has ID 0100. And luckily for us, but unluckily for modem, they are using double-linked lists with unsafe un-linking. And this double-linked list is also in the heap heater, which we are able to override. So this is pretty straightforward, classical unsafe un-linking technique to get arbitrary right. In our case, the adjacent object, which follows the vulnerable buffer, is very reliably allocated during the vulnerability exploitation stage. So I think in 90% of cases, well, maybe even closer to 99, there is always another object following right after the vulnerable buffer. So as you can see on this image, the address starts at 3A0, is actually the vulnerable buffer, which corresponds to the one-byte buffer, and at the address 3C0 is the heater of the next adjacent object. So we simply override it, we change the allocation driver ID to 0100, we forge the double-linked list, and luckily for us, and again, luckily for modem, this buffer is very reliably freed after the override operation. So we almost have a very reliable arbitrary right primitive, and we use this primitive to hook free function. The implementation of the free function in this modem is quite generic. It's just a stub which calls real implementation using function pointer, which is stored in global variables. So we simply override this global pointer, and this is how we hook the function. Just to summarize everything together, how is the getting RCN modem looks like. Before the overflow, we have buffer A and buffer B. Buffer B has partition memory driver allocation driver ID. We override it and change to system dynamic allocator. We forge the double-linked list. So we modify field to point to a malicious system heater, which is located in the global data, which is readable, writable, and executable, thanks to the MMU misconfiguration. And this is also part of the stage 0 payload, which contains shellcode. And once this buffer is freed, during unsafe unlinking, we modify the free function pointer, redirect it to our shellcode, and here is how it works. There is one unclear piece here. Well, at least one for me. How did you get stage 0 payload here? This is what I'm going to be discussing here. So before triggering the vulnerability, we need to send the stage 0 shellcode. And we identify the primitive for doing this, which allows us to send from the malicious base station to the victim device up to 80 bytes. And we know where exactly those 80 bytes are stored because we need to know the virtual address at which this malicious 0 shellcode is located. There is no ASLR. So this address is fixed. Once we have it, we trigger CV 2017-0 to free function. And at this point, we're invoking our stage 0 shellcode. At every free operation, it is very convenient because we're able to inspect contents of the free buffer. And the heap is used very frequently in many cases in modems or we can intercept and inspect for a lot of data. 80 bytes is actually not a lot to implement anything meaningful for stage 0 shellcode because it's not only shellcode. It's also the malicious system dynamic heap heater. And what stage 0 shellcode is doing is just functionality to receive stage 1 shellcode, which is also sent in chunks, 80 bytes per iteration. Later, Shalink will show you a demo. And you can see how we're sending stage 1 shellcode there. Stage 0 shellcode assembles stage 1 shellcode altogether, copies it into your executable heap, and re-hooks free function. And at this point, we can implement arbitrary complexity functionality in stage 1 shellcode. We implemented SMS forwarding functionality, which forwards SMS messages from the victim device to the attacker control number. And at this point, we are ready for the demo. So let's go to the remote code execution into modern firmware. So here is how the attack looks like. The first step, the victim connects to a digital serial network. Either 3G, 4G, or 5G, it doesn't matter. The only requirement is that the victim enables 2G on his phone. But, you know, 2G is default enabled on the PS6 and on most of the phones. So now we can set up a malicious base station. It's a 2G base station. We are setting it up and waiting for the victim to connect to it. You know, there are a lot of purpose and methods about how to get a victim connected to a fake 2G base station. So this is not a problem. Then we are waiting for the victim to connect to it. And once the victim connects to the 2G base station, we can start our attack. Once the attack succeeds, we will have fully controlled the victim's baseband firmware. We are in the victim's model. So now we can do a lot of funny stuff. For example, we can use the job or intercept the victim's incoming phone call. Also, we can modify the incoming SMS message or send out SMS message on behalf of the victim. Here, for demo purpose, we can capture and transfer all the incoming SMS messages to our phone so that we can take over the victim's Twitter account. Here are the devices we are using. We are using three devices. On the left is the victim using Pixel 6. And in the middle is the OpenBTS. We built this fake base station using OpenBTS. And we will modify the source code, inject our malicious package, and do our attack. And on the right is another phone. This is a regular phone. Any phone can make a call. It works for us. Okay. So let's play the demo. It's all working. Let me figure out why. I think we can click it. Okay, so we are playing the demo. You can see the victim is going to connect to the station. Once the victim is connected, we can start our attack. The first step is to send out the initial payload. This is a small piece of code. So we will broadcast this piece of code into the victim's modern firmware memory. So now it's inside the victim's modern memory, but it's not running. We are going to run it by calling the victim. Once the victim receives the call, the victim doesn't have to do anything. Our vulnerability will be triggered. And this initial payload will be triggered. So at this moment, we already have a small piece of code running inside the victim's modern, but it's just a small piece of code. We want to do a more complicated task. So we are sending more code. We are sending them piece by piece. And the first stage payload will receive and assemble them together. Once all the code received, the shared code will be running and send out a message back so you can see now. We received a message from the victim and the content is the pound. So this SMS message is sending out from the victim's modern firmware by all shared code. So that means all shared code is running successfully inside the victim's modern and we have fully controlled the victim's modern. Okay. This is the first part of the demo. For the second part, we are going to demo we can take over the victim's Twitter account to do that let's put the victim back to a normal base station. So you can see now the victim connect back to the normal base station. That's simply we stop our base station then the victim will connect back. So the victim can log into Twitter or GitHub. Yeah. Okay. So now the victim open his Twitter account check him for the new message and also his profile. You can see he's very handsome and he has a brilliant profile and also anyone know who is the victim? Okay. Yeah. I think if you now come to us and get the bonus. Okay. So if you have a Twitter account but you don't remember the password you will tell Twitter I forgot my password. The Twitter will say okay give me your phone number. I will send you a SMS message which contains an authentication code. You give us this code back so we can confirm you own this account. So that's how the attack works. You can see we enter the victim's phone number and the victim receives this SMS this message. So you know we have a shell code running inside the victim's model so this message will be forwarded to us. So you can see we received the same message. So using the code inside this message we can bypass the authentication from Twitter and get into the victim's Twitter account and reset the password. Yeah. Here you can see the victim can see this message on his phone but this is just for demo purpose. In a real attack we can hide this message make it invisible. So. Okay. Now we have bypassed the authentication and modified the password. So we are sending it to a very strong password and I think we're done. Yeah. That's all. Yeah. We have to take over the account. Yeah. So. That's the account we have. Yeah. That's the demo into the remote code execution of modern firmware. Thank you. Yeah. I'll hand it over to Xuanyuan for the next part. Thank you, Xilin. A very impressive video. Okay. Just to clarify that in the video you see a lot of operations on the victim's phone but those are just for them for us to speed up the demo. In real case victim doesn't need to do anything. This is a zero click fully remote attack. To get the attack to happen there are some prerequisites. First the victim's device needs to have 2G stack enabled which is by default on Pixel 6 and many other modern devices. And also the victim needs to be in the nearby range for us to deploy the attack. Depending on what hardware you're using this nearby range can be up to five miles range. Once we launch the attack we get a full modern firmware compromise. We have full control of the modern firmware. If I have time I can write a debugger for debug modern firmware. And in demo we just showed how to demonstrate the Twitter account takeover but the real consequences can be much worse. You can take over somebody's Bitcoin account get all their monies. Or you can even send messages on behalf of them. We also during the engagement found other bugs that hinting it's possible to pivoting from modern to the Android OS. That can lead to full system compromise. However we ran out of time so we didn't dig further in that direction. And the issues utilized by this exploit there are three issues. The first one is the root cause. We have attacker controlled heap override in the GSM stack. And second we have a misconfiguration in the MMU that allows us to have writable and executable memory. And lastly the lack of standard security mitigations making our exploit easier. Yeah before modern engagement I always thinking hacking modern over the air is a very high tech complex task. It requires very expensive devices. But our setup really surprised and scared me. As you can see it's pretty simple. The core part of this setup is that white box under the phones. This is the SDR device. In our case we use USRPB200. And then we have a bunch of cables. For legal compliances we also have Faraday cage. So that we don't interfere with neighborhood telecommunications. So if you are malicious attackers make sure you have this box so that you don't break the law. You don't want the FCC showed. Yeah it's very important. Anyway and for softwares we have software based GSM solutions. There are many of them. OpenBTS, ETPTS. They are either free or open source to use. Very accessible. This entire setup is very accessible. It's less than a couple thousand dollars. And you can get even cheaper with the cheaper SDR devices. And like other exploitations we always run into challenges. For this one the first challenge we run into is that when we put everything into the Faraday cage they interfere with each other. And the radio is totally black magic to me. So I have no idea how to solve it correctly. What a way to just manually take the positions so that they work. And of course we also need to mix a couple of softwares working together. They are all complex softwares. We have to carefully take the configurations so we can get a reliable exploitation. Because this is exploitation we do this on production images. And debugging shell code on production image is a pain. Luckily we were able to collect RAM dump and inspect the memory status when it crashes. We also modified some of the command handlers to confirm the successful deployment of exploitations. Lastly, as Eugene mentioned our first stage payload needs to fit 80 bytes space. It's less than 80 bytes because we also need to fit in some fake heap primitives. It's not easy. We have to go through all the ARM instructions set trying to see if that works. Eventually we got it to work. So there comes the demo. So from here I'll hand over to Eugene to talk about remediations. Thank you. Speaking of remediation and hardening work besides finding vulnerabilities via fuzzing and manual code review Android security is also trying to reduce attack surface and make exploitation of classes of the vulnerabilities more difficult. And one of the features which was recently shipped with Android 12 which is supported on certain versions of Radio Hell is ability to disallow 2G networks in various SIM settings. And these mitigations would essentially make you immune to the attacks which we just demonstrated because in this case the enforcement works at the hardware and the firmware level and when this toggle is off the modem simply won't scan for 2G networks. Insecurity of 2G protocol stack is a known topic. There are many security features missing including mutual authentication and this is one of the reasons why we specifically looked in this attack surface. So you don't need to have the pixel device to do this. It should be available on the supported versions since Android 12 and supported Radio Hell version. So if you haven't done this Android users in this audience this is what I recommend doing especially since we are here at DEF CON. And in addition to that we are exploring options on enabling compiler based mitigations for bare metal code in production. Unfortunately state of the compiler based mitigations for bare metal code is behind of user space code and even kernel for various reasons. Significant resource constraints missing support from the tool chain. So this is what we are currently exploring and playing with to enable bound sanitizer integer sanitizer for the modem firmware running not only on the pre-release test devices but also to be used on production in production. And with that I'm passing it to you Farzan for concluding thoughts. Thanks Eugene. Just some final thoughts to wrap up this session. We again red teamed to secure the pixel modem. We found over 20 criticals and 50 of them in ASAN alone. So a big attack surface lots of value and focusing in that stack alone. We invested a lot in fuzzing. That's how we found most of our bugs. So we continue to do that. Just as Eugene mentioned 2G is an outdated protocol. Please flip that toggle off if you have an Android phone. There's been reports and some articles already that there's a couple of fake 2G base stations around DEF CON. If you're in what was it Paris and Caesars probably here by now too. This is your friendly reminder to disable 2G. And if you're if you can't find that 2G toggle you may be on an iPhone. On the mitigation side we're doing more work in this space. There's actually a great article that was released by our connectivity security team two days ago that talks about what you can do more than just disabling 2G or what we've already done. So check out that article links on the bottom right. And it talks about like doing things like disabling null cipher support on cellular networks. So lots of investment in this space. Our work is never done. Just mentioning Red Team is just one thing we do out of many things at Google. So the special thanks to all the work streams here and all these teams that participated heavily in our review. We couldn't have found all these bugs without some help. So we really appreciate everyone's contributions. Last thing I'll we'll all leave you with is that this has been a very exciting review for us but our work isn't done. We teased a pivot to the right at a kernel earlier. So who knows? Maybe you'll hear more about that at a conference near you soon. Thank you. We have two minutes for Q&A if anybody has any questions. There's a line? Okay. There's a line in the center. You could also come up if you don't want to ask your question. There's no questions allowed. Have we released any of the fuzzing framework for the public? Uh, we... I can answer that. Unfortunately, the full framework is ready to the source code that we cannot release. So this is totally internal use. Yes? How much of that 2G toggle of the actual attack surface does that reduce ? Yeah, great question. So how much of that 2G toggle reduces the attack surface we've seen? So most of our attack surface can be eliminated or mitigated by flipping the 2G toggle. But, you know, emergency calls use 2G. So you can't fully disable it. We don't disable it by default. That's the reason we don't. So... But you have the option to manually. Yeah. To comment on that. So I think what happens is 2G by default will be disabled if you flip the toggle. But if you are making 911 calls, that 2G stack will then be enabled. Just to make sure you get enough coverage. Yeah. Yes? . The question is why do we still allow 2G for the most part? . . Why can't we fix the client protocol and the device drivers? Yeah. Can I... Let me try to answer this question from my perspective. So, first, 2G itself is by design lack of lots of security issues. So, like, there's no way to... For the device to know that if they are talking to a legit 2G base station are malicious ones. So this opens a big attack surface that we cannot fix it by spec. And second is, software, by default, there's always bugs. Nobody can guarantee there's 100% bug free software. So, the way that we mitigate this is to reduce the attack surface. And of course, fixing the bugs is another perspective. And we are doing that all the time. It's just, you cannot guarantee your software is running only 100% bug free. Correct. Yeah, the design of 2G doesn't have proper authentications. Any other questions? All right. Well, thanks, everyone. Appreciate your time. Oh, there is one more. Sorry. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . or oh everything off yeah I mean there's always you know you have any thoughts on this one I I don't know how this airplane mode and Wi-Fi disability is implemented so my understanding is if you disable them an airplane mode model should be like shut down and it shouldn't be working at all but I heard some brand they have this so we turn off Wi-Fi the Wi-Fi is actually not completely turn off for some reason which I don't know any details for that and I don't know which device has that but the modem should be turned off completely if you turn on airplane mode I think that's by law I think we're done on time right cool thanks again guys thanks