Whether quantum computers are around the corner or not, the message is clear: the time for post-quantum cryptography is coming fast. Carl and Richard talk to Michael Howard about Microsoft's efforts to make post-quantum cryptography available to everyone by 2029. Howard discusses the quantum computing and cryptography issue, specifically the ability of quantum computers to run Shor's algorithm quickly enough to break RSA encryption. While it isn't possible just yet, the harvest-and-decrypt-later concerns are real. And the solution is pretty straightforward- move to TLS 1.3, and be prepared for a wave of changing encryption algorithms as they roll out and are found wanting. A crazy time is coming soon!
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Speaker 1How'd you like to listen to. NET Rocks with no ads? Easy. Become a patron. For just $ 5 a month, you get access to a private RSS feed where all the shows have no ads. $ 20 a month will get you that and a special. NET Rocks patron mug. Sign up now at patreon.dotnetrocks.com. NET Rocks Hey, and welcome back to. NET Rocks.
Speaker 1I'm Carl Franklin. And I'm Richard Campbell. And Michael Howard's here with us. We'll have him jump in if he wants to in the beginning. And we'll introduce him a little bit later after the first bits. You know what those are. Here we go. Here we go. 2020.
Speaker 2It's episode 20 when we're almost done, right? Like this ends in 20 after 2026. So we got like six more of these.
Speaker 1And it's becoming less and less interesting because most people have lived through the last six years.
Speaker 2It's so current. Yeah. It's kind of now. Especially 2020, because of course, what can you talk about except COVID?
Speaker 1Oh my God, COVID. All right, I'm done, Richard. What about space? Yeah, thanks for playing, guys.
Speaker 2Well, the other thing I would talk about is this is when the UK officially leaves.
Speaker 1The EU. Oh, there's more news, but COVID is the big one. George Floyd. It is the big one, yeah. George Floyd killed. Big, big reaction to that that sparked off a lot of stuff. Joe Biden beat Donald Trump. Yes, there, I said it because that's the truth. Worldwide economic collapse caused by COVID. Lockdowns. Yeah, it's just stall. It was just horrible. Donald Trump was impeached for the first time. Oh, in the first year. I was at the end. A
Speaker 1lot of wildfires in Australia and Western US. The terrible ones.
Speaker 2Know about and now and today it's really relevant in september the second nagorno-karabakh war so this is between azerbaijan and armenia this is an enclave that normally is controlled by armenia but the azerbaijanis wanted it and they attack and so the azerbaijanis are the ones with the oil money and they're muslim the uh the armenians are predominantly christian uh the azerbaijanis attack and to be clear this is a very complicated conflict like it's gone on literally for centuries But it was a drone war. It was
Speaker 2arguably the first drone war.
Speaker 1Wow.
Speaker 2The Azerbaijanis bought Turkish Bayraktar drones. They had bought some of the surveillance equipment from the Israelis. And so they had continuous surveillance. They were using drones for attack. They destroyed missile sites and so forth. The Iranians were fighting the old style with Soviet equipment. and just kind of got rolled over. Like you'd think the Russians would have taken a hint watching their stuff be torn up by drones in 2020. Instead, they bought a lot of drones. Well,
Speaker 2they did eventually, but first they got hit pretty hard. Anyway, it was only six weeks. And that doesn't change the fact that a lot of people died. It did result in the fall of the, of the region and the change in the, in the environment over there. But it's just a precursor conflict to, to, you know, we saw an example, just of course it was COVID and, There was all the things going on at that time in that year that nobody was paying attention to.
Speaker 3Yeah.
Speaker 1A couple other notable deaths in 2020. Ruth Bader Ginsburg. What a blunder.
Speaker 3Yeah.
Speaker 1Kobe Bryant. Yeah, the helicopter accident. And good trouble himself, John Lewis.
Speaker 3Right.
Speaker 1Died civil rights icon. Yeah. Yeah, it was just a bad- Tough year. Bad years. Tough year.
Speaker 2Yeah. Do you want to know what happened in space? There wasn't a ton, but there's some important ones. In February, Solar Orbiter launches. You don't really know much about this one. This was a joint ESA-NASA mission in that order. It's very much a European mission with NASA instrumentations and They provided the Atlas V as well, but it was built by Airbus. And its goal was to get a view of the poles of the sun. Normally, you're launching your spacecraft because the Earth's in the plane of the ecliptic. Your spacecraft are going to be as well. Trying to get to high inclination is very, very difficult. Not that they got all that high. They'll fly down into a
Speaker 2looping orbit inside the orbit of Mercury and then use Venus to do the slingshots and repeatedly tip the spacecraft. So it is about 24 degrees off the planet ecliptic. It takes a ton of energy to do that. They borrowed lots of energy from Venus, but it's a one-ton spacecraft, so it.
Speaker 1Can do that.
Speaker 2But it'll get us our first visual views of the poles of the sun.
Speaker 1Cool mission. Yeah, that is cool.
Speaker 2In May. the first crew dragon demo mission. So this was Bob, uh, Benneken and Doug Hurley go up to the space station and demonstrate that, uh, the commercial spacecraft can actually go to the space station properly. And that'll be followed up in November with a regular crew flight of four astronauts to crew the space station.
Speaker 1So there you go.
Speaker 2After what this would be nine years since the Atlantis had landed. And the only support for the station was, uh, Via Soyuz, now the Americans had a vehicle again, the former crew driver.
Speaker 1I got a question, which Michael might know the answer to, but you said ESA and NASA did this thing together in 2020, but Brexit was in 2020. Was Was Britain part of ESA in 2020? Did they participate?
Speaker 3Yeah, I don't think so. I could be wrong, but I don't think so.
Speaker 2It's mostly Germany, France.
Speaker 4Yeah.
Speaker 1Okay. It's Airbus, it's Defense of the Space. All right.
Speaker 2July, the Perseverance rover. So, this was the test article for the original Curiosity rover with a bunch of upgraded things, better wheels, better suspension.
Speaker 3Yeah.
Speaker 2New instruments, the Ingenuity helicopter, all of that stuff gets launched in July. July is the perfect time to launch to Mars, July 2020. There's a synchronicity to the orbits, right? They're in a two, three period. And so every roughly two years, you get a chance to do a bunch of flights. And so July, there's actually three. There's the Perseverance rover, which is huge. There's also China's very first mission to Mars, Tianwen-1. And then the UAE. the United Aramids launches their Hope climate orbiter to Mars. So three
Speaker 2launches in the same month. Wow.
Speaker 3Did they all make it?
Speaker 2In October.
Speaker 3The U.S. made it.
Speaker 2They all make it.
Speaker 1Yeah, actually. Very cool.
Speaker 2And I mean, I'll talk more about the Tianwen-1 when it lands next year. So in episode 2021. Because that was China's first attempt to go to Mars and it fully worked. Nobody's pulled that off before. Everybody loses a few trying to get to Mars.
Speaker 1Just name it. Everybody does. But China didn't.
Speaker 2But, you know, the advantage of being, I don't know, fourth or fifth mover or something like that. In October, OSIRIS-REx, one of the asteroid missions, touches on asteroid Bennu. and collects a sample there. In fact, it does a little too well because when it touches, Bennu is very much a rubble pile and all that gravel goes everywhere and they actually have trouble closing up the sample container because there's too much stuff. They have to come up with such technical maneuvers as shaking a little off to try and get the thing closed up so they can put
Speaker 2it in the capsule to return. Another asteroid mission at the end of the year in December, Hayabusa 2, will actually successfully return It's sample payload from the asteroid Regu, and that is a JAXA mission. A little recap on what SpaceX did in 2020. There was actually 25 launches from SpaceX, which at the time was an amazing number. Just remembering that SpaceX will do 150 this year. So obviously, there's the two Crew Dragons, the test run in March, and then the full payload in November. They'll also fly
Speaker 214 Starlink missions, 833 satellites for a network of almost 900 by the end of the year.
Speaker 4Wow.
Speaker 3Have you ever seen the Starlink satellites leaving the spaceship? Yeah. It's like pizza boxes going out.
Speaker 2Yeah, yeah. Well, now they've gotten bigger because of the V2 minis. And so, they only fly like 24 or 28 of them depending on the inclination. But at this time, they're flying 60 a run.
Speaker 1That's crazy. Wow.
Speaker 2Just these huge numbers of satellites. And that's where they also, this is the year where they have the reflectivity problems. And so you can see them for an extended period of time until they learn how to orient them and paint them correctly so they're not so visible and don't bother people so much.
Speaker 1I remember there was a bunch of astronomers that were complaining they were polluting the night sky with their telescopes.
Speaker 2Yeah. Well, and that's still an issue, although let's face it, digital processing can fix that.
Speaker 1Right.
Speaker 2But making bright lights make it worse. So making sure it doesn't reflect sunlight helps.
Speaker 1I've seen them though. I've seen the trail go across and it's pretty fascinating and a little bit I don't know. You know, SpaceX does some things that if you weren't paying attention, you'd think we're being invaded by aliens.
Speaker 2Well, or, you know, or Dr. No is in full swing. Like the line between supervillain and tech billionaire is getting very narrow.
Speaker 1Just people don't know. Like, you know, the first time that I saw the booster rocket spinning, you know, when it– I thought it was like a spaceship. And so did a million other people until I found out, oh, that's just SpaceX. That's what they do. And what are those lights going? Hey, is that Santa Claus? No, that's just SpaceX.
Speaker 3Yeah. I use Stellarium and it'll show you all the SpaceX.
Speaker 1Sure. Something's whizzing around out there. I know. Must be my Facebook friends. They're at average intelligence or ability to look things up.
Speaker 210,000 plus of them by the end of this year, just so you know. There'll be a bunch of other missions as well, including a couple of GPS satellites. They'll also start doing their Starship flights, the hop tests, and the first, what they called belly flop test, where they fire it up to a few kilometers up and then let it fall on its belly so they could actually land it. That was SN8 by the end of 2020. It does not go well, but they'll solve that and prove that this whole idea is even possible. All right, should we move on to computing?
Speaker 3Yeah.
Speaker 2We'll start in January with the OpenAI paper called the Neural Scaling Laws. Lead author is Jared Kaplan. There's a whole bunch of others, including Daryl Modi, who this time is at OpenAI, will eventually be the CEO of Anthrop. And this was the paper that sort of kicked off this idea of, you know, different from all the other machine learning models we did where we worry about overfitting and training sets and so forth. that for large language models, we should just train on as much data as we can possibly get. There's lots of debate as to whether
Speaker 2this is that good an idea. We've definitely come into other techniques from there. But this paper is kind of the stimulus for what will be the insanity coming in the next couple of years. January is also when Microsoft switches over to Chromium as the rendering engine in the new Edge browser. The pandemic's in full swing in March is when lockdowns really kick off and everybody goes home and everybody's got Zoom. Teams explodes for better or worse. But a little thing I paid attention to was Terry Breton,
Speaker 2who is the EU Internal Market Commissioner. reached out to Netflix and YouTube and Amazon Prime and asked him to turn off all the 4K features. He was concerned about the amount of available bandwidth across Europe as everybody went home and used the internet differently. Was it actually a crisis? Nobody knows for sure, or at least he's not talking about it. They started turning up the bandwidth again in May, and Netflix's Posts about this are interesting because they talk
Speaker 2about network changes and increasing capacity and things like that. So maybe there really was a crisis because of the change in the Internet consumption due to COVID. But, you know, a lot of details aren't revealed necessarily. But that to me was very interesting.
Speaker 1Yeah.
Speaker 2April is when Uncle Satchit says, two years worth of digital transformation in two months. Because everybody had to all work. This is when I started doing True Run As a week, just talking about topics around what was necessary for sysadmins with everybody working from home.
Speaker 1My brother is a programmer at a local company. He's been there for years and years. And they basically do online vehicle registrations. And they were the first in the area to do it. And their customers are states, not individual sales places, dealerships. But anyway, they were renting an office building in an office park out here, umpteen billion square feet. And during COVID, people went to work at home.
Speaker 1And I just remember Jay coming to rehearsal once and said, Well, I've resigned myself to the idea that I'm never going back to the office. And they basically moved out of the office. Yeah, lots did. They stopped renting it. And I think, in general, office space took a big dive in 2020.
Speaker 2You think about all the property that Microsoft gave up in Bellevue.
Speaker 1Yeah.
Speaker 2They kept their buildings in Redmond, but all that rented space.
Speaker 1In Bellevue went away.
Speaker 3Right.
Speaker 1And all of it went to Zoom.
Speaker 3Yeah.
Speaker 1Well, to Teams.
Speaker 2Teams. The first virtual build in May is also when they do the full release of Blazor WebAssembly.
Speaker 1Yeah.
Speaker 2Obviously, a bunch of other cool announcements around building that time span. Of course, Blazor, not the first WA programming language, Golang added WA support back in 2018. In June, and again, no people remember much about this because it was mid-pandemic. Microsoft is a big splash about OpenAI GPT-3 being built on what they called the Azure supercomputer, which was a bunch of different Azure data centers harnessed together with 10,000 GPUs, 285,000 CPUs. cpu cores to build a get this 175 billion parameter
Speaker 2model wow i mean big big big for the time not so much anymore but at the time.
Speaker 1I remember uh brian mckay who's one of my happy next guys getting on slack and telling us how awesome this gpt thing was but it was difficult to set up at the time but then yeah you know i tried it and of course like everybody else was kind of blown away.
Speaker 2Yeah Later that year in September is when Microsoft actually licenses GPT-3 from OpenAI, which I presume is how GitHub gets access to it. They'll make GitHub Copilot the following. A couple more stories. In November, Apple announces the M1 processor.
Speaker 1Yes.
Speaker 2And I mention this because this, I would argue, is Tim Cook's most memorable move. He was always a hardware guy. This is an astonishing piece of hardware. There's a system on a chip where the GPU and CPU, NPU, the IO and security buses and so forth are all literally in the same die. The memory is in the same package. So this is made by TSMC, five nanometer process, about 16 billion transistors total. That includes eight CPU cores, eight GPU cores, a 16 core neural engine, and up to
Speaker 216 gigabytes of RAM right.
Speaker 1On the package.
Speaker 2So you get both lower power consumption and higher performance. And little would we realize.
Speaker 1I have a MacBook Pro with an M1. Yeah. First gen. And it's good.
Speaker 3Is that 16? Is that megabytes or gigabytes?
Speaker 1Gigs.
Speaker 3Yeah. That's RAM, RAM, not cache.
Speaker 2That's RAM, RAM.
Speaker 3Okay. Yeah.
Speaker 2They're not putting cache on. The cache is there too.
Speaker 1Okay.
Speaker 2And also that RAM is shared with the GPU.
Speaker 1Right.
Speaker 2So what we're doing right now with LLMs and the new agent models and so forth, The M1 was built for it, not knowing it was built for it. They were just trying to make the most efficient computer they could consume the least power. And this is Apple's move back to ARM, having come from the Motorola chipset, moved to Intel for a few years. Now they're making their own thing based on ARM.
Speaker 1Two more.
Speaker 2December, both in December. The SolarWinds supply chain attack. So this is Russian SVR. The pure brilliance of this is unbelievable. So in September of 2019, hackers successfully break into the SolarWinds development environment and they insert code into the development chain. The way they do it is incredibly insidious. It's part of their build system that they replace code in the build without actually changing the visible source code. So developers don't think their code has changed at all, but what they're actually compiling is different code with this thing called
Speaker 2the sunburst backdoor. They, they, they, It takes them a few months of doing testing to get this to work. By March, they have actually figured it out. And the Orion monitoring software, SolarWinds builds this infrastructure monitoring software, is now distributed to 18,000 customers with the Sunburst backdoor in it. The Russians are successful enough that in June, they actually removed the whole build injection system. Like, they're done. And are happily operating it. Now, admittedly, they don't actually use that backdoor much. Maybe 100 customers are totally affected. But
Speaker 2it's in December when one of those customers, a security company called FireEye, realizes they've been exploited and traces it back to the Orion code base and basically pops the whole thing open. It's an incredibly sophisticated supply chain attack and scares just not actually everybody. It's not the first one, but in a lot of ways, it's the one that made the most news.
Speaker 1It could be made into a feature film, actually, if it was handled correctly.
Speaker 2It's astonishing.
Speaker 1Yeah.
Speaker 2And if the Russians hadn't decided to go after FireEye, who knows when it would have been detected. Just he went after the guys who were in the security space and good enough at attacking breach properly.
Speaker 3Yeah, I remember when I was invited to a meeting to be briefed on the attack when we sort of knew what was going on. And yeah, I'll be frank, I was kind of gobsmacked actually by- Gobsmacked, yeah. By the sophistication.
Speaker 2It's so clever. Holy man. I don't expect bad guys to be this smart, right? If they were smart, they'd be good guys. Like the idea that bad guys would come up with something this clever. But again, state actors, like they're working for more than just a paycheck here.
Speaker 3Yeah, but remember though, you know, As Sherrod Dugripo has told me many, many times, this is their day job, right? They come to work, they clock in, they do the work, they have reviews every year, they go home to their families, and they start again tomorrow.
Speaker 2They get promotions by figuring this stuff out.
Speaker 3Exactly. It's just their job.
Speaker 1Yeah. As Dwayne LaFleur would say, oh, this is awesome, guys. This is awesome. It's a stunner.
Speaker 2I'll finish out the year of compute in 2020 with China's Zhuheng Photonic Quantum Computer, which I think is particularly relevant for today's conversation. This was a dedicated machine using photonic quantum entanglement, which is very, very clever, unique, very different from Sycamore, the Google's device from the previous year, which was the … The hanging chandelier in liquid helium, this doesn't need any of this, but it was built specifically for Gaussian boson sampling.
Speaker 1Nobody knows what you're talking about, Richard. I'm okay with that. I might contest.
Speaker 3I mean, I know enough to be dangerous. Talk to me about the software side of it.
Speaker 2Yeah, and that's the whole thing is this is nowhere near a general purpose computer or even a supercomputer. This is a machine to demonstrate that quantum entanglement can tackle one kind of problem, the Gaussian boson sample problem. Now, that's an important problem, but it was sort of a proof point I think very much this is a, hey, we get to play too. And I think everybody reacted to it that way. Because this 200-second run for something that in theory would have taken this supercomputer 2 billion years, not that anybody's going to test that, it just put China instantly on the map and really made it very clear.
Speaker 2There's more than one way to quantum. And this is a wildly different way. Not that we've heard much from them since. But in 2020, that was a really big deal.
Speaker 3But does it run Doom?
Speaker 2It really doesn't.
Speaker 1No, not a bit. No, it won't.
Speaker 2I mean, supercomputers are limited in their own way, too, as well. But this was literally built for one thing. This is like Turing's device for cracking Enigma. Good for one thing. The idea of general-purpose computing is a much different idea than what we're doing in this kind of class of work.
Speaker 1Anyway.
Speaker 3Yeah, 100%. I think people need to understand that. Yeah, still people don't grapple that. There won't be an office for quantum. It's not going to exist.
Speaker 1Oh, man.
Speaker 3I'm sorry.
Speaker 1You sold me that subscription. Let's get them on the phone. Yeah.
Speaker 2And as much as we can tell at this time, these will always be supercomputers for particular problem spaces. Most of them very deterministic problem spaces, too. But let's wrap up the history lesson and get on to our larger conversation about quantum.
Speaker 1Well, but first, we have to do.
Speaker 2But first.
Speaker 1Better know a framework. Roll the music. Awesome.
Speaker 3All right, man.
Speaker 4What do you got?
Speaker 1All right. So, as people who listen to me on my various podcasts and stuff probably know, I bought this big GPU machine. a year or so ago, just because I anticipated being able to run local models.
Speaker 2And you got it ahead of the hardware crisis too. So how smart are you?
Speaker 3Yeah.
Speaker 1I got it at walmart.com for $ 6, 000. It uses an NVIDIA RTX 1590 with 32 gigs of VRAM.
Speaker 2Today that card's 15 grand if you can find one.
Speaker 1I have, yeah, now it is. I have 96 gigs of system RAM and it's You know, blinky lights and quiet as anything, right? Which is amazing. So on Coded with AI, Jeff Fritz and I did a series on taking a whole bunch of models that would run on Ollama and running them and then putting it through a test. Basically, a lot of them failed. More so because of context, I think, than this is what I'm learning now, the
Speaker 1context size, if it's too small. We'll just barf. The LLM will just and lose it or get into an infinite loop. And basically what I came down to is running llama.cpp. And llama.cpp is like Ollama, but it's not. It's a different thing. It's open source. But I can run the fairly new QEN 3.8.27b model and llama cpp
Speaker 1will use vram and system ram at the same time and it will balance them out and figure out automatically how much of which to use and let me tell you something this is i this is what i've been waiting for it works so well that i don't feel the need to go back for what i do you know debugging coding all of that stuff i don't need to go back to any frontier models anymore.
Speaker 3Right.
Speaker 1I haven't found, I've been using it for a couple of weeks.
Speaker 2You're just working local now.
Speaker 1I'm just working local. Yeah. And the only thing I'm that's costing me is electricity. But I got solar panels. There you go. Some pretty good, especially in the summer.
Speaker 2Feeling good. And that machine you bought, like to build that machine today, it's a big bucks.
Speaker 3Yeah.
Speaker 1So you did the right thing. Well, I thought it was big bucks back then, but now... Yeah, it was. Yeah.
Speaker 2It was a lot of money for a PC back then. It doesn't seem that way at this moment.
Speaker 3Well, anyway... And what sort of performance are you getting out of it? Like tokens per second?
Speaker 1That's great. It's as good as... Any frontier model that I've been using, I've been using GitHub Copilot CLI, mostly with Claude Sonnet. It's as good as that. I don't find myself waiting around. And it can do anything that I throw at it. It handles local stuff on the computer, stuff in Azure, in GitHub. It's just really good. This model compared to other models is good, but you run
Speaker 1it in Lama CPP. And it's like beautiful on this particular configuration. I've found the sweet spot. So I wrote a document and that is the link that we'll put on the page. It's a GitHub. Read me basically running Quinn 3.8, 27 B with Lama CPP and GitHub co-pilot CLI on windows. And it tells you exactly how to install everything, all the stuff that you got to go, put everything where it needs to go. And like, Download
Speaker 1Quinn and run it and how you access it remotely. It's great. So I have my dev machine. I have my GPU machine. And it's a match made in heaven.
Speaker 2There's not a lot of people running those kinds of headless systems with Windows.
Speaker 1They're mostly Linux.
Speaker 3Right.
Speaker 1Cool. It's good. And also, this model, Quinn 3.8, has vision support. So I can paste screenshots in, you know, and it just works. It's wonderful. Cool.
Speaker 4Yep.
Speaker 1That's what I got. Richard, who's talking to us?
Speaker 2Grabbed a comment off of show 1963, which you did last year with one Michael Howard.
Speaker 3Yay.
Speaker 2Talking about 30 years of application security. This is back when you were still the red teamer. I know your life is different now. And this comment comes from also a past guest, Arnold Axelrod, who said, great show as always. One comment regarding input validation, because of course we talked about input validations. Toward the end of the show, Michael mentions that all input should be considered evil and must be validated in order to be considered secure. Yeah, hard to argue with that. I'm not a security expert, but I have a different take on that. I don't think that the problem lies in the lack of input validation, but I think that input validation should be a business requirement.
Speaker 2The example being zip codes. I don't necessarily know what a formal zip code is or will ever be consistent around the world. Answer is absolutely no. When you consider the idea that Ireland only got postal codes in 2015, like good luck. In my opinion, the problem lies with the use of parsers and interpreters and not using escape sequences or other structures to separate arbitrary input from structure ones, like separating the inputs from the SQL statement itself appropriately. Both SQL, JavaScript, and command through the process start in C-sharp are interpreters, and if you construct an input to
Speaker 2them that contains an arbitrary user input without sanitizing it with the correct escape sequences is where unpredictability comes to play, which causes the risk. A URI also having structured format that is parsed by a browser and constructing a URI, let's say, with an arbitrary query string, that may be harmful, but you're probably using URI encoding on the inputs, and that should leave you safe. This doesn't require you to limit the input in any way, just to format it correctly. There is where the focus should be, as far as I'm concerned, not just to invalidate all inputs. I'd love
Speaker 2to hear your opinions on it.
Speaker 3You want my opinion?
Speaker 1Go for it. Yeah, hit you.
Speaker 3You know, it all got turned on its head, right? With LLMs and jailbreaking. What is the input? What is it? What is valid? Can you even escape it? Even escape versions can still get through any kind of checks. So, yeah, I just wrote about that recently. Yeah.
Speaker 2Our new injection attack starts with ignore all previous instructions.
Speaker 3Exactly. So, Mike Resinovich actually has a t-shirt with that on the back. He showed it to me at Build last time and I almost fell over laughing.
Speaker 1It's the best.
Speaker 3He was so proud of it. He said, hey, Michael, check this out. It's completely turned on its head. And that's why we've got all these other defenses that come into play and these guardrails and so on in LLMs. It's because we need them. We don't know what the input is.
Speaker 1Yeah. LLMs need to get a sense of humor, right? A sense of sarcasm, a sense of irony. And they got to get sensitive to that just like we humans do. I think.
Speaker 3I don't know.
Speaker 2Yeah, we really want to pass every input through an LLM to say, is this a potential attack?
Speaker 1Yeah, good luck with that. No, but of course not. But I mean, if you're dealing with an LLM and you're at the keyboard and talking to it, right? And you give it some ridiculous prompt, you know, that's clearly satirical or something. It should laugh back at you, you know?
Speaker 3Well, that happened to me once.
Speaker 1Yeah, that's a good one. Yeah.
Speaker 3Dude, that happened to me once. All seriousness.
Speaker 2Really?
Speaker 1Yeah.
Speaker 3I was working on the podcast website or something and asked it to do a quick security review of the code. And it found something. I was just running Visual Studio, I think. And it found something and it said, here is a, I don't know, it was an outdated HTTP header. It had been deprecated. I didn't know. A supposedly security header had been deprecated. And it said, by the way, this HTTP underscore blah, blah, blah has been deprecated for security reasons. And it's really ironic that you as the
Speaker 3author of Running Secure Code didn't find this.
Speaker 1Oh, that's great.
Speaker 3Yeah.
Speaker 1That's what I'm talking about.
Speaker 3I don't know what the backend model was because, of course, Visual Studio, you can jump around, but I don't know. But yeah, it was quite happy to yell at me and laugh at me.
Speaker 1That's pretty good.
Speaker 2When the tool says the word, it is trying to detect irony. That's just ironic, actually.
Speaker 3Right.
Speaker 1Yeah.
Speaker 2It's very recursive. Arnon, thank you so much for your comment. And a copy of Music to Code By is on its way to you. And if you'd like a copy of Music to Code By, write a comment on the website at. netrocks. com or on the Facebooks we publish every show there. And if you comment there and I read it on the show, we'll send you a copy of Music to Code By.
Speaker 1Or if you'd just rather buy Music to Code By, go to musictocodeby.net. You can get the tracks in MP3, WAV, and FLAC formats. Well, before we introduce Michael... Let's take a little break for these very important messages. And we're back.. NET Rocks. I'm Carl Franklin. That's Richard Campbell. Hey. And that's Michael Howard. Let me introduce him formally. Your bio has changed a little bit. Michael Howard's been at Microsoft since 1992.
Speaker 2Wow.
Speaker 1Always in some form of security, IIS, SDL, the founder of SDL?
Speaker 3Well, he's one of the guys that worked on the very, very earliest versions. It was like two or three of us, yeah, back in the day.
Speaker 1Awesome.
Speaker 2And that was the security lifecycle?
Speaker 3Security development lifecycle, yeah. Back in the earliest, like, 2004.
Speaker 1Also uh you worked in azure data on the red team last time we talked and now you're in post quantum crypto.
Speaker 3Woohoo yeah baby Man, I'm happy to be here, too. It's a lot of fun.
Speaker 1I mean, how can you have post-quantum if we haven't had quantum?
Speaker 3Because the real attacks start post-quantum. That's the reason why.
Speaker 1Yeah, you're right. I get it. You need to be ready.
Speaker 3For certain things. Certain things, maybe not. But we can discuss that later.
Speaker 1But yeah. Well, what does it mean, post-quantum crypto?
Speaker 3Well, you think of things in three ways. This is the way we think about it at Microsoft. Anyway, I'm sure most of the industry does. um, data, data in transit, data at rest, and then cryptographic trust. So data on the wire, you know, stuff flying across the internet is probably protected by TLS today, more than likely perhaps SSH, but certainly TLS data at rest is encrypted most of the time or should be. And those encryption keys are wrapped with other keys, uh, key wrapping keys. And then
Speaker 3you've got cryptographic trust, which is, you know, signatures, certificates, all that sort of good stuff. Um, The real threat is dead on the wire is being, you know, being pulloined as it flies across the wire.
Speaker 1Yeah.
Speaker 3And then when a quantum computer comes out in the future, that stuff can be broken. And the breaking aspect is essentially just breaking the RSA or the elliptic curve wrapping... that goes on and out pops the AES key that's used for the bulk encryption, and now you just decrypt everything. And in the case of data at rest, it's the key wrapping keys, right? They can be broken because they usually, for example, RSA, which can be broken with an algorithm called Shor's algorithm, S-H-O-R.
Speaker 1Yeah.
Speaker 3And it basically finds periodicity in the way those algorithms work. That's what it takes advantage of.
Speaker 1Are our logs at risk for being pilfered by cryptos?
Speaker 3Post-mortem crypto? I mean, if it contains sensitive data, which you shouldn't be logging sensitive data, right? No, no, no.
Speaker 1But even if it wasn't containing sensitive data, is that something because it can go through so much data so fast that it could.
Speaker 3I mean, if I had to prioritize stuff, I would focus on the actual data itself.
Speaker 1Yeah, okay. So data in transit and then real data in your databases.
Speaker 3Correct. Yeah. And then those, again, they can be snaffled. today and then once a quantum computer is made available and.
Speaker 1That's where a lot of did you say snaffled.
Speaker 3Are stolen snaffled purloined.
Speaker 1Snaffled that's a good british.
Speaker 3Word snaffled yeah um there's actually a real word i don't even know is it a real.
Speaker 1Word it doesn't matter i i don't know but i never heard it.
Speaker 3Before it is now there you go things you.
Speaker 1Learn on dot numrocks all right It's all good.
Speaker 3Yeah, so the risk is the asymmetric keys that are used to wrap the symmetric keys that do the- Because they're dependent on prime numbers. In the case of RSA.
Speaker 1Yeah.
Speaker 3But that's not the attack. The attack is the periodicity. There's a periodicity. If you actually look at the way Shor's works, not that I say, not that you should, it basically does a quantum fast Fourier analysis.
Speaker 1Yeah.
Speaker 3Shor's is actually hybrid. It's actually quantum and sort of, classic computing. The hard work is done by Shor's and then some of the less difficult work is done classically because it's just easier. And so the real issue is that those asymmetric keys, RSA, elliptic curve, Diffie-Hellman, they all exhibit some periodicity that can be detected by Shor's. And that gives you a whole bunch of possibilities that then classical computing can then just sort of sift through and find out which ones are the actual keys. Right.
Speaker 2So it narrows the scope of the testing needed.
Speaker 3Correct. Yeah. And to your point before, rather than, you know, squillions of ages of the universe, it could be hours or days. Yeah.
Speaker 1Right.
Speaker 3You know, it's, it's, it's a real thing. And, um, you know, developers have a big part to play in, in this. It's not just, you know, flip some switch and everything's golden. Um, There's a lot more to it that developers need to understand as well.
Speaker 1So everything I've barely hung on understanding about quantum is that we're all screwed, right? And because of the way that TLS works and SSL and all that stuff, it dramatically has to change, doesn't it? If we're going to be less susceptible to quantum interference but you're i think what you're saying is that there are ways that we
Speaker 1can do that now and that's what you know post-quantum crypto is all about is trying to use cryptographic methods now that will survive the quantum onslaught is that what you're basically up against yeah one.
Speaker 3Of the beauties of tls by the way i can't believe you said ssl like wash your mouth out.
Speaker 2You know, some of us were around in the 90s.
Speaker 1So was I. And so they don't use those words, TLS.
Speaker 3I know. Anyway, I'll just pretend you didn't say that. Yeah, so TLS, one of the beauties of TLS is that it's very agile, right? You can change the way it works, the ciphers that are used, the cryptographic primitives that are used.
Speaker 2And you're talking about TLS 1.0.
Speaker 3Correct. So TLS 1.2 should be using.
Speaker 1Yeah.
Speaker 3So actually that's a really important point. So TLS 1.2 and prior, so TLS 1.0 and 1.1 are deprecated anyway, so don't use them. TLS 1.2 does its cipher suite and its key establishments and authentication all as one string called the cipher suite. It looks like someone sneezed on the screen basically. It's a list of all the algorithms that are used for all of those things. TLS 1.3 is different. it broke apart things like the key establishment from the bulk encryption and the bulk tamper detection. They're completely broken apart.
Speaker 1Yeah.
Speaker 3So you can negotiate the two separately. That's the big difference in TLS 1.3. So the key establishment is a thing called a group. And the reason why it's called a group is because mathematicians got to hang on this. And they said, you know, all these things are mathematical groups. So we'll call them groups. Terrible name. But for the key establishment, that's where you set the algorithm or algorithms in some cases. And then after that, separately, is how you do bulk protection of the data on the wire.
Speaker 3So TLS 1.3 broke those two apart. So it is completely not compatible with TLS 1.2. And TLS 1.2 will never be post-quantum. I mean, it's just software. I mean, essentially, I suppose it could make it post-quantum.
Speaker 2Yeah, but why would you?
Speaker 3But the interoperability... well, the interoperability story would be horrendous. Like no one would do it.
Speaker 2But it also seems unnecessary too, right? Because I set the TLS 1.3 with a dropdown in Azure.
Speaker 3Right. But the thing is, here's the issue. And this is one thing that we're having to work on for products like Front Door, for example, is you will be able to control the group, not just the bulk cryptography that's used.
Speaker 1Okay.
Speaker 3And that's where, and the group is where the post-quantum part comes in. For the most part, symmetric stuff AES-256, SHA-384, and so on, which are the baselines, are fine. There's another algorithm there called Grover's, which is an attack against symmetric algorithms. And it essentially cuts the number of bits in the key in half. So if you have an AES-256 in a quantum world, that's the same as AES-128. Interesting.
Speaker 1Which is fine.
Speaker 3So you must use AES-256 and SHA-384 as the minimum as well. They're kind of okay.
Speaker 1They're fine.
Speaker 3The problem is the asymmetric stuff. Right. Yeah. Elliptic curve, RSA, Diffie-Hellman. That's where the problem is. Now, the nice thing in TLS 1.3 is that's defined in a group, and that's negotiated separately from the bulk cryptography. And that's where the hybrid algorithms come into play. And the reason why they're called hybrid is you use two together. You use elliptic curve and MLChem. So MLChem is the quantum resilient algorithm.
Speaker 3Elliptic curve is classic. you build up keys in both, you smush them together, pass it through a hash, and then you derive the session keys after that. So they're both used together.
Speaker 1So that would have to be implemented both at the browser level and at the server level, right?
Speaker 3Yeah, everywhere. I mean, you say browser, but client. I mean, I just mean clients in general.
Speaker 1Yeah, clients, sure.
Speaker 3And in fact, you bring up a very important point there, Carl, and that is that all modern browsers support hybrid TLS 1.3.
Speaker 1Yeah.
Speaker 3So the, I mean, even the humble Xbox has hybrid. I've tried all sorts of, you know, iOS, Android, Windows, Mac, Linux, and all the common browsers support.
Speaker 1So anything, anything that uses it like curl or any, any little command line tool, all, all those things have to support it.
Speaker 3Correct. Correct. So SSH, both client server supports it as a version 10, I think maybe 9.9 or 10. supports um ml chem so the the important part there in the in ml chem is the letter l in that there's lattice and the two major algorithms that are post quantum resilient there's actually a small number but the two major ones ml chem and ml dsa the l is lattice and the is that lattice construct that is quantum resilient.
Speaker 1Right so when you say quantum resilient do you mean what you perceive as the first generation of quantum or all quantum going forward till the end of time?
Speaker 3Nah, I mean, NIST is still going through other algorithms. The industry has settled, and NIST has settled on MLDSA and MLChem. And there's been a lot of research for the last 20-something years in lattices, looking at it through a quantum lens, and they look good. but everyone's you know quite happy to say let's you know let's go look at other algorithms as well just in case and in fact for no other reason than the resulting cipher blob is big so i'll give you an example If
Speaker 3you have an elliptic curve, say an EC25519, which is a curve, the signature, a digital signature for that is 64 bytes in size. It's pretty small. If you take an MLDSA87 certificate and you sign data with the private key of that, it's about 4.5K. So you imagine if you've got a whole series of certificates all with their signatures... it adds up real quick.
Speaker 1Yeah.
Speaker 3And you can have problems with MTUs, with people passing stuff on query strings, amounts of space set aside on disk for signatures, you know? Yeah, so it's a real issue. So NIST is continuing to evaluate other algorithms with an eye to potentially smaller signatures. So now I get.
Speaker 1Why it's called Lattice because it kind of makes a web of data that's hard to penetrate. Is that good analysis?
Speaker 3No, it's terrible.
Speaker 1Terrible. It's terrible.
Speaker 3I can take it. Okay, here's how lattices... I claim stupidity. It's all good, mate. So, the way lattices work, and this is a terrible description, but it's an interesting way of thinking about it.
Speaker 1It'll be better than mine, I guarantee it.
Speaker 3I may not be. I'm not a fan of analogies, so here's an analogy for you.
Speaker 1Okay.
Speaker 3Imagine a chessboard, right? Eight by eight with a knight. We know the knight moves either one and two or two and one, right?
Speaker 1That's all it does.
Speaker 3Yeah. If I give you an end point and I give you a starting point, what route does the knight take to get there? That's pretty straightforward to do, you know, because it's just eight by eight. Now, imagine if that was a squillion by a squillion chessboard. Right. All right.
Speaker 1Got it.
Speaker 3Oh, no. You know, it gets harder. Now, imagine it's a thousand dimensions, right? Now imagine I don't tell you there's one by two, it's N by M.
Speaker 1Right, okay.
Speaker 3Now, just to make things even more difficult, it's not like an air quotes square chessboard. The squares are kind of funky shaped. They're not quite squares. And that's a thing called learning with errors. So that's hard. Here's a point somewhere in this N dimensional space. Here's your starting point. How do you get there? And so essentially the N by M is essentially like the private key. That's one way of looking at it. Terrible analogy, but it's about as close as you can get without introducing math.
Speaker 1Okay.
Speaker 3Yeah.
Speaker 1All right. Good. And so you don't think that quantum computers could ever get so good that they could just figure that stuff out quickly?
Speaker 3You mean when you throw in some AI as well? Yeah. Yeah. Go on.
Speaker 2But nobody ever comes up and thinks, hey, we've solved cryptography. You're always looking at new algorithms. You're always looking at new key lengths. We expect to routinely replace our algorithms.
Speaker 1It's an arms race.
Speaker 2Because the bad guys are fighting back.
Speaker 3Which is a beautiful segue into the next topic, which is crypto agility. If nothing else, from a developer perspective, one thing that post-quantum crypto will bring to the table is the need for crypto agility. what happens if you wrap some keys in MLChem? Chem stands for key encapsulation method. Let's say you wrap some keys in that and it ends up being broken five years, 10 years from now. How can you update your application to use a new
Speaker 3wrapping method without breaking your existing, like you can still read your old data, but you would write out using some MLChem + + or something. Right. And crypto agility is just, so important. It's really brought it to the forefront as a need, because we don't know long-term if these things will be successful or not. And again, to your point, Carl, cryptographers are very, very conservative when it comes to these sorts of things, and they want to have a big security buffer, knowing that some things will
Speaker 3start to potentially creak a little bit.
Speaker 2And of course, you're immediately going to the at-rest encryption problem. I'm always thinking TLS, and it's just we handshake an encrypted stream, we do our thing and then it disappears again. And so I don't have the, other than the, you know, harvest and decrypt later, I don't have to think about this. It's all transitory. We'll just use the newest algorithm. But if you've stored under an older algorithm, And now it's been breached. You have to decrypt, recrypt, or at least, you know, decrypt over time to get by that.
Speaker 1You may have to increase the data size of your fields that take those things because it's going to take more. Yeah.
Speaker 3So you've got to assume that there will be change. And unfortunately, a lot of people don't know how to build crypto agile solutions. It kind of drives me a bit bonkers, to be honest with you. I see, you know, in the press, you know, we need crypto agility. I've got to do crypto agility. Yeah. hey, crypto agility is really important. Are you guys doing crypto agility?
Speaker 2Because it comes in a squirt bottle and you just spray it on all your devs and you'll be good.
Speaker 3I know, but no one says how to do it. To me at Microsoft, there's two canonical examples of crypto agility. One is as a SQL DB or SQL server with always encrypted. And then the other one is the open office XML file format, which you use to encrypt documents in office. So the way it works in as a SQL DB, which to me is a beautiful and simple way of doing it. It's also very, very fast. If you ever look at the ciphertext in an always encrypted cell,
Speaker 3the first byte is always a one, and that's the version number. And that basically means AES-256 cipherblockchaining with a SHA-256 hash as an integrity check over the data. So in the future, if they decide to upgrade it to something else, then that could be version two. So the first bike would be a two and they could always read back and say, okay, that's version one. We need this particular set of cipher primitives. Let's read as decrypted with these primitives. When they write it back, they would write it back as a, whatever the latest number was,
Speaker 3which we version two, and it will be the, whatever the new, the new cipher suites is. So you can always read the old data and you would write back using the new version. And the way office does it is it's an XML file. There's an XML file header. And it contains all the cryptographic primitives, like AES, it's cipher blockchaining, here's the initialization vector, here's the password, the key derivation count, here's the key derivation algorithm, and lots of other metadata. So you can actually build the cipher
Speaker 3collection completely dynamically, which is really, really nice.
Speaker 1What network hardware will have to change in the, yes. I mean, we won't, we'll be able to go to Best Buy or whatever it is you have in the UK and buy an off the shelf, you know, router that is crypto happy. Oh, I mean, in theory, I think a lot of quantum happy rather.
Speaker 3I mean, unless they're doing some kind of inspection, if they're just like passing data on, there should be no need for it, right? They're not decrypting stuff, but if they are decrypting stuff, then yeah, they're going to have to have access to these algorithms. If you're doing, you know, TLS termination, then yeah, for sure.
Speaker 2The other that's not something you'll have in your home i did that stuff in racks of computers for companies but ah but.
Speaker 3There's a fly in the ointment there's a huge fly in the ointment though and that is your laptop and your computer with tpms and trusted boots and that sort of stuff right right now those keys are probably rsa and well they are rsa or elliptic curve.
Speaker 2They are and we're just going through the secure boot crisis thanks very much right.
Speaker 3So that will all get that will all get busted and um you know so the hardware industry out there We're being mean here, Michael.
Speaker 1Richard's squinting, but I think you've got to look at it like this. Hey, you've got to buy a new laptop. That's not a bad thing.
Speaker 2But it's also like we're fixing keys all the time. These are BIOS updates. This will come in firmware.
Speaker 1You think? There'll be new drivers.
Speaker 2And they might be slower than a hardware-dedicated version of it, but I just don't feel– a lot of the stuff you're describing here, Michael, to me sounds like configuration settings in Azure. you've already done the work in the browser. Like, as long as I haven't done anything stupid in code, I don't think I have to do anything as a web dev.
Speaker 3That's correct. 100% correct.
Speaker 2I just got to make sure that my admins have set stuff right.
Speaker 1Well, if you're using IIS, you're going to have to make sure you're in the latest version that supports it. But in Azure.
Speaker 3Well, http.sys... So I actually wrote a blog post on this because about six-ish weeks ago, we released a version of S Channel, which is the Windows TLS stack that supports TLS 1.3 hybrid. And I wrote a dumb ASP.NET application, you know, dumber than a bucket of rocks just to keep it really, really simple and did no configuration whatsoever in the code. And that's a really important point. Like, you know, thou shalt not do any TLS configuration in code,
Speaker 3like leave it to the OS or to some configuration somewhere else, definitely not in code. And yeah, I just turned on that. I wanted X35519 MLChem768 in priority zero. in the Cypher suite and group order. And I ran this application and I connected it, connected using a browser and I was living in the future.
Speaker 4Nice.
Speaker 1Michael, how long do we have before we need to configure things correctly?
Speaker 3How long do we have? I mean, I mean, it depends on risk. I was talking to a large retailer. You know who they are, but I can't say who they are.
Speaker 1Perfect.
Speaker 3And they're not concerned.
Speaker 1The one I bought my computer from?
Speaker 3They're not concerned about right now anyway with their devices that they use for shop floor inventory management, right? Because it's just shop floor inventory management. It's not sensitive data. So their Android devices that they're using will never support post-quantum. They're okay with that. Now, their corporate systems that run HR and payroll and all that sort of stuff, yes, they do care. So how long do we have? I mean, the clock started now for certain types of data. Depends on the data. If you've got really sensitive data or
Speaker 3data that must be secret for a long time, healthcare information, military secrets, intelligence, financial records in some cases, perhaps. I don't know. I'm not a regulatory person. You know, they have a time that they must maintain their secrecy. And that clock's already started. Because if we take a 2029, 2030 timeframe, that's only four years. It's not even four years away. Hmm.
Speaker 1On the screen behind you, a sentence came up a little while ago. There's no such thing as low-risk data. But apparently this large retailer seems to think there is.
Speaker 1So, if it's a secret by default, it's by definition a risk.
Speaker 3Well, a small, air quotes, small secret can lead to access to bigger secrets. Like a low credential, for example, it can lead to something like a key.
Speaker 1Sure.
Speaker 3Yeah.
Speaker 2The old classic, I got your Wi-Fi password from your light bulb because you thought, well, it's just a light bulb.
Speaker 1What are you going to do to me? Right.
Speaker 2But the fact that I got chain attack, once I got into the wifi, there was a whole lot of other things that were there.
Speaker 3Yeah. And that's why I put all my IOT stuff on his own virtual network is our own isolated.
Speaker 2Oh, you're darn right. You do.
Speaker 1Absolutely. Yeah.
Speaker 3Yeah.
Speaker 2But, uh, at the same time, you know, it's still, I'm still sorting through what do I have to code as a dev versus what I have to, uh, you know, what's going to come to me, uh, just by making sure we're using the latest bits. I love your info on always encrypted. It's like, hey, now I want to go talk to my DBA. And it's like, we're up on this version, right? Because we have all this encrypted and REST stuff, and you don't want a crisis. So if you're already running always encrypted in SQL, then we
Speaker 2should be good. When the new algorithms are needed, they'll work.
Speaker 3The big issue, and this is one thing that a lot of products at Microsoft are having to deal with, is the symmetric stuff's fine. It's the key wrapping that has to change. The beauty of it, though, is it's just the key wrapping. So if you have a 256-bit AES key, you just decrypt it or unwrap it using RSA, for example, and then you rewrap it using AES-KW. which managed HSM in Azure, and now Key Vault, actually, Key Vault Premium in public preview, supports AESKW key wrapping, which is post-quantum resilient.
Speaker 1Yeah, go ahead.
Speaker 3So there's two issues that I see developers need to really, really think about. The number one is please don't put any TLS anything in your code.
Speaker 2Yeah, it'll hurt you later.
Speaker 3Don't restrict protocol version. Don't restrict cipher suites. Don't do any of that. Just let it be configured completely outside of the application. That's number one. Number two is this whole crypto agility thing. If you've got crypto code with the algorithms hard-coded in the code.
Speaker 2You're in trouble.
Speaker 3And you're encrypting squeaky bytes of data... You know, you've got to update your code and probably can't read the old data. So now you've got, you know, it's just a mess. And that's where the whole crypto agility comes in. And honestly, if you haven't got crypto agility in place, there are patterns you can use to wrap existing non-crypto, crypto agile blobs into like some sort of crypto agile envelope that contains all the metadata.
Speaker 1So Azure's really good about letting me know when I need to move off of some version of something and onto something else because it's being deprecated. Do you think that sometime in the future, we're going to get an Azure thing when we log into the portal that says, hey, you need to upgrade your whatever it is to be quantum happy. You think that's going to happen? Like, should I just leave it up to Azure to warn me about things like that? Or is there stuff that I
Speaker 1need to do now?
Speaker 3I think it depends. If you look at the shared responsibility model, that's where it really becomes important. Like if you've got a platform managed key to encrypt data, then we're going to take care of that, right? Because a platform managed key. But if you've got a customer managed key, which is basically a key wrapping key, then they'll probably look at, I can't predict the future, but my guess, just my guess, Is that there will be notifications to say, hey, you know, we've now got the ability in Azure, blah, blah, blah, to wrap your encryption keys in quantum resilient keys. Would
Speaker 3you like to do this? Yeah. And click here. Yeah.
Speaker 2And the consequence is going to be very likely that the data streams are going to get larger because the quantum resilient keys are bigger. But I don't know what other impacts I'm going to see.
Speaker 3No, you shouldn't see it. No, because the only thing you're really changing is the key wrapping. Right. Which is, so if you've got a 256-bit AES key, you're going to wrap it in AES-KW. And in fact, it'll probably be smaller than RSA, to be honest with you. But if you wrap it in MLChem, it will be bigger.
Speaker 1Right.
Speaker 3Yeah, but it's just the key.
Speaker 1It's just the key.
Speaker 3Yeah, the data doesn't change.
Speaker 2Am I even choosing that or I'm just configuring to allow this and it'll optimize itself?
Speaker 3No, what do you mean? When do I have to make a decision about this, about the rewrap? Well, first of all, the nice thing is it's very low friction. Right. Very, very low friction. Like it's microseconds to do the work. You're not decrypting and re-encrypting petabytes of data.
Speaker 1Right.
Speaker 3So my guess is personally, as soon as it becomes available, I would just opt in and just re-wrap your keys.
Speaker 2So I'm going to wait for your blog post and then I'm just going to switch this stuff on.
Speaker 3No, we'll push it through Azure Update.
Speaker 1Okay.
Speaker 3I guess it'll be through the Azure Updates website.
Speaker 1Yeah.
Speaker 3Yeah. Yeah.
Speaker 1Good. And is this imminent like in the next year?
Speaker 2Yeah.
Speaker 1Wow.
Speaker 3It'll depend on the service. Yeah. So, so, so I really want to point something out here is that, you know, this post-quantum stuff is very layered, right? So the very bottom of the layer, you've got the algorithms. Well, that stuff's been in place in windows for.
Speaker 1For ages.
Speaker 3Um, we have called sim crypt available in windows, Linux and Mac hand optimized C code. Absolutely beautiful to read. It's so well written. Honestly, it really is. Then above that, you've got, um, say TLS 1.3 with hybrid, right? You open those floodgates because now people can use that stack. So basically on windows is to use the new S channel stack. And in the case of Linux use open SSL 3.5, um, which has ML chem built into it. So you've got those two options are now available to you. Um, so that's, that's the data in transit taken care of.
Speaker 3And then the last one, which is incredibly important is the key wrapping. And we now have that in, in Azure. So managed HSM has had a key wrapping since day one. And, um, as your Key Vault now has it, ASKW. So what's going to happen is that's going to open these floodgates and there'll be a Cambrian explosion of services coming online right as they adopt. And look, it won't happen like overnight, because everyone's going to do testing, make sure it works, make sure it fails correctly and that sort of stuff.
Speaker 3But Richard, to your point, next year, We'll see a lot of services rolling this out.
Speaker 1Starting to switch over.
Speaker 2But I also remember when we started switching up keys, when attacks got smarter and so forth, there was a period where we changed a number of times different flavors of, yes, SSL, and then into TLS. We are restarting this in some respects with these new cryptography. I've got to think. The first move we make may not stick for more than a year or two before it's like, hey, now we found some problems and you probably want to switch to this. I just remember going through this with AAS and a few others. Like, we've done this before. In some ways,
Speaker 2we've gotten really lazy because it's worked so well for so long.
Speaker 3Well, actually, it's worse than that. And that is that, so we've actually become really lazy because of RSA.
Speaker 1Right.
Speaker 3RSA is interesting. RSA can do all the crypto primitives. Right. It can do signing, it can do encryption and all that sort of stuff. Elliptic Curve and Diffie-Hellman cannot. They can't do everything. And so we've been used to, like you said before, Richard, I'm not trying to laugh at you, but he said, you know, prime numbers. Well, that's just an RSA thing. That's not an elliptic curve thing. Right. Because everyone thinks of RSA.
Speaker 1Yeah.
Speaker 3And RSA is this Swiss army knife. It does absolutely everything.
Speaker 1Sure.
Speaker 3And the problem is it does absolutely everything.
Speaker 2Absolutely everything.
Speaker 3Which means we've got to change it absolutely everywhere. Yeah.
Speaker 2It went everywhere. Well, the other side of this was because compute, I remember when it was expensive to do encryption, where we literally had separate servers from the website for doing just the encrypted pages. It's okay, well, now you're going to take your shopping cart and start a payment cycle that needs to be asked to sell. Now, it was this big thing about moving the cart over to the other much more expensive dedicated stack for completing a transaction. Because encryption used to be so costly. You know, these
Speaker 2days our CPUs are so damn fast. They're sitting around playing poker and smoking cigarettes waiting for something to do. So sure, encrypt everything. Who cares? RSA is fast.
Speaker 3Well, the funny thing is that first of all, it's just the key wrapping and unwrapping part.
Speaker 1Yeah.
Speaker 3Let's just call it key establishment because there's all different ways of doing it.
Speaker 2That's really what's going on.
Speaker 3That's the expensive part because it's all asymmetric stuff. And Windows, I think it still exists. There used to be a registry key called modexp offload for modular exponentiation offload, which is a very expensive RSA operation. And there was a way you could actually set a DLL in there, a name for DLL. It would actually offload that work to a DLL, which was a shim into some hardware to actually do the modular exponentiation work. But we don't need any of that stuff anymore. You know, when I look
Speaker 3at the work that... you know, as your front door have done, for example, they've done a whole bunch of analysis on performance and the performance is like just a couple of percent, you know, going from elliptic curve to elliptic curve plus ML, ML chem. And that's because of optimizations made in the library.
Speaker 1Sure.
Speaker 2I got to tell you, Michael, there's this weird dichotomy going on where it's like the catastrophizing of quantum destroying everything and the, oh, just touch this button, problem goes away.
Speaker 1Yeah. Yeah. I'm feeling that too. You're right.
Speaker 3I wish it was that simple.
Speaker 2Yeah. I keep waiting for what's not the simple part. I mean, for me, it's the frontline dev.
Speaker 1Right.
Speaker 2I mean, the administrator in me is a little sticky in the shorts right now because this is all very scary. Like, I want to check everything. I don't want to be the guy who didn't do his homework.
Speaker 1Right.
Speaker 2But for the dev, unless you've done something dumb, I think you're good as long as your administrators are on it.
Speaker 3As I mentioned before, the two big dumb things are baking in crypto algorithms into your code and not being crypto-natural. That's dumb thing number one. Dumb thing number two is if you hard code your TLS configuration.
Speaker 2Right.
Speaker 3You're right. Those are the two big ones. Let's just ignore compatibility for a moment. If you change a server to use TLS 1.3 hybrid and only hybrid, by the way, the reason why it's called hybrid is because you do elliptic curve and MLChem together. The keys are derived from both. That's why it's called hybrid. But if you do hybrid and the client doesn't talk hybrid for whatever, you got like a crusty old Java application or C sharp application written 15 years ago, it's probably not going to work.
Speaker 1Yeah.
Speaker 2And it's really a question of, is it going to fail with some grace to tell you what the hell's going on?
Speaker 3Yeah.
Speaker 1Right. Yeah.
Speaker 3It says, don't understand this cipher suite and gives you a hex value. Yeah. Really useful.
Speaker 1Yeah.
Speaker 2Well, that's better than object not found.
Speaker 3One of the best ones in office back in the day was out of memory.
Speaker 1Yeah. Michael, tell us about your book.
Speaker 3Oh, my new book, man.
Speaker 1Yeah.
Speaker 3So, I wrote this book with Sean Hernan, Lee Holmes, and Sherry DeGrippo. So, Sean and I have known each other for many, many years. He's a partner engineering manager in Azure Security. I've been around for a long time, got the utmost respect for Sean, great guy. Lee Holmes, he was the security guy in PowerShell.
Speaker 1Yeah, he's been on the show before too.
Speaker 3Yeah, my boy Lee, great guy.
Speaker 1Yeah, he's a good man.
Speaker 3He and I actually worked together in the earliest days of the SDL because when Monad, as it was back in the day, had to go through all its SDL checks, I was the.
Speaker 2Precursor to PowerShell?
Speaker 3To PowerShell, correct.
Speaker 1Yeah.
Speaker 3I was like the SDL contact for Monad. And so Lee and I got to know each other incredibly well. And he's also a partner engineer in Azure. And then Sherrod DeGrippo, she's actually left Microsoft now. She goes to Palo Alto Labs. She is easily one of the preeminent experts in the world on threat actors. She knows absolutely everything about threat actors. So the book is Threat-Driven Software Development. And basically what it is is looking at software development through the eyes of threat actors, like what do threat
Speaker 3actors actually do?
Speaker 2Mm-hmm.
Speaker 3And every chapter starts off... So first of all, Sherrod has her own chapter at the beginning. But every chapter after that looks at the contents of that chapter through the lens of threat intel. So every chapter starts off with anywhere between half and two pages of threat intel perspective, where Sherrod gives it a whole bunch of color. And then Lee, myself, and Sean go through and sort of explain that particular topic in detail. And a lot of it's... A lot of it's not just, don't think of it
Speaker 3like just security best practices.
Speaker 1It's not.
Speaker 3It's DevOps as well as it's operational security, AppSec, and also Threat Intel all sort of munched together into one book.
Speaker 1Sounds good.
Speaker 3Yeah, a lot of fun. I did one when I was in the red team. Funny thing is, so Mark Rasinovich wrote the forward. And my manager at the time, Craig Nelson, who's CVP of the red team, he said, oh man, I really love this book. I gave him draft to look at. Can I write a chapter? I'm like, well, why don't you write the afterword? I said, I've never had an afterword in a book. Why don't you write the afterword? So he did. Nine pages. But the afterword... The after chapter. Yeah, the after chapter. Look, I'm not trying to besmirch Craig at all. That afterword is absolutely brilliant.
Speaker 3If you were to sum up the afterword in like one sentence or two words, it would be So what? And he does a really, really good job of answering. So what? Yeah. It's really good. Yeah.
Speaker 1That's good. It's really cool. Michael, what can we say? It's been enlightening having you here and talking about all this crazy stuff that we barely understand. Well, I barely understand anyway, but I understand a little more thanks to you. So thank you very much.
Speaker 3You're welcome. Thanks for having me on.
Speaker 1Great show, friend. Thank you so much. And we'll talk to you next time on. NET Rocks!. NET Rocks!
Speaker 4NET Rocks is brought to you by Franklin's Net and produced by Plop Studios, a full-service audio, video, and post-production facility located physically in New London, Connecticut, and, of course, in the cloud, online at pwop.com. Visit our website at dotnetrocks.com for RSS feeds, downloads, mobile apps, comments, and access to the full archives going back to show number one, recorded in September 2002.
Speaker 1And make sure you check out our sponsors. They keep us in business. Now go write some code. See you next time.
How does ASP.NET Core help you make secure web apps? Carl and Richard talk to Anders Abel about the OWASP Top Ten and how ASP.NET Core addresses many of the vulnerability elements - at least where it can. Anders talks...
What is mentorship like today? Carl and Richard talk to Ethan Winer about his experiences helping people grow in their careers. Ethan talks about growing Crescent Software back in the QuickBasic and Visual Basic days -...
Whatever happened to the future we were promised? Time for a Geek Out! To celebrate the end of the opening history bits, Richard pulls together all the most popular topics of "things we were supposed to get in the...
It's Tray-Tober! Carl and Richard talk to Joe Finney about his latest project - building small, useful Windows apps that live in the system tray. Joe talks about his original project inspiration, Radio Tray - a way to...
OpenSilver evolves! Carl and Richard talk to Giovanni Albani about how OpenSilver continues to help folks migrate Silverlight apps into a sustainable model not dependent on the plug-in - but now the focus is on WPF!...