06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Offensive Security · John Hammond · · 1:01:52 runtime

Payload Podcast 009 - Steven Flores

In the wiki DEF CON
Transcript 7723 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

Yeah.

It says live. >> It says live. Fingers crossed. >> Does that mean it's live? >> Usually, it takes like a couple seconds, you know, the thing's got to kick on, all the systems, all the like internet pipes and >> Dude, I'm telling you telling me in 2026 it doesn't just do it automatically for us? >> Yeah, it's AI. >> [laughter] >> AI's just talking to each other all over the place. >> It's agents that carry our packets now. >> Dude, I love that actually. I love that. >> Oh, how you been, man? Welcome to the Payload Podcast. >> Hello, hello everybody. Sorry, it's been a minute, you know, there was holidays.

People were on vacation, but we are we're so back. We're back. How's the heat for you where you're at? I'm not going to I'm not going to say where you're at, John, but how's the heat for you where you're at? >> It's been up and down, and you know, I feel like it was pretty hot the last couple days. There was like on my phone an extreme heat warning, but I I'm trapped in, you know, this insane asylum recording studio room that I've chained myself to, so it makes no difference to me. >> [laughter] >> How about you? >> Well, we had a couple good days, but like it's just hot and humid. We're in the upstate right now, so well, I don't really know if we're upstate, you know.

I mean, I've said before I'm in South Carolina. But it's definitely hot and humid currently where we're at, so not ideal. >> Well, we started just a few minutes early cuz we were feeling, hey, you know what? We could do some pre-show banter, but we do have our guest here with us. I don't know if we wanted to queue up tee up a little bit or wait a little bit of time for hey, the party to start. But Johnny, what say you? >> Let's send it. I can I can intro I can kind of introduce our guest today. Today we have a really cool guest.

I remember a couple years ago, I was working at a really cool company, and I was talking to a buddy about like WMI and like payload stuff and the my buddy at the time um was like you should go talk to Steven Flores. Um and Steven is somebody who, you know,

isn't on podcasts a lot. He's very busy

and we're very lucky to have him. So, um and we want to introduce Steven. He His past work is very heavily WMI, very heavily calm, very most a lot of post-ex but also payload development. He has some really cool demos to show us today. He's worked in offensive engineering and security for for ages. Um if you go look at like a lot of the typical C# tooling out there, you'll probably see him as a contributor to that. Um I've known Steven not only from the work realm but personal realm for a long time. For the past 5-6 years, I've also carried him in games like Fortnite, Call of Duty, Warzone, etc.

Um so, he's not a very good gamer but he's a very very good offensive engineer. So, um with all that being said, I say we bring Steven in and we kind of get this thing started. What do you think, John? >> Let's do it. Steven, if you're all good, we can start the party, my friend. Cool. Steven. >> Hello. Thanks for having me. Happy to be here. >> How's the How do you How do you like that intro, Steven? The little uh you know, build you up just to tear you down. >> Yeah, some of that was not true but, you know, we'll let it fly.

>> [laughter] >> Well, dude, thank you so much for for joining us. Kind of like I mentioned, I know you're super busy and so it's hard to catch you sometimes but um luckily for us and also for other audiences like DEF CON, uh you have a you have a talk there coming up, don't you? >> I do, yeah. So, talking this year at DEF CON. Uh definitely excited for it. Last time, I think um it was probably 3 or 4 years ago, Nick and I did a talk but uh going solo this time. >> Yeah, we'll be talking >> you don't know, Nick is Nick is the guy that I mentioned that uh Sorry, it cut out on my end. Is it my internet?

>> I might be lagging. Yeah, no, it might be me. Forgive me, but I was uh saying, "Hey, I know Johnny was throwing around some acronyms between WMI and COM, and I

wanted at least fill in the gaps." I don't know. Stephen, could you give us maybe just even a a quick a quick crash course what the heck all that stuff is. WMI, what's that acronym? >> Yeah, absolutely. So, uh WMI is uh

Windows Management Instrumentation. So, uh it's like a pretty commonly used technology for like administrators, uh performance monitoring, uh and like ever since probably 10 years ago, um it really came into light uh as being used as like an offensive platform. And so, I think like probably the first instance I can think of would be like it like people have talked about in an offensive manner would be Matt Graeber's um Def Con talk in 2015. And so, he, you know, did a lot of like foundational research uh back then as far as like what can be done offensively uh with Windows Management Instrumentation. And so, it like that entire thing is just like a generic wrapper for a lot of other technologies like um so, Johnny mentioned COM, well, there's like also like DCOM, which is Distributed Component Object Model, which is allowing you to uh either like remotely um instantiate like COM objects or COM servers.

Um so, has RPC, DCOM, a bunch of other technologies inside of it. Uh and so, I think one of the things that um attracted me to like be looking at it so much or like put pay so much attention to it is uh there's one like instance that people really paid attention to inside of WMI, and it was just like Win32 process. So, if you if you were to say WMI to probably 90% of people are on the offensive realm, they would just be like, "Oh, like, you know, Win32 uh Win32 process create, right? Like And so, there is a ton of uh like other use cases in there. Um and so, I

find myself looking at it very often and probably should stop because I don't know what else to do with it. But so, but there's a lot of other things that I, you know, enjoy like looking at and researching or something. >> When you look at When you're looking at WMI stuff, um are you looking at it more for local or more remote activity? Because I If correct me if I'm wrong, but WMI used to by default go over DCOM,

but now it's WinRM. And I know like I think in PowerShell if you use the uh WMI object, it goes over DCOM, and then the CIM commandlets are all uh WinRM. So, are you looking at it from just a local perspective or are you I mean, obviously both, but which one do you tend to lean more towards? >> I think like the biggest uh probably use case offensively is going to be remote. Because like most of the time, like in some instances, do you actually find any benefit of doing it locally? But uh like remote just like offers you such a wide like attack surface that you already like basically get locally, right? From interacting just with like the host OS.

>> Yeah. >> So, I prefer looking at it like remotely. >> That Yeah, that makes a lot of sense. It's also nice, too, because I I mean, for those that don't know, WMI is just an It's an abstraction layer above COM. Like a lot of times WMI objects will end up calling COM and call Win32 APIs as well. But it's also like really nice if you can find like a COM method that you want to invoke, but you're like, "I don't want to deal with COM." Um you can just hopefully find a WMI method that will allow you to invoke that as well. So, So, my question A couple questions I have for you as we go into this like from my understanding you do a lot of payload development currently. Um and obviously that's I mean that's going to be a very intriguing conversation obviously cuz we're the payload podcast.

But also uh because in the world of EDRs

today on the endpoint, there's so many different things that you probably have to keep track of, right? Like you have YARA scanners, you're going to have other signature-based detections, you're going to have like um I think I saw a really cool post by Adam Chester recently about like uh EDRs leveraging LLMs. So, I'm curious, could you I I mean you probably can't share obviously tradecraft knowledge etc. but high-level when you're diving into creating these different payloads, obviously it's probably for different environments and organizations. What's your kind of pro methodology when going through and kind of generating that and like I that's an open-ended question on purpose. So, I'm just curious.

>> Yeah, absolutely. Uh so, a lot of people um at SpecterOps are really diving into a lot of EDR stuff right now. So, like that like you said you were mentioning Adam like he's done an extraordinary amount of work. Uh definitely blows my mind with some of the things that he's putting out. Um but also like Lee and Will are also doing some insane stuff as well that um I think that they are probably in the future going to talk about but we yeah, we do spend a lot of time uh looking into like different components of EDRs uh and like developing things around that and like have what we discover uh customizing like the payload that we would uh like deploy in an environment uh around like whatever EDR we can like discover. And so, I think historically you see a lot of like tweets out there publicly and like people saying like oh this will like evade or whatever this will do with X Y and Z and it's like there's a lot more nuance than that and I think a lot of the things that people say are uh they're not really it's not data-driven and the like conclusions that they come to, right?

So, they're like, "Oh, this was able to like get around this." And it's like I uploaded a virus total I I didn't run it against Defender or whatever, but I think uh that there's way more that happens uh with EDRs

uh than people like realize probably. And so, we like a lot of the the way that we've gone about it about it is to be like very data-driven. So, testing a lot of things, minor changes in payloads, different like 132 API calls, what kind of syscalls are we using, how are we resolving like the SSNs for the syscalls, how are we uh you know, one like every no EDR is really the same and like one thing in like particular that I've discovered is a lot of EDRs care about very different things. So, like from I'm sure like one thing that people uh probably have tested a lot would be like Elastic. And so, Elastic's EDR, in my opinion, like not it's not to say that this is like all they care about, but like uh one of the things that they uh detect very well is like

execution and from unbacked like a non-image backed memory. And so, like that will pick up so many like different payloads. So, it's like kind of that instance where like if you were to be testing something in versus Elastic versus like say CrowdStrike or something, uh you would have to really change some of the things that um you you're like doing inside of like your payload or like whatever you're deploying. And so, like CrowdStrike, from my experience, will potentially fire an alert for like executing from unbacked memory, but like it really doesn't care as much about that and a lot of times like that's been fine. Uh so, I think it's really tailoring it to like data-driven decisions from like a particular EDR that you would be going up against.

>> Yeah. Are you noticing like the use of LLMs to kind of cover those gaps? Like for example, like you mentioned that like Elastic's pretty good at like in memory stuff, whereas CrowdStrike maybe not so much, but then like tap on an LLM and maybe they're able to do some stuff on the endpoint to maybe service that a little bit more. Or are they using it more of like kind of like a signature plus plus plus Yara scanner when it comes to payloads? >> Yeah, I mean I think uh in age of AI, right? There's so many like everybody not even not just offensively, but defensively as well is employing some sort of AI aspects. So, like ML uh

scanning uh is definitely like pretty popular, pretty common. Um And so that's even like that's just on endpoints and not even Sorry, not even only on endpoints, but like even in like cloud-based stuff, right? So, like you can find a lot of from like an EDR on

disk, but there's way more stuff that you will probably never see like from like an offensive perspective. >> Sure. >> Um from like just the capability that somebody like probably way bigger and more uh sophisticated things than I would even imagine. >> Yeah. In when it comes to the continuous progression of this, cuz I'm sure like, you know, 5 years ago when you were writing payloads versus now it's gotten significantly harder. I'm curious in like it's easy to say it's gotten harder, but in what ways has it gotten harder? Is it more of like, okay, we need to do a stage one and then immediately split off to a stage two? Or

are you having to set persistence and then do something? Does that make sense? Like what's the post activity that you're having to kind of any You don't want to share, that's fine, but like what are you seeing in terms of payload development of okay, you you drop and either how fast you having to move and in terms of or are you having to execute something else super fast in order to keep the callback alive? >> Yeah, I mean I think uh yeah, it definitely has gotten more difficult, which is you know, by design, right? We're trying to make everything more secure and better and this is I mean, like effectively why, you know, we share as much as we share is because we're trying to move the needle in the security realm, but it definitely has gotten more difficult. You have to be I would say a lot more mindful of the actions that you take. You can't just be firing off like commands or like executing things just at like as you want. You have to have like a very specific reason of why you do something.

And so I think and also like the context of things where you do certain things, you know, with the because like the EDRs are like collecting just massive amounts of data and so they're correlating different activities. This is like really where like the you know, detections come into play. And so uh I would think that before like in you know, AV days like 10 plus years ago, it's like you could as long as you're like from a heuristic or static detection didn't get picked up, whatever payload you dropped like you were pretty safe. And now it's like everything that it is

you know, that you do is going to be monitored in some way and potentially correlated. So I mean, before uh you could I even less

than five years ago, you probably just run like mass LDAP collection in an environment and be fine, but now it's like you have to think about like the context of what like where that is executed from, what the actual LDAP query looks like. Uh like every piece needs to be like thought of and examined if you're not like if from from an evasion like perspective. Uh like what is the the tool that you're actually running that from? Is it going to be like a script? Is it going to be a done assembly? Is it going to be native code? Is it going to be like a bomb for something or >> Yeah.

>> Um every piece I think should be thought of and needs to be taken into consideration. >> When it comes to like execution of payloads, obviously there's going to be like trial and error, right? Because it's like .NET payload might work or for for some reason or might not work for some reason. My question next is when it comes to those trial and errors, how are you dissecting what part of the payload didn't work or whenever you're on an assessment and a payload is kind of detected or it terminated immediately, are you immediately pivoting to a whole different infrastructure in terms of a payload and instead of like .NET doing something in a different language or whatever it is or you trying different strategy in terms of okay, like last time we said a persistence that didn't work. Okay, now we're going to try to inject. Um, does that make sense? Like what's kind of the strategy you guys you kind of follow whenever looking at that?

>> Yeah, I mean I like the idea of having multiple things lined up. Now like operationally, that's definitely easier said than done. Um, but like like I was saying before, we try to like whatever we build a payload, we do a lot of testing uh beforehand even like when there's not an op going. Like this is kind of like what me and my team do. Like me and Nick heavily are uh testing things in like labs just to see like what does this actually look like as far as like detection would go. Uh just to see like what are potential indicators or what are potential things that would get picked up. And um so we kind of uh we have like an entire like payload building pipeline that we go through and like options. Now one of the things I'm like looking to do is like have pre-selected options so that people can like tailor uh payloads that are built more toward like what are defensive products that you would come against. But um I mean uh for us for like initial access uh in particular um like we want to live in things that

are uh pretty common in the environment

uh or we would assume are pretty common in the environment, or are um like just very benign-looking. Um and so

that's kind of like a generic way I don't want to give away too much, but >> Sure, sure, sure. >> So like very like specific payload types. Um and so like, you know, one of the ways that uh like just a public example about this was like that that talk that Nick and I did at DEF CON where we were taking either um expose or like known signed .NET assemblies and turning them into ClickOnce payloads. >> Yeah, yeah. >> So that way we could like live within like signed code, or um taking existing ClickOnce payloads and like backdooring them. Uh and so that's kind of like what our goal is is to have like high-reputation things that we um live in so that it's like hopefully not examined as closely.

>> I'm dropping your and uh Nick's ClickOnce talk. I found it. Um

Here. Let me put it in the chat for people. For those that don't know, Steven, when he says Nick, it's uh

>> You can find him Nick Powers. >> The Nick Powers. Uh also really, really huge on um I mean, that's a massive link. That's not what should have happened. Shout out Shout out Google. That wasn't All right, hold on.

My goodness. Why do I have to click four times to get a proper link on Google? This is ridiculous. >> Yeah, is this your first time learning how to Google things? >> My goodness, first time I should have AI do it for me. That would have been faster. Oh my goodness. Um but Nick Nick also is a guy that we want to have on the podcast, but he does a lot of payload development, does a lot of like lateral movement stuff as well. So very, very smart guy. But here's a really good talk by them from uh DEF CON 30, it looks like, on that ClickOnce stuff. So um yeah, another I want to shift gears and ask kind of like a you know, somewhat of a spicy question here, right? Because you've been and this isn't about your COD or lack of Fortnite skills.

But, you know, you've been in the offensive realm for a long time and one thing I think the defensive community has benefited from, especially from companies like SpecterOps, is the open source development of offensive tooling, right? Because that has helped the understanding, helped the development of

uh, defensive tradecraft, etc. And for like I have a pretty hot take that like the defensive, uh, realm currently is like vastly behind the offensive tradecraft realm. So, like any help that we can get, that's that's super valuable. Um, but I would argue that the offensive engineering side or you know, what you do, you guys don't benefit as much from defensive open source development. And what I mean by that is you're trying to work on these payloads, trying to do these things. Sure, it's for an assessment, but ideally you kind of want these payloads eventually to be caught, right? You want at least maybe not the payloads themselves, but the activities you perform, the tradecraft that you perform afterwards, because that shows that someone's infrastructure and organization is like really locked down.

Would you like to see, and if so, what type of more defensive open source development or at least a version of that from bigger companies like, you know, that have EDRs, right? Because it's hard, right? Because you don't want to just like give a full EDR infrastructure to offensive people and have them tear it up. But, it it it but like used properly, it does help inform defensive

you know, it might take a little bit to get around the circle, but but it does come back. Um, what would you like to see more there? Do you think it's already fine how it is? >> Already fine how it is, probably not. I mean, there is like, uh, I mean it's so going back to like your original point. It it is uh great.

>> Or do you just use John Mon, you know, to help you out? >> Mon is spicy. >> [clears throat] >> Picking up everything. Um yeah, I mean, I think it like it's frustrating at the same time, but also good to see that like things that once worked don't work anymore because it's you know, being taken seriously. Like Like I was saying before that like ultimately our goal is Sure do we want to be uh successful from a red side on

our engagements, but like ultimately at the same time you don't want to be because you want these like you know, organizations that uh you know, housing very sensitive data to like be more secured as well, right? So, uh I think that there is There is a lot of people that are doing really awesome work in the open source community. Um but there probably could be more. I mean, it's >> Sure. >> I think the the problem about that though is that like uh it's just like this back and forth. Maybe it's not a problem, but it's just like a back and forth where somebody puts out like YARA signatures or some sort of detection engineering and then like day one as soon as that gets put out, people are trying to like find bypasses. So, like I think that you know, we're a sparring partner with uh the defensive side. So, we definitely want to always be you know, pushing things as far as we can so that um

like whatever detections would exist, there would be like no way around it. >> What What have you noticed has been the most beneficial for you in terms of the offensive realm if like content sharing what like was not better, but you know, your preferred method like Obviously detections are cool, right? Because it's like, okay, we can detect this thing, right? Or a behavior-based detection, whatever it is. It's like well, to your point that's just going to someone's going to try to find a way to work around that or use the If someone's doing like code injection, great. I'm going to use like Halloween instead or I'm going to go do that thread suspension.

You [clears throat] know, I'm just going to use one of the other 25 injection techniques that are out there. >> Yeah. >> But more of like what have what have you seen whenever that information or knowledge is served to you, you feel really does help elevate the knowledge of the offensive realm so that you can try to kind of push that tradecraft further to in turn feed over to the defensive realm so they can they can get better. >> Um I mean, I feel like I said there's a multiple people that are putting out like open source things that um you it's like uh you kind of you constantly think of like well, how can we, you know, get around these particular detections? Sometimes it's like easier said than done.

>> Yeah. >> Like one thing I I'm sure a lot of people do this. One thing I do like doing is going and looking over Elastics. >> Yeah. >> I mean, plenty of mention to them, but Elastics behavioral rules and Yara rules and I mean, they have a lot of great detections on there and some of the things are like pretty difficult to um get around. >> Cuz they open source >> Yep. >> so much, I believe, right? >> they put out a lot out there. And I mean, that's not even Elastics, but they like there is so many different Yara rules out there that are public. Uh and a lot of them like aren't even like really well-known, but they do like do a really good job at detecting like other particular agents or particular activity, post-sex activity. Um so I think that like it I think it'd be nice if there was a like repository that uh had just like an insane amount of like Yara rules that were like public.

>> Mhm. >> Like outside of just like Elastics and like some of the bigger names, uh but like what other people were doing just to see if like, you know, what is uh the defensive community from an open perspective like really putting out there. I think that it's just like too distributed and like not easy to find outside of like the bigger name ones. >> Yeah. >> It's like what outside of Elastic and like Florian Roth's uh like repos, most

of the other ones are pretty like small and like not really um looked at probably. >> Yeah. Well, all right audience, there you go. If you want a project, have good old AI YARA or Coda straight up make great repos and pick it on the one for even over here talking about. >> Yeah, give us one massive YARA repo to look and create more YARA rules. >> [laughter] >> So, what you know, I know you have your DEF CON talk coming up. Um I want to kind of obviously don't overshare because, you know, you have your talk, but if you want to you mentioned that you had some demos. So, I want to make sure that we have some time to kind of dive into that. If you want to dive into that research um and make show some things off, that'd be uh more than welcome.

>> Yeah, absolutely. Uh I could definitely share um my screen. I'll So, give a little background before uh sharing anything. So, uh like I was talking about before, uh WMI has always caught my attention. Um probably a little bit less now that I don't really know what else is there to like do with it after this next talk. But um like the general basis behind it is like ex- I was looking to maximize the amount of things that you could do with like post-sex activity inside of WMI. >> Are you saying you're WMI maxing? Is that what you're >> I'm WMI maxing, yeah. >> Okay, I like that.

>> for real. >> [laughter] >> Um So, looking to maximize the amount of things that you could do cuz we you know, we want to do things remotely. Um and so, the whole premise behind this was like

if we wanted to do other post-sex activity as it stands right now, Uh and you're in an environment like what that normal that normal process looks like what we would do is you move laterally from like say host A to host B. And so you have to like shuffle a uh payload uh over to the other host that you want to move to, get it to execute, establish communications, and then go and like do some post-sex activity. And then uh if you don't need to do anything more there, you would like exit that payload and everything. So like a ton of activity has happened to that point.

Now, I'm not saying that like this research I've done is like not also a ton of activity happens, but it's it's different and it allows us to uh perform different post-sex capability uh on remote targets without having to establish new agents. >> Mhm. >> That was like really what I was looking for is like I want to run a .NET assembly on a remote target and I don't want to have to get an agent on that target. So like that's kind of where

my mind went with this. And so there's actually two different ways uh that there's two tools that I'm releasing and there's two ways that it will be done. Um but I'll show give a little >> So essentially it's you're looking for native capabilities on a remote host through WMI that allow you to execute .NET um given whatever it is you want to do without having to drop an agent in turn not having to get seen by EDR agents.

>> Yeah, well just uh offer uh a different way. I don't know. I think I need to In order to share my screen I might need to rejoin this. But offer a different way um to um you know, do post-sex activity remotely on other targets. So not just like not purely through an agent right now. So like uh as I was saying like if I want to run a BOF, I need you know, a COFF loader, right? And so as it stands right now, uh you can't like what you could do is drop a cough loader on disk. I wouldn't recommend it, but you could drop the cough loader, drop your object file your buff on there and execute that. Um and so, like that's not ideal.

Or you could get a agent on that target and, you know, establish comms. You have another you know, depending on like how it's how it's communicating, either like an SMB session, TCP, whatever, or like another outbound HTTP connection or whatever channel you're using. Uh and so, that's just like the comms piece network portion of it uh I think it's like a huge indicator for a lot of like detection capab- like detection opportunities. So, like to mitigate that, uh it's kind of like, well, I don't want to do either of those. I don't want to drop something on disk and I don't want to get an agent.

So, what can I do? And so, like the whole purpose of this is like, let's WMI max in 2026. And uh yeah. >> Please tell me that's the name of the talk. >> In in hindsight, I wish it was. I'm going to have to go and >> Missed opportunity. >> [laughter] >> Missed Did you say you have to re- You have to restart the stream in order to share? >> Potentially. I'm trying to share my screen. >> Or just hack your way through so it's not a big deal. >> Yeah, let me uh try and hack it. Yeah, I think I need to restart my uh >> That's fine. I can I can banter with myself for the next 30 seconds. Hopefully it doesn't take too long.

>> Okay. Give me hopefully a few minutes. >> Okay, cool.

Well, everybody the podcast is now officially over for the day. No, I'm just kidding. While Steven is uh building things back up, you know, this is pretty cool to hear because I think one of the things when it comes to offensive capabilities, what people are constantly trying to do is um Oh, he's already joined. That was quick.

I think. Let's see. Maybe not.

All right, not yet. Anyways, one of the biggest things is wanting to be able to use native capabilities in order to uh perform actions just because it does help fly under the radar anymore. There's always There's that that old conversation, right? Where it's like is this an adversary or is this a drunk admin? And you'll see that a lot across um a lot of organizations, especially those that just kind of allow applications to run. Um but if you can use something that's actually it's actually a deeper level than like uh an application being able to ran run like RMMs. RMMs are huge currently, as many people know. Um but if you can do something even natively to the operating system, the impact of that is pretty massive.

Um simply just because you can do that across all different devices and you're not having to be like dependent on a specific application. So, excited to see what Steven has here. Let me see if he is back. Let's see. For those curious, this is kind of how he drops when we're playing Call of Duty or uh Fortnite as well. He just leaves me hanging, but >> [laughter] >> I think you're using your other mic again. I >> Uh I don't think so. >> sound like Nick on the games over here. >> Oh, no. I think I'm using the right mic. >> No, you're good. You're good now.

>> Okay. Okay. Uh I don't know why. I'm going to look for >> Ben, I see your comment about I need more stuff on my shelf. You know, you're probably right. I need to like build out this office a little more and put some cool stuff on the wall. Um but uh I just don't I always like am about to buy something cool and then I just kind of What I'd really like, not that anybody cares here, but I'll tell you is I want There's this really cool image out there of my favorite gold tender going across the ice to fight somebody, but I can't find a good image of that to put on my wall. No one's built a poster for you yet. One day though, uh but maybe I'll put some figurines up there at some point.

Are you cooking, Steven? >> Yeah, I'm trying to figure out um why this window is not showing up.

>> Let me see. I don't think it's anything on my end. Let me make sure you have proper settings. You do. >> It's I'm trying to share my RDP session and I don't see it on the Windows

uh available.

>> Let me look if I go to share uh I think one thing that I noticed a long time ago when it came to sharing screens on this is I don't know if the screen's minimized, but it like for me it always had to be maximum like not maximized, but had to be completely open and then you switch back over to recent screen and then it pops up. >> So, you need to be screen maxing? Is that what you're saying? >> Screen maxing. That's right, dude. Screen maxing. >> Um okay. Uh maybe it's because it's on a different desktop. Maybe that's probably why it's not liking it.

Let me try that.

And that is the reason. Okay. >> You want to see if he's cooking? He's cooking. He's cooking. Let me add him here. Okay, I think we can see it. Everybody, let me know if you can see this well. If you wouldn't mind, John told me this trick, zoom in for people with bad eyes. >> Okay, let's see. I think Yeah, here we go. >> There we go. He's cooking. Yep, that's great. >> All right. So, um like I said, one of these things is like um basically uh there's two tools that that um I will be mainly talking like two concepts uh two tools that are being mainly talked about.

Um and so one of them both of them are on WMI, but um, one of them talks or is going to be about introducing nothing new on target to um, whatever your host that you're targeting. The other one will be introducing new things. And so uh, if you've ever used Impacket before, there's a utility or tool called SMB client. So this gives you um, you know, you can do like a lot of things, uh, upload files, uh, download files, browse like an SMB uh, like share, like, you know, things like that. So this is kind of like a an implementation of SMB client uh, through WMI.

Um, so as you can expect, it's called WMI client. Uh, and so this offers a lot of the same functionality um, with a few extra things that um, we can get through like WMI. So we can like, you know, list directories, upload, download, um, we have help. We can um, download files. Uh, so I think one of the things that uh, people uh, probably didn't pay attention to, but there was uh, an old uh, GitHub gist that I found

probably like a couple years ago or something. Uh, from uh, Matt Graeber who

had a um, PowerShell snippet that could download files over WMI. Uh, and so like historically for downloading and uploading files uh, over WMI only uh, would require like an event subscription and like use like doing the script uh, script host consumer. Um, so I wanted to be able to upload and download files uh, over WMI without an event subscription. So um, this this code will use that for um, downloading files and uploading files. I did find a new class that does offer the ability to um download files over WMI

and that's like one of the things that will be like talked about uh like one of the minor things that'll be talked about. But there's a lot of capability that comes with some of these WMI classes that I don't think people are giving attention to. So like I said, uh this is going to um I didn't add it to the help yet. Uh this is going to offer us two more commands that uh you would not have in something like uh SMB client or really any other uh WMI tooling out there publicly. So there is an execute assembly. So this will allow us without dropping anything new on disk, purely over WMI to execute an assembly. And then um I forgot to add it to the help, but you can also you can execute a buff as well. So we have I have uh >> I see you're able to disable ETW and AMSI there, too.

>> There is some tampering things. So uh Yeah, I don't want to like >> Sure, sure, sure. Don't dive into it if you can't, but >> up too much. >> I'm just pointing that out that that's pretty sick if you if you can do it through this. >> Yeah, there is some tampering things that uh this does employ um for like some of the reasons some of the things that we have to do to order for this to happen. But so say if we uh

we'll do Rubius. So if we do something like triage, we like have to load it into memory into the WMI PRVSE process, uh which is like what we're executing remotely. And so like we are getting um execute assembly opportunities. Uh so we're executing assemblies on remote target without having to get an agent on there. Without having to drop anything on the disk. And so we're doing this all inside of like the WMI process. And so um this is alternatively, one thing that I particularly like is um

Let's see. Here we are. All right.

I think that's the means. So, alternatively, we can execute bonds remotely on targets. Um >> And you don't have to like you're not like embedding a cough loader or anything with this. It's just >> I mean, there is a cough loader, but it's all inside of the WMI process. >> Oh, wow. That's sick. >> So, we don't actually have to like do anything We don't have to drop a cough loader on disk. We don't have to drop an a bond on disk. We don't have to drop a done that assembly on disk. It's all just being loaded and like staged into the WMI process, and then we're executing it that way.

>> That's nasty. That's really cool. Have you um If you scroll up scroll up a little bit, one of the questions I had uh when it came to like the outputs um oh, SPL. Is that's script block like that's that's PowerShell stuff. Okay, okay. I was curious what the SPL flag was for. >> Yep. So, we can check uh if script block logging is enabled on a target before like doing any activities. >> Are you One thing I have a question about is when it comes to like stuff like this before you laterally move or before you're able to like before you Do you ever um look at uh remotely what ETW sessions are

running and what providers they're consuming from? Um cuz I remember I shared with you like that remote EDR stuff a long time ago, but I'm curious that can be actually be used as you know for like enumeration from an offensive perspective. Um do you guys ever really use stuff like that to do enumeration on the remote host or sometimes you just kind of send it? >> Um Yeah, I mean there's some people I should probably shouldn't say who, but people have that created some pretty uh interesting uh situational awareness of bots internally as spectrums. Uh and I believe that they've done a lot of like it very interesting identification techniques of like what exactly can like pick up activity that you're doing.

>> Very cool. >> Uh and so um I think that like those are probably the best avenues. Um but again like I it's not I didn't make any of that stuff, so I talk too much about it. >> Uh we just got a question from somebody. Are you Is this requiring a privileged user or is this just like a medium um intermediary level user? >> Yeah, so in order for you to uh authenticate uh remotely over WMI, you're going to have to like it's using DCOM, right? Or like practically RPC too. So uh DCOM uh like authentication is going to

require like a privileged user. So think of like if you were to uh there's well there's a big asterisk to this that I just recently found. But there's no really known way outside of RDP to execute code on a remote target without privileged access. Um so but there might have been something that I just discovered recently that actually might change that. But I'll hold off on that for a little bit >> [laughter] >> I'm not trying I'm not giving away too much Austin. >> Uh well cool, awesome. That's that's very cool. So is this you mentioned that you had uh more to this. Did you want to keep going on this a little bit? Show it off.

>> Yeah, so um the second tool is similar, but

>> If you woul

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 538 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks