Pcornel
Networking · Security

Password Policy

Cheat sheet · https://pcornel.dk/topic.php?topic=749

Back to the Topic

Answer

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.

Remember

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).

First checks

  • 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.

Verify in this order

policy defined → long unique secrets → stored as strong hashes → login attempts limited → MFA for privileged access → credentials changed when compromised

Where it usually breaks

packet selector → class match → marking → policy attachment → queue/policer/shaper → egress counters/drops → receiver behavior

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=749

Confirmation

Confirm action

Continue?