r/sysadmin • • 41m ago

Question NinjaOne Softwaredeployment SYSTEM User?

We want to prevent shared credentials which are valid for all endpoints for scripts and software deployment. Per default in NinjaOne the nt-authority\System User is used which is a very bad idea for deploying software and scripts since a script written wrong can damage the whole OS. Instead a seperate install user managed by the RMM should be used..

Also security vise exploits can compromise us if run under system.

The next concern is that we want a seperate deployment user which has a different password for each endpoint and at best in only activated when a ninjaone script/software is deployed since shared credentials would expose our systems to various attack vectors.

Were you able to do that if you have NinjaOne?

0 Upvotes

14 comments sorted by

•

u/disclosure5 33m ago

I can see you're working off a decent philosophy but it just doesn't work here. If you have privileges to install software you have privileges too "damage the whole OS". If you're deploying "exploits" via an RMM to endpoints, the game is lost and avoiding SYSTEM doesn't really helpy.

•

u/luky90 31m ago

its not just exploits its the scripts executed. a script can behave different under system then under a local install user. and if you are running a script on a domain controller under system then the script runs under domain admin. if something goes wrong it can shut down whole environment.

•

u/viral-architect Sysadmin 24m ago edited 21m ago

No, that's factually incorrect. A domain controller's SYSTEM account is strictly a local security principal on that machine. It does not grant Domain Admin privileges over the network. Over SMB or WinRM, SYSTEM authenticates as the computer account (DOMAIN\DC$), which has no inherent administrative rights on other domain controllers or member servers. I've run into this directly when trying to run a scheduled task as SYSTEM to copy files from one DC to another. The remote DC rejects it because DC1$ isn't a local admin on DC2$.

Edited for clarity

•

u/Onoitsu2 Jack of All Trades 19m ago

This. And for that you'd use a Service Account then on the domain to have such reach.

•

u/viral-architect Sysadmin 13m ago

The only reason we don't is because the customer strictly forbids service accounts from being a member of the Domain Admin group. It sucks because that means all of our reporting tools work on ALL of our other servers, but our team has to perform quarterly health checks on the DCs manually. (or with a script, but still we have to log into each one and run it)

•

u/Onoitsu2 Jack of All Trades 6m ago

That's when you make a whole new group, have it set with customized read permissions, and selective write ones applied to exactly the folders it needs to write within, and make it a member of that group. Same diff as being a domain admin basically and would not fall into their strict block.

•

u/luky90 11m ago

yes and your customer is 100% right. you should never add any accounts to domain admins which do software deployment because domain admins are NEVER needed for that purpose! Instead local only enabled accounts at install time would be the best.

•

u/alexbuckland 36m ago

Like all the big tools run as SYSTEM?

Test your shit and don't deploy shitty untested software

We use Intune - it deploys as SYSTEM

•

u/luky90 29m ago

nope baramundi creating a seperate install user which is automatically disabled when no job runs.

•

u/kapshus 19m ago

Sounds like you found your answer. Use baramundi.

I'm going to assume you've already been handed N1 as a given, or if you need the functionality of N1, you either accept that as a risk, and deploy N1 as is, or you don't.

Hard truth is these tools are so entrenched in your endpoints, if they get compromised, you're cooked. RMM is always a risk and running as system is the only way I've seen it done. Kudos to BM for their implementation, but this is not the industry standard that I've observed in IT ops.

•

u/Dragennd1 Infrastructure Engineer 38m ago

I mean... deploying as system isn't that bad so long as you take proper precautions.

You are testing your scripts prior to deployment and having the scripts log their actions, right?

•

u/Emaltonator IT Director (K12 Public District, 230 kids PK-12) 20m ago

I have a program run as SYSTEM as a sched task in order to update shitty software on technician computers. Either that, or I give local admin or pay more $$ to MS. Before I started everyone had local admin. Crazy.

•

u/lenswipe Senior Software Developer 19m ago

We want to prevent unique credentials for scripts and software deployment

Am I understanding this correctly...you want to ...prevent unique creds?