HEBook a call
Book a callHE
Blog

Forgotten service accounts in Active Directory: how Defender for Identity helps you find and clean them up

1 November 2026 · Shlomi Fanan

Threats

Defender for Identity doesn’t delete accounts by itself. It shows you which service accounts were forgotten, and you decide what to do with them.

Why a forgotten service account is a risk

According to Microsoft, a compromised account like this gives an attacker a quiet entry point into critical systems, and a way to move across the network undetected.

The relevant Defender for Identity assessments

AssessmentWhat it lists
Remove stale service accounts (preview)AD service accounts with no sign-in in the past 90 days
Dormant entities in sensitive groupsSensitive users and service accounts unused for 180 days
Identify service accounts in privileged groupsService accounts that are members of protected groups like Domain Admins, directly or nested
Service accounts with Domain Name Admin or Global Admin rolesService accounts holding top-tier Entra ID admin roles
Remove stale Active Directory accounts (preview)Regular user accounts with no sign-in for 90 days (added January 2026)

You’ll find them in Microsoft Defender under Secure Score, Recommended actions. The list of accounts updates within minutes; scores and statuses update once a day.

How to clean up without breaking a service

  1. Disable first, don’t delete. Microsoft recommends disabling the account rather than deleting it straight away.
  2. Monitor for a few weeks. Look for service errors, failed sign-ins or an app that stopped working.
  3. Delete only once there’s no dependency. If nothing breaks, delete the account and remove its access.
  4. For an account you still need: take it out of protected groups, give it only the permissions it needs, and restrict where it can sign in.
  5. Replace legacy accounts with gMSA. Group Managed Service Accounts rotate their passwords automatically, which removes the risk of a password unchanged for years.

What you need to get these assessments

Defender for Identity works with sensors installed on your domain controllers, and in some environments also on AD FS and Entra Connect servers. The sensors analyze AD traffic and events and send them to the cloud, where the assessments and alerts are built. Without sensors, these assessments don’t appear.

At OnCloud we deploy Defender for Identity and help you clean up Active Directory: mapping service accounts, removing unneeded privileges and moving to gMSA without stopping services. Want to check where you stand?

Contact us

Sources