Subscribe to the Non-Human & AI Identity Journal
Home Glossary NHI Lifecycle Management PwdLastSet
NHI Lifecycle Management

PwdLastSet

← Back to Glossary
By NHI Mgmt Group Updated June 24, 2026 Domain: NHI Lifecycle Management

An Active Directory attribute that records when a password was last changed. It is used to enforce expiration and rotation logic, so any manipulation of that timestamp can delay or distort the control. Security teams should treat it as evidence, not as proof of compliance by itself.

Expanded Definition

PwdLastSet is an Active Directory attribute that records the last time a password changed, and it is often used by policy engines, scripts, and administrative workflows to decide whether a credential should expire or be reset. In NHI environments, that matters because service accounts, application bindings, and legacy automation often inherit password logic designed for humans, even though their operational patterns are different. The attribute is therefore operational metadata, not a proof of good hygiene by itself.

Definitions vary across vendors and tools because some systems treat PwdLastSet as a compliance indicator, while others treat it only as one signal in a broader rotation workflow. For governance purposes, the more precise reading is that it helps establish a timeline, but not the authenticity of the rotation event, the storage state of the secret, or whether the account is still active. NIST Cybersecurity Framework 2.0 is useful here because it reinforces that identity data must support access governance, monitoring, and recovery rather than serve as a standalone control. The most common misapplication is assuming a current PwdLastSet value means the underlying account is secure, which occurs when automation updates the timestamp without changing the credential or when review processes never verify the actual secret.

Examples and Use Cases

Implementing PwdLastSet rigorously often introduces a visibility and workflow burden, requiring organisations to balance rotation assurance against the operational risk of breaking service dependencies.

  • A team reviews service accounts whose PwdLastSet date exceeds the rotation window, then checks whether the password was actually changed or only the timestamp was modified during an administrative action.
  • An incident response playbook uses PwdLastSet to identify stale credentials that may still be valid after suspected compromise, then cross-checks against directory logs and vault records. The Ultimate Guide to NHIs explains why stale NHI credentials remain a common exposure pattern.
  • A directory hygiene report flags accounts with no recent password change, but the security team validates whether those accounts are exempted, disabled, or managed by a separate rotation system such as NIST Cybersecurity Framework 2.0.
  • An application owner uses PwdLastSet as a trigger for secret rotation testing, then verifies that downstream apps still authenticate successfully after the password update.
  • A privileged account review compares PwdLastSet with login activity and vault access history to spot accounts that appear current but have not been operationally used in months.

Why It Matters in NHI Security

PwdLastSet becomes important because attackers and auditors both look for gaps between policy and reality. If a password rotation program depends on directory timestamps alone, it can miss shadow administration, failed automation, or manipulated metadata that masks exposed credentials. That is especially risky for service accounts and other NHIs, where excessive privilege and weak lifecycle controls amplify the blast radius of a single stale secret.

NHIMG research shows that 71% of NHIs are not rotated within recommended time frames, and that gap is often invisible until a credential is already overused or abused. The Ultimate Guide to NHIs also notes that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, which is why PwdLastSet should be treated as one evidence point inside a broader verification chain. When teams combine it with vault telemetry, account usage, and offboarding checks, it becomes much harder to confuse administrative bookkeeping with actual security.

Organisations typically encounter the operational impact only after an expired or exposed service account starts failing in production or is found active during an investigation, at which point PwdLastSet becomes an unavoidable forensic and governance control.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02Covers improper secret lifecycle and rotation controls for NHIs.
NIST CSF 2.0PR.AC-1Identity and credential management depends on trustworthy account state data.
NIST Zero Trust (SP 800-207)PR.ACZero Trust requires continuous validation of identity and credential freshness.

Use PwdLastSet as supporting evidence in access governance and recovery workflows.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on June 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org