nerdexam
EC-Council

312-50V9 · Question #113

How does an operating system protect the passwords used for account logins?

The correct answer is A. The operating system performs a one-way hash of the passwords. Operating systems protect passwords by storing only a one-way cryptographic hash of each password, so the original plaintext is never saved and cannot be recovered from the stored value.

System Hacking

Question

How does an operating system protect the passwords used for account logins?

Options

  • AThe operating system performs a one-way hash of the passwords.
  • BThe operating system stores the passwords in a secret file that users cannot find.
  • CThe operating system encrypts the passwords, and decrypts them when needed.
  • DThe operating system stores all passwords in a protected segment of non-volatile memory.

How the community answered

(34 responses)
  • A
    91% (31)
  • C
    6% (2)
  • D
    3% (1)

Why each option

Operating systems protect passwords by storing only a one-way cryptographic hash of each password, so the original plaintext is never saved and cannot be recovered from the stored value.

AThe operating system performs a one-way hash of the passwords.Correct

Modern operating systems apply a one-way hash function, such as bcrypt or PBKDF2 with a salt, to each password before storing it in the credential database. At login, the system hashes the entered password and compares the result to the stored hash. Because hashing is computationally irreversible, even if the credential store is compromised, the original plaintext passwords cannot be directly recovered.

BThe operating system stores the passwords in a secret file that users cannot find.

Hiding passwords in a secret file provides only security through obscurity and offers no cryptographic protection - an attacker with sufficient system privileges can locate and read any file on the system.

CThe operating system encrypts the passwords, and decrypts them when needed.

Symmetric encryption is a reversible process; if the decryption key is exposed or derived, all stored passwords are immediately compromised. Hashing is preferred precisely because it is a one-way function with no corresponding decryption operation.

DThe operating system stores all passwords in a protected segment of non-volatile memory.

Storing passwords in a specific memory segment is a physical isolation strategy that does not provide cryptographic protection - an attacker who gains access to that memory region can still read the plaintext values directly.

Concept tested: One-way password hashing for secure credential storage

Source: https://learn.microsoft.com/en-us/windows-server/security/kerberos/passwords-technical-overview

Topics

#password hashing#one-way hash#OS security#credential storage

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice