Use this when passwords are used by systems or stored for people.
Passwords
Passwords as managed secrets should be long, random, unique per system and stored in a password manager or vault, never in scripts, configuration files or chat messages.
1. Machine and shared passwords belong in vaults.
2. Rotate automatically.
3. Unique per system.
4. Avoid shared human accounts.
5. Audit retrievals.
password → vault → checkout/injection → rotation
Context & applicabilityCommon mistakes · platform/version boundaries
- Passwords in scripts, config files or wiki pages.
- Shared admin passwords never changed when staff leave.
- Same local admin password on all machines — use Windows LAPS.
- Service account passwords that never expire and are known by many people.
Operational reference
Fast context before you go deeper.
Get-LapsADPassword -Identity PC01 -AsPlainTextVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
Get-LapsADPassword -Identity PC01 -AsPlainText # Windows LAPS
Get-ADUser -Filter {PasswordNeverExpires -eq $true} -Properties PasswordLastSet
Accounts with old passwords that never expire are candidates for rotation or conversion to gMSA.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Long, random and unique per system.
- Store in a password manager or vault.
- Never in scripts or chat.
- Password manager/vault for shared accounts — storage
- Service account password rotation — schedule
grep -r -i 'password' <config dir>— plaintext in configs
ReferenceWhy it matters1 section · depth on demand
Managing passwords as secrets
- Generated (20+ random characters) and unique per system and account.
- Stored in a password manager or PAM vault, shared through it — never in spreadsheets, wikis or chat.
- Check-out with logging and automatic rotation after use for privileged accounts.
- Removed or rotated when staff leave.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Passwords as secrets include human account passwords, service account passwords, shared device credentials (network devices, BMCs, appliances) and database passwords. Machine-used passwords are especially risky because they tend to be long-lived, widely shared and embedded in scripts.
| Password type | Management |
|---|---|
| User passwords | IdP with MFA, password manager |
| Shared admin passwords | PAM vault with check-out and rotation |
| Local admin (Windows) | LAPS |
| Service accounts | gMSA or vault-managed rotation |
| Network device local accounts | Unique per device, vaulted, used only as fallback |
| Application/database passwords | Secret store, dynamic credentials |
Aim to replace machine passwords with stronger mechanisms (certificates, managed identities, short-lived tokens) wherever the platform allows.
Tools
| Need | Tool |
|---|---|
| Team passwords | Bitwarden, 1Password, Keeper |
| Windows local admin | Windows LAPS |
| Privileged accounts | CyberArk, Delinea, BeyondTrust PAM |
| Application secrets | Vault/OpenBao, cloud secret managers |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Secrets Management → Passwords. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html · confidence 94%