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:
- 00:00 intro
- 00:43 calif
- 05:34 thaiâs path into cryptography
- 08:10 java4shell in the new york times
- 09:47 fermat and the number 26
- 14:46 base64 padding and avx-512 bug
- 21:25 base64 asm in java
- 23:35 ruby2shell german sharp s overflow
- 25:07 exploiting java4shell
- 27:18 keycloak rce chain
- 29:59 remote heap grooming with codex
- 35:59 tavis ormandy is chief ethics officer
- 40:13 no masters, publish everything
- 42:51 clients and pen testing
- 44:55 ai-driven reverse engineering
- 49:19 is reversing dead
- 57:13 ai building vr labs and harnesses
- 58:47 ranking runtimes and crubit bugs
- 1:02:25 a bug class for go?
- 1:03:58 patch diffing to iphone chains
- 1:06:04 human times ai beats tokens alone
- 1:13:01 future of vr and rewriting everything
- 1:19:20 wrap-up
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.
