Skip to content
Datasheet: How Mirket runs where your identities live

The service account password was set once, at install, by someone who has since left.

A person's password expires and gets changed. A service account's password is typed into a configuration file on the day the system is installed, and then it stays. Here is how to find the ones that have never rotated, how service account password rotation becomes a schedule instead of an outage, and what to do about the tail that always remains.

  • On-Premise

Service Account Password Rotation

  • Discovery first, then rotation
  • Scheduled per account
  • A candidate list you confirm
  • Extensible with an agent you write
  • Scoped as well as rotated
  • On-Premise

Why the one credential that should rotate most, rotates least

A service account is the identity an application uses to authenticate — to the directory, to a database, to another service. It has no person behind it, no phone, and nobody to notice when something is wrong. It often holds broad rights, because narrowing them once meant risking an integration. And its password is frequently the oldest secret in the environment.

That is the reverse of what you would want, and it happens for a reason that has nothing to do with laziness.

A person working at a laptop on an office desk

The same password is in more than one place. It was typed into the application’s configuration at install. Then into a second server when the service scaled out. Then into a scheduled task, a connection string, a backup job, a monitoring check. Nobody kept the list.

Rotating it means changing every copy at once. Miss one and that service fails — maybe immediately, maybe at 2am when the batch job runs. So rotation becomes a coordinated outage with a rollback plan, scheduled for a quiet weekend that keeps getting quieter.

A person’s password expires. A service account’s password is a decision nobody wants to be responsible for making twice.

Microsoft’s group managed service accounts solve exactly this where they fit — the directory rotates the password itself. But they only cover applications that can use them, which leaves the appliance, the third-party product, the in-house system and the cross-domain integration on a password entered at install and untouched since.

You cannot rotate what nobody has listed

Rotation projects usually start in the wrong place: with a list somebody wrote from memory.

Worth knowing why that list is always incomplete. Active Directory has no attribute that marks an account as a service account. It isn’t an object type — it’s a usage pattern. Managed service accounts are the exception and can be identified directly; everything else has to be recognized by the shape it leaves in the directory.

Mirket’s discovery looks for that shape in the same run that finds servers and local accounts. Each account is scored: a managed account, a service principal name, delegation, a password that never expires or has not changed in a year, a name or description that matches your own patterns, an OU where service accounts are kept — set against the signals that mark a person, like an employee ID, a manager, a mailbox, a phone number or a smart-card logon. The weights, the thresholds and the patterns are yours to calibrate, and saving re-scores every run at once.

What comes back is a list to reviewNot a verdict. Each candidate carries its score and the lines that produced it — why this score — plus the risks found on the way, such as RC4 still allowed. A person confirms each one; the decision is recorded on the account. Miscategorizing a person’s account costs more than the automation saves.
Where an account is used, when it can be toldA service principal name says which service is offered on which machine, so some accounts can be tied to the servers they serve. Where that link can’t be established, the result says so rather than guessing.
Service accounts tab of a Mirket discovery run: each account with its score, the servers it serves, risks, password age and decision, expanded to show why this score was given

Some things stay out of reach of a directory-based look: credentials embedded in configuration files, accounts local to individual servers, and the databases that keep their own. Those are found by other means and are worth scoping separately — but the directory-side list is where most estates find more than they expected.

Rotation, and the honest edge of it

Once an account is under management, its password changes on a schedule you set per account — an interval and a time — rather than when somebody is brave enough to run it.

Rotate without touching the applicationWhere the application authenticates through Mirket’s LDAP Proxy, the real password lives behind the proxy rather than in a configuration file. It can change without the application seeing anything change.
Rotate and scope togetherA rotated credential that can still read the whole directory is a smaller problem, not a solved one. The same account can be limited to the source it should bind from and the branch it should read.
The awkward ones, through your own agentNot every system takes a password change the same way. Mirket exposes an API you can build a small agent against, in PowerShell, Python or whatever the team already writes. It collects the credential and the context it needs from the platform and applies the change on the target — so an unusual system becomes a short piece of code rather than a product request.
Scheduled, not rememberedRotation running on its own is the difference between a policy and an intention. Nobody has to learn the new password, because nobody was holding the old one.

It is worth being straight about coverage. No directory-based approach finds every machine identity in an estate, and not every system can have its password changed the same way. What the platform aims at is the large, reachable middle — the accounts the directory knows about — and an API to extend past it where your environment needs something specific.

Bring your oldest service-account password

One account, and the date it was last set. We'll walk what discovery finds around it, what rotation looks like on a schedule, and how the awkward ones get handled.

Administrator reviewing what service accounts can reach in the directory

Why the password stays frozen

Why it persistsWhat’s actually going on
The copies aren’t inventoriedThe password lives in configurations, scripts and scheduled tasks that were never listed. Rotation is an act of faith that you’ve found them all.
One miss is an outageEvery copy has to change together. The first failed rotation teaches the team that the safe move is to leave it alone.
gMSA doesn’t reach far enoughThe directory can rotate the accounts that support it — the appliance, the third-party product and the legacy application can’t use it, and those hold the oldest passwords.
Nobody owns the machine identitiesHuman accounts have a joiner-mover-leaver process. Service accounts have an installer, and then silence.

Find the ones that have never rotated

One read-only query, from data your directory already holds. An account with a service principal name is authenticating as a service, and PasswordLastSet is the day someone last touched its secret.

Get-ADUser -Filter {ServicePrincipalName -like '*' -and Enabled -eq $true} `
  -Properties ServicePrincipalName, PasswordLastSet, PasswordNeverExpires, LastLogonDate |
  Sort-Object PasswordLastSet |
  Select-Object SamAccountName, PasswordLastSet, PasswordNeverExpires, LastLogonDate

Read the top of that list against today’s date. Where PasswordNeverExpires is set, somebody turned expiry off deliberately — because letting the password lapse would have taken the service down with it.

The number that ends the debate. Take the oldest PasswordLastSet on a privileged service account and count the years. That is how long one leaked configuration file, backup or memory dump has been enough to authenticate as that account.

This query only sees accounts with a service principal name, which is a useful start rather than the whole population — the point of discovery is everything this misses.

Where this sits next to the rest

Rotation answers how old is the secret. It sits alongside two neighbors, and they are not the same question.

LDAP Service Account Security changes what the application is holding in the first place — a virtual credential with no directory account behind it — so that a captured configuration file yields nothing reusable. That is the trust-model answer; rotation is the hygiene one, and they work best together.

Privileged Password Vaulting covers the accounts a person uses, where the question is who has seen the password rather than how long it has been the same.

What changes

TodayWith Mirket
The service-account list is written from memoryDiscovery proposes candidates from what the directory actually shows
The password was set at install and never changedIt changes on a schedule, per account
Rotating means finding every copy firstWhere the application authenticates through the proxy, there is no copy to find
One missed copy is a 2am outageRotation is a scheduled operation rather than a change window
gMSA covers some accounts; the rest are frozenThe accounts gMSA cannot reach can be brought under management too
An unusual system means rotation stops thereAn agent you write against the API carries it the last step
Nobody owns the machine identitiesThey are discovered, rotated, scoped and logged in one place

Bring your oldest service-account password.

One account, and the date it was last set. We'll walk what discovery finds around it, what rotation looks like on a schedule, and how the awkward ones get handled.

Mirket meerkat illustration drawn in glowing blue network lines

By continuing, you accept our Privacy Policy and End User License Agreement. We use strictly necessary cookies to run this site. With your permission we would also use analytics and marketing cookies. You can change this at any time from Cookie Settings in the footer.