The fact that we leverage as OT pen testers, assuming that we compromise the enterprise environment, we get domain admin. Domain admin is not always the key or dependent on success. It just makes things easier. So first thing, get domain admin. And oh... Let me go back. Okay. Thank you. Cool. Yes. Much better. Well, I'm actually a little bit ahead. So here's the remote access architecture. So just going back a slide, you have RDP jump servers. You have remote access proxy or VPN gateway. So these are the most three common types of remote access. Like I said, there could be a jump server in the OT DMC. Sometimes it's double hopped. But this is kind of key as an OT pen tester to know what type of remote access people are using to get in. Because that will change our tactic. Okay. So this is like a basic standard IT type of attack. But it's actually pretty... I kind of want to highlight it, because it's actually pretty interesting. So assuming we get domain admin in the enterprise network, the first thing we do is we pivot to NZ user's workstation that remotes into the OT DMC. And of course, we also look for the RDP save credentials. If you think about these operators, if they're logging into the OT DMC five days a week, and they don't want to type in their creds every single time they RDP in. So of course, you look at the desktop. You might find a .rdp file. And using something like Sharp DP API or Mimikatz, you can harvest these clear text credentials. But if they're leveraging multi-factor authentication, that would prevent us from masquerading as these users. But we also like to keep this in our back pocket, because the chances that once they're in the OT network, there's a good chance that these creds will work again. So like cred reuse is definitely a thing between IT and OT. Okay, another kind of low-level attack is group membership. So again, once we get domain admin, we look at the groups that these OT users are associated with, and we just add ourselves to those groups. And sometimes, just by doing that, we can access the same resources that they do. But again, if multi-factor authentication, that would prevent us. But we'll just use that later. Okay, so two kind of low-level, just general type of IT attacks. And now we're getting into something a little bit more interesting. So I'm not sure if any of you heard of set RDP, but this attack is a fun attack to do, it's very limited as far as the type of environments we can leverage this. So what's interesting about this attack is that it intercepts remote desktop credentials as an end-user attempts to authenticate to a jump server. But it only works in usually small environments, like wastewater treatment plants, or just very small organizations. Because to pull off this attack, you have to be in the same subnet, and the workstation and the jump server also has to be in the same subnet. So you're talking about a very small organization. But this is a pretty fun attack because you can just run this man-in-the-middle attack and gather clear-text credentials. Again, if there's multi-factor authentication, that would stop us from pivoting. But we can keep this in our back pocket and maybe reuse the creds later on. Okay, so this is where the fun stuff happens. This is probably the most common technique that we use to pivot between IoT and OT. And there's a few reasons why. It's actually very easy to pull off. There's not a whole lot of requirements. And it bypasses multi-factor authentication. So again, assuming we have domain admin, we find the users, like operators, that remote into the OT DMZ. We pivot to their workstation. And so one of the requirements is we have to have an anti-authority system level shell. And that's pretty easy to do. There's multiple ways to do it. You can use Task Manager. You can use PsXec. We just upload PsXec, spawn another shell as anti-authority system. And then the first thing we run is query user. So what users are logged on to that host? If it's a jump server on the enterprise, it's not... at any given time, you can see at least 12 different connections. So jump servers, there's a lot of connections we can see. If it's an end-user workstation, it's probably just one session. But with this attack, what we do is then we find the user that we want to hijack. And we run, like, tscon.exe and the session ID. And then, boom, we have their session. We just, like, bump them off. And now we have their connection. So we're just piggybacking off of their remote access process. So they're going through the whole remote access two-factor authentication. They're going to jump server or remote access proxy. And then in some situations, they're even pivoting to, like, some engineer workstation. So we don't need to know what their password is or know the two-factor authentication. We just bump them off and we have their session. The thing about this attack is it's not very OPSEC. It's actually, like, non-SEC. You know, we're bumping them off. Usually, they think it's, like, a network connectivity issue. But, you know, this type of attack, we usually collaborate with the end user. Because if they're, like, an operator doing something very important, we don't want to just bump them off. So we let them know beforehand, hey, we're going to run this attack. Are you okay with that? And then we bump them off and take over. But again, it's not very OPSEC. Like , you know, it is something... If you try to do this as a red team, someone would know. So this leads me into the next attack. Remote desktop shadowing. So this is also, like, another favorite of mine. It's very similar to remote desktop session hijacking. But you don't need to have an NT authority system shell. All you need is admin and you have to make an edit to the registry. And then same thing, you can run a query user. If you're on a jump server, you'll probably see over a dozen connections. If you're on top of workstations, this is usually the end user's connection. And then we run mstsc.exe, which is RDP. Or you can run shadow.exe. And with the no consent prompt, this means that the end user wouldn't know that you're shadowing their session. So that kind of makes it OPSEC. So once we run this command, we would have, like, a view of their desktop. And, like, again, they wouldn't know that we're viewing their desktop. But on the flip side, if we run commands or move the mouse, they can see that. So not very OPSEC, right? Again, we would work with the end user to let them know we're going to run this attack. But we can't do a whole lot if we want to, like, hide our activity. So this kind of leads into, like, the next attack. This is OPSEC. This is actually very, very OPSEC. So hidden desktop or HVNC. So, again, we have a domain admin on the enterprise network. We pivot to an end user workstation. And if we're using Cobol Strike, we can run hidden desktop, which is an open source tool by White Knight Labs. There's also, like, commercial tools from OST and Fortra. But the main concept here is that, again, the end user is logging into the OTDMC or they're logging into, like, their engineering workstation. And once they have gone through the connection process, we would launch HVNC's hidden desktop. And then we would be presented with a... Sorry. Is that better? Yeah. We would be presented with another UI of their desktop, but we can run commands, open up prompts without them seeing our activity. So this is actually really hard. This is a nice trick. So we're pretty much piggybacking off of their connection into the OTDMC or even lower. And, yeah, it bypasses two-factor authentication. Okay. Next. So this is unfortunately something that I've encountered on many engagements. Larger organizations. So in situations where, like, an organization is relying on top IT to manage network infrastructure or even worse, like, a third party to manage their network infrastructure, unfortunately, sometimes they leave it open to, like, from the enterprise to the OT. So, like, it's a very implicit... Bless you. Implicit rules. For example, if they have implicit firewall rules, they allow access to network switches, routers, management portals to the whole enterprise. This is something that we can leverage to access these, like, these interfaces, like, over SSH or telnet or web. And it's really sad because, like, you know, it kind of bypasses their whole remote access design. And, yeah, so it's not just the router switches or firewalls. It's also other, like, miscellaneous devices. Like, one common one is BMC devices. So, like, think iDRAC or ILO or UPS devices. So what I have here is, like, a UPS interface over telnet. And then I can enable SSH. And with SSH tunneling, I can pivot into OTDMC. So this is kind of like one of those things where, yeah, they just leave open to the whole enterprise network. And , yeah, if you have SSH, and if you combine this with default creds, it's even worse. So miscellaneous stuff. Okay. This is my last slide on attacks. And I was, like, kind of wondering if I should leave this in, put this in here, because I almost feel like it's common knowledge. But the thing is, I see this so often, and it's kind of sad. Okay. So in situations where there's, like, a jump server in the enterprise network, and then they incorporate, like, two-factor authentication, they use RSA or whatever, two-factor authentication, they forget that. So even if I have domain admin access, I can't remote desktop into the jump server because I don't have two-factor, right? So the client usually thinks, oh, this is great, you know, you can get in. But they tend to forget that, like, on Windows servers, like, WinRM is on by default. Or SMB might be open. We don't need two-factor authentication to access these services. We can just use, like, Evo, WinRM, or PS remoting to access the jump server through a different port, and then we can just redo the whole attack chain, use RDP shadow, RDP session hijacking, or HPNC. So, yeah, always put the jump server below the firewall and close off any ports. If it's meant to be just remote desktop, make sure only remote desktop is exposed. Okay. So defense detection opportunities. So , yeah, easy to detect remote desktop session hijacking, just look for TS con, RDP shadowing, look for shadow.exe, especially with the no consent prompt. That should be a very, like, high fidelity indicator. Because if you think about an IT support that's working with someone to troubleshoot something, they're usually going to ask for permission to take over their screen, their desktop. So if someone's not using that, that might be a red flag. HPNC is going to be much more difficult to detect because you're going to have to look at, like, API calls to, like, switch desktop or create desktop. That's going to be a bit of a challenge. Okay. So hard in the DMC defensive takeaways. Like, a lot of the attacks that I mentioned, yeah, like, we bypassed two-factor authentication and all that. But there's still a lot of things that you can do. So first, secure remote access paths, you know, the basics, multi-factor authentication for everything. So strengthen segmentation points. So one thing I want to see more often, I've only seen this top one engagement, unfortunately, but they had two jump servers, but they split the protocol from remote desktop to remote desktop over web. And funny enough, that actually kind of was pretty effective because we could hijack the session that had, like, a standard remote desktop access. But once they switched to remote desktop over web, they're not using port 339 anymore. It's using 80 and 443. And so we couldn't hijack that same session on the second server. So you want to separate, you want to change the protocols. So not just go with RDP over RDP. Hardened jump servers, like I said, you want to make sure that if you expect people to RDPN, only RDP is accessible. You want to put it behind the firewall. You want to NAT it. And of course, you want to enhance detection and visibility if you can, wherever you can. So look for, like, even IDs 4624, 4634, 4778. And so I'm a bit early. I actually have time for some questions. Oh. Thank you. Yes. Go ahead. Do next... Oh, the question is, why are... Is do next on the jump box bad? Okay. So do next on the jump box means, like, when an end user remotes into the jump box, they have an interface in the OT DMC already, right? So it makes it very easy for us to start scanning the network. You know, you can just do an ARP. You can enumerate the OT DMC much easier. You don't want to be doing that. You want to have an RDP into something else. Yeah, that would be, yeah, very easy to enumerate. Any other questions? What was the beginning again? Sorry. Oh. Yeah, yeah. Actually, I don't commonly see that, but that's a good idea. He said, do I recommend having separate identity stores between IT DMC and OT? Yes, definitely. Especially, like, Active Directory. You don't want to have Active Directory between enterprise and OT. In some situations, I've seen... Oh, thank you. Five minutes. Some situations I've seen... Actually, OT DMC is work group devices, which makes it, you know, very interesting. Definitely separate identity stores between IT and enterprise. I mean, OT. Any other questions? Got a few more minutes. Go ahead. Yeah, that's why I like it so much. Because it's hard to detect. It really is. So, actually, I created a fork of this tool. Because most of the times on the OT Pentest, we're not even using C2. We're living off the LAN. So, this is where, like, something like URL rules would come in. And I know, like, you know, I work at SE. I know how, you know, for bigger organizations, URL rules is not always the most practical thing to find API calls. Because it's a lot of resource... It's very resource intensive, right? So... But, yeah, you want... I mean, for this attack, you're going to have to detect the C2 beacon first. So, that's your best bet. Aaron, go ahead. Okay. So, yeah. Suspicious SMB pipes. That's a good one. But, again, again, a huge organization. That may be hard to... It's like a needle in a haystack, right? So... But, yeah. Thank you for that input, Aaron. Anything else? Okay. Well, that's it. Thanks, guys.