Loading video...

Video Failed to Load

Go Home

Muahaha, interactive Live Response inside of PowerShell!

31,165 views • 9 months ago •via X (Twitter)

24 Comments

Justin Elze's profile picture
Justin Elze9 months ago

Do you do offense full time now?

Nathan McNulty's profile picture
Nathan McNulty9 months ago

🤣

Nathan McNulty's profile picture
Nathan McNulty9 months ago

I read a lot of what the AI reasons about in the terminal, and I've learned a ton about techniques I never would have thought about It's crazy how short that trip is from "I just want this to be transparent to the user" to "I just built an OST" 😂

Fabian Bader's profile picture
Fabian Bader9 months ago

Very cool. One more conference and then I will have a bit more time to add stuff to XDRInternals as well. 😂

Nathan McNulty's profile picture
Nathan McNulty9 months ago

I apologize for the flood of stuff I'm about to push to the branch... I need to figure out the best naming for all this stuff, like the best verbs and heirarchy. I'll publish the few branches, we can discuss whenever :P

Bert-Jan 🛡️'s profile picture
Bert-Jan 🛡️9 months ago

👀

Nathan McNulty's profile picture
Nathan McNulty9 months ago

👀

Mehmet Ergene's profile picture
Mehmet Ergene9 months ago

@BertJanCyber how about sending the same command to multiple sessions at the same time?

Nathan McNulty's profile picture
Nathan McNulty9 months ago

@BertJanCyber I should create a separate cmdlet for that, but it would be very doable The more difficult part of the logic will be tracking API limits or handling the quotas when they are inside jobs and not visible to the user, but I think I can work around that

Mehmet Ergene's profile picture
Mehmet Ergene9 months ago

@BertJanCyber You mean Claude can work around? 🤪

Nathan McNulty's profile picture
Nathan McNulty9 months ago

@BertJanCyber Haha, yeah, it'll do most of the fixing for me :P My current workflow, though could be improved, is to capture via browser using our helper extension, and let AI scaffold the cmdlet. Then I edit and test until I hit issues or big changes, then pass back to AI, then I finish it.

Nathan McNulty's profile picture
Nathan McNulty9 months ago

@BertJanCyber I would say 90% is written by AI, but I delete probably 20% of what it writes by refining things or fixing issues it didn't know about There is no way I could develop this in my free time without AI, the time commitment would be too much For tracking:

Mohamed AbuMuslim (أبومُسْلِم)'s profile picture
Mohamed AbuMuslim (أبومُسْلِم)9 months ago

Red teamer in heart

SecurityJosh's profile picture
SecurityJosh9 months ago

This is cool, can you execute arbitrary PS? (Maybe by uploading the command as a .ps1 file to the live response library and then executing the run command against it in the background)

Nathan McNulty's profile picture
Nathan McNulty9 months ago

The reason they give us a limited set of command instead of a full shell is to ensure commands are pre-meditated, pre-authorized, and consistent But if we have a second shell (or way to bg the current task), then we can definitely do that I could add a special command in shell

Siddart's profile picture
Siddart8 months ago

Nice. How to replicate it? Is there a full guidance? Github repo to understand?

Nathan McNulty's profile picture
Nathan McNulty8 months ago

I implemented as part of our XDRInternals PowerShell module, currently waiting for review but should be in soon :)

Siddart's profile picture
Siddart8 months ago

Thank you

Michael Stewart's profile picture
Michael Stewart9 months ago

This is the kind of quality-of-life improvement that actually changes incident response workflows. The ability to stay in PowerShell without context-switching out to the portal is underrated — especially when you're working at 2am and muscle memory matters most.

Nathan McNulty's profile picture
Nathan McNulty9 months ago

Humans can only click on things so fast, and we are further slowed down by the unnecessary content in the browser Beyond a human being able to grab data, grep, pipe, etc., parts of this module opens an opportunity for application and agent development that we never had before :)

Julius's profile picture
Julius9 months ago

Very useful! Makes it way easier to jump in and investigate and remediate. Looking forward to learning more about this *wink*wink*nudge*nudge*

Nathan McNulty's profile picture
Nathan McNulty9 months ago

I'm working through some of the more complicated stuff like collecting files and proper undo I did add PSReadline so you can tab complete the Live Response commands 🤣

Brett Barton's profile picture
Brett Barton9 months ago

Missing a semi interactive terminal was/is one of my biggest complaints of MDE once we switched off the other guys. It massively complicates and slows down IR when you are trying to stop them from lat moving, encrypting and exfiling your data. Love this!

Nathan McNulty's profile picture
Nathan McNulty9 months ago

Thanks! It's been fun to play with, ran into a few more bugs tonight, so might not be until tomorrow that I get this pushed out for testing :)

Related Videos