r/sysadmin • • 7h 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

21 comments sorted by

•

u/disclosure5 7h 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 7h 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 7h ago edited 7h 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 7h ago

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

•

u/viral-architect Sysadmin 7h 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 7h 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/viral-architect Sysadmin 6h ago

I need to actually get on this and do it one day. The only reason I haven't is because the tedium of filling out the paperwork is more hassle than just logging in and running the script myself.

•

u/luky90 7h 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/TedMittelstaedt 6h ago

This is kind of pointless because whether or not the account doing the installation is a domain admin or a local admin or even a local admin with a randomly generated user ID and password (which presumably you have in some giant database somewhere that is secure as hell) if the software you are installing has a hole in it, and an attacker finds it and escalates on that machine all it really takes is a pwned machine on the network to cause immense amounts of trouble.

Your just moving the "dangerous part if compromised" from one place to another. You still have single points of failure. And when you make things harder and harder to do then humans get creative about finding ways around the annoyance.

•

u/viral-architect Sysadmin 7h ago

I totally understand the concern which is why I automated the health checks with a script. Still sucks because it's the least interesting part of the job, checking that a setting we checked 3 months ago hasn't changed when we are the only ones that could change them lol.

•

u/Kuipyr Jack of All Trades 4h ago

You shouldn't be installing NinjaOne or ANY RMM on a tier 0 asset anyways.

•

u/alexbuckland 7h 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 7h ago

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

•

u/kapshus 7h 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 7h 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) 7h 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 7h ago

We want to prevent unique credentials for scripts and software deployment

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

•

u/Lucky_Pay6675 2h ago

We put our effort into locking down who can edit and push scripts in Ninja instead. A compromised RMM console is way scarier than which account the script runs under.