1/99
Looks like no tags are added yet.
A team assumes that document identifiers are difficult to guess, but testing shows that they are sequential. Which control would BEST address the resulting risk?
Check authorization for every document request.
A firewall drops connections from known malicious addresses before they reach an internal service. Which control role is emphasized?
Preventive
A botnet floods a ticketing site with requests so legitimate customers cannot connect. No records are read or modified. Which goal is PRIMARILY affected?
Availability
An attacker downloads a payroll file, changes several salaries, and uploads the altered file. Which security goals were violated?
Confidentiality and integrity
An administrator disables a compromised account, revokes its sessions, and restores altered records from a trusted backup. Which control role is emphasized?
Response and recovery after detection
A hospital prioritizes a patient-portal vulnerability over the same vulnerability in a disconnected training image. What supports that decision?
The portal has greater exposure and protects more consequential assets.
Malware copies employee tax records to an external server while leaving the originals unchanged and available. Which goal is PRIMARILY affected?
Confidentiality
A company operates a public status page and a payroll database. Which security-goal assignment is appropriate?
Payroll needs confidentiality; both need appropriate integrity and availability.
The same unpatched service runs in an isolated training lab with synthetic data and on an internet-facing production server with customer records. Why should the production server normally receive higher priority?
Its exposure and potential impact are greater.
After a password is stolen, a payment system uses step-up authentication, transaction limits, unusual-login alerts, and session revocation. Which control primarily CONTAINS the harm if misuse succeeds?
Transaction limits
A portal uses HTTPS and MFA, but an authenticated user can change a record number in the URL and retrieve another customer's record. Which change would MOST directly correct the weakness?
Verify record ownership on every request.
A developer claims that unlinked files are safe because users can open files only through dashboard links. What should a security reviewer do FIRST?
Attempt to request an unlinked file directly.
An attacker intercepts a payment instruction and changes the amount before it reaches the bank. The payment still arrives, and no disclosure is established. Which goal is PRIMARILY affected?
Integrity
A team removes an unused file-import feature after determining that its parser creates unacceptable risk. Which risk response did the team choose?
Eliminate
A background image-processing service can read uploaded images, modify grades, and create administrator accounts, although it only needs image access. Which design principle is MOST clearly violated?
Least privilege
A sensitive production change requires approval from both a system owner and a security engineer. Which principle does this control implement?
Separation of privilege
A vendor identity service is outside the development team's control but is required for every login. How should it appear in the threat model?
Include it as an external dependency and document the assumptions at the boundary
An event portal accepts flyer uploads, registration requests, password resets, administrator actions, and calls an email provider. Which item is the BEST description of the portal's attack surface?
Every reachable point where a user or service can interact with the portal
A signed-in student changes '/groups/14/report.pdf' to '/groups/15/report.pdf' and receives another group's report. Which STRIDE category MOST directly describes the result?
Information disclosure
Which proposed control is specific enough to be tested?
Verify event ownership or the campus-administrator role before returning an attendee list
Which threat statement is the useful input to a design review?
Changing an event ID may return another organizer's attendees because the API omits an ownership check
After implementing an ownership check on a file endpoint, which test set evaluates the control and remaining risk?
Test multiple roles, authentication states, and changed identifiers, then document remaining threats
A threat is likely to expose a small amount of public event data but cannot reach private records. Another unlikely threat could alter every final grade. What should determine priority?
Evidence-based estimates of likelihood and impact, including existing controls
A course portal sends a student's browser request to a web application, which queries an identity provider and a file store. Which diagram element MOST directly identifies where trust assumptions change?
Trust boundary
A portal has five overlapping authorization modules with different rule syntax. Reviewers cannot determine which one governs a request. Which redesign directly applies economy of mechanism?
Consolidate authorization into a small, consistent decision mechanism
A security control requires users to enter a 40-character recovery code on every routine login, so staff begin sharing active sessions. Which principle should the designer reconsider?
Psychological acceptability
Which condition is essential for the one-time pad to provide perfect secrecy?
The pad is truly random, as long as the message, secret, and never reused
A system uses AES-256, but its key is generated by hashing one of 1,000 department names. What is the PRIMARY weakness?
The effective key space is predictable and far smaller than 256 bits
A developer uses a 24-character user password directly as an AES key because it "looks long." What is the BEST correction?
Derive a key with an appropriate password-based KDF and salt, or generate a random key
Two messages were encrypted with the same one-time pad. An analyst knows part of the first plaintext. What calculation enables recovery of the corresponding part of the second?
Compute c1 XOR c2, then XOR the known part of m1
A team needs a modern stream cipher implemented in software on devices without AES acceleration. Which option from the lecture is the BEST fit?
ChaCha20 through a vetted library
One input bit changes, and many AES output bits change. Which property is being observed?
Avalanche effect
An attacker can submit selected files to an encryption service and observe the resulting ciphertext. Which attack model describes this capability?
Chosen-plaintext
A service encrypts every message with the same stream-cipher key and nonce. What is the MOST serious consequence?
The repeated keystream permits XOR relationships between plaintexts
A substitution cipher has far more possible keys than a shift cipher. Why can it still be broken on ordinary English text?
Language frequencies, repeated words, and known structure survive the substitution
An application encrypts a privilege field but performs no integrity check before using the decrypted value. Which statement is accurate?
An attacker may alter ciphertext without learning the plaintext, so integrity must be designed separately
A file-encryption design says, "Use AES on each 16-byte chunk independently." What is the BEST review finding?
AES is a block primitive; multi-block data needs a safe mode or construction
Why is modern symmetric encryption described as computationally secure rather than perfectly secret?
A successful attack should require infeasible computation under the stated security model
Which threat is directly addressed by encrypting stored files with a securely managed symmetric key?
An attacker steals only the storage media and lacks the key
Which record contains the minimum information needed to decrypt and authenticate a versioned AES-GCM file later?
Format version, nonce, ciphertext, and tag; the key is retrieved separately
A CBC encryption API permits the caller to choose the IV after seeing the plaintext. Which property required by CBC is missing?
The IV must be unpredictable when the plaintext is chosen
A team generates random nonces and assumes repetition is impossible. What is the BEST review comment?
Randomness reduces collision probability but does not guarantee uniqueness
The same plaintext encrypted twice produces different valid ciphertexts under one key. Which input directly provides this freshness?
A fresh nonce or IV used according to the mode's requirements
During AES-GCM decryption, when may an application parse the plaintext?
Only after tag verification succeeds
A service repeats a 96-bit AES-GCM nonce under the same key. Which statement is MOST accurate?
Plaintext relationships may be exposed and authentication security can also fail
Which input to an AEAD operation is protected from modification but remains visible?
Associated data
A file service needs random-access decryption and must avoid exposing repeated plaintext blocks. It will authenticate records separately. Which design meets these requirements?
CTR with counter blocks that never repeat under the key
A FileDrop design uses one global GCM nonce counter, but servers can roll back to an older snapshot and reuse counter values. What is the redesign?
Use a nonce-allocation scheme that remains unique across servers and rollback, or rotate to a new key namespace
A developer says, "CBC hides repeated blocks, so it authenticates the file." What is the response?
Incorrect; CBC confidentiality does not detect controlled modification and must be authenticated
An attacker changes one byte of AES-GCM ciphertext. The receiver uses the correct key, nonce, and associated data. What should happen?
Tag verification fails and no plaintext is used
A team must protect arbitrary-length files and wants confidentiality plus integrity in one supported construction. Which choice is BEST for a new design?
AES-GCM with disciplined nonce management
Two CTR ciphertexts were produced with the same key and nonce. Which relationship will an attacker obtain by XORing them?
m1 XOR m2
Why is a self-signed root certificate accepted by a browser?
The root is explicitly present in the browser or operating system trust store
An intermediate certificate is missing from the server's chain, and the client cannot build another path to a trusted root. What should happen?
Fail certificate validation
Unauthenticated Diffie-Hellman is MOST vulnerable to which attack?
An active man-in-the-middle performing separate exchanges with each party
What security claim does an X.509 certificate primarily make?
An issuer binds a subject identity to a public key under stated constraints
Two organizations have never shared a secret and need to protect a large file for one recipient. Which design is BEST?
Encrypt with a random AEAD data key, then wrap that key for the recipient's authenticated public key
Why is textbook, or raw, RSA unsuitable for application encryption?
Raw RSA is deterministic and malleable; applications need a standardized scheme such as RSA-OAEP
What is the main scaling advantage of a public/private key pair over pairwise symmetric keys?
A user's public key can be distributed broadly while only the private key remains secret
A passive attacker records a properly parameterized Diffie-Hellman exchange. What should the attacker be unable to compute?
The shared secret without obtaining either party's private value
A server presents a leaf certificate signed by an intermediate CA. What must a client normally do to validate the chain?
Verify signatures and constraints through the intermediate to a root already in the trust store
A browser shows a padlock for a newly created shopping site. What may the user correctly conclude?
The browser established an encrypted connection to a host whose certificate passed its checks
Why should a protocol run a Diffie-Hellman shared secret through a key-derivation function?
Bind fresh protocol context and derive separate keys for different directions and purposes
Alice obtains a public key labeled 'Bob' from an unauthenticated chat message and encrypts a secret to it. Which problem remains unsolved?
Alice has not established that the key actually belongs to Bob
An organization uses SHA-1 for file integrity checks. A researcher publishes a collision attack demonstrating that two different files can produce the same SHA-1 hash. What is the immediate implication for the organization's security posture?
The organization must immediately switch to a modern hash algorithm like SHA-256.
A web application uses HMAC-SHA256 to verify incoming API requests. The attacker intercepts a valid request and modifies the payload to change the status code from '200' to '403.' Why does the server reject this modified request?
The attacker did not have the shared secret key required to generate a new valid tag.
An attacker steals a password database containing bcrypt hashes. The hashes include the cost factor and salt. What does the 'cost factor' in the bcrypt header indicate?
The number of iterations or rounds the hashing algorithm performs, making brute-force attacks slower.
A portal requires a password and then asks a second knowledge question. Why does this not provide two-factor authentication?
Both checks rely on something the user knows rather than different factor types.
An attacker has obtained a list of valid digital signatures for various documents signed by a specific entity. They attempt to create a new document and forge a signature that verifies against the entity's public key. Why will this fail?
The attacker does not possess the private key corresponding to the public key.
A system administrator stores a secret value called 'pepper' alongside the password hashes in a configuration file outside the main database. What is the primary security benefit of this approach?
It protects against offline attacks even if the password database itself is stolen.
A network transfer uses CRC32 to detect damaged packets. Why should the same value not be trusted to detect malicious file changes?
CRC32 detects common transmission errors but is not designed to resist deliberate collisions.
A software publisher's release signature verifies, but investigators learn that the signing key may have been stolen before the release. What can the verifier conclude?
The matching private key produced the signature, but the release may still be unauthorized or malicious.
An attacker has stolen a database containing password hashes and salts. They attempt to crack the passwords of users who all share the same common passphrase 'Password123.' Which specific mechanism prevents the attacker from using a single precomputed lookup table to recover all these accounts simultaneously?
Salting
A live phishing proxy relays a user's password and one-time code to the real portal and captures the resulting session. Which change most directly disrupts this attack?
Use an authenticator that binds its proof to the legitimate verifier or domain.
Two internal services share one MAC key. An auditor verifies a disputed message's tag. What conclusion is justified?
A holder of the shared key created the tag, but the tag cannot distinguish which service did so.
A system stores credit card numbers by hashing them with SHA-256. A breach occurs, and the hashes are published. An attacker successfully finds a valid credit card number that matches one of the hashes in the database. Why was this possible?
Card numbers have a small, structured search space that supports offline guessing.
Two copies of the same vulnerable image-processing service run under different accounts: image-worker and Administrator. If identical input gives an attacker code execution in each service, which outcome best shows the effect of privilege?
Exploit code is limited to the permissions of the account running each service.
A service runs with minimal privileges but still has a buffer overflow vulnerability. If exploited, what is the expected outcome?
The attacker gains access only to resources available to that specific process.
A program allocates memory for a dynamic object, uses it, and then frees it. Later, the code accesses that pointer again. What error is this?
Use-after-free.
The same malformed file crashes one build of a parser but not another. Why is that difference important before claiming reliable code execution?
Layout, compiler choices, platform, and defenses can change whether corrupted state becomes useful to an attacker.
A one-byte overflow changes an authorization flag from 0 to 1 without crashing the process. What is the security implication?
A small overwrite can change program logic and bypass a security decision.
A fuzzer repeatedly triggers an input-dependent crash in a file parser, but investigators have not shown control of a pointer or instruction path. Which conclusion is unsupportable?
The input proves remote code execution on every supported platform.
A parser stores 'record_count * record_size' in a 16-bit length field. A crafted count makes the multiplication wrap to a small value, but the later copy uses the original count. What is the likely result?
The parser allocates too little memory and the later copy can cross the buffer boundary.
A security analyst reviews a vulnerability report stating 'Buffer Overflow'. The analyst notes that the exploit requires specific knowledge of the stack layout and ASLR state. What does this imply?
Exploitability depends on program build, platform, and defenses.
A program frees a request object, then later follows the old pointer after a new attacker-controlled object occupies the same heap location. What is the security defect?
A use-after-free that lets stale code operate on replacement data
A loop copies bytes into a 16-byte array using indexes 0 through 16. The seventeenth write changes an adjacent authorization flag. Which assessment is accurate?
This is an off-by-one memory error with a security impact even though only one byte crosses the boundary.
An attacker exploits a vulnerability where they overwrite a function pointer with an address pointing to shellcode. What is the primary requirement for this attack?
The shellcode must be executable and the target address reachable.
An application uses 'strcpy' to copy user input into a destination array. Which specific coding flaw does this represent?
Unchecked copy violating destination boundary assumptions.
A developer implements a new feature that allows users to upload files. To protect the confidentiality of these files, they decide to use Authenticated Encryption (AEAD). What is a critical system requirement for AEAD to function correctly?
Ensuring nonce uniqueness for every encryption operation.
A team is designing a secure file sharing service. They decide to run the file parser in a separate process with a dedicated service account that has read-only access to the shared storage but no write permissions. Which security principle does this implementation primarily support?
Least Privilege
Memory corruption changes an indirect branch to a destination outside the program's approved target set. Which control can reject that transfer?
Control-flow integrity enforcing allowed indirect-branch destinations
An incident response team isolates a compromised server. They determine that the compromise occurred via a buffer overflow in a parser that was running with full root privileges. Why is 'Least Privilege' considered a critical control here?
It limits the impact of the compromised process by restricting what it can access or modify.
In a threat modeling session using STRIDE for the FileDrop system, the team identifies that an attacker might steal a password database. Which STRIDE category does this failure mode belong to?
Information Disclosure
An attacker attempts to exploit a buffer overflow in a file parser but fails because the application terminates immediately upon detecting an invalid input length. Which defense strategy does this represent?
Removing the bug when possible (Input Validation/Bounds Checking)
An administrator patches a buffer overflow in a production API. Separately, the gateway rechecks each user's authorization for every request to a protected resource instead of relying on an earlier session decision. How does complete mediation relate to the patch?
It complements patching by checking authorization on every protected request.
During a crash triage for a memory safety issue, the engineer saves the input and exact build before reproducing the failure. Why is saving the 'exact build' critical?
To reproduce the compiler settings, code, and mitigations active during the crash.
A developer is asked to choose between fixing a buffer overflow by adding input validation (removing the bug) versus adding ASLR and NX (mitigations). Which approach aligns with the lecture's primary recommendation for memory safety?
Adding input validation is preferred because fixing the root cause is stronger than making exploitation unreliable.
In a fuzzing campaign for a new parser, the team observes that the application crashes with different memory addresses each time it processes a malformed input. Which property of the system is being leveraged to hinder an attacker's ability to reliably exploit this crash?
Address Space Layout Randomization (ASLR)
A malformed image does not crash the normal test build, but an instrumented test build reports an out-of-bounds write at the exact source line. Which testing control provided that evidence?
A memory sanitizer adding runtime checks during testing
A legacy C parser stores an uploaded record in a 4 KB local stack buffer. The input can write past the end of that buffer, and the binary is compiled with a stack protector. Which defense detects the overwrite before the function returns?
A stack canary is checked before the function returns.