Password Never Expires Check
Identifies enabled user accounts configured with a non-expiring password
(DONT_EXPIRE_PASSWD).
Prerequisite
Requires a valid Standard User account (authenticated).
Commands run
ad-kit runs NetExec directly:
What it checks
ad-kit lists accounts with the DONT_EXPIRE_PASSWD flag set and reports enabled
user accounts. Machine accounts (names ending in $) are excluded because their
secrets rotate independently of this flag.
How it works
The
DONT_EXPIRE_PASSWD
flag exempts an account's password from password-expiration policy. It does not
by itself mean the password is weak or compromised, but a password that never
expires remains valid for longer, increasing its exposure window if it is
disclosed. Service accounts may legitimately need the setting, but should use
managed credentials where practical.
Why it matters
A non-expiring password that is disclosed or guessed remains usable indefinitely. Reviewing these accounts confirms whether the setting is justified.
Findings
| Finding ID | Title |
|---|---|
| PASS-003 | Accounts Configured with Non-Expiring Passwords |
Tooling
- NetExec: used by this check (
--password-never-expires).