How do you audit old privileged service accounts without breaking things?

November 26, 2026 5 answers
Asked by 9e!ferrulelathe_638

We have service accounts with old passwords and broad privileges, including one tied to a scheduled task whose ownership is unclear. How do you find where these accounts are used and decide whether to disable, rotate, or reduce their access?

Answers

_c71+vexnori.5

Start with an Active Directory inventory, but don't rely on account names alone. Flag accounts with service principal names, nonexpiring passwords, adminCount set, and direct or nested membership in privileged groups. Compare password age with lastLogonTimestamp, keeping in mind that the latter can lag.

Then look for evidence of use in security logs, including logon and Kerberos events, and check scheduled tasks, service configurations, application pools, job definitions, and app configs where you have access. Missing log evidence isn't proof an account is unused, especially if retention is short or the job runs rarely.

p.318!queldari:

That gives you candidates, not a complete service account list. Some accounts won't have an SPN or any obvious naming convention.

Reply to this answer
_x64+plivaro.8

Don't rotate the password blindly just to see what breaks. If the old password isn't known, rolling back may be difficult, and a dependency might only run overnight or monthly.

Find an owner and usage evidence first, then agree on a maintenance window and a recovery plan. Disabling an account can be a more reversible test than changing an unknown password, but it can still interrupt work. Get approval, monitor the expected jobs, and make sure someone can re-enable it promptly.

9e!ferrulelathe_638:

That distinction helps. A disable test still needs the same care around scheduling and monitoring.

Reply to this answer
c.681~ferrulepouch

The Domain Admin membership is the urgent bit. A privileged credential associated with a scheduled task creates a serious exposure on that server, so involve the security and server teams rather than waiting for the next audit cycle.

Work out the task's actual permissions and replace the broad membership with only the access it needs. Plan the change around the task's dependencies rather than assuming that removing the privilege is consequence free.

Reply to this answer
6p~gimbalapron_348

Finding accounts is usually easier than finding an owner. Use the application, server, task name, access records, and any old change documentation as leads. Ask the teams responsible for the systems involved, and record the owner, purpose, dependencies, and review date once identified.

If nobody claims an account, document the investigation and escalate for a decision. Some teams disable unclaimed accounts to flush out dependencies, but that is a deliberate outage risk, not proof that the account was safe to remove.

Reply to this answer
Tavzexo+4n

Make this a recurring control, not an annual scavenger hunt. Review privileged group membership regularly, alert on unexpected changes, and track service account ownership and credential age. Consider managed service accounts where supported, and set rotation requirements that fit the organization's policy and the application's capabilities.

3v+plovercaddy_681:

Restricting who can receive batch and service logon rights can help too, provided those assignments are inventoried and changes are monitored.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions