Use it when defining standards for device and user credentials, or auditing devices for weak or clear-text passwords.
Password Policy
A password policy sets the rules for credentials: minimum length, complexity, how often and when they change, how they are stored, and when a second factor is required. On network devices it covers local accounts, enable secrets and service keys.
1. show running-config | include username|enable — any type 0, 5 or 7?
2. Replace with username <u> algorithm-type scrypt secret <pw> and enable algorithm-type scrypt secret <pw>.
3. security passwords min-length <n> set?
4. login block-for <s> attempts <n> within <s> against guessing.
5. Admin logins through AAA with MFA where possible.
policy defined → long unique secrets → stored as strong hashes → login attempts limited → MFA for privileged access → credentials changed when compromised
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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.
Subtopics
Go one level deeper into this subject.
Password complexity rules require a mix of character types; current guidance (for example NIST SP 800-63B) values length and blocking known-breached passwords more than forced complexity.
Subtopic LengthPassword length is the strongest single password control: longer passphrases (at least 12–15 characters, more for administrators) resist guessing and cracking far better than short complex ones.
Subtopic Password RotationPassword rotation forces periodic changes; current guidance recommends changing passwords on evidence of compromise rather than on a fixed schedule, because forced rotation leads to weaker, predictable passwords.
Subtopic Secure storageSecure storage means passwords are kept only as salted, slow hashes (on IOS type 8 PBKDF2 or type 9 scrypt, never type 7 or plain text) and secrets are managed in a vault, not in scripts or shared files.
Subtopic MFA for Network Device AdministrationMulti-factor authentication for administrators of routers, switches, firewalls and wireless controllers: where the second factor is enforced (AAA server with TACACS+/RADIUS, VPN, jump host), Cisco IOS/IOS XE AAA configuration, timeouts, SSH behaviour, break-glass access and verification.
Subtopic Certificate-Based LoginCertificate-based authentication replaces or supplements passwords with a private key and an X.509 certificate issued by a trusted CA, for example for 802.1X EAP-TLS, VPN or SSH.
Subtopic Biometrics (CCNA)Biometrics authenticate users by fingerprint, face or other physical traits, usually as one factor in multi-factor authentication or to unlock a stored credential such as a passkey.
Current guidance (NIST SP 800-63B) favours long passphrases, checks against breached-password lists and MFA over forced periodic changes and complex character rules. On Cisco IOS: enable secret and username ... secret with type 8 or 9 hashes, security passwords min-length, service password-encryption only hides type 7 (reversible).
show running-config | include username|enable— hash types used (9 or 8 good, 5 weak, 7 reversible, 0 clear text).show running-config | include security passwords|login block— minimum length and login blocking.show running-config | include password— clear-text or type 7 passwords left on lines and keys.show login— login failure blocking settings and state.
ReferenceWhat it is1 section · depth on demand
Device password policy (Cisco IOS XE)
security passwords min-length 14
enable algorithm-type scrypt secret <secret>
username admin privilege 15 algorithm-type scrypt secret <password>
aaa new-model
aaa local authentication attempts max-fail 5
login block-for 120 attempts 5 within 60
service password-encryption ! only obscures type 7; not real protection
Documented example, not captured output. Prefer central AAA (TACACS+/RADIUS) with MFA for admins and keep one local break-glass account.
ReferenceWhy it matters1 section · depth on demand
What it is
A password policy sets how passwords are created, stored and changed: minimum length, blocklists of breached passwords, MFA requirements, lockout and storage format. For network devices it also covers enable secrets, local fallback accounts and how shared credentials are rotated when staff leave.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Password policy
A password policy sets how passwords are chosen, stored and replaced. NIST SP 800-63B's current guidance is the reference point: at least 15 characters for passwords used alone (8 within MFA), no composition rules, checking against blocklists of compromised and common passwords, no periodic forced changes (only on evidence of compromise), allowing password managers and paste, salted and hashed storage, and limiting failed attempts.
Policy summary (SP 800-63B)
| Area | Rule |
|---|---|
| Length | 15+ characters single-factor; 8+ with MFA; allow at least 64 |
| Composition | No mandatory character mixes |
| Blocklist | Reject breached, dictionary and context words |
| Rotation | Only when compromise is suspected |
| Storage | Salt of at least 32 bits, approved password hashing, high cost factor |
| Attempts | At most 100 consecutive failures before disabling |
| MFA | Required for higher assurance levels |
Applying it to network devices
| Account type | Practice |
|---|---|
| Administrator logins | Central AAA (directory password policy + MFA) |
| Local emergency account | Long unique passphrase per device, stored in a vault, rotated after use |
| Service and automation accounts | Keys or tokens instead of passwords where possible |
| Shared secrets (RADIUS, TACACS+, SNMPv3, routing keys) | Long random values, rotated on staff changes |
R1(config)# security passwords min-length 15
R1(config)# username breakglass privilege 15 algorithm-type scrypt secret <passphrase>
R1(config)# aaa local authentication attempts max-fail 5
R1# show aaa local user lockout
Password policy topics in this reference
| Topic | Covers |
|---|---|
| Complexity | Why composition rules were dropped |
| Length | Minimums and maximums |
| Rotation | When to change |
| Secure storage | Hashing on devices and in systems |
| MFA, certificates, biometrics | Stronger authenticators |
Documented example, not captured output.
Quick reference
A password policy defines how passwords are created, stored and used. Current guidance from NIST has shifted the focus away from complex character rules and frequent changes, toward length, screening against known-compromised passwords and multi-factor authentication. On network devices the policy also covers how passwords are stored in the configuration, so a stolen config file does not reveal them.
Password policy for network devices and users (aligned with NIST SP 800-63B):
| Topic | Current guidance |
|---|---|
| Length | Minimum 15 when the password is the only factor, 8 when used with MFA; allow at least 64 |
| Complexity rules | Not required; check against breached-password lists instead |
| Rotation | Only on evidence of compromise, not on a fixed schedule |
| MFA | Required for remote and privileged access |
| Storage on devices | Type 8/9 hashes (PBKDF2/scrypt), never type 7 or 5 for new configs |
username admin privilege 15 algorithm-type scrypt secret <password>
enable algorithm-type scrypt secret <password>
security passwords min-length 15
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 Security → Password Policy. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%