1. Home
  2. Explore
  3. Computer Science
  4. Building Secure Systems

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Building Secure Systems

  • 54Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Security Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What does security mean in a system where an adversary is present?

Tap to flipClick to flipspace

The system achieves its intended goal despite actions by an adversary, within stated assumptions.

Or swipe the card

54 cards

  1. What does security mean in a system where an adversary is present?

    The system achieves its intended goal despite actions by an adversary, within stated assumptions.

  2. What is a security policy?

    A statement of what a system should allow or protect; it describes the goal the system is meant to achieve.

  3. What is confidentiality as a security policy goal?

    Restricting who can access or read information.

  4. What is integrity as a security policy goal?

    Restricting who can change information or perform particular actions.

  5. What is availability as a security policy goal?

    Ensuring a system or service remains accessible, even when an adversary tries to disrupt it.

  6. What is a threat model?

    A set of assumptions about an adversary's capabilities and access.

  7. What is a security mechanism?

    The software, hardware, and design components intended to enforce a security policy under the threat model.

  8. Why is security often described as a negative goal?

    It requires preventing every prohibited action, including actions an attacker may discover, rather than merely showing that an allowed action works.

  9. Why does finding a system's breaking point not mean the system is worthless?

    Every system has limits; identifying them clarifies when its design is applicable and where it needs improvement.

  10. How can security mechanisms enable new capabilities?

    They can contain or limit the effects of untrusted programs, making it practical to offer capabilities that would otherwise be too risky.

  11. How can account-recovery questions weaken a password-based login policy?

    They create an additional way to log in: an attacker may gain access by knowing the recovery answers instead of the password.

  12. Why were publicly available facts dangerous as answers to Sarah Palin's Yahoo account-recovery questions?

    An attacker could find the answers, such as biographical details, on public sources and use them to recover the account.

  13. How did Gmail's password-recovery process contribute to the Mat Honan account compromise chain?

    Gmail sent a password-reset link to the account's backup email address, so access to that email could enable access to Gmail.

  14. How could an attacker reset the Apple email account in the Mat Honan example?

    The recovery process allowed a reset using the account holder's billing address and the last four digits of a credit card.

  15. How did Amazon's account features help an attacker obtain information needed for the Apple reset in the Mat Honan example?

    The attacker could add a credit card to the Amazon account, use a card number to reset the Amazon password, and then view the last four digits of saved cards.

  16. What was the overall account-compromise chain in the Mat Honan example?

    Amazon account access exposed credit-card digits; those digits helped reset the Apple email account; access to that email enabled a Gmail password reset.

  17. What general lesson do cross-service account-recovery failures teach?

    Security must be evaluated across interacting systems, because individually reasonable features can combine into an unsafe recovery path.

  18. Why should a system's policy avoid depending on information that other services may reveal?

    Because another service's disclosures or recovery features may make that information available to an attacker.

  19. Why are assumptions about human behavior often unsafe in a threat model?

    People may choose weak passwords, click suspicious links, or enter credentials on deceptive sites.

  20. Why should threat-model assumptions be revisited over time?

    Changes in technology and adversary capabilities can make assumptions that were once reasonable unsafe.

  21. Why did a 56-bit DES key become an inadequate security assumption for Kerberos?

    Computing power increased enough that attackers could search the key space much more feasibly than when the key size was selected.

  22. How can concerns about government hardware attacks change a threat model?

    They may require treating even the computer's hardware as potentially compromised, rather than trusting it by default.

  23. Why is choosing a threat model a balancing exercise?

    The required defenses depend on who the adversary is and what they can do; stronger adversaries make protection more difficult and costly.

  24. What risky assumption underlies the certificate-authority model used by web security protocols?

    That every certificate authority will remain trustworthy and never make a consequential mistake.

  25. Why can compromising one certificate authority threaten a website's identity?

    If browsers trust that authority, an attacker may obtain a certificate for the website's domain and impersonate it.

  26. What did a red-team attack on secure operating-system research reveal about threat modeling?

    A system can be undermined through supporting infrastructure, such as an inadequately protected machine holding its source code.

  27. What does the compromised source-code server example show about software supply assumptions?

    System security depends on protecting the software's development and build inputs, not just the finished system.

  28. How did inconsistent login-attempt limits create an iCloud security weakness?

    One interface lacked the password-guessing limit enforced by other interfaces, letting attackers make many guesses against the same accounts.

  29. Why does limiting password guesses help protect accounts?

    It slows attackers who exploit the fact that many users choose predictable passwords.

  30. What access-control flaw affected Citibank's account website in the example?

    Changing an account identifier in the URL could expose another customer's account information.

  31. What security check should a server perform when a request includes an account identifier?

    It should verify that the authenticated user is authorized to access the account identified by the request.

  32. Why is protecting a Bitcoin private key especially important?

    Someone who obtains the key can spend the Bitcoins associated with it.

  33. What is the role of a pseudorandom number generator (PRNG) in cryptographic key generation?

    It expands an initial random seed into a sequence of values intended to be difficult to predict.

  34. How did the Android SecureRandom bug expose Bitcoin users to theft?

    In some circumstances the PRNG was not properly seeded, so it could generate predictable values and repeatable private keys.

  35. Why can reusing a nonce in the Bitcoin signature scheme reveal a private key?

    Generating two signatures with the same nonce can allow an attacker to use the signatures to recover the signing private key.

  36. How can inconsistent string encodings cause an SSL certificate name-checking vulnerability?

    A length-prefixed certificate name and a null-terminated C string may interpret the same bytes differently.

  37. How could a certificate for a domain controlled by an attacker be interpreted as a certificate for Amazon.com?

    A name such as amazon.com\0x.foo.com could be treated as a subdomain of foo.com by one component, while C string handling stops at the null byte and sees amazon.com.

  38. What is a buffer overflow?

    A memory-safety error in which a program writes more data to a buffer than the buffer can hold, overwriting adjacent memory.

  39. Why is gets() dangerous when reading input into a fixed-size C buffer?

    It does not enforce the buffer's capacity, so sufficiently long input can overwrite neighboring memory.

  40. On a typical x86 stack that grows downward, where can a local buffer overflow write?

    From the buffer into higher-addressed stack data, potentially including other local variables, saved frame information, and the return address.

  41. How can overflowing a stack buffer cause a program to crash?

    If the overflow replaces the return address with an invalid value, the function may attempt to execute code at an invalid address when it returns.

  42. How can a buffer overflow let an attacker control program execution?

    By overwriting the saved return address with a chosen address, an attacker may redirect execution when the function returns.

  43. What is shellcode in the context of a buffer-overflow attack?

    Attacker-supplied code placed in memory and executed after control flow is redirected to it.

  44. Why does reversing the direction of stack growth not eliminate buffer-overflow risks?

    The overflowing buffer may still overwrite control data, such as a return address associated with a function call.

  45. Why must an attacker account for code that runs after a buffer overflow?

    Later operations may alter corrupted memory or terminate execution before the overwritten control data is used.

  46. What does a non-executable stack prevent, and what does it not prevent?

    It prevents executing injected code stored on the stack, but does not prevent redirecting execution to code already present elsewhere.

  47. What is a return-to-libc attack?

    An attack that redirects execution to existing program or library code instead of executing attacker-injected code.

  48. What is the most direct way to fix a buffer-overflow vulnerability?

    Correct the source code so it uses input and memory operations that respect buffer bounds.

  49. Why is reducing the trusted computing base a useful security design strategy?

    It limits the amount of software that must be correct for the system's security policy to hold.

  50. What is the trusted computing base (TCB)?

    The set of system components that must be trusted to enforce the security policy correctly.

  51. Why is applying security checks at every interface important?

    An attacker may use whichever interface has the weakest or missing check to reach the same protected resource.

  52. Why should security testing examine edge cases?

    Unusual or boundary inputs can expose implementation assumptions and small errors that cause major security failures.

  53. Why should security designs avoid relying on a single protective mechanism being perfect?

    Mechanisms can contain bugs, so a design that limits the consequences of failures is more resilient.

  54. What is the relationship between security design and iterative improvement?

    Designers identify weaknesses, revise assumptions or mechanisms, and repeat the process to improve protection.

Card 1 of 54
Card 1 of 54

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent