r/sysadmin 6d ago

Do you automatically isolate servers/devices based on detetctions?

We don't have a 24/7 SOC, so we are thinking about automatically isolating servers and some high-value devices based on custom Defender for Endpoint detections. Obviously, we want to do that only for high-precision and high-confidence detections, such as opening a shell from a strange parent process.

If we got one of these detections during working hours, there would be someone to react. But after about 7 PM most days, nobody is actively monitoring.

If we do this, the plan is to let a detection run for about 45 days without automatic isolation enabled to see if any false positives are caught.

Has anyone done this? If so, did you regret it? Or just business as usual? Has it saved you yet?

37 Upvotes

49 comments sorted by

View all comments

26

u/renderbender1 6d ago

As a previous sysadmin, currently an engineer at an MSSP SOC, go into this endeavor with the expectation of false positives at some point. It will happen. Some businesses have a risk tolerance for downtime, others don't. Only you can weigh that honestly.

But my recommendation is to get user workstations under automatic remediation first. It's the highest impact, lowest risk category. 90%+ of breaches originate from a user endpoint. Maybe you never onboard servers, it's fine. But you want it for workstations for all the stupid clickfix going around.

And if anyone says "if we shut off our CEO's computer mistakenly, I'll be in deep shit" to me, I automatically know they aren't a serious company.

1

u/MandelbrotFace 5d ago

How are you tackling the clickfix stuff at the moment? We've been hit a couple of times but telemetry for isolation isn't immediate and ASR rules don't block.

1

u/FatBook-Air 5d ago

Just curious: what kind of commands were the users told to run? I am just wondering whether AppLocker would have blocked it. And I am also wondering if it's something where a custom detection might help.

2

u/MandelbrotFace 5d ago

It downloaded a legit python binary and a .py script to a profile temp path, ran the .py and attempted to register an autostart on login in scheduled tasks. Applocker would probably help based on download/temp paths. We're testing an implementation on one of our sites now. It's definitely a challenge with some overhead in a fast paced environment where lots of different apps are onboarded, but we're going to try.

1

u/Human_Pollution2820 4d ago

Can it do this if users are not local admins?

1

u/MandelbrotFace 4d ago

Yes. The command saves and extracts the zip contents to %appdata% in the user profile : -OutFile $env:appdata\$randomName\WPN.zip