Java4Shell With Thai Duong And Bruce Dang

Java4Shell With Thai Duong And Bruce Dang

We finally finally finally were able to get Thai Duong and Bruce Dang from Calif on, this time to discuss Java4Shell, reverse engineering, vulnerability research, and pouring one out for the dying art of lovingly handcrafting bespoke decoders for undocumented components đŸ«—.

Links:

  • https://calif.io/java4shell#technical-writeup
  • https://www.aikido.dev/blog/ruby2shell
  • https://www.nytimes.com/2026/10/21/us/politics/php-vulnerability-ai-openai-cybersecurity.html
  • https://calif.io/php2shell/
  • https://www.crowdstrike.com/en-us/cybersecurity-101/exposure-management/log4j-vulnerability/
  • https://www.keycloak.org/2026/11/java4shell-vulnerability-cve-2026-114938
  • https://phrack.org/issues/73/painting-out-of-the-box-escaping-the-chromium-renderer-sandbox-via-skia_md#article
  • https://securitycryptographywhatever.com/2026/06/14/facing-the-vulnpocalypse-with-lcamtuf/
  • https://calif.io/research/rust-in-peace
  • https://en.wikipedia.org/wiki/Dave_Aitel
  • https://x.com/i0n1c

This transcript has been edited for length and clarity.

Chapters:

intro

Deirdre: Hello! Welcome to Security Cryptography Whatever. I’m Deirdre.

David: I’m David.

Thomas: Thomas.

Deirdre: You’re Thomas. We have two very, very special guests today, one of whom we’ve been trying to get on this pod in fits and starts for a long time.

Thomas: I’m Thomas.

Deirdre: We have Thai Duong and Bruce Dang from Calif. Hi, Thai. Hi, Bruce.

Bruce: Hi, Deirdre.

Deirdre: Hehehehe.

Thai: Draft.

calif

Thomas: Let’s open this up by asking: why are you called Calif?

Deirdre: Yeah.

Thai: It’s a very lame job. So, one, I wanted to name the company. I noticed there’s Palo Alto Networks, right? So I wanted to have something bigger than Palo Alto. And I was thinking California is bigger than Palo Alto. So let’s just name it California, but that’s too long. So we just shorten it to Calif, and that’s how we name it.

Thomas: You feel like the — is the team happy with this process?

Deirdre: It.

Thomas: Is the team happy with this name? Do you think the name’s going to stick?

Thai: The team’s was happy. The team was just me back then, so I was happy with it. And now they have to accept it, I guess.

Thomas: So we’ve got you two on — you guys are both effectively co-founders, right?

Bruce: No, Thai — oh, yeah, you tell the story, Thai.

Thai: So I try to convince Bruce to join me for four years. Every year, I would come up to his home in Seattle and tried to convince him to come down and work with me on this. And he kept saying no. And then he joined Apple. He didn’t tell me. I was so upset. But I keep trying, right? Because I really wanted to do it with him.

And then I don’t know what happened. But last year, he suddenly said yes, and I was so happy. And he told me officially this year.

Deirdre: Nice.

Thomas: So not a—I’ve been called a late co-founder for joining companies four years after they were founded, and like, okay. But you two are both very—so on the off chance that anybody listening to this doesn’t already know, Thai Duong: famous in vulnerability research for the TLS BEAST attack, for TLS CRIME. There’s one other big one, right, that I’m forgetting, but really early old-school cryptography vulnerability research; worked at Google with Daniel Bleichenbacher, among many others.

Just hardcore cryptography vulnerability research. And now the CEO of Calif, which is weirdly, I think, probably the most important vulnerability research consulting firm there is right now. I have other friends — my Trail of Bits friends will be irritated that I said that, but I will stand by it. You’re one of a very few companies like that in that space. And really pushing forward vulnerability research in particular with AI model assistance.

So that’s my capsule summary of what you’re about. And you can tell me if I got any of that wrong. And then Bruce was at Apple. And so the other thing here is I’ve known Thai forever. Thai is one of my favorite people working in this field. Thai worked at Matasano with me briefly a long time ago, and I’ve never worked with Bruce, so I don’t have a whole spiel to rattle off about Bruce.

Deirdre: Mm-hmm.

Bruce: Not much about me, so don’t worry.

Thomas: So Thai should do the spiel about Bruce.

Deirdre: That’s what a hacker would say.

Thai: No, man, I told you this story. Earlier this year we went to BSides San Francisco, right? And we gave them some Monday, so they said, okay, you gave us some Mondays, you can have a booth. And we were like, what we are going to do with the booth? We don’t know what we should do with it. They said, come and set up some table and meet people, right? So we did that, and then I asked Bruce, you should come down with me.

And I asked Tavis as well, Tavis Ormandy, he’s also at Calif. So Tavis and Bruce were there. And I was thinking in my mind people would, oh, Tavis, Tavis. But nobody recognized Tavis. I’m sorry, Tavis. But a lot of people recognize Bruce. Everybody was, oh, Bruce. And I didn’t know that my friend is so popular, because apparently he did a lot of trending: Windows kernel hacking trending, reverse engineering trending.

He even wrote a book on reverse engineering. So a lot of hackers, reverse engineers, know Bruce, and a lot of people on the team right now, only researchers, came here because of Bruce, so.

Thomas: Oh, I have that book. The Wiley Practical Reverse Engineering book.

Bruce: Yeah, man, but it’s been deprecated by LLMs now, so it’s like two prompts.

thai’s path into cryptography

Thomas: Bruce wrote a book I own. I suck ass, I’m sorry.

Deirdre: Yeah, they probably read your book.

Thai: I’m not —

Thomas: All right, we’re going to put a pin in that. I want to follow up on that question. I have many questions about this, but.

Deirdre: I just want to say I learned about Thai from reading his “You need to validate your Curve25519 public keys” posts. This is when I was just getting into cryptography, and I read everything you wrote about Curve25519, and I saved your GIF about —

Thai: Oh.

Deirdre: I think it was Judy Garland, who was having an existential crisis about whether she was supposed to validate her X25519 public keys. Hehehehehehe. So.

Thai: And you know who I learned this from, right? Initially I learned it from Tom—Tomas. He wrote—the Matasano Chargen blog is hugely popular, right? And you know Tom, right? He’s a very good writer, and I learned everything that I initially—I was like, oh man, what should I do?

Deirdre: Yeah.

Thai: I love memory corruption as well. But then I read Tom’s and Nate Lawson and a lot of old-school cryptography people, and I like, oh man, I like math and I like this stuff. And I started doing — I wrote my own CTF challenges and try to bracket myself.

Deirdre: The two—Nice.

Thai: And the more I do it, the more I feel like, wow, this is really fun. Because the thing I like about crypto is you can practice something by just reading the description of nothing, and then you sit down and you use the Fabian’s algorithm, right? Sit down, you wrote down the problem, sit down, look at the problem, think very hard, and write out a solution. And I like it a lot, right?

Because you don’t actually have to look at the code at all, and just abstract thinking, look at this thing, and then you can see, oh, what could go wrong here? And so I learned everything from Thomas, and he even gave me a job, you know, took me on the way from Vietnam to Mountainview, and it’s literally changed my life.

java4shell in the new york times

Thomas: Yeah, I reject that story entirely. We felt unbelievably lucky to have the opportunity to work with you. And you got snapped up by Google pretty quickly too. Which makes sense.

David: Well, you guys have been in the news recently, the New York Times.

Deirdre: That’s right, for cover.

David: It’s been a while since I’ve seen a vulnerability disclosed in the New York Times. So could you tell us how that happened?

Bruce: Yeah, this New York Times article is, I think, historical, because in the article it includes the term “heap grooming.”

Deirdre: Hehehehe.

Bruce: And I think includes the repro for the entire vulnerability, all in one article. I don’t—yeah, it’s a fine piece of high-end journalism, in my opinion.

Deirdre: Wow.

Bruce: It’s kind of amazing. No, it’s great. One of our — yeah.

Thomas: It really does. Right in the middle of the article, there’s a big long string of — it’s a base64 AA within, so it’s not quite the awesome AA

Bruce: Yeah.

Thomas: that I was hoping for, where it’s like, oh, we got a register control with 41 —

Bruce: Oh, yeah, yes, you need —

Thomas: But still very good.

Bruce: That one will be 41, 41, 41, 41. Maybe we should—you should give that to them. Yeah. So one of our researchers—he’s hacked many other things, which we haven’t published. Maybe we can talk about that a little bit later.

fermat and the number 26

Bruce: But he did Chrome, I think that one we can talk about, and then he decided to look at Java. I guess just for fun. And yeah, just stumble on this.

Thai: And Thomas, he’s actually from Vietnam. And we helped him get an H1B visa as well. So this is history basically repeated, because I came to the US when I was 20—26 years old. And he came to the US when he was 26 as well. And 26 is actually—because this is a cryptography podcast, 26 is actually a pretty unique number. Do you know that?

It’s actually the only number in the world of numbers that is between a square, 25, and a cube, 27. And the proof for it is actually pretty interesting, because the first person who actually came up with this idea was the great Fermat. I was in Paris in October. I really wanted to go to Toulouse, because that’s the home tower Fermat. But we couldn’t because there was a strike. Then Fermat, back in his days, these mathematicians, they did math to prove that they are smarter than other people, like we are today.

So they he posed this math problem. He said that can you define on the x and y satisfying this equation x to the square minus y to the three equal to no y x to the three equal minus y to the square equal to 2. And he said that like there only two very like this equation only has two solutions like and obvious solutions like you know five and three and then minus five and three and nobody could prove it.

He posed this challenge to the English mathematicians, and the German as well. And nobody could do anything about that. And it’s funny, because Euler actually came up with a proof. Only 150 years later people find out that that proof was incorrect. And it’s actually the birth of algebraic number theory. Because at that point people understand that if you add square root of two to the setup integer, you have a new set of numbers that have very wonderful properties, and you can see where this goes to, right? Eventually this is—

Bruce: Yeah.

Thai: Where people started developing the number system, and then eventually we would have elliptic curve, and then elliptic curve cryptography. So.

Thomas: Bruce, is this what it’s like working with Thai, where a random number will get said in some context and then there’ll be a 15 minute thing about Fermat?

Bruce: Yes, yeah. Yeah, this is.

Thomas: And Euler?

Deirdre: And Euler. He literally brought it all the way back around to elliptic curves. So it’s kind of beautiful.

Thai: Yeah.

Thomas: I do respect that.

Bruce: Yeah.

Deirdre: Yeah.

Thai: Then that’s when I went to the US, and then that’s when Wang, Wang Liu, the researcher who found Java4Shell, went to the US as well. So it’s a tradition for our company now. We’re going to move people from outside the US to the US when they reach 26 years old.

Bruce: You know—

Deirdre: So that’s your secret sauce, is you find brilliant 26-year-olds and you hire them in—

Thomas: Have you considered—

Bruce: Yeah.

Deirdre: And then they find a terrible base64 vulnerability in Java, or the next run time.

Thomas: I was going to ask if you’ve considered moving Tavis and Stefan and Dion and all them to Vietnam. They might get a lot better out there.

Deirdre: Oh.

Thomas: I hear good things. I’d really like to go at some point.

Bruce: Tom, actually, let me add to this.

Thomas: So the bad news—

Bruce: You asked what it’s like to working with Thai. We notice you were only five minutes in, and he’s already talking about Eulers and elliptic curve, blah, the things that normal humans don’t understand. I had a conversation with him. I was telling a man, I was reading a book about Grothendick, the French mathematics.

base64 padding and avx-512 bug

Bruce: And then Thai, he’s like, oh my God, and he goes on for 20 minutes about how the Langlands programs and how it could be used to explain everything. And I’m like, man, this is what the thing — yeah, and you go to his house, it’s like —

Deirdre: Totally know what that is.

Bruce: Oh, history of darn—

Thai: So actually I have a book that I said that I — yeah.

Deirdre: Oh okay, okay. You have to explain Java4Shell, please.

Thomas: Yeah, the bad news about this podcast is that the people that listen to this know more than a New York Times reader does.

Deirdre: Hmm.

Thomas: So we’re going to get into some detail, not just quote unquote heap grooming, as that’s how the vulnerability works. Because the vulnerability is kind of awesome. It’s kind of a good vulnerability.

Deirdre: It’s Java two shell and not pH. There’s so many four shells, two shells now. Just pick a runtime and there’s a N shell.

Thai: Mm-hmm.

Bruce: It’s basically you have an integer under flow, and because when they do this base64 calculations, when they calculate this output length that they have, you have an integer overflow, and there’s this AVX512 instruction that tells you which bytes to write based on this bit mask. And because of this integer underflow you have this FFFFF F. It writes more bytes than it’s supposed to.

And so I think you end up — I don’t remember the exact — more than you need to.

Thomas: Mm.

Bruce: And literally that’s it.

Thomas: Bruce doesn’t have the poetry of this vulnerability in his soul, right? So, all right.

Bruce: All right, talk about it.

Thomas: So Java—

Thai: Like—

Thomas: Thai, you take a shot and then I’ll take a shot.

Bruce: Oh, wow.

Thai: Okay. Yeah, so basically base64, right? And it’s a very less common way to encode binary data. Because you want to send data from one computer to another computer, you want to encode the data, and then people usually use base64. And the way it works is it basically encode—the encoding group four characters at a time. So when you do decoding, you also do four characters at a time.

And the question becomes: what if you give it something that is not a multiple of four? Right? Can it handle it? And that’s exactly the bug. So when you give us 64 bytes of AAA, and then you end it with one byte, equal, which is the padding — it’s always come back to the padding. And then what—

Thomas: Ha ha. That hadn’t occurred to me, but I like the symmetry of everything coming back to padding, so.

Thai: Yeah. It’s actually — if you think about it, you do crypto, right? The math is solid because humans couldn’t break it for so long. So let’s assume that math is solid. If you think about it, anything we add on top is broken. Anything. So this padding — this is not encryption, this is just encoding. But they add a padding. And then the padding, what if the padding is just one byte?

Then it’s not a multiple of four anymore. And for some reason somebody convinced Oracle or OpenJDK that they have to decode so much base64 strings. So they want to speed it up, because it’s really important to speed up your application one millisecond, right? So they actually rewrite the decoding in assembly. In assembly you can actually make good use of the hardware, the CPU instructions provided by the processor, right?

And so there’s many different instruction set, but this instruction set that we target was AVX-512. And you can find it in Intel and AMD chips. Very popular, very common. Not everywhere, but I think if you use a new chip from AMD, you probably have this AVX-512 instruction set within your computer.

Thomas: Got ‘em.

Thai: And so they hand-rolled assembly themselves. And because I did it before, right? I knew the reason they did it, because they want to do register scheduling themselves so that they don’t—they can turn things in memory and stuff like that to make sure that you don’t go to the cache. You just keep everything in memory to save some CPU cycle, which is important. So that’s what they did, and then they had that error, that the approach mentioned, basically because it’s not a multiple of four. When it then can calculate the length of the padding, they did an error there, and then they basically come up with zero.

And then when they try to calculate the mask—because this is AVX, right? AVX is basically you use it to process multiple bytes at the same time. They have multiple lane lens, and you want the CPU to process everything at once for you. And in order to do that, you need to tell the CPU which byte in your string the CPU should take into account.

And it depends on a bit mask. And because of the underflow that Bruce mentioned, the bit mask become just one one, like FFFF. It means that it select all the bytes, and instead of writing zero bytes, now it writes 62 bytes.

Thomas: Way I’m thinking about it is there’s an implied mem copy in an AVX optimized loop for doing base64. So if you were auditing a base64 implementation and you saw a mem copy in it, you’d think to yourself, did they count right? Are the integers being plugged in as the length field here at the offset? Are these right? And you’d think your brain would grind on: is there some condition in this code I can get so I can make it unexpectedly be at the wrong offset or the wrong length?

You think that stuff instinctually as a vulnerability researcher looking at a mem copy, but you don’t think that looking at AVX.

base64 asm in java

Thomas: You have to really understand AVX or at least be a little bit familiar with it. It doesn’t jump out as a pattern for you, right? So first of all, I might just be totally wrong about that. Was I totally wrong about that?

Bruce: I don’t think so.

Thai: No, no, that’s right. Yeah.

Thomas: So I think obviously what’s interesting about this is that Java runs everywhere, right? And it’s a really destabilizing vulnerability if you’re trying to get a bead on where security is right now, right? We’ve all read and written pieces about how much AI is going to accelerate vulnerability research and how many more vulnerabilities we’re going to see and what’s going to get broken.

I wrote a blog post about this, and my blog post is, well, the thing that’s really going to happen is all this weird software that no one ever thinks about is going to get broken,

Deirdre: Hehehehe.

Thomas: All these random third party backup software and all that, right?

Deirdre: Hehehehehehehehe.

Thomas: If you were going to pick the one thing you didn’t think was going to break, right? If you could think of anything in the world that wasn’t going to break, you would take the canonical memory safe language, the oldest, most popular, most memory safe-ish language there is. And if you were going to think about the thing least likely to break in that, it’d be the fucking base64 implementation, right? Every single application ever uses this. It’s the safest possible thing you could have bet on. I don’t know what could be weirder to see a vulnerability in than base64 in Java.

Thai: No, absolutely right. Because what could go wrong there, right? And it’s just so weird. The first time I saw it, it was, no way, this is unreal. And because you can see, right, base64 happens before anything else. If you have an application, then you probably need to decode JWT tokens and things like that, or decode the cookies, and all of them are in base64. So all of these operations are before authentication, pre-auth, and now it’s just broken. And yeah, it’s really weird.

ruby2shell german sharp s overflow

Thomas: Yeah. Oh d did you two did you two see Ruby2Shell that just came out yesterday. So this is the yeah, this is the German Sharp S character.

Thai: I see.

Thomas: If you can deliver it to a Ruby application in Windows 1252 encoding—which, because Rails is Rails, you can deliver it in Windows 1252 encoding—if you give it a string that includes a German sharp S as the last character: in Windows 1252, there isn’t an encoding for uppercase German Sharp S. In fact, there barely is a character for German Sharp S uppercase. So it does a reasonable thing if you try to uppercase a string that has a German sharp S. German sharp S is the—it looks like a B. It’s that German character that looks like a bee.

Deirdre: Like StrÀss. Like WeierstrÀss?

Thomas: Erin is in the room next to me, and she speaks and writes German, and she’s going to throw something at my head. So what happens? A reasonable thing happens if you uppercase that string, right? It converts the sharp S into two uppercase S’s, which is a transliteration of how that character works, right? And so as it turns out, the code that does that, in the loop that it’s doing that, it’s checking for headroom in the string one byte at a time.

So each character is looking at the loop conditional as seeing, do I have room for one more character? And in that one case, you actually need two characters. You get a one-byte overflow.

exploiting java4shell

Thomas: In fact, you get a one-byte overflow of the character uppercase S. You don’t even get to control what the character is. And it’s remote RCE-able, right? There are remote RCE exploits for it. I say all this to ask: how difficult is the exploit for Java4Shell?

Thai: So three things that you can do with the vulnerability, right? Because the first step is the primitive that you get from the corruption is a constant value override. You can override 62 bytes, but you can’t control the value because it’s fixed, and it’s actually 60 A, 60 A, 60A, Cty A, or something like that. But then you can actually—if you can arrange memory next to your decoder, the buffer that your string—that you can override.

Then, like in browser exploitation, the technique is you put an array or a buffer next to your target, and then you’re going to override the length of that array. And it means that you have a bigger array. And then if you can control additional data that writing to that array, then you can actually create a fake object in memory. And this is actually pretty funny, because people said that Java and JavaScript have nothing to do with each other. But actual exploitation kind of the same.

David: Yeah, it’s the exact same as every V8 exploit.

Thai: Exactly. You don’t need a rest of, but you need fake object here. And you can actually create a fake object in memory, and then with that fake object you can actually override length again, and then you can turn that into a read. You can actually make it read back memory to you. So that gives you a Java bleed. So that’s the second stage. And the first thing is basically maybe you can just crash it.

The second stage you can actually read memory. And reading memory alone would be dangerous already, right? And very cool for a demo.

keycloak rce chain

Thai: I always love those demo videos where you send something and then it’s just a hex string going across your string. And for the Keycloak exploit, that was a funny story here, because I didn’t believe that we would be able to exploit Keycloak. So I told him, Wang — I was just half jokingly — if you can’t exploit a Keycloak, I’m gonna save my head, bros. I used to have nicer hair.

And then two hours later he showed me he could exploit it. And the exploit is pretty fun. The first step is he get the Java bleed, he read keys from Keycloak, and then with that key he can actually create an account. And with that account, we can turn the exploit into post-auth. And with post-auth, you have more endpoints to control the heap. And then that’s the second stage.

The second stage to control the heap to turn it into RCE. And it worked. So if you ask me how difficult it is, it’s pretty difficult, not easy. And we put that in the blog post: this is not a single universal exploit like Log4j or Log4Shell. This is application-specific exploit. But it’s actually pretty fun. I don’t know, this is actually the cat box that people would—should try to exploit, right?

Thomas: Yeah. I think David and Deirdre see this coming, but I have to rant for a second about you have to say it’s not Log4J, it’s not Log4Shell or whatever. Everyone has to say that, right? Because if you don’t say that, the top comment on Reddit or on Hacker News or on the Twitter thread is going to be somebody saying, “Oh yeah, well this isn’t Log4Shell. This is nowhere nearly as good as Log4Shell.” And the problem there is fucking nothing is as good as Log4Shell, right? That’s not a reasonable bar, right? Like it’s—

Thai: Yeah.

Thomas: All right, so here’s my question about the Keycloak exploit, right? So you’re pivoting from reading a key to account takeover, and then post-auth you have enough control to actually groom the heap to do arbitrary things with it. That’s a really complicated exploit. It is too difficult an exploit to reasonably write for Keycloak. Keycloak is not a good enough piece of software to put that amount of effort into. Any normal person would stop at “I can create accounts inside of Keycloak,” right?

I’m reading keys and creating accounts, I’m done, right? But you guys took the extra effort to pivot from that to getting RCE.

remote heap grooming with codex

Thomas: How much of that was Codex or Claude doing in the work and how much of that was thinking through the phases of that exploit? I wanna know if an LLM model said, here’s a good process. We should do the read, take over an account, and then use the — it sounds like an LLM thing to think, right? Is once we’ve taken over an account and defeated the entire purpose of Keycloak, then we can groom the heap and get RCE.

Thai: So I think it’s—the Wang, when he did this exploit, he was actually flying to Tokyo because he was going to give a talk there in OffensiveCon about his—he developed an exploit for Chrome; it’s actually a pretty fun exploit. It’s in the Phrack 73 edition, you should check it out. And so Wang is known for bizarre attacks, bizarre exploits. He always look for things that he has this exploit, that he sent—sent us a demo once.

It took like 30 minutes. He forced us to watch a 30 minutes demo video with nothing. The screen would just start for 30 minutes and then the minutes 29 something happened. And so—but part of his motivation was because I met the bat, so he was like, I was flying to Tokyo, I didn’t have great bandwidth, but maybe I can build this exploit just to make fun of me. And the way he did it is he had a—you have to think about, you need to do heap grooming remotely, right?

And it’s actually not—not easy because you need to control the memory, you need to place things one after the other in memory. And Wang used to work at Cloudflare and doing kernel, system programming there. So he’s know something about networking and TCP and everything. He used—he wrote his own internet wide scanner and it’s pretty fast. I wish one day we could convince him to publish.

But anyway, he knew a lot about how to control the network and everything. And then the way he thinks about is, okay, he needs to place things in memory. It’s actually pretty interesting. I remember I told you that you override an array so that you enlarge it and then you put more data there. So the way he does it, he send a request and he keeps holding a byte or maybe two bytes back.

And then he knows that Java JVM would put his current request in memory. And he wrote a heap visualizer for JVM. He wrote his own heap visualizer so that he can look into the heap. And then he knew that, okay, this is the first stage, he’s going to override the land. And then the moment that the length was overwritten, he would send more requests later, so that the new request data would be written to the just-extended array.

And then he can control that, right? Because that’s just data. And in Java, an object, a basic type like array, it’s just a marker and some buffer, right? So he can actually control that entirely. That’s allows him to create the fake object, and you can see where it’s going, right? So he basically devised this entire strategy for Codex.

This is the strategy, and then based on that, you come in, you do the first stage to get the key, and then the second stage—he found that if you cannot actually upload file or post multi-form to the application, then actually Codex—this type is Codex file up—you can actually change the way Java write files and you change the destination. So you can actually write a JSP to the web root.

So you can actually get a web shell out of that, and this part Codex came up with by itself. So that’s the combination of a human expert and AI.

Thomas: Okay. Yeah, this feels like halfway in between a typical Chrome memory corruption type exploit and a deserialization exploit, where you’re—

Thai: Yeah.

Thomas: Setting up the right chain of objects bouncing through them so you can get a file, right, that’ll give you a JSP that you can do a web shell with, which is—that’s kind of a web pen tester kind of way of going at it, right? I don’t know, David, you can tell me that this is actually super common for browser exploits, but I like that it’s both styles there.

Thai: Yeah.

David: In browser exploits you tend not to see past the fake object stage. Because from the threat intelligence standpoint, you don’t—you tend not to catch the browser—the part that goes out of the renderer. And then a lot of researchers, as soon as they have the ability to get the fake object, they don’t even bother to explain it. They’re just like, ah, and then you do the same fake object thing that everyone else did.

Or they hand wave it away because it’s just so incredibly trivial after you’ve seen it once. It’s just like every exploit works the same. We have an object and we have an array and up and now our right is code execution, sucks to suck, nerds. And it just kind of stops there, like, give me my check.

tavis ormandy is chief ethics officer

Thai: But I think this is the thing that I like the most about this bug, right? Because each application, you can sit down, think about how am going to win this game, right? And it’s really fun. I think Log4Shell is really powerful, but exploiting it is very boring, right? This is actually pretty fun.

Thomas: Yeah, this is art.

Thai: Yes, exactly.

Thomas: I want to talk a bit about Calif in general and the team that you’ve got, and I want to talk a little bit about the process that you guys are using. Because all of us here have worked in a similar space. So BSides you two, I’m just going over names that I know and that I think lots of people know, right? So an obvious one is Michal Zalewski works for you guys, lcamtuf works for you guys.

Apparently his job there is to do all the artwork for all of your blog posts, which I think is a good role for him. I think he’s well suited to that. Dion Blazakis works for you guys. Tavis Ormandy works for you guys. Stefan Esser—where did you find Stefan Esser? Stefan Esser works for you guys. I’m probably missing another marquee name here. But you have a ludicrous team of people doing this work.

What’s the pitch you give to Tavis Ormandy to get Tavis Ormandy to come on board and do research—

Bruce: And the soul.

David: But before—

Thai: You can start with Tavis and then Bruce can fill you in with the rest of the room. So Tavis, he was at Google, right? And we used to be in the same team. Then he moved to Project Zero, and then I left, and then I think he moved back to my own team there, Product security engineering. And I think earlier last year he left, and I got notification from friends that, oh, Tavis is available now, and I just created a group chat with him.

I was like, Do you want to hack stuff? I was in Vietnam back then, and then he said, oh, okay, let’s meet for lunch. And I came back to the Bay Area, went for lunch, get some phở, Phở HĂ  Nội in University Avenue in Palo Alto, and we found that we actually share a common goal. Tavis, he really wants to make the internet safer, right? And that’s his entire goal. He has strong opinions about things. Disclosure. So we put him as our chief ethics officer. It’s really funny because—

Thomas: Tavis Ormandy is your chief ethics.

Thai: Yes.

Thomas: So let me just say the reason that Tavis Ormandy’s name pops into my head, one of the first names that jumps out from the page, is because I lived in fear of that guy for six years at fly.io, because you never knew at what random time he was going to post a goddamn PoC on Twitter for—

Deirdre: Hehehehe.

Thomas: A micro architectural vulnerability that would require us to reboot our entire fleet. That happened. There was a point where he posted a blob of C code. We weren’t in on the embargo, thanks Tavis. And you could run that on a VM on fly and just print out host secrets and things like that. So these are your ethical standards is what I’m hearing.

Deirdre: This seems to cohere with what you’ve said in the past, Thomas, that just dumping a pile of stuff out on the internet for everyone to patch or to use offensively is totally kosher, right?

Thomas: Yeah, I’m not saying it’s I’m not saying it’s bad even though my tone of voice sounds like I’m saying it’s bad. I do respect it.

Deirdre: It was just annoying to you personally as someone who had to secure some cloud infrastructure.

David: Never thought the face eating leopards would eat his face.

Deirdre: No, no.

no masters, publish everything

Thomas: Let me ask the question I wish I had just asked a minute ago, right? And we’ll take a different name. We’ll take Stefan Esser, right? So let’s just assume that all of the Frontier labs would love to hire Stefan Esser to do a bunch of AI assisted vulnerability research. What’s the pitch to go to Calif and not to OpenAI or—

Thai: Bruce in the recent, basically.

Bruce: Man, these are all loaded questions. Well, at our company, a few things are unique. One, we don’t have—nobody in the company has job titles. We don’t have job titles. And we have no managers. That knows it’s no managed—except, yeah, we like—yeah, yeah.

Thomas: Except for Tavis, who’s chief of ethics.

Bruce: I think Thai is the only one that has a title because of legal reasons, but everybody else, there’s no manager. The company has 60-something people and no managers. And so you get the freedom to do more or less whatever you want. The other day I tweeted that our company agreed to acquire Project Zero, and people thought that was real, and I got in trouble for it.

Deirdre: Ha ha.

Bruce: If I were to do that at some other random corporation, that probably—oh, earful.

Thomas: It is true that if you were at Anthropic and announced on Twitter that Anthropic had acquired Project Zero, there would be some blowback.

Bruce: Yeah, yeah.

Thai: Well, Ben.

David: Not if Claude does it.

Bruce: Yeah.

Thai: Ben Hawkes is there, right? So Ben Hawkes is at Anthropic now, and so to some extent, that’s already. So.

Bruce: Yeah. No, no, but the reality is the company is quite unique. And we just let people do research in the areas that they’re interested in. And that’s kind of our key ingredient, I think: giving people the time and the freedom to do the things that they enjoy. And we publish everything. I don’t think there’s anything—we publish all of our research. It just takes a long time to publish because it takes a while to prepare them.

But yeah, and I think that just think of kinda like the Project Zero back in the old days, in the beginning when they first started, right? It’s like whoa, lots of cool publications and so on. This is kind of like what it’s like. This is what we’re doing now. It’s just that there’s probably more and more of it.

clients and pen testing

Bruce: Yeah. But those are the unique things. And then we can tweet, release videos, just say things that there’s no—there’s no PR review. I don’t have to deal with Marcom, nothing. So it’s great. That’s the freedom that people like.

Thomas: Some comic strips.

Bruce: Yeah, yeah. Exactly. So that’s basically the Calif way. Hehehe.

David: So do you guys have clients or are you fully funded by Twitter revenue sharing?

Bruce: Yeah.

Deirdre: It looks like they have clients. They have a bunch of attestations on their website for their services.

Bruce: Yeah, we’re—

Thai: Yeah, no, we have clients.

Thomas: We’ll say right before I left Fly, we did an annual pen test and we went out of our way to bring people in—

Bruce: Yeah, we have people in the research team doing services.

Thomas: To do the pen test, to collect logos from firms that we liked. And we had Calif do—so we’ve had some really good shops do pen tests for us. We had Atredis did one, Doyensec, a couple of people there that I really love. Tetral did an assessment for us. A bunch of different firm—include did an assessment for us at some point. And then the last one we did before I left was you guys had done an assessment of Fly.io and ripped our faces off.

Easily the best third-party assessment we’ve gotten from anybody. So I guess I’m endorsing paying them lots of money to find vulnerabilities in your stuff. I assume that’s the way it works is nobody is jumping up and down to go work on a Fly.io assessment, even though I think it’s a fun thing to assess, right? So there’s some amount of utilization time and then some amount of research time.

ai-driven reverse engineering

Bruce: The hacking stuff for customers, helping customers, and then we have people who are done with their customers’ project and now they’re doing research on some random areas that they’re interested in. Yeah. Like I said, in our company people do more or less whatever is needed.

Thomas: Yeah.

Bruce: And most of them it’s fun stuff.

Thomas: So all of us have done vulnerability research work before. I don’t know anything about the day-to-day process that you— I know what it looks like when I do a vulnerability assessment. And I know for the last nine months or whatever what it’s been like for me to ask Claude to do an assessment for me, or Kimi K3 or whatever I’m using to get around refusals, right? What’s it like?

What’s it like for you? What’s the process like now? If I had fallen asleep five years ago as a decent vulnerability researcher and woken up now, what would surprise me about how you guys do this?

Bruce: Let me start up with just an area that I was involved in directly. It’s in reverse engineering. When I first joined, I think it was in January or February, I don’t remember now, we had a project in which a customer has asked us to reverse engineer something. It’s a very vague requirement, but it’s a big system. We have no source code.

Back then the AI was not very good at reverse engineering. It would just hallucinate and it’ll make up shit. So of course I did it the traditional style, the old-school style. You load this thing up in IDA and you use the debugger and you can sit there and you try to figure out what happened.

Deirdre: Mm-hmm.

Bruce: It’s a laborious process, as you all know. It’s very painful because— let me put this way, the system is complex. And that took a while and we eventually did it, but it’s done. Fast-forward to today, even as of whatever, last week, we had a similar project where a customer has asked, “Yeah, I need you to tell me what happened, how does this blob work, 200-and-something-meg blob work.”

And I think the AI model went through that in less than a day and it figured out the whole thing.

Deirdre: Crazy.

Bruce: Just to give you an idea of where it’s at today, that’s for reverse engineering.

Thomas: All right, so.

Bruce: Okay. And Thai can talk about the vulnerability research and we can add some more. But just to give you— this is in like eight, nine months’ difference.

Deirdre: Yeah. Yeah.

Thomas: I want to stay on reversing just because I can follow it, right?

Bruce: Okay, yeah.

Thomas: So I get the story where today you can just hand off a blob and expect if you just slash goal something or have it just iterate over and over again, it’ll come up with something. How smart was your prompting there? Did you even write complete English? It was like, “Figure this out.”

Bruce: This is the work that was done for the most recent one. I wasn’t involved in this one, but the engineer who did it, he talked—the prompting is quite minimal: “Oh, I need to figure out how this thing works,” and that’s it. No need to tell it what tools to use, even. It will write its own tools for you. Oh, you don’t have a particular executable file format parser?

“Oh yeah, let me go write that for you.” And just write that all up. “Oh, you need to parse this particular blob, this file, this table? Oh, let me go do that for you. Done. Oh, you need to disassemble that? Oh, you

Deirdre: Yeah.

Bruce: don’t need IDA, let me go do this for you,” using objdump and shit like that. Yeah.

Thomas: See, you’re not setting up Radare or Binja or IDA with an MCP.

Bruce: So we do use the IDA MCP. We also have people using Binary Ninja. You could do that. If it does make things faster, of course, right? So I think in this particular project we did use the IDA MCP to help with some of the work. Yeah. But that should not—that should not—people shouldn’t take that as, oh, you need IDA or something like that.

is reversing dead

Bruce: The AI can go and roll its own version of IDA probably in — give it a few hours. It’ll probably write its own IDA. And it’ll be fine.

Thomas: So that’s my big question for you, right? Because you’re a career reverser, right? Are programs like IDA still in the meta for doing good, or is it dead?

Bruce: Man.

Thomas: Is the new meta just prompting?

Bruce: I asked myself this exact question. It was a few months ago that I didn’t think that the AI—if someone told me, “Oh yeah, the AI could reverse engineer some stuff without any symbols and figure everything out very quickly,” I had some skepticism about this. And so I did the experiments myself. I wrote a Rust program that had some obfuscation in it. And I asked it to go reverse engineers using a combination of—one, the first, objdump—was using IDA.

Second option was to do it without any tools, just objdump. Just objdump. It turns out that both Codex and Claude can recover a large chunk of the semantics of the Rust program with just plain objdump. And then after you have that, you can say, “Oh, yeah, this output here, can you make it to idiomatic Rust?” And it would say, “Oh yeah, let me sweeten that up for you.” Yeah. And so, yeah.

Deirdre: That’s easy.

Bruce: And if you ever look reverse engineer Rust code, right? You open up an IDA, it’s eight—automatically 8,000 lines of functions that are not named at all unless you have some plugin that does.

Deirdre: Hmm.

Bruce: Like FLIRT, to identify the Rust libraries and runtime, blah blah. It’s painful, right? But this thing just does it, man. And so at that time I was like, wow, that’s depressing. So what does this mean? This means that I asked some friends, it’s like, okay, well, why do we need IDA anymore? Right? This means that the reverse engineering two—

Deirdre: When they take the models away.

Bruce: Yeah, I asked the exact same question, Tom. And the reality is, after talking to several friends, it’s like, yeah, IDA the way it is today, and by the way, I’m not saying bad things about IDA, but reverse engineering tools like IDA as it is today would need to be changed to consider valuable, right? So I think recently they added new MCP features to make it easier.

And another area they’re doing is to make it more token efficient to do certain things. But in terms of analysis, I don’t think there’s—they are—sorry, is too good already. Yeah, and that’s what I—

Deirdre: Mhm.

Thomas: And the obvious next question is, if you’re talking to an early career person who’s thinking about where they should specialize, reversing is a specialty.

Bruce: Used to be, yeah, it used to—

Thomas: People specialize in reversing. Yeah, is it anymore?

Bruce: I don’t think so. We have—

Thomas: Like it might have kill it might have killed that specialty dead.

Bruce: I believe for non obfuscated code, it’s dead.

Thomas: That might just be done.

Bruce: I think it would be.

Thomas: Obfuscated code is a fun one though.

Bruce: Yeah, obfuscated code is going to have some channel because you need some domain knowledge to write specialized tools, like analysis passes to go and deobfuscate, that the AI by itself cannot do autonomously. It doesn’t do a very good job yet. But I’m not sure, maybe next year’s model might be better. I don’t know, but I can tell you that non-obfuscated code, just normal random—you pick a random binary in Windows, it will go and do everything for you autonomously.

And so, yeah, just to answer your question, I’ve talked to a whole bunch of friends who’ve been doing this for a long time, and they’re telling me, “Oh, yeah, Bruce, it’s done. The AI is better than me at this.” We even had—I think Dion was looking at some undocumented architecture. Okay, there’s no—we don’t have any documentation for it. And the AI magically reverse engineered this thing and figured out—it wrote tools to analyze this particular architecture.

Hopefully we’ll give a talk about that next year or something like that. But yeah, that’s just to tell you where things are at. In the old days I would be like, “Oh shit man, I got to go roll up a new IDA processor module. Let me go read the SDK or the example. How do I do that, right?”

Deirdre: Mm.

Bruce: Because it’s not something that you do very frequently. And then you go and you spend probably weeks of your time to do that. Now it’s like, yeah, the AI just does that. It’s crazy.

Thomas: It is sad. One of my earliest memories of doing professional reversing work was, I think it was a fiber channel over IP controller thingy that I had to do vulnerability research in. And the controller board for it was in an architecture that was not mainstream at all. It only exists to be put on an FPGA or something like that.

And having to work that out myself and build out—I basically wrote an objdump style thing and then fed that into another tool. And that was super, super fun to do. And now it’s just dead. That work doesn’t exist. I guess you can do it by hand, like a hand tool woodworker doesn’t use a table saw or whatever. There are people that do this stuff for just the joy of it, but it’ll have to just be a craft at that point. You can’t bill for it because the model can just do it for you.

Bruce: Yeah, if you were to do that these days, it would be considered—it’ll be like—analogy would be like you’re trying—using toothpicks to cut wood or something like that. And it’s just not—that’s not going to cut it anymore.

Thomas: Yeah.

Bruce: And then we have those examples from my own experience, and then we have some other people that they’ve basically decompile entire massive C programs, like games, down to opcode-level matches, so basically 100% accuracy, autonomously, yeah.

Deirdre: Yeah, I think there’s game mod communities, like subreddits, that are basically defunct now because they’re just getting swarmed by people being like,

Bruce: Yeah.

Deirdre: “Hey, I made this in an afternoon, and it used to take ages.” And they’re like, “We can’t—this is no longer feasible for us to moderate and get the human artisanally made game mods, because it’s just easy to practically one-shot it.”

Bruce: Yeah. It’s like trying to reverse engineer neither a game save format or a level format, the zillions of custom file formats that you find in games, right? And now this thing just does it.

Deirdre: Yeah.

Bruce: But yes, I think it’s soon going to be gone, Tom. Actually it’s already gone. At least from my perspective. Yeah.

Deirdre: If we keep the models around.

Thomas: Moment of silence for the career of reversing.

Bruce: I’ll probably get some flak with this. Someone would tell me, “Oh no man, Bruce, the—”

Deirdre: Poor one out.

Bruce: Small, you’re wrong. But that has not been my experience, given what I see. Yeah. It’s kind of shocking to be honest with you.

ai building vr labs and harnesses

Bruce: The fact that you can take a 200 and something meg binary and get basically most of the critical information from it literally within a few hours is—and to have a separate program to read—that implements that in a separate language, sorry, in another standalone program—is, I mean, normally that would take weeks at least.

Deirdre: Yeah.

Bruce: And then for VR, Thai, you want to talk about that?

Thai: Well, you can see the results already, right? But I think that the thing that I like the most is, in VR, most of the time back in the days, you have to spend—people think that doing VR is like you sit down and just find bugs. But most of the time you set—setting up lab, you set up the target that you want to hack, and you need tooling, the environment, and everything just need to click in order for you to start working, right?

And it takes a lot of time. 80% of the time is actually in setting up labs.

Thomas: Yeah, absolutely.

Thai: And now with AI, you can just give me a lab and it’s going to do not for you. Why would you complain?

Deirdre: Why—you can play the whole—yeah.

Thomas: I was doing KVM stuff a couple of months ago just to get familiar with the models doing vulnerability research. And it would have taken me a week to come up with a harness, a different harness, right? But it would have taken me a week to come up with the KVM harness that I boot into to probe the virtio drivers or whatever that I’m looking at, right?

And it was like one prompt. And it’s like, okay, we’re now booting into a thing that has a CNC channel that you can feed it to do things with. And all of the work there for me was just doing that stuff.

ranking runtimes and crubit bugs

Thomas: And even that’s obsolete now, right? I thought of, here’s what I think a good harness would be, but really I should have just told—if it was Fable 5-2 or if it was Mythos or whatever awesome model you guys get to use that I don’t get to use—

Thai: Yeah.

Thomas: You just say like go find me the vulnerabilities and then it goes and figures out, you know, what the thing is. I wanna ask if we can all right, ‘cause David is too chicken to ask, right? Is there like news you can break? Is that what’s a good vulnerability? what should it what should I uninstall from my computer or you know short on the stock market?

Thai: I’m sorry.

David: Let’s rank programming language runtimes from worst to best. Huh.

Bruce: Oh man, it’s—

Thomas: We’re feeling pretty confident about Rust right now, right?

Thai: Well, the thing that you think about is all of these languages, in order to split them up, a last part is actually written in native languages, right? So there you go. You have the memory safety for the farmers, and then the rest would be written in low-level languages. And we do a lot of security engineering. We help people moving from C++ to Rust, right? And the way they do it is you identify a very important low-level library, like a compression library, and then you convert that library to Rust, and now you have that library in Rust, but the rest of your application is in C or C++.

How do you call it into Rust? So that’s a thing that allows you to the bridge. And then Google built this thing. It’s called Crubit. And it’s basically a bridge between C++ and Rust. And guess what? We found vulnerabilities in the Crubit thing. And because that thing is written in C++, right? Because you cannot avoid it. You need some place to make that bridge into the safe lane. But that bridge burns you, basically.

Deirdre: Okay, because you have this is like the second most recent thing on your research page. And like literally the subhead or you know the tagline is replacing vulnerable C++ components with Rust, one binding at a time. And I was like, okay, that’s nice. Like I agree with that. And then they did not read the rest of it. I was just like, oh, they’re advocating for, you know, new best safe practices because of the things that they see and I didn’t reali I didn’t realize that you’re finding vulns in the bindings from C and C++ to Rust.

Bruce: Yeah. But I think if you have pure Rust, I would advocate for that, right?

Deirdre: Hehehe.

Bruce: We have customers using—

Deirdre: Okay.

Thai: Bruce, you think about it: How do you make sure that you actually have peel Rust now?

Bruce: I know, so that’s the—

Thai: I wrote thing in Java. That’s the first version of thing; it was written in Java. And now I’m not sure it’s actually rooted in Java, man. It’s actually not Java.

Deirdre: Ha ha.

Thomas: Saying in our tier list, we’re saying that pure Rust is S tier right now. And then how do we feel about Go?

Bruce: Oh, we have customers. Yeah, obvious it’s pretty good.

Deirdre: Mm.

Bruce: I think I would use that.

Thomas: I have a thing. I have to raise money for this, but I have my—

Bruce: Rust, Swift, Go, and Swift. Man, you asked me to give orders, but I think these are good options if I were to build—

Thomas: Okay.

a bug class for go?

Thomas: Yeah, you’ve got all this time and all these resources and all these tokens to spend. And I feel like the XPRIZE goal right now should be a bug class for Go. It should be a reliable exploitation pattern that takes advantage of data races in Go.

Deirdre: Hm.

Thomas: Because for the last five years, Rust programmers have been dunking on Go programmers, saying that Go is not really memory safe, which is obviously horse shit, right?

Bruce: Oh yeah.

Thomas: Except maybe it’s not horse shit anymore if Claude can figure out—whatever awesome model you guys get to use can bank shot into something where—

Thai: Mm. Can we start for five seconds?

Thomas: That’s—

Thai: I need to—let Go be a Go memory corruption.

Bruce: Yeah. But today—

Thai: We’re talking this. I wouldn’t be surprised if somebody finds something like that, right?

Bruce: We know some people on the Go team.

Thai: I think—

Bruce: Maybe we should tell Peter about this.

Thomas: I just want to see it. I want to see somebody go after it. And then even if you don’t find something, that is still kind of a big result, right? Because it’s an article of faith with a lot of memory safety people that Go is only somewhat memory safe.

Thai: Yeah.

Thomas: Zig too, but Zig’s definitely not really memory safe, right? But Go is mostly memory safe.

Deirdre: Yeah.

Bruce: We should tell you. So basically what you’re asking is you want us to target Go next. This is what you want.

Thai: We can try.

Thomas: It is what I want.

Thai: Okay.

Bruce: Okay.

Thomas: The XPRIZE right now is worth five dollars, but I’ll raise more money than that.

Deirdre: Mm-hmm.

patch diffing to iphone chains

Bruce: Okay. Okay.

David: All match, so it’s at least 10 dollars.

Bruce: Thank you, David. Yeah. And then VR is also changed quite a bit. I want to come back to that. From the work that the research team is seeing and seeing how they do it, the AI is basically—we don’t need to talk about the traditional way of doing things, right? We don’t talk about that. But just to give an example so you can see the impact of the AI on VR.

So Apple had a patch for some bug. I forgot—it was in Core Graphics. It’s some font stuff in PDFs. So we had the engineer; he prompted using a tool to say, oh, tell me what changed. So that’s one prompt. Okay, the tool just goes and downloads everything, diffs it automatically. Then with some human experts, it was able to build a repro, a standalone repro for this thing.

And then it built an exploit for it for iOS. No, it was first done on macOS, I think. And then eventually did it on, I think, all this, and from there, all this stuff happened within probably one or two days.

Deirdre: Bam.

Bruce: Okay. And then from there they had some inspiration, the team. They had this high or something—I don’t know how to describe it. After they got that working, they had this high and say, “Yeah, let’s go to—we need a kernel one.” And that took a few more days, and several more kernel exploits came out. And then more and more. Hopefully there’ll be more stories about this.

human times ai beats tokens alone

Bruce: But yeah, that’s just to give you an idea. Within a very short amount of time, I think for sure a week, maybe week and a half, there were full chains, multiple chains. Yeah.

Deirdre: He?

Thomas: I have the dumbest question here, which is just: Are you guys literally using Claude Code or Codex? The gift? Do you have any interesting harness stuff? Or is it literally just tmux and having 10 different terminals open?

Bruce: Or belief—I do not—no, we don’t have any special harness. It’s just humans. Human experts and Claude.

Thai: We do have some—the people doing this, they’re not new, right? We actually did a accidental experiment that I love to tell, because we have one team of Stefan Esser, Dion, and Anna Rosa, which are I think maybe some of the best iPhone hackers out there. And we have another team up like rootkeys, and they have a lot of tokens. Let’s put it that way. And so Bruce told me the first team came up with multiple chains for the iPhone, right?

The second team tried to do the same thing. They came up with zero vulnerabilities, zero, nothing. Not even a write-up. Nothing at all. So I think if you think you point a model at the iPhone and then ask, hack the iPhone for me, that’s still sci-fi today. You still need people who really know what they’re doing, and they build a skills, they build the tools, the custom tools that allow the models to navigate the maze, the exploitation maze.

You can imagine the iPhone has so many components, right? And you have a bug in one component, you want to go from this component with its entitlement. How can you do that? And then that requires people who know this or there’s some graph, some data that the models could look up and that’s spit thing up, right? Because the model, I think they can do it if you give it enough tokens. But I think the problem is the humans behind the keyboard may just give up because it takes too long.

So if you can actually split things up and you can see the progress because you know what you’re doing, you know, “Oh, I’m halfway there already.”

Deirdre: Yeah.

Thai: Then you can actually finish it, right? And I think one of the most impressive hacks that we did, something that Bruce mentioned earlier: we have a device. This actually doesn’t have a lot of input. And then this actually has a lot of functionality, but there’s not many ways you can interact with it. There are only Bluetooth and Wi-Fi. And you actually have the firmware.

But Dion Blazakis, he figured out a way, a bug, blindly with his agents to figure out a memory leak that allows him to leak the firmware. And Tom, if you remember, back in the day, Willem Pinckaers, he did the same attack for the BlackBerry. He found cut up a mastering I forgot, but allows him to download the firmware first and then based on that firmware. He reversed the firmware and then find more vulnerabilities in the Bluetooth stack, and then that’s allowed him to come into the phone—or not the phone, the device—the traditional way, and then once he inside the device, he discovered that it has this chip that handles the radio and everything.

And it doesn’t have any—it’s undocumented. No datasheet, nothing at all. And yeah, nothing at all. And then he fit that—build a harness to fit that and let the agent to interact with that computer. And then eventually the agent figure out the instruction set and build a compiler.

Deirdre: Hehehehe’s.

Thai: For that thing.

Thomas: Once you have the instruction set, the rest of it’s academic, right? The rest of it is just a couple of iterations of implicit search.

Thai: Well, normally it would take you, I don’t know, man, a week?

Thomas: Oh yeah, no, humans impossible.

Bruce: Yeah.

Thai: Yeah. So if you put this thing into the right hands, these people, they would become—Dave Aitel, we talked to him very regularly, and he said, “Man, Loki is now too powerful.” Loki is the nickname for Stefan Esser back in the day. You gave Loki this thing, it’s like the hammer. It’s invisible.

Thomas: Yeah.

Thai: And we have a formula within the team, right? Human multiply AI is way, way more powerful than human or AI alone, right now.

Deirdre: Yeah.

Thai: So yeah, that’s the situation right now.

Bruce: Yeah, and if anybody has skepticism about this, they can go and just do the experiments themselves.

David: Okay, so.

Bruce: It’s pretty easy with the current models.

Thomas: All you need is a device that you can’t interact with much that has Bluetooth and Wi-Fi. Find one of those, and then point unlimited tokens from unavailable models at it, and you too can replicate.

Deirdre: Well, I think that’s a good thing. It doesn’t sound like they’re claiming they have access to unavailable models, so.

Bruce: No, I’m talking about the—it’s in the area of reverse engineering, right?

Thomas: Just making fun of them.

Bruce: If you don’t think that the AI cannot do reverse engineering, you can just go do the experiment yourself. That’s pretty easy to—

Thai: But Tom, if you think about it, even the labs couldn’t do this, right? They truly have unlimited tokens and really super crazy, scary models as well.

Deirdre: Mm-hmm.

Thai: So it’s not just the models, right? The people as well.

Deirdre: Mm-hmm.

Thai: We don’t know, maybe the multiplier would become an addition and then we would be obsolete. But right now I think we’re still there and—

Thomas: It’s a good answer.

Thai: It’s fun.

Thomas: It’s a good answer for why Stefan Esser is working there and not at a frontier model company, I guess. Although, yeah, that makes perfect sense.

Bruce: I’m just trying to imagine Stefan working at OpenAI or Anthropic.

future of vr and rewriting everything

Bruce: That would— imagining what that would be like. Ha. Anyways.

David: So that’s where we are. I would be remiss if I didn’t ask you on the way out: Where do you think we’re all going with this? Do we have six more months of doing VR before we just pack it up and let the machine god—do you just cashing out and buying guns and water? You’ve got the prepper on your team, so you should be set.

Deirdre: Ha.

Bruce: Think it’s going to be challenging to go against the machine on bug discovery. Finding bug, I think that’s going to be challenging. In the areas of exploitation, I think there’s a little bit more unknown, because the data that we have today tells us that on certain platforms, the AI cannot do things, exploit things autonomously. And I don’t see that—even so, we’ve been at this for—we’ve seen from the pre-Mythos day until now that hasn’t changed.

Sorry, we can see some progress, but the progress is not substantial yet where it could go, and it’s like you plug in an iPhone, which is still, I still, the most secure—don’t like—phone that you can get, I think, today. You can’t just plug it over and say, yo, give me a jailbreak. We’re not there yet. I think we’re—yeah, would shock me if next year, by the end—this time next year, that happens.

Thomas: Okay, so autonomous jailbreak of an iPhone, you don’t think it’s within the—it’s not within a 12-month horizon.

Bruce: Yeah.

Thomas: Do you think the current cadence of—yeah, and it’s a prediction, so it will be wrong, right? But do you think the current cadence that we’re at, where we go from PHP to shell to Java4Shell to Ruby to shell and the span of two weeks, is this going to settle out? Are we just getting the low-hanging fruit right now? Or do you think there’s another layer of fruit underneath that that we’re going to get next?

Bruce: Think it’ll be more.

Thai: I don’t think that we’re going to have more.

Bruce: This will be more.

Thai: It’s not because we have more, but we believe what we did, the Java4Shell thing, it’s just tip of the iceberg, right? You look at Java and you can see most of the cryptography stuff is actually written in assembly because they want to speed. And my favorite target would be memory corruption in crypto code, then you override some bits of the private key or something like that, and then that allows you to do fund crypto. And I think people would come up with attacks like that because the native code, it’s still there.

That’s layer. We’re not getting rid of it right now, right? It’s still there. And with AI now people can just go explore, and basically just tokens now. If you have tokens, then you can go and find vulnerabilities everywhere. And then exploitation is difficult a little bit, but heap grooming—you don’t have to do heap grooming anymore. You just do heap engineering. Just tell the AI, “This is the heap, the end study of the heap that I want, and this is how I think you should do it.”

And then the AI would, like, “Okay, yes sir, this is how I’m going to do it for you.” So let’s give you a platform to play with the heap, right, to program the weird machine right there. And I think people going to find more and more vulnerabilities like this. Back in the day at Google, they have something called black swan, for vulnerabilities like Heartbleed. I think they’re going to discover that it’s not black swan, it’s white swan, after all.

Just have so many swans. And how we going to deal with that, right? I think it’s super important and super interesting question.

Deirdre: Yeah.

Thai: I think especially for vulnerability researcher, right? How can you make your work useful? And personally we think fighting and patching vulnerabilities is fun. We love to do that, but it’s not really sustainable, right? If you really have a very large network, then you cannot really just keep patching and patching past week alone.

Bruce: Yeah.

Thai: How could you schedule something like that, right? And your people would be tired and then they would be angry and you know because yeah. So I think you should think about we should think about how to maybe rewrite everything, you know. Just get rid of this thing, this technical debt that we have, or reduce, you know, remove things that we don’t need. Why do we need that basically for assembly? You know, you don’t need it, man. Like we should remove it.

Thomas: There’s some high frequency trading firm that runs—it’s all on Java even though it’s HFT.

Thai: Exactly. Okay. Yeah, let them have it. I don’t need it. I don’t need it in my Java.

Thomas: Sure.

Thai: I can have a Java Thai, and then it’s just enough for me. And it doesn’t need anything else. In the past, that would be impossible. That would be crazy, right? How could we maintain that thing? But now we have AI, so maybe this is something we can do, and I think this is absolutely—

Bruce: A JVM for everybody, basically.

Thomas: Like—

Bruce: J—

Thai: Yes.

Thomas: I think the same thing about live patching. Right now, a big problem you have is you’re finding vulnerabilities that require fleet reboots, and those are really hard to do.

Deirdre: Yeah.

Thomas: If you could just get to a place—it’s just systems engineering. It’s not even new science. We know how to make things live-patchable.

Thai: Yeah.

Thomas: Somebody just needs to burn the tokens to come up with the system to do really very live-patchable Linux so you can keep up with new stuff without having to schedule reboots and stuff.

Thai: Or you can just remove Linux, right? Just reduce Linux tribute now. Linus and Linux for Bruce would be different.

wrap-up

Thai: It was just, maybe it doesn’t even have— doesn’t need to have TCP, just UDP or something like that. Just remove everything else. Just keep that thing. And you don’t have to worry about— we are— desync vulnerabilities in your TCP stack. And—

Thomas: What I’m hearing from Thai is that next week they’re going to announce a TCP vulnerability.

Bruce: No, ma’am, we—

David: On that note, I want to say right before we started recording, I got a news alert from the New York Times that Sean Cairncross, the top cybersecurity official at the White House, is stepping down from his post. He’s the national cyber director. And after the last two weeks’ events, he’s out.

Deirdre: Yeah.

David: So you guys won. The limits of American state power once again exposed.

Bruce: He’s not joining us.

David: But in all seriousness, that is definitely downstream of the various outages and so on in the last week that probably not hacks, but we’re definitely downstream of patching.

Deirdre: Definitely. Lots of patches.

Thomas: I am very jealous of all of you. This sounds like literally the funnest thing that anybody’s ever done in the history of humanity. So very jealous that you guys get to do this. It’s amazing work.

Deirdre: And some of the best vuln artwork out there, so.

Thai: Thank you. Yeah. Zalewski would be very happy to hear that.

Thomas: What do you know?

Deirdre: Ha ha.

Thai: It’s a bunker in Montana right now.

Bruce: Yeah, it’s really funny. I tell Thai, I think our company is the only one where you have a distinguished engineer and his job is to come up with movie posters for the phones. This is how you ask, like, why Calif and not Anthropic, OpenAI. It’s like, well, if you’re this thing—yeah, there you go.

Thomas: That’s a good answer.

Bruce: No other company.

Deirdre: Because you can do the Nightmare Before Christmas poster for finding vulns in C-to-Rust bindings.

Bruce: Exactly.

Deirdre: Love it. Ha ha.

Thai: Man, Zalewski, he’s a genius, right? Having someone like that in the team, whenever we have some problem, just come ask him and then he would give us very good advice. The man, he thinks very clearly. And yeah, that’s how he helped us, basically.

Deirdre: It sounds like you have a lot of geniuses.

David: And everyone should listen to our episode with him if they haven’t yet.

Thomas: He’s also handy.

Deirdre: That’s right.

Thomas: I was going to say he’s also handy to have around when your vulnerabilities end civilization, so he’s a good pickup.

David: And on that note, thank you very much for coming on once again.

Deirdre: Absolutely.

David: We appreciate it, and we obviously are very—

Deirdre: I think we could have talked for a while, but I’m turning into a pumpkin.

David: Very impressed by all your work.

Deirdre: Yes. Thai, Bruce, thank you so much. Security Cryptography Whatever is a side project from Deirdre Connolly, Thomas Ptacek, and David Adrian. You can find the podcast online. That’s SCW Pod and the Hosts Online at durumcrustulum, TQBF, and David Adrian. You can buy merchandise at merch.securitycryptographywhatever.com. If you like the pod, give us a five-star review wherever you rate your favorite podcast. Thank you for listening.

David: My name is Joe Weisenthal, and this has been the Odd Lots Podcast.