Pcornel
Networking · Security › Password Policy

Secure storage

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

Back to the Topic

Answer

Secure storage means passwords are kept as salted, slow hashes — never in clear text or reversible encryption. On Cisco IOS type 9 (scrypt) and type 8 (PBKDF2-SHA256) are strong; type 5 (MD5) is weak; type 7 is reversible.

Remember

service password-encryption only converts clear text to type 7, which anyone can decode — it is not protection. Use algorithm-type scrypt secret. Configuration backups contain hashes and keys: store them encrypted with access control.

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=1493

Confirmation

Confirm action

Continue?