You did a great job. Thanks jurist. You're amazing. Why hello everybody. It's so uh it's so awesome to be here today. I'm excited to bring you uh one of my passion projects called Private Keys in Public Places. Before we get started I'll let you know who I am. My name is Tom Pohl. Uh I'm the penetration testing team manager for LMG security out of Missoula Montana. Uh I like to do things like play CTFs. Uh I I I'm a I you know a penetration tester by day, dream crusher at night. Um I've won a few CTFs. Uh I've won black badge here at DEF CON. I've uh won like gold badge at DOT CON and a couple at Wild West Hackfest. Three times at Circle City Con. But uh I am an evil twin. I'd like to point out uh hi Andy. My twin brother is uh this is his first DEF CON. He is here in the audience tonight. He's been here tonight. So if you see me around the con and I look like I don't know what I'm doing it's probably him. At any rate um and this is me hard at work. My wife took a picture that just doesn't exist uh of me uh in a hacker hoodie. I don't think I've ever worn a hoodie besides this picture in my life. Uh at any rate I want to give a shout out uh greets to uh Sec KC and Sec DSM. As Jera said. You know in Des Moines we like to call ourselves uh Sec KC's little brother because we kick the we kick him in the shins. The last time I saw jurists I was uh giving a talk at Sec KC and we had just deprived him of being able to mine cryptocurrency of the Sec KC coin. And uh but they used it to buy swag and and I gave him a paper wallet with 500 Sec KC coin in it so he could buy himself a little patch of swag at the Sec KC store. And then I gave paper wallets to everybody in the room because they're taped up. Under their seats. It was great. Anyways love those guys. Greets to the Sec KC. And I want to give a special thanks to my buddy Nick Stark my partner in crime thought crimes. And he's really the reason why I started looking for private keys. I will get into that in a little bit and also Sherry Davidoff. She couldn't be here today. My wife. She's amazing. This talk would not have existed without her because she's been urging me to create this for years. Literally years because I've been been at this for quite a while. So thank you very much. Thank you very much. Thank you so much my love. I hope you're watching. Uh so the roadmap. So we're gonna talk a little bit of background uh and then we're gonna get into 3 different uh examples of how I find private keys in public places. And then we'll get at the very end into some recommendations. So first of all why do we care about private keys? Right? It's not you know the hot sexy new uh vulnerability out there. In fact there's some really great projects out there that are uh extracting keys and and doing things but I don't I don't think it gets as much airtime and publicity as as it as it needs because this is a systemic problem and it's happening in the real world right? As attackers uh get into your networks uh they're looking for easy ways to gain more and more access and this is in using keys especially in the in cloud environments is definitely uh a way that people are do that the the bad guys are doing it right? So we really need to raise awareness for this. So once upon a time uh back in January 2020 imagine this is pre-COVID right? Nobody knew what COVID was back then. I was at a conference and my buddy Nick Stark he's over there in the audience. Hi Nick. I love you. Uh he was he he texted I think he texted me. I think you were texting. We weren't talking that day and he was angry at Netgear because he found a bunch of vulnerabilities. He's if you don't know Nick Stark look him up. He's like the hacker's hacker like he is amazing. And uh he found a bunch of problems on Netgear and they're trying to like bundle them all into one even though they're like totally different problems uh and so he called me being angry about it and I'm like trying to console him I'm like you know what here's how we're gonna do we're let's just go hack some shit. And I'm like you know I'm like no idea I'm like he's like what should we hack on? Hint hint. Netgear. Since he was angry at Netgear like let's just go start pulling random firmware and let's start exploring it and see if we can find anything. And uh we're about three firmwares in probably before uh uh looking and we found two different certificates that were publicly uh uh CA blast certificates with their associated private keys both for routerlogin.net and the mini app uh funjsq.com. Both from from reputable uh certificate authorities like the certificates there it's not expired and the private keys with it. Um and just to show you uh I actually took those keys put them on my own server I you know controlled the DNS for an environment went to it sure enough you get you know a happy lock icon the certificates are valid the whole deal because I controlled the certi- the uh the DNS. And it's like okay well you a lot of people are like whoa that's not a big deal is it? Uh and and actually it is there's a couple of guys that went out there and and wrote some really good articles about like actually this is a pretty big deal. You know and uh uh I'm uh I am uh a professional bad guy but we're a good guy. I'm helping you I'm out there helping people find vulnerabilities on their network right? But I was kinda you know thinking about like if I was to be a bad guy uh what what would I do right? Like say I was targeting an individual and I went to the same coffee shop they were in right? I could set up you know my fake routerlogin.net and if I knew they were running this Netgear product uh you know I could uh fake their website and then if they save their password when they log into their router I can get that password right? I can have them autofill that password and then do a autosubmit and then I'll get their password and then uh uh if uh um uh if they have remote administration at home then I could go log into their home router and play with them all day long or you know if they have the same password say we're gonna do a credential stuffing attack I could go then maybe log into some of their other services across the internet. Alright uh by the way I wanted to say if anybody's got questions. While I'm talking through this feel free to jump up I think there's a mic in the middle in the back and interrupt me cause I love interaction. In fact I brought with me some Montana hacker shot glasses so if you got a good question I will chuck these at you for a good question so there's a bounty on good questions here. Um alright so we tried to tell Netgear right? Uh it was what January 14th so really early in January was when we found it and we went you know we tried to contact Netgear actually in a couple different ways. We tried to contact Netgear in different ways. The most we had gotten was through their direct message on Twitter or X or whatever it's called now. Um and then uh so we decided that was like kind of a no go they weren't really wanting to talk to us so we reached out to bug crowd who ran their bug bounty program to try to establish communications. And uh they came back and they would not accept information about our vulnerability outside of their program. Which was really frustrating because uh here's why. Uh they require what's called responsible disclosure. So anybody who's familiar with bug bounty programs there's a couple different ways you you can uh uh disclose right? There's responsible disclosure and then there's coordinated disclosure right? They didn't uh they're uh in in I've got people that are very familiar with this where basically you go to the bug bounty program you report the vulnerability they pay you the money and then they never fix it. And guess what? You can't ever talk about it you can't force the issue you're bound by their terms and they never have to do anything about it. Basically you reported it and you have to walk away. Uh and uh so we we didn't want to go that route. We wanted to do coordinated disclosure. We're we're basically like hey we're gonna talk about this we want to set up a timeline we want to talk with you and and make sure it works with you. And they weren't having it. Uh so we went ahead and uh publicly disclosed within a few days and they fixed it within like a week. Uh and I actually April of uh 2020 even Bruce Schneier came out and said that bug bounty programs were being used to buy uh sorry if if uh this impacted you but you know I think this is an important issue. I think more and more uh programs should do coordinated disclosure instead of responsible disclosure just so that we're forcing these vendors to fix their products. Alright. So what did we learn from Netgear? Uh number one uh private keys can be trivially found. Uh I literally we just did grep on the fi- you know we we experimented with it and we found out that the key was private. We extracted the file system into folders and we like recursively grepped for the word private in all caps and out came some keys. So we started to wonder. You know was this a fluke? Was this just like this is the one product out there that's got private keys in it? Uh and the answer uh oddly enough is no. This is this is not a this is not an isolated incident. Uh so we started to ask uh what else might have private keys? So let's take a look. At the time I was working for a software developer. Uh I was working for a software developer. Uh I was working for a software as a service company as I'd actually been spent most of my career on the blue team side uh building software as a service uh platform. And uh I I was a Fortinet customer and I'm like you know what? Let me go download the latest version of the software that runs all of my firewalls. Just to take a look to see what I can find. Guess what I found? Well first of all uh uh I was able to download uh uh I was able to download uh uh I was able to download uh uh the uh the the software and it was a VMDK right off their website and I extracted file system and I found that most of the stuff were there's uh most of the software is in these tar dot XZ files on the uh on the on the firmware. And I'm like okay cool. So it's an XZ X you know normally people don't use XZ uh compression but that's cool I'll go with it. Uh and even if you ran a file on it says their XZ compressed data. Uh So look, what happens when we go ahead and try to decompress it, right? Oh, XZ, sorry, compressed data is corrupt. Like, that's interesting. So it's, I mean, it's brand new firmware I just downloaded from their website. I extracted it through very solid techniques. I knew this stuff wasn't corrupted. And actually, I intentionally downloaded the x86 64-bit version of the software because I knew I wouldn't have any, you know, weird file system issues and things of that nature. And so when I started exploring this file system more, I saw that they had a couple utilities outside of those XZ files and a bunch of libraries. They had one called FTAR, and they had another utility called XZ. I'm like, this is interesting. You couldn't just run the XZ binaries or the FTAR binaries. Because they had their own libraries associated with it. But if I ran a chroot, if I ran their firmware in a chroot environment, mind you, I had my virtual machine I'm running this on is the same architecture as the version I downloaded. That's really important if you're going to do this at home. And so I ran their XZ binaries and their FTAR binaries. Guess what happened? I was able to decompress and extract the rest of the file system into files. For a shy class, why do you think they, why did they do that? Anybody? Security by security. Rick's in. Yes. All right. That's exactly right. All right. So, so, you know, now that we've extracted all these files out in the file system, we're like, there's got to be something good here because they've hidden it. They made it a little bit hard. So I play a lot of CTF. So far we're at like maybe a level 100 challenge, right? This stuff is not hard. So if, if I want to, I want to encourage everyone that if you do CTFs and, you know, hacking in the real world is generally easier than, than some of these CTF challenges. And I'm not, I'm not joking. I'm not doing anything that, that is really hard or complex, but I think it's overlooked. I think there's, there's, there's things that, that people don't realize that if you even, you know, remotely try to go look at, you're going to find some, some pretty terrifying things. All right. So we're going to use the same technique before. Strings on a fine, maybe a little bit of grep-r. Yeah. And guess what we find? Two publicly blessed CA or certificates blessed by CAs. These, this time, one was published by Apple. The other one from Google. Any idea what these are used for? Push notifications. Hey, here's a shot glass for the guy in the back. Oh wait, that's my buddy. Nick. Oh, overshot. My, uh, NFL career is, uh, is not going to take off. Um, yes, we found some push notification certificates in everyone's Fortinet firewall. Is that exciting or scary? It's pretty excitingly scary. Yeah, I know. Uh, so just to show you, so, uh, I'm like, really, these are really Apple certificates. And sure enough. So here's the, the output right here. Uh, from, uh, looking at the, the PEM certificate, the, the public, uh, part of the key or part of the public part of the certificate. And it's, uh, the CN from Apple worldwide developer relations certificate, uh, relations certificate, uh, right there, Apple. And, uh, and then, so you can, you know, cryptographically check to make sure that like, okay, I've got a public certificate and a private key. You can actually use open SSL, uh, uh, in order to, uh, look at, uh, look at the, the values from it. And sure enough, the, the certificate matched the private key. So it's a match. This is legit. I've got a private key to a certificate that was issued by Apple that I extracted from my Fortinet firewall software. Pretty exciting. All right. So what if I was an attacker, right? So, you know, uh, in their final response that will, uh, that they came out with, uh, they acknowledge that, uh, these certificates are actually used for both their Apple and Google cloud messaging services. So. So does this mean I could send push notifications to people's phones from as a, as Fortinet? Yeah. You know, when I figured this out pretty early on, that's why at the point that I'm like, this is bad. I had, I went ahead and reported it to Fortinet. I'd actually never worked with Fortinet and didn't know of anybody that had. So I gave them the benefit of the doubt. Um, and so, uh, what this is probably two weeks. I, it was literally two weeks after we had the net the year thing go on is when I first reported this incident. Uh, or this issue to, uh, to, to Fortinet. And I also reached out to Apple. I mean, I'm like, Hey Apple, I've got the private key to a certificate you guys issued. Uh, I, I felt that they should know, uh, also, and actually is, is interesting. Apple like responded back and be like, we need to know whose key you've got access to. I mean, they were like, tell us what, you know, tell me who your daddy is and what does he do? Right. Uh, and, uh, and I was a little out there. Luckily. You know, after I, I told Fortinet that I had reached out to Apple as well, you know, they self-reported themselves to Apple and, you know, it was all, all in a merry way. Um, and then, um, and then actually I was issued a CVE, uh, in February, uh, 2026, 6 45. Every, anybody ever heard that one? No. If you still look, it's still actually not even, uh, allocated. Um, but they, they, they told me in April, April, 2020 that they're coming with a fix in 6.4.1. And actually I think it ended up in 6.4.2, but they wanted me to wait. You know, what's really interesting is these, this is more than just like I found a problem that, you know, firmware update can kind of fix. This is like an architectural issue in their infrastructure. Right. So no longer should, you know, should your firewall be able to talk directly to Apple and Google and send a push notification? No. They're, um, and so this is actually an architectural issue. So we, you know, we had discussions around, they need to come up with a solution. Then they had to push it out and then they wanted me to wait until, um, you know, a sufficient enough time had passed that enough customers had updated their firmware. I was like, totally cool. I, I'm right on board with you. You know, I'm a, I was a Fortinet customer at the time. I'm like totally on board with it. And then I waited. This was April, 2020 when I kind of last talked with them. Uh, and then I waited and I waited and I waited. And three years later, April of 2020. 23 or sorry, February of 2023. Um, they finally issued the, the, uh, the advisory. It wasn't without pro I w I was poking and prodding them probably every, um, every, you know, three or four months, something like that. Uh, and they, uh, they'd never, they, they kept being like, oh yeah, I actually went through, uh, three piece or representatives. Like I ended up, you know, every time, you know, every few months a new person was running the program. Uh, and, uh, but they finally acknowledged it in February, 2023. I think they actually, it took them at least two, two and a half years to fix it. Uh, but to acknowledge it, it was, uh, February 16th, 2023. And you see, it's got a different CVE number. So what they actually, they were like internal first internal reasons that are, I don't understand. They had to remember the CVE to 2022, two, two, three Oh two, even though I reported it back in 2020. So that's an interesting story that I'm sure I will never hear about. Um, uh, you know, maybe it was too long between when it was reported and when they reported the fix. I don't know. And they could only go back so far. But wait, that's not all. So, uh, fast forward, I think it was actually January or February of this year. I was on, I was helping one of my, uh, penetration testers on his external penetration test. So we found a Fortinet firewall on the public internet that was acting as a VPN server. Very common in a lot of people's organizations. Uh, but we did a password guessing attack. Uh, and we found a username and password that worked, that let us, uh, kind of get past that first door, but they had MFA turned on. Good for them. Uh, and so we didn't have a good way of bypassing their MFA. So I thought, Hey, I, we're, we're Florida friends. Uh, we, I reached out and got the latest version of the software, the same, same software that I used to run. And I got the latest version. I was like, uh, because it was the software. That's where our, our, the version our client was running. And I, uh, decided to look through the firmware to see if I could find some kind of an MFA bypass, right? You know, what's great is since I, I, uh, manage the team, I don't get my own engagements. So I get to jump into all my coworkers engagements to kind of help them. And I like sometimes swing from the swing for the fences and, and sometimes it'll hit a home run. Sometimes I'll just do some interesting things. In this particular case, uh, I got sidetracked because as I was looking through the firmware, looking at all the code. I found the fix for the issue I reported three years ago, which is actually the preface, uh, preface to why they finally published, uh, the, their advisory is because I poked them. I'm like, Hey, I see you've got the fix in the software. I don't know exactly when it came out, but hopefully it's been long enough since it's been three years, uh, to go ahead and, uh, and talk about it. And, uh, and that's when, uh, but, but then the fix was really super interesting. So I go, uh, Most of the, the, the firmware on Fortinet is in a giant in it file, right? So it's kind of like busy box, uh, where you've got like a massive binary and then you link to it with LS, you link to it with RM and CP and bending on the file name that you're running it as it'll hit that executable differently in a run on a little bit different version of the program. Well, that's how Fortinet's firmware is mostly set up. And inside of that, that, that in it file, I found, uh, a URL program. It's called productapi.fortinet.com. And, uh, it's right there highlighted in black. Uh, and, and right above it it says iOS, iOS push data. And then above that you see, uh, you see, uh, fgt.crt and fgt.key. Guess what those are? Any ideas? Organizational private key. Organizational private key in the, in the green shirt? Oh, back there. Oh! Still not gonna be an NFL player. Sorry. Nice work. Uh, yeah. So this time, uh, this time I discovered that, uh, they have another private key. Uh, and so I went ahead, uh, I went ahead and, uh, and, uh, tried to talk to this productapi.fortinet.com. Um, and it, it gave me, you know, a handshake failure, right? So I just tried to curl against it. Uh, and it's like, nope, not gonna be able to talk to me. So then I'm like, well, this is probably a client certificate. To do client, uh, authentication against the URL. So sure enough, do the curl again. Pass it in the Fortinet, uh, issued certificate and private key. And, uh, yup, I can talk to the URL. So I didn't dig any deeper than this. So, uh, I, uh, I don't have anything more to report here. But let's just hope that the authentication between your firewall and their push notification proxy server has more authentication than just a private key that's on their firmware. I don't know. So that's where I left that. All right. So what did we learn from Fortinet now that, uh, for this example? You know, I'm convinced private keys are everywhere. And, uh, I'm only showing you three different examples today. I've got so many more, uh, in my library. It's, it's ridiculous. And, um, and I've also found that manufacturers may not prioritize this type of an issue, right? Especially when they're hard problems, right? This is in particular an architectural issue. They had to now stand up an entire site. On the Internet that all of their customers are now going to hit. I mean, this is a, this is kind of a, this is kind of a big change for them. And it can take some time, a really long time in this case, to actually address it. So we need to be careful. But then we kept finding private keys. So in my line of business, you know, we go kind of the extra mile to, uh, to, to find all the weaknesses in your organization. And private keys are very useful on penetration tests, right? So let's fast forward a little bit more to April of this year. Uh, my team was, uh, conducting an internal penetration test. Uh, you know, basically what happens on our internal penetration test is we'll, we'll take a box, uh, a server box that we run our own, uh, distribution, Linux distribution on. And we'll send it to the customer. And we'll have them plug it into the network, you know, and get us either on a user subnet or as if it's like plugged into a conference room. Basically, no level of access. And this thing will, it will find its way out of their network, connect back to our infrastructure, and allow us to pivot in to do our work to, to find, uh, vulnerabilities. And so, you know, one of the first things that we do, you know, is part of discovery on your network in an internal penetration test is look for, for, for low-hanging fruit. Look for, for vulnerabilities, right? We'll use a vulnerability scanner. And, uh, uh, my coworker who is running this internal penetration test, uh, he's like, the next day, he's like, after he ran scans for a day. He's like, hey, uh, I found, I got access to what was reported as a, uh, Palo Alto firewall, uh, with that, with default credentials. But I got into it and it does not look like a Palo Alto firewall. And guess what credentials he used to get into it with? Hey, he said admin, admin. That guy. Here we go. Sorry, that was the one I drank out of. You might want to watch that one. My bad. That was the last one. Uh, yeah. Admin, admin. So that's how we got into this thing. And we didn't, he didn't know what it was. I didn't know what it was. Um, it was kind of a mysterious device. It, it looked like it was running some version of like maybe a CentOS. Uh, looking through process lists, uh, looking through, uh, file systems, you know, it's, we, we found, we found that this is an interesting thing. So, uh, first of all, we started looking through process lists. And, uh, and you'll see here that we're, we, uh, we found the directory that was, uh, labeled, uh, Delta. And, uh, we, uh, we found the directory that was, uh, Dell Compellent. I'm like, Dell Compellent? That's the storage platform I'm on. Am I in a Compellent? I've never seen a Compellent before, but I've heard about them. It, it, but it wasn't a Compellent. I'm like, I'm looking like there's got to be a giant-ass hard drive around here that's hosting like their, their domain controller. Like, that's what I was looking for. Right? Like, I'm hunting for a way that I can forensically grab all your passwords. Or other user, other, other user credentials. But it wasn't. And, uh, but I did have some, some directories I could start looking at. And so, in one of these directories. I found, uh, a, a properties file that was called vsp.properties. I had, and then at the top it gave me a hint. It says Dell Compellent VMware vSphere plugin for VMware vCenter configuration parameters. Like, that sounds very fancy. Uh, and they had a password and a username. And the username was vSphere.localadministrator. So, this seemed like a high value target to me. Uh, uh, that, that, uh, but that password looked real odd. Right? It was all hex, uppercase, and numbers. And I'm like, that couldn't possibly be the password to their vCenter, could it? No. It wasn't. I went, I went to their vCenter. I tried to log in with it. And, uh, sure enough, it was not the, uh, I got invalid credentials. I'm like, okay, that's cool. So, that means that that password has to be able to be read by the Compellent. So, you know, it's like, so, this turns out it's a, it appears to be some kind of a connector between Dell Compellent and vSphere. So, this kind of sits in between. I don't know what it does. It probably, like, creates snapshots or provisions volumes. I have no idea. But for some reason, in the documentation, it says, you must give it administrator-level credentials to the Compellent connector in order to, to, you know, be the, the connector to your vSphere or your vCenter. And so, I needed to figure out, like, something's got to read and write that config. Let's figure this out. And so, sure enough, I found, uh, the install script. That was sitting on the box, uh, that referenced a vsp-config-util.jar. And they had a, a, a class name, uh, uh, referenced Dell, com.dell.compellent-vsp-config-util. Um, you know, there I, I enlarged it so you can see it a little bit. So, there's a, a jar file that we found. Uh, and then, uh, there's the class file that gets run with that jar file. And I'm like, well, that sounds like something that, you know, get configuration data. That thing's got to be able to somehow read that encrypted value and decrypt it, right? So, I, uh, I've actually been a Java developer for most of my career. I probably coded Java for about 25 years. I'm like, I'm not, I'm not shied away by this at all. And I've, you know, played a few CTS. I'm like, I, you know, understanding a jar file, all it is is a zip file. Uh, you can use a jar util or you, in this particular case, you just use, I just used unzip, unzip the jar file. And it, it takes every, so, uh, in Java, everything's compiled into different classes. So, uh, in, in, those classes are put into packages. All it is is fancy words for files and, files and directories. Uh, and I decided I'd just start going down the list. I started with, uh, confutil.class. I'm like, I can decompile that because it's an interpreted language. Or, uh, well, it's a compiled language that's interpreted by the Java, uh, interpreter. Uh, so I, uh, you can get decompilers. And I, I actually used, so, in a few different steps, like, I used, uh, the benef, uh, .org, uh, decompiler. Uh, it's pretty lightweight. Uh, easy to use. Uh, and it gives you some pretty nice looking output. So, all I did was download the, uh, benef.org, uh, decompiler. And I fed it that confutil.class. And guess what I got? Private key. Who said that? I wish I had another shot glass for you, man. I would throw it right at you. I got a whiskey bottle, but it's empty. Um, all right. So, sure enough, it's even commented. Like, uh, right above where it says encryption key, it says encrypted type AES. I'm like, they're even giving me hints as to what I need to do here. This is great. Uh, and so, uh, sure enough, there's a static AES key. So, since this is in the compiled jar file, that means this isn't a unique key by customer, right? Anybody that's got this product, their vCenter passwords are stored in the vCenter. It's in the, in this VSP properties file encrypted with the same key as any other customer. So it didn't matter, you know, so as long as you can get access to that VSP properties file, I'm gonna be able to get your password out of that, right? Well, maybe. Well, so, let's, let's, uh, step through how I got it, right? So I knew it was AES of some sort. Uh, I've got a key. I've got it out of the properties file. So, uh, what I did was, uh, I used a very common, uh, CTF tool. Any, any idea what tool I might have used? CyberChef. That's right. So I just went to CyberChef. I, uh, took the AES key. I haven't redacted here. I'm not that much of an asshole. I, uh, uh, you, if you guys want the key, you can go get it yourselves. Uh, but, uh, so I put the, the AES key, uh, into the AES decrypt method of CyberChef. And then I put the encrypted password in the input. And then I'm like, wait, I was digging through the source code. What did they use for initial, initialization factor? In fact, I was like, maybe this is the secret sauce to their private key. Because they didn't actually have it in there. I was trying to figure out, like, okay, how, so I just put in enough zeros until CyberChef was happy with it. And guess what popped out? Clear text password. So now, uh, I'm armed with, uh, I'm armed with a, uh, with a clear text username and password. I go back to the vCenter, and I'm in. Right? So at this point, you do the happy dance. You're like, oh, my God, I've got access to their vCenter. Uh, why, why is this important? Why is it important that I have full access? Why is it important that I have admin access to your vCenter? You fucked it up. You fucked it up, yeah. You know, you're running all the stuff, right? This is where, like, your domain controllers live and your servers and all the important infrastructure that runs your organization is generally accessed through vCenter. That's how vCenter works. Uh, so normally at this point, like, my go-to move when I get vCenter access, so I've, I've exploited vCenter in a lot of different ways. Thank you, Log4J. You're the gift that keeps on giving. Um. But normally what I'll do is I will, uh, snapshot your domain controller. Uh, and then I'll, uh, I'll download the, uh, the first 10 to 20 gigs of the C drive of your, of the hard drive of your domain controller or whatever hard drive is that you're storing the NTDS at it because it doesn't have to be your C drive. Uh, and then I will forensically recover, uh, all the NTDLM hashes from the NTDS.dit, uh, using the system registry hives, uh, and, and the vCenter. It does that, but it actually needs to have a special way of, uh, using that file in order to get all the hashes. And it's cool. Actually, if people are interested, I actually have a really cool technique how I can use a partial hard drive download to then convert it to qt cow too, and then, uh, uh, be able to mount it and, and access it. Because, uh, often, uh, when I'm doing these things, uh, you're not getting clean images, right. Sometimes you're, like, you want to read-only mount of an iSCSI or MFAS or something like that. And, like, even the, uh, uh, the registry hives, you're not, they're not going to be clean. Right. but some of them are. Like the last known good boot. So like I've like manually patched impact it so I can like go after the last known good boot to get the the boot key from the previous boot. It's likely still the same key to decrypt your boot key. Um at any rate but that's not what we did here. So we took it a step further. Uh so in this particular case uh it just you know people always love a good pento story right? Uh I uh I went ahead and you know I passed on the access to to my coworker who's working the the IPT and I decided I was gonna fuck around with some of their other stuff. They had a certificate authority on the network. And so I was uh I was working with you know we had another low level uh user on their network at this point. And I was uh I was uh you know messing with their certificate authority. And I definitely set off some alarms but my coworker was in the console of vCenter and he's checking out the consoles. He's checking out what servers he had access to. And apparently I must have set off an alert because uh their their domain administrator went to the CA box and opened up through vCenter the console that my buddy was sitting on. And so the the he logged into the console and he was looking around at the logs and seeing what was going on because I was you know messing with the certificate authority. My coworker was on the console of the same certificate authority when the domain administrator logged in. And then it stopped moving. He stopped typing stuff. And it looked like he walked away. So guess what my coworker did? Popped the PowerShell, created his own domain admin account and then closed it. So then we got domain administrator without even downloading uh the domain controller. We had open access to a uh a console. And then from there then we went ahead and uh and we dumped the uh NTDS that did across the network and then we we uh we won the day. That was the game over for for that organization. They learned a valuable lesson about uh managing consoles for sure. Um anyways so uh I'm gonna go ahead and get back to you guys. Great. So in this attack you know uh there's definitely uh multiple ways to exploit the the issue. So getting back to the Dell issue. Uh they actually have a couple different user accounts. Uh in fact Dell even came out and says oh well you need to change the credentials. Well there's actually two credentials on that box and they only talk about the root credential. And actually any level of access to their just Dell compelling uh connector uh will actually let you go and and get this uh get everything that I did here today. Uh and as well as you know I'm gonna go ahead and I'm gonna go ahead and do this. So if you ever if any company was doing any segregation of duties like maybe the administrator had access to upgrade the software and do this but they didn't have access to the vcenter password and they had somebody else put that in. Well the administrator then could then go retrieve that. So if you're trying to do any kind of segregation of duties with uh this connector piece it's it's it's a failed attempt. Um at any rate so that was that. Uh so and then we reported to Dell right? So in April it's about the 11th of April I emailed Dell actually I think it was at this point that Sherry's like you need to talk about this. And I'm like and like she's like DEFCON and Black Hat are coming up. Uh she's like you need to submit and it's more than 90 days so you need to report it and then you're gonna talk about it. I'm like okay I'll do it finally talk about it. Uh and so I emailed uh with Dell and and uh my first response back was from Dell was like oh well uh you need to open a support ticket with your customer number and this is actually a configuration issue on your part and have a nice day. And I'm like so does that mean you're cool with me doing this in August? And they're like whoa whoa whoa sorry we didn't mean to send you that. Uh yeah we take security seriously. Uh and and we're going to we're going to look into this and get back to you. Uh and you know and I gave them some more details in May you know a little bit more back and forth. And finally in the end of June I got an email update saying that they're going to fix it in November. And I'm like but I'm gonna talk about it in August I told you in April I'm gonna talk about it in August. And they uh they they've actually been pretty decent to me. That's why the other reason why I have a release key uh but you can go get it. I think I've given you enough of the of the road roadmap that you can go do this if you've got this in your organization. Uh but uh yeah they're coming out with a fix. Uh I think actually that whole storage platform is being uh deprecated. But if how many people in here run storage platforms as long as humanly possible? Right? Cause how hard is it to move storage platforms? It sucks. So I you know imagine this is going to be not you know the last time you know oh they deprecated it it's going away. Well it'll probably you know we will probably get five six more years out of it until the thing is not usable anymore. Uh cause so many people will use their storage platforms forever and ever. I know this cause I used to be you. Uh and uh you know there's a lot more uh things out here. Like I just gave you today these are just three examples of uh private keys in public places. Right? Um I mean I I've found private keys in remote login apps, in routers, cameras. My favorite I'm not ready to talk about this one yet. I'm not ready to talk about this one yet. Uh there's a camera out there that it has it doesn't have a private key. It's got all the components to make a private key. That they make the private key on the fly and then use that uh to do the communication with the cloud service. So if that's you guys I'm coming for you. Uh and and also I you know also printers. I get you know you can get keys out of printers. I actually have other ways other than just going through firmware to get keys out of printers. I gave a a talk actually on Wednesday at B-Sides on how I met your printer. Uh go ahead and uh look that one up if you're interested in and how I can elicit uh your printer just to give me it's password instead of doing it forensically. But this is a systemic problem. Right? Uh private keys uh in these public places like firmware is a is a big problem. Uh and uh I recommend you know firmware software developers the private keys don't belong in the binaries of your software. Right? This is a bad practice. You know if anything you know uniquely generated per device or whatever. Uh and also you know regular security audits and and and testing should be done to look for these secrets. Right? There's tools out there that will look at your source code and stop the build in your CICD process if you've got a private key hidden there. Cause developers will do it. I've seen it. I've done I've audited code. I've been in software development for most of my career. I know how you guys think. Uh and uh and also coordinated disclosure. I've been in software development for 30 years. Right? So if you found you it's always good to talk about bug prevention. this topic that I think hashtag endangered another teacher program should be adopted. Right? No more hush money programs where it's like oh yeah we totally took care of that problem. We paid off the the guy that found it. Right? Like no you should you should fix your problems and and come clean about it in public releases. So any more questions? Any more comments? Uh if you wanna find me on the internet I'm uh Creatively Tom Pull. Actually it's funny I think my first device was DEFCON 20 and I I came in I think fourth place in a competition that year. And that's when Dark Tam- agent called me out in front of 25,000 hackers for being the only guy that goes to a hacker conference and uses his real name. Uh, but you can find me very creatively, uh, on social media as, uh, Tom Poole. Uh, I'm on both X or Twitter, whatever it is now, as well as, uh, the, on Mastodon. And you can find me on LinkedIn as well. Thank you much for your time today. If you want, if anybody wants to talk afterwards, I'm totally cool. Like, if you want to go to, like, the Chill Out Lounge or something and we, you know, sit and, and, uh, have some beers and, and talk more, I'd love to talk with you guys.