Skip to content

AD-COMP-02: Computer dormant count should be retrievable

ID AD-COMP-02
Severity Info
Suite Active Directory (on-premises)
Product Active Directory
Feature Computers
Security area Identity lifecycle and hygiene
Resource type Computer
MITRE ATT&CK T1078.002
Reads from On-premises Active Directory

Dormant (stale) computer accounts—enabled accounts that haven’t authenticated in 90+ days—pose significant security risks:

  • Attack vector: Attackers can exploit dormant accounts that may have weak or unchanged passwords
  • Shadow IT: These may represent forgotten test systems, VMs, or decommissioned hardware still in the directory
  • Lateral movement: Compromised dormant accounts can be used to move laterally within the network
  • Compliance issues: Many security frameworks require identification and remediation of stale accounts

Detective

Establish a process to:

  1. Identify dormant computers (this test)
  2. Investigate whether they represent legitimate systems
  3. Disable accounts for systems that are truly decommissioned
  4. Delete disabled accounts after a verification period

This test examines all enabled computer accounts and identifies those where:

  • The lastLogonDate property is more than 90 days old
  • The account remains enabled

The 90-day threshold is a common security baseline, though your organization may adjust this based on your specific requirements (e.g., seasonal systems, remote workstations).

  • Test-MtAdComputerDisabledCount - Counts already-disabled computer accounts
  • Test-MtAdComputerInDefaultContainer - Identifies computers that may be unmanaged

Mito check. Author: soulemike. Open-source licences.

Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).

© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.