Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Passwords

Direct answer

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.

When to use this

Use this when passwords are used by systems or stored for people.

First 30 seconds

1. Machine and shared passwords belong in vaults.

2. Rotate automatically.

3. Unique per system.

4. Avoid shared human accounts.

5. Audit retrievals.

Operational verification

password → vault → checkout/injection → rotation

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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.
Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Key commandGet-LapsADPassword -Identity PC01 -AsPlainText
Scope / prerequisiteUse this when passwords are used by systems or stored for people.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Long, random and unique per system.
  • Store in a password manager or vault.
  • Never in scripts or chat.
Key checks
  • 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 typeManagement
User passwordsIdP with MFA, password manager
Shared admin passwordsPAM vault with check-out and rotation
Local admin (Windows)LAPS
Service accountsgMSA or vault-managed rotation
Network device local accountsUnique per device, vaulted, used only as fallback
Application/database passwordsSecret store, dynamic credentials

Aim to replace machine passwords with stronger mechanisms (certificates, managed identities, short-lived tokens) wherever the platform allows.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

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%
Confirmation

Confirm action

Continue?