A security policy requires that all locally configured administrative accounts on Cisco network devices store passwords using strong one-way cryptographic hashing instead of reversible encryption. During an audit, an engineer inspects a switch configuration and discovers the command `username netadmin password 7 0822455D0A16`. Which action must the engineer take to bring this account configuration into compliance with the security policy?
- Reconfigure the account using the `username netadmin secret` command so the password is saved using a one-way hash algorithm.Answer
- BExecute the global configuration command `service password-encryption` to upgrade existing Type 7 passwords to SHA-256 hashes.
- CConfigure `enable password` for the account to automatically enforce one-way encryption across all vty lines.
- DSave the configuration using `copy running-config startup-config` to trigger automatic conversion of password storage types.
Answer
Reconfigure the account using the `username netadmin secret` command so the password is saved using a one-way hash algorithm.
Replacing the configuration with `username netadmin secret` ensures that Cisco IOS stores the password using a strong one-way hash (such as Type 5 MD5 or Type 8/9 SHA-256/scrypt). Because it is a one-way function, the original password cannot be decrypted from the configuration file, satisfying the security policy.
Step-by-Step Solution
Key Concept
Cisco IOS Password Storage (Type 7 reversible encryption vs. Type 5/8/9 one-way secret hashes)