Menu

How do you decide if a PowerShell script from GitHub is safe to run against your tenant?

#azure#redditazure#running#script#something
Reading 0:00
15s threshold

Genuine question for people doing Entra / M365 security work.

When you find a script online, say something to pull inactive users or check app permissions, what do you actually do before running it? Read every line? Try it in a test tenant first? Only trust known authors? Or just run it and hope for the best?

I keep running into this. Half these scripts start with Connect-MgGraph asking for a pile of scopes and I can’t always tell if they really need all of them, or what they’ll do with them once they have them.

Has a script ever done something you didn’t expect? And does your team have any actual rule about this, or is it on whoever’s running it?

Full disclosure, I’m working on a side project around this, but not linking anything. Mostly trying to figure out if this is a real pain or just me being paranoid.

submitted by /u/NathanSecurity
[link] [comments]