Cybersecurity MCQs (Set-3)

Difficulty: Medium

What does vertical privilege escalation mean?

A Accesses another account
B Steals TLS keys
C Blocks network traffic
D Gains higher permissions

To stop stored script injection, what should output handling use?

A Database indexing
B DNS filtering
C Contextual output encoding
D Password rotation

Where should a stateful web app validate a CSRF token?

A On the server
B Only in CSS
C Inside the URL fragment
D In browser history

Which cookie flag blocks JavaScript access?

A Secure
B HttpOnly
C SameSite
D Domain

For a session cookie, what does Secure restrict?

A Access by scripts
B Cross-site requests
C Cookie expiration
D Transmission to secure channels

How does SameSite affect a cookie?

A Encrypts cookie contents
B Limits cross-site sending
C Hashes the session ID
D Sets the browser language

Which authenticator factor is a memorized PIN?

A Something you have
B Something you are
C Something you know
D Somewhere you are

For a fingerprint login, which factor type applies?

A Something you are
B Something you know
C Something you have
D Somewhere you are

HMAC combines which secret with a message?

A Public certificate
B Secret key
C Browser cookie
D DNS record

Which message authentication property helps detect data alteration?

A Availability
B Anonymity
C Integrity
D Compression

How does public-key encryption protect a message to a recipient?

A Encrypts with recipient public key
B Encrypts with sender public key
C Hashes with recipient key
D Signs with recipient private key

Decryption of ciphertext uses which matching key?

A Public key
B Salt value
C DNS key
D Private key

Why rotate a session identifier after login?

A Improve image caching
B Reduce session fixation risk
C Prevent DNS spoofing
D Compress request bodies

When a SQL query includes user input, which method is preferred?

A Bind parameters
B Escape by hand
C Concatenate strings
D Rename columns

Executing untrusted browser script is known as what weakness?

A Cross-site request forgery
B Denial of service
C Cross-site scripting
D Password spraying

Denial-of-service attacks commonly cause what impact?

A Passwords become longer
B Files gain signatures
C Logs are encrypted
D Service becomes unavailable

Which NIST CSF 2.0 function includes risk governance?

A Detect
B Govern
C Respond
D Recover

Coordinating action after an incident belongs to which function?

A Identify
B Protect
C Respond
D Govern

Why use a unique salt for each stored password?

A Prevent shared precomputed hashes
B Allow reversible recovery
C Hide network addresses
D Shorten the digest

Publicly disclosed software vulnerabilities receive which identifier?

A DNS label
B TLS cipher
C HTTP cookie
D CVE ID

CVSS summarizes a vulnerability’s what?

A Patch contents
B Severity score
C User identity
D Encryption key

How can an IDS differ from an IPS in deployment?

A IDS observes and alerts
B IDS always blocks inline
C IPS only hashes files
D IPS stores certificates

To restrict script sources, which response header can help?

A Accept-Language
B Content-Length
C Content-Security-Policy
D Last-Modified

Why should login errors avoid naming an unknown username?

A Improve DNS resolution
B Shorten TLS handshakes
C Increase cache lifetime
D Reduce account enumeration

How can organizations reduce credential stuffing risk?

A Shared passwords
B Unique passwords and MFA
C Disable rate limits
D Reuse session IDs