Curated

Security Architecture and Engineering 1 (3.1–3.9)

0 votes

Questions59

  1. Question 51

    Security Architecture and Engineering

    An attacker exploits an injection flaw in a serverless function that processes uploaded files, then uses the function's credentials to read unrelated storage buckets. Which action BEST limits the impact of a similar flaw?

    Show the answer

    Correct answerB. Give each function its own narrowly scoped execution role

    AWhy not this: Customers cannot install agents on the provider-managed host that runs the function.

    BWhy this is right: Narrow permissions per function limit what injected code can read or change.

    CWhy not this: The provider patches the host in serverless, and a code injection flaw is not an OS flaw.

    DWhy not this: Customers do not control the hosts, and segmentation would not limit the role's permissions.

    The flaw is in the customer's function code, and the damage comes from what its execution role may access. A least-privilege role per function caps that damage. Host patching and agents are not available to the customer, because the provider manages the underlying host.

    Open this question
  2. Question 52

    Security Architecture and Engineering

    A company deploys edge nodes in unattended roadside cabinets to process and cache sensitive data locally. Which control BEST addresses the risk that a stolen node exposes that data?

    Show the answer

    Correct answerD. Encrypt local storage with keys sealed in a TPM

    AWhy not this: Rate limiting at the cloud gateway does nothing for data on a physically stolen node.

    BWhy not this: Replication aids availability, but the stolen node's local copy stays readable.

    CWhy not this: A cloud WAF protects web traffic to the cloud, not data stored on the stolen node.

    DWhy this is right: Hardware-bound encryption keeps local data unreadable if the node is removed or opened.

    Edge nodes in unattended locations face physical theft, so local data must be protected at rest with keys bound to the hardware. Cloud-side controls and replication do not stop someone reading a stolen node's storage.

    Open this question
  3. Question 53

    Security Architecture and Engineering

    Which three actions best reduce exposure to Kerberoasting and forged-ticket attacks in an Active Directory domain? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Reset the krbtgt account password on a regular scheduleB. Enforce AES encryption types and disable RC4 for ticketsC. Use long random passwords for service accounts

    AWhy this is right: Rotating krbtgt invalidates golden tickets that were forged with its old key.

    BWhy this is right: AES tickets are far costlier to crack offline than RC4 tickets, which allow fast guessing.

    CWhy this is right: Service tickets are encrypted with the account's key, so a strong password defeats offline cracking.

    DWhy not this: Longer ticket lifetimes give a stolen or forged ticket more time to be abused.

    EWhy not this: NTLM fallback gives attackers a weaker path, such as pass the hash, that bypasses Kerberos protections.

    FWhy not this: Unconstrained delegation caches user tickets on servers, so one compromise exposes many identities.

    Long random service account passwords make offline cracking of service tickets impractical, krbtgt rotation invalidates forged tickets, and AES-only encryption removes the weaker RC4 tickets. NTLM fallback, longer lifetimes and unconstrained delegation each widen the attack surface.

    Open this question
  4. Question 54

    Security Architecture and Engineering

    A ransomware operator with stolen domain admin credentials encrypted file servers and deleted online backups. Management wants guaranteed recovery without paying, even if domain admin is compromised again. Which control is best?

    Show the answer

    Correct answerA. Immutable, offline backups with tested restores

    AWhy this is right: Attackers cannot modify or delete immutable offline copies, so recovery stays possible whatever credentials they hold.

    BWhy not this: A domain-joined replica is reachable with the same stolen admin credentials, so the attacker can encrypt or delete it too.

    CWhy not this: Signature-based antivirus is preventive and misses new variants; it does not guarantee recovery after a breach.

    DWhy not this: Encryption at rest protects confidentiality; ransomware running as an authorized user just re-encrypts the data.

    Immutable, offline backups cannot be altered or deleted even with domain admin rights, and tested restores prove recovery works. Domain-joined replicas fall to the same stolen credentials, and encryption at rest does not stop ransomware from re-encrypting data.

    Open this question
  5. Question 55

    Security Architecture and Engineering

    An attacker dumps an administrator's NTLM hash from a compromised workstation's memory and uses it to authenticate to a file server without cracking it. Which control most directly reduces this attack?

    Show the answer

    Correct answerA. Protect credentials in memory and restrict NTLM use

    AWhy this is right: Isolating credentials and limiting NTLM leaves no replayable hash, or nowhere to replay it.

    BWhy not this: Resetting krbtgt invalidates forged Kerberos tickets; this attack replays an NTLM hash instead.

    CWhy not this: Passphrase length slows cracking, but the attacker never cracks the hash; the hash itself is used.

    DWhy not this: Salting hinders precomputed cracking, but a captured hash still works as a credential when replayed.

    Pass the hash reuses the stolen hash as the credential, so protecting hashes in memory and limiting NTLM removes what the attacker replays. Longer passphrases only slow cracking, which this attack skips entirely.

    Open this question
  6. Question 56

    Security Architecture and Engineering

    A web service checks an HMAC tag with a routine that returns at the first mismatched byte. An attacker measures response times to forge a valid tag one byte at a time. Which fix best stops this?

    Show the answer

    Correct answerD. Compare tags with a constant-time routine

    AWhy not this: A stronger hash does not change how long the early-exit comparison takes, so the leak remains.

    BWhy not this: Key length resists brute force, but the leak comes from comparison timing, not from a guessable key.

    CWhy not this: Shielding blocks emission-based side channels; this attack uses network response times, which shielding does not alter.

    DWhy this is right: Equal execution time for every input removes the timing signal the attacker uses to confirm each byte.

    A constant-time comparison takes the same time whatever the mismatch position, so response times reveal nothing about correct bytes. A longer key or stronger hash does not change the timing leak, because the flaw is in the comparison routine.

    Open this question
  7. Question 57

    Security Architecture and Engineering

    Two systems run an anonymous Diffie-Hellman exchange over an untrusted network, and an attacker relays traffic, negotiating a separate key with each side. Which change actually stops this attack?

    Show the answer

    Correct answerB. Authenticate the exchange with certificate-based signatures

    AWhy not this: A larger prime resists computing discrete logs; the attacker never needs to, since each side exchanges with the attacker.

    BWhy this is right: Verifying a signed exchange proves the peer's identity, so an attacker cannot complete a key exchange as either party.

    CWhy not this: Ephemeral keys give forward secrecy, but the attacker still completes a separate exchange with each side.

    DWhy not this: Hashing the secret changes the derived key's form only; it adds no peer authentication.

    The attack works because neither side verifies who it is exchanging keys with. Signed, certificate-validated exchange values bind each key to an identity, so the relay fails. A larger prime and ephemeral keys protect the math and past sessions, but the attacker still completes an exchange with each side.

    Open this question
  8. Question 58

    Security Architecture and Engineering

    Ransomware encrypted a server's files with per-file AES-256 keys, each wrapped with the attacker's RSA-2048 public key. Malware analysis shows the per-file keys came from a PRNG seeded with the system clock. Which approach offers the best chance of decrypting the files without paying?

    Show the answer

    Correct answerC. Enumerate clock-based PRNG seeds near the infection time and test each derived key against a known file header

    AWhy not this: Factoring a 2048-bit RSA modulus is infeasible, and the wrapped keys are not the weak point.

    BWhy not this: A full 256-bit key search is computationally infeasible; the weakness lies in key generation, not key length.

    CWhy this is right: The flawed seeding leaves few possible keys, so enumerating seeds and checking a file header is practical.

    DWhy not this: Known plaintext does not let an attacker derive a modern AES-256 key; the header only helps confirm a candidate key.

    A clock-seeded PRNG shrinks the effective key space to a small set of seeds, so candidate keys can be regenerated and checked against a known header. AES-256 and RSA-2048 themselves remain infeasible to attack directly, so a known-plaintext attack on AES does not help.

    Open this question
  9. Question 59

    Security Architecture and Engineering

    Ransomware encrypted a file server using a unique random AES-256 key per file, with each key wrapped by the attacker's RSA public key. The team holds one original file and its encrypted copy. What is the most accurate conclusion about recovering other files by cryptanalysis?

    Show the answer

    Correct answerC. No practical path exists, because each file has an independent random key and the wrapping private key stays with the attacker.

    AWhy not this: Keys are not reused across files and AES is not a reused-keystream cipher, so one known pair yields nothing about other files.

    BWhy not this: Deriving an RSA private key from its public key means factoring a large modulus, which is infeasible at proper key sizes.

    CWhy this is right: Independent random keys mean one known pair gives no leverage, and the private key needed to unwrap the keys is held only by the attacker.

    DWhy not this: Frequency analysis only breaks simple substitution ciphers, not AES output, which looks statistically random.

    Modern ransomware uses hybrid encryption: random per-file symmetric keys protected by the attacker's public key. One plaintext/ciphertext pair reveals nothing about other files' keys, and the private key is never exposed. A known-plaintext attack only helps when a key or keystream is reused.

    Open this question