Curated

Cryptography (5.1–5.4)

0 votes

Questions26

  1. Question 1

    Cryptography

    In a web of trust such as the one used by PGP, how is trust in a user's public key established?

    Show the answer

    Correct answerA. Other users who know the key owner sign the key

    AWhy this is right: Peer signatures on a public key are the web of trust's decentralized way to vouch for ownership.

    BWhy not this: A registration authority supports a CA in a hierarchical PKI by vetting identities.

    CWhy not this: A root CA issuing certificates is the hierarchical PKI model, not a web of trust.

    DWhy not this: A key distribution center issues tickets in Kerberos-style systems, not public key endorsements.

    A web of trust is decentralized: users vouch for each other by signing public keys, and trust builds from those endorsements. A hierarchical PKI instead relies on a root CA to issue certificates.

    Open this question
  2. Question 2

    Cryptography

    A GPG user receives a colleague's public key that no one she knows has signed. She confirms the fingerprint by phone with the colleague and wants others to rely on the key. What should she do?

    Show the answer

    Correct answerD. Sign the key with her own private key and share the signature

    AWhy not this: Root CA certification belongs to hierarchical PKI, which GPG's model does not use.

    BWhy not this: Symmetric encryption protects confidentiality and does not vouch for key ownership.

    CWhy not this: A revocation list invalidates keys; the key was verified, so revoking it is wrong.

    DWhy this is right: Signing a verified key with her private key vouches for it, adding to the web of trust.

    In a web of trust, after verifying the fingerprint out of band, she signs the colleague's key with her own private key, which lets others who trust her accept it. A root CA is part of hierarchical PKI, not GPG's model.

    Open this question
  3. Question 3

    Cryptography

    An organization wants a copy of its employees' data-encryption keys held by a trusted third party so encrypted files can be recovered if an employee leaves or loses a key. Which key management practice does this describe?

    Show the answer

    Correct answerA. Key escrow

    AWhy this is right: Escrow stores a key copy with a trusted party for authorized recovery of encrypted data.

    BWhy not this: Destruction permanently removes key material, which would prevent recovery rather than enable it.

    CWhy not this: Revocation declares a key or certificate invalid before expiry, usually after compromise.

    DWhy not this: Rotation retires a key and issues a new one on a schedule; it does not keep a recovery copy.

    Key escrow places a copy of a key with a trusted third party so data can be recovered when the key is lost or unavailable. Key rotation replaces keys periodically; it does not provide a recovery copy.

    Open this question
  4. Question 4

    Cryptography

    Which protocol lets a sending domain sign outgoing mail with a key published in DNS so receiving servers can verify the message?

    Show the answer

    Correct answerD. DKIM

    AWhy not this: S/MIME signs and encrypts with user certificates issued by a CA, not a domain key in DNS.

    BWhy not this: IPsec protects IP packets at the network layer and does not sign individual email messages.

    CWhy not this: TLS encrypts a connection between two endpoints and does not sign messages for later verification.

    DWhy this is right: DKIM signs outbound mail at the domain level and publishes the verification key in DNS.

    DKIM has the sending domain's mail server sign messages, and receivers check the signature against a public key published in DNS. S/MIME also signs mail, but it uses per-user certificates from a CA, not a domain key in DNS.

    Open this question
  5. Question 5

    Cryptography

    Which of the following are limitations or vulnerabilities of TLS-protected communications? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Encrypted traffic can hide malware from inspection toolsC. Support for legacy versions can allow a downgrade attackD. A compromised trusted CA can enable fraudulent certificates

    AWhy not this: TLS protects data in transit only; data at rest on the server needs separate protection.

    BWhy this is right: Encrypted sessions can carry malware past security tools that cannot inspect the content.

    CWhy this is right: Allowing older protocol versions lets an attacker force a weaker, vulnerable session.

    DWhy this is right: Trust rests on CAs, so a compromised CA can issue certificates that impersonate legitimate sites.

    EWhy not this: TLS protects integrity in transit with AEAD ciphers or MACs, so tampering with records is detected.

    TLS can be weakened by downgrade attacks when old versions are allowed, depends on trusted CAs for authentication, and blinds inspection tools to malicious content. It protects data only in transit, so it gives no protection for data at rest, and it does protect integrity in transit through authenticated encryption.

    Open this question
  6. Question 6

    Cryptography

    A branch office must protect all traffic to headquarters, whatever the application, including legacy applications that cannot be modified. Which solution fits BEST?

    Show the answer

    Correct answerB. IPsec in tunnel mode between the two gateways

    AWhy not this: S/MIME protects email messages only, not general traffic between sites.

    BWhy this is right: IPsec tunnel mode between gateways encrypts all IP traffic regardless of application, so legacy apps need no change.

    CWhy not this: DKIM only signs email to prove domain origin and provides no confidentiality for site traffic.

    DWhy not this: TLS must be supported by each application, so unmodifiable legacy applications would stay unprotected.

    A site-to-site IPsec tunnel between gateways protects all IP traffic at the network layer without changing applications. TLS works at the application level and would need each application to support it, which legacy applications may not.

    Open this question
  7. Question 7

    Cryptography

    An attacker crafts two new documents, neither fixed in advance, that produce the same MD5 digest. Which hash property has MD5 failed to provide?

    Show the answer

    Correct answerC. Collision resistance

    AWhy not this: this would require matching a specific, already existing document, which the attacker did not do.

    BWhy not this: this describes small input changes altering the digest greatly, which is not what a collision measures.

    CWhy this is right: producing any two distinct inputs with an identical digest is a collision, so this property failed.

    DWhy not this: this concerns recovering an input from a given digest, not creating two matching inputs.

    Finding any two different inputs with the same digest defeats collision resistance. Second preimage resistance applies only when one specific input is given and a different match must be found for it.

    Open this question
  8. Question 8

    Cryptography

    Which properties describe a cryptographic hash function? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. It produces a fixed-length digest for any input sizeD. It is one-way, so the input cannot feasibly be recovered

    AWhy not this: a key pair describes asymmetric encryption or digital signatures, not a plain hash.

    BWhy not this: a shared secret key describes symmetric encryption, or keyed HMAC, not a plain hash.

    CWhy this is right: whatever the input size, a hash function outputs a digest of fixed length.

    DWhy this is right: hashing is one-way; recovering the original input from the digest is computationally infeasible.

    A cryptographic hash maps any input to a fixed-length digest and is designed to be one-way. It uses no keys and is not encryption, so key-based descriptions fit symmetric or asymmetric ciphers, not hashing.

    Open this question
  9. Question 9

    Cryptography

    An auditor finds that several users in a password table have identical stored hash values. What is the best fix?

    Show the answer

    Correct answerC. Add a unique random salt to each password before hashing

    AWhy not this: length helps against guessing but two users with the same password still get the same hash.

    BWhy not this: a longer digest is still deterministic for the same input, so duplicates would remain.

    CWhy this is right: a per-password random salt makes the hash input unique, so equal passwords no longer share a hash.

    DWhy not this: hashing again is deterministic, so identical passwords still yield identical stored values.

    A unique random salt per password makes identical passwords hash to different values and defeats precomputed rainbow tables. Rehashing or a longer digest still gives identical output for identical input.

    Open this question
  10. Question 10

    Cryptography

    Thousands of constrained IoT sensors with no pre-shared keys must authenticate to a gateway and send large telemetry streams. Which design is BEST?

    Show the answer

    Correct answerA. ECC for key exchange and signatures, AES for bulk data

    AWhy this is right: ECC gives key exchange and signatures with small keys; AES efficiently encrypts the large data volume.

    BWhy not this: asymmetric ECC is not used to encrypt bulk data; it is slow compared with symmetric ciphers.

    CWhy not this: RSA-3072 is heavy for constrained devices, and asymmetric encryption is too slow for large streams.

    DWhy not this: a single shared key contradicts the no pre-shared keys constraint and provides no per-device authentication.

    Asymmetric ECC establishes keys and authenticates without pre-shared secrets, using smaller keys than RSA for similar strength on constrained devices. Fast symmetric AES then protects the bulk data. RSA for bulk data is slow and heavy.

    Open this question
  11. Question 11

    Cryptography

    A PCI DSS assessment finds a merchant's stored card numbers are strongly encrypted, but the database also keeps each card verification code after authorization. What is the conclusion?

    Show the answer

    Correct answerC. Non-compliant, because verification codes may not be stored after authorization even if encrypted

    AWhy not this: Key rotation is a key-management requirement and does not permit storing verification codes.

    BWhy not this: Encryption is the rule for stored account numbers, not a way to justify keeping verification codes.

    CWhy this is right: Sensitive authentication data cannot be stored after authorization, so encryption does not cure the violation.

    DWhy not this: Hashing or salting does not change the prohibition on retaining this data after authorization.

    PCI DSS treats the card verification code as sensitive authentication data, which must not be retained after authorization, even in encrypted form. Encryption protects stored account numbers but does not make retaining this data acceptable.

    Open this question
  12. Question 12

    Cryptography

    A developer generates encryption keys with a pseudo-random generator seeded from the server's boot time in seconds. What is the main weakness?

    Show the answer

    Correct answerB. The low-entropy seed makes the keys predictable

    AWhy not this: Integrity protection is a separate property and does not relate to how the keys were generated.

    BWhy this is right: A guessable seed gives few possible outputs, so an attacker can reproduce the keys by brute force over seeds.

    CWhy not this: Hashing a key afterward does not add entropy to a predictable seed.

    DWhy not this: Generator output length is not the issue; the problem is predictability of the seed.

    Key strength depends on the unpredictability (entropy) of the seed. A boot time can be guessed within a small range, so an attacker can regenerate the same keys. Hashing keys or adding integrity does not restore lost entropy.

    Open this question
  13. Question 13

    Cryptography

    Which mechanism lets a recipient verify that a message came from a specific sender and was not altered in transit?

    Show the answer

    Correct answerB. Digital signature

    AWhy not this: A hash with no key can detect change, but anyone can recompute it, so it proves nothing about the sender.

    BWhy this is right: The signature is tied to the sender's private key and the message content, proving origin and integrity.

    CWhy not this: Key agreement establishes a shared secret between parties; it does not authenticate a message.

    DWhy not this: Encryption alone provides confidentiality; it does not prove who sent the message or that it is unmodified.

    A digital signature is created with the sender's private key over a hash of the message, giving integrity and authenticity (and non-repudiation). A plain hash shows alteration only, because anyone can recompute it.

    Open this question
  14. Question 14

    Cryptography

    A firm ships backups to an offsite vendor. Vendor staff must not be able to read the data, and the firm must still restore it after losing its servers. Which approach BEST meets both requirements?

    Show the answer

    Correct answerB. Encrypt before transfer and keep the key in a separately backed-up key store the firm controls

    AWhy not this: Hashing is one-way and protects integrity only; the data stays readable and cannot be restored from a digest.

    BWhy this is right: Encryption hides content from the vendor, and a firm-controlled, backed-up key still allows restoration.

    CWhy not this: A signature proves origin and integrity but does not hide content from the vendor.

    DWhy not this: The vendor would hold both ciphertext and key, so staff could read the data.

    Confidentiality needs encryption with a key the vendor cannot reach. A separately backed-up key store also lets the firm restore after losing servers. Keeping the key with the backups defeats confidentiality because the vendor could decrypt them.

    Open this question
  15. Question 15

    Cryptography

    A pharmaceutical company encrypts its unpatented drug formulas before sharing them with a contract lab. Which type of sensitive data is being protected?

    Show the answer

    Correct answerD. Intellectual property (IP)

    AWhy not this: PHI is individual patient health data held by a healthcare entity, not a company's product formulas.

    BWhy not this: PII identifies individuals; formulas contain no personal identifiers.

    CWhy not this: Cardholder data is payment card account information, unrelated to drug formulas.

    DWhy this is right: Proprietary formulas are trade secrets, a form of IP protected by encryption to preserve competitive value.

    Unpatented formulas are proprietary creations whose value depends on secrecy, so they are intellectual property. PHI concerns individuals' health records, and the company's industry does not make the formulas PHI.

    Open this question
  16. Question 16

    Cryptography

    An attacker records an encrypted authentication exchange and resends it later, gaining access without breaking the encryption. Which control BEST prevents this?

    Show the answer

    Correct answerA. Including a nonce in each exchange

    AWhy this is right: A unique nonce makes each exchange fresh, so a replayed recording fails validation.

    BWhy not this: The attack never breaks the cipher, so a longer key does not stop resending recorded data.

    CWhy not this: A replayed message keeps its valid HMAC, so integrity alone does not prove freshness.

    DWhy not this: Salting protects stored hashes against precomputed tables, not captured network traffic.

    This is a replay attack; a fresh nonce or timestamp makes each exchange unique so a recorded copy is rejected. An HMAC alone is tempting, but a replayed message still carries a valid HMAC.

    Open this question
  17. Question 17

    Cryptography

    What most directly determines how resistant a well-designed algorithm such as AES is to a brute-force key search?

    Show the answer

    Correct answerD. The length of the key

    AWhy not this: Strong ciphers are published and rely on key secrecy, not on hiding the design (Kerckhoffs's principle).

    BWhy not this: Message size does not change the number of keys an attacker must try.

    CWhy not this: Network speed affects transmission, not the keyspace of the cipher.

    DWhy this is right: Key length sets the size of the keyspace, so longer keys greatly increase brute-force effort.

    A brute-force search must try every possible key, so each added key bit doubles the work. Keeping the algorithm secret is tempting, but strong ciphers are assumed to be public and rely only on key secrecy.

    Open this question
  18. Question 18

    Cryptography

    An analyst crafts two different files that produce the same MD5 digest, so a signature on one file also validates the other. Which attack is this?

    Show the answer

    Correct answerD. Collision attack

    AWhy not this: A preimage attack finds an input for one specific existing hash, not two inputs that match each other.

    BWhy not this: Replay resends captured valid messages; it does not create matching digests.

    CWhy not this: Known-plaintext uses plaintext-ciphertext pairs to recover a key, not hash matches.

    DWhy this is right: Two different inputs with the same digest is the definition of a hash collision.

    A collision attack finds two distinct inputs with the same hash, which undermines signatures over that hash. A preimage attack is tempting but seeks an input for one given hash value, not a matching pair.

    Open this question
  19. Question 19

    Cryptography

    An executive digitally signed a contract. Years later the signing certificate has expired, and the executive claims the signature was forged after the key was compromised. What does a trusted timestamp applied at signing provide?

    Show the answer

    Correct answerA. Proof that the signature existed at a time when the certificate was valid

    AWhy this is right: A time-stamping authority signs the hash and time, showing the signature predates expiry or any revocation.

    BWhy not this: Identity still rests on the signer's private key and certificate; a timestamp proves only when the data existed.

    CWhy not this: A timestamp gives no confidentiality; it binds a hash of the signed data to a trusted time.

    DWhy not this: A timestamp does not change the certificate; it proves when the signature was made so validity is checked for that time.

    A trusted timestamp from a time-stamping authority (RFC 3161) binds a hash of the signed data to a time, proving the signature existed while the certificate was valid and before any later revocation. That lets the signature keep supporting non-repudiation after the certificate expires.

    Open this question
  20. Question 20

    Cryptography

    Alice and Bob each hold an asymmetric key pair and share no secret. Alice must send a draft so only Bob can read it and Bob can confirm Alice produced it. Which key use meets both needs?

    Show the answer

    Correct answerC. Sign with Alice's private key and encrypt with Bob's public key

    AWhy not this: Encrypting with Alice's public key lets only Alice decrypt, so Bob cannot read the draft even though the signature is valid.

    BWhy not this: Bob's public key cannot sign. Encrypting with Alice's private key lets anyone with her public key read it.

    CWhy this is right: Bob's public key limits reading to Bob's private key, and Alice's private-key signature proves she created it.

    DWhy not this: Her public key cannot sign, since anyone holds it. Only Bob's public key can decrypt his private-key output, so nothing stays secret.

    Confidentiality requires encrypting with Bob's public key so only his private key can decrypt. Origin proof requires signing with Alice's private key so anyone can verify with her public key. Encrypting with a private key gives no confidentiality, because the public key that reverses it is available to everyone.

    Open this question
  21. Question 21

    Cryptography

    An attacker steals password hashes and their unique random salts. An administrator claims that exposing the salts has eliminated their protection against offline cracking. Which assessment is MOST accurate?

    Show the answer

    Correct answerB. The salts still prevent reuse of cracking work across accounts, but individual password guesses remain possible.

    AWhy not this: Salts are not decryption keys, and password hashes are not reversed by learning their salts.

    BWhy this is right: Each salt requires separate hash calculations for guesses against that account, even when the salt is known.

    CWhy not this: Known salts and stolen hashes allow offline verification of password guesses without contacting the service.

    DWhy not this: The password-hashing work factor controls computational cost; a salt primarily prevents reuse of computed results.

    Unique salts prevent an attacker from reusing a single computed hash across accounts, even when the salts are public. Unlike encryption keys, salts need not be secret; they do not prevent an attacker from testing guesses against each stolen hash.

    Open this question
  22. Question 22

    Cryptography

    What does a match between a downloaded file's cryptographic hash and its trusted published hash primarily verify?

    Show the answer

    Correct answerA. The file's integrity

    AWhy this is right: Matching a trusted hash supports verification that the file's contents have not changed.

    BWhy not this: Hashing does not encrypt the file or restrict who can read it.

    CWhy not this: A hash alone does not establish who created or published the file.

    DWhy not this: A hash comparison does not establish whether the file will remain accessible.

    Matching a cryptographic hash against a trusted reference supports verification that the file has not changed. A hash alone does not authenticate the publisher's identity.

    Open this question
  23. Question 23

    Cryptography

    A survey export omits names but retains precise locations and timestamps that identify respondents when combined with public records. Which classification should drive its cryptographic protection requirements?

    Show the answer

    Correct answerB. Personally identifiable information because linkage identifies individuals

    AWhy not this: Business value does not override the identifying nature of the respondent records.

    BWhy this is right: The ability to identify respondents through linkage makes the records personally identifiable information.

    CWhy not this: Removing direct identifiers does not make data public when remaining attributes can identify individuals.

    DWhy not this: Data is not effectively anonymous when another available source enables identification.

    PII includes information that can identify individuals when linked with other information. Removing names does not make a dataset anonymous if retained attributes still enable identification.

    Open this question
  24. Question 24

    Cryptography

    An organization must prevent disclosure of customer files from intercepted network traffic and stolen laptop drives. Which controls directly address these exposures? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Encrypt file transfers using TLS.C. Enable full-disk encryption on laptops.

    AWhy not this: Cryptographic hashes help detect changes but do not conceal file contents.

    BWhy this is right: TLS encrypts traffic to prevent intercepted file contents from being read.

    CWhy this is right: Full-disk encryption protects stored data against offline access to a stolen drive.

    DWhy not this: Digital signatures support integrity and origin verification but do not conceal file contents.

    TLS protects file contents in transit, and full-disk encryption protects stored contents on locked, powered-off laptops. Hashes and digital signatures support integrity verification rather than concealment.

    Open this question
  25. Question 25

    Cryptography

    What is the primary purpose of quantum key distribution?

    Show the answer

    Correct answerD. Establish shared keys using quantum properties

    AWhy not this: Document signature verification is not the primary purpose of QKD.

    BWhy not this: QKD does not aim to reduce the size of existing secret keys.

    CWhy not this: QKD establishes key material; separate encryption mechanisms protect bulk application data.

    DWhy this is right: QKD uses quantum properties to establish shared secret key material.

    Quantum key distribution uses quantum properties to establish shared key material, with eavesdropping detectable through resulting disturbances. It distributes keys rather than directly encrypting bulk application data.

    Open this question
  26. Question 26

    Cryptography

    A merchant sends primary account numbers to its payment processor over the public Internet. Which measure BEST meets PCI DSS protection requirements for this transmission?

    Show the answer

    Correct answerC. Use strong cryptography through properly configured TLS.

    AWhy not this: Log masking reduces exposure in logs but does not protect the network transmission.

    BWhy not this: Encoding is reversible without a secret and does not satisfy the transmission protection requirement.

    CWhy this is right: Properly configured TLS using strong cryptography protects account numbers crossing an open, public network.

    DWhy not this: A hash appended to a record does not conceal the account number being transmitted.

    PCI DSS requires strong cryptography to safeguard primary account numbers during transmission over open, public networks. Encoding changes representation but does not provide cryptographic protection.

    Open this question