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

  • 73Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Security Foundations
In general, security is about achieving a goal when an
is present.

73 questions

  1. 1
    In general, security is about achieving a goal when an
    _____
    is present.
    Hint

    Think of the opposing party trying to prevent success.

    Answer

    adversary

  2. 2
    A secure system should continue to accomplish its purpose regardless of what the
    _____
    is trying to do.
    Hint

    This is the informal term used for the opposing party in the security model.

    Answer

    bad guy

  3. 3
    The statement of what a system should be able to do is its
    _____
    .
    Hint

    It describes the goal the system is meant to enforce.

    Answer

    policy

  4. 4
    The security property that limits who can access data is called
    _____
    .
    Hint

    It concerns keeping information from unauthorized readers.

    Answer

    confidentiality

  5. 5
    The security property that limits who can modify data is called
    _____
    .
    Hint

    It concerns preventing unauthorized changes.

    Answer

    integrity

  6. 6
    A policy that keeps a website usable despite attempts to take it down concerns
    _____
    .
    Hint

    This property concerns whether a system or service can be accessed when needed.

    Answer

    availability

  7. 7
    The set of assumptions about an attacker is called the
    _____
    .
    Hint

    It describes what the attacker is assumed to be able to do.

    Answer

    threat model

  8. 8
    The software, hardware, and design components that try to enforce a policy form the security
    _____
    .
    Hint

    It is the part of the system intended to make the policy hold.

    Answer

    mechanism

  9. 9
    Security is often described as a
    _____
    goal because a system must prevent violations by many possible actions.
    Hint

    Contrast this with merely showing that an authorized user can perform one desired action.

    Answer

    negative

  10. 10
    Showing that authorized users can access a file is easier than proving that
    _____
    else can access it.
    Hint

    The harder claim must rule out every unauthorized person and route of access.

    Answer

    no one

  11. 11
    Security design commonly proceeds as an
    _____
    in which weaknesses are found and addressed.
    Hint

    The design is repeatedly evaluated, corrected, and improved.

    Answer

    iterative process

  12. 12
    Finding a system's breaking point does not mean the system is worthless; it helps determine when the design is
    _____
    .
    Hint

    The lesson is to understand the conditions under which an idea works.

    Answer

    applicable

  13. 13
    A strong security mechanism can make new capabilities possible by
    _____
    programs from harming the rest of a system.
    Hint

    Think of isolating a program so its actions are constrained.

    Answer

    sandboxing

  14. 14
    Google's system described as enabling native code to run in a browser was called
    _____
    .
    Hint

    It was presented as a way to run arbitrary x86 native code securely in a browser.

    Answer

    Native Client

  15. 15
    Adding account recovery questions changes a policy from requiring a password to allowing access with a password
    _____
    the answers to the questions.
    Hint

    Recovery questions create an alternative route to account access.

    Answer

    or

  16. 16
    A recovery method that provides another way to log in can
    _____
    the security of the original policy.
    Hint

    It adds an alternative path that an attacker might exploit.

    Answer

    weaken

  17. 17
    Sarah Palin's Yahoo account recovery questions were vulnerable because their answers were available on
    _____
    .
    Hint

    The information was publicly documented online.

    Answer

    Wikipedia

  18. 18
    In the described Gmail recovery process, the reset link was sent to a
    _____
    email address.
    Hint

    It was an alternate address associated with the account.

    Answer

    backup

  19. 19
    In the described Apple account recovery process, resetting the password required the billing address and the last four digits of a
    _____
    .
    Hint

    The information was associated with the account's payment details.

    Answer

    credit card number

  20. 20
    Amazon allowed a person to add a new credit card to an account without first
    _____
    .
    Hint

    The site made purchasing convenient, even without this account step.

    Answer

    signing in

  21. 21
    In the account-compromise chain, Amazon's password reset accepted one of the user's
    _____
    as proof.
    Hint

    The attacker could add a new one to the account and use it for recovery.

    Answer

    credit card numbers

  22. 22
    Although Amazon concealed full saved card numbers, it displayed their
    _____
    digits.
    Hint

    The partial number helped users distinguish among cards.

    Answer

    last four

  23. 23
    A conservative threat model should generally err on the side of
    _____
    .
    Hint

    Assume less about an attacker's limitations rather than more.

    Answer

    caution

  24. 24
    A threat model that assumes people always choose strong passwords makes an unreliable assumption about
    _____
    .
    Hint

    It concerns how people actually behave when using systems.

    Answer

    human factors

  25. 25
    Threat-model assumptions may become unreliable as technology and attacker capabilities change
    _____
    .
    Hint

    A once-reasonable assumption may not remain reasonable indefinitely.

    Answer

    over time

  26. 26
    The 56-bit keys used with DES in the original Kerberos design eventually became vulnerable because attackers could
    _____
    the key space.
    Hint

    The attack involved trying the possible keys systematically.

    Answer

    enumerate

  27. 27
    An assumption that a laptop's hardware cannot be physically compromised may be unsuitable when defending against the
    _____
    .
    Hint

    The lecture discussed highly capable state-level attackers.

    Answer

    government

  28. 28
    A website certificate design that assumes every certificate authority is trustworthy relies on a potentially unsafe
    _____
    .
    Hint

    The system makes an assumption about the adversary and the trustworthiness of authorities.

    Answer

    threat model

  29. 29
    In the certificate-authority system described, compromising
    _____
    authority could allow an attacker to impersonate a website.
    Hint

    The system trusted many authorities, so the attacker did not need to compromise all of them.

    Answer

    one

  30. 30
    The operating-system research example showed that attackers may target the machine storing the
    _____
    rather than the finished system.
    Hint

    It was kept on an inadequately secured development machine.

    Answer

    source code

  31. 31
    A login mechanism that slows attackers after repeated failures is intended to limit
    _____
    .
    Hint

    It prevents attackers from making an unlimited number of login attempts.

    Answer

    password guessing

  32. 32
    If users commonly choose predictable passwords, an attacker may find an account by trying many
    _____
    .
    Hint

    The attacker repeatedly submits candidate passwords.

    Answer

    guesses

  33. 33
    The iCloud find-my-iPhone interface was vulnerable because it did not track the number of failed
    _____
    .
    Hint

    The missing check allowed repeated password guesses.

    Answer

    login attempts

  34. 34
    A password-guessing defense can make attacks slower by requiring users to wait after too many failed
    _____
    .
    Hint

    This protection is also called backing off or rate limiting.

    Answer

    tries

  35. 35
    The Citibank account flaw allowed access to another customer's information by changing an account identifier in the
    _____
    .
    Hint

    The identifier appeared in the web address after login.

    Answer

    URL

  36. 36
    For Bitcoin, control of a user's
    _____
    allows the holder to spend that user's Bitcoins.
    Hint

    It is the secret cryptographic value associated with the balance.

    Answer

    private key

  37. 37
    A pseudorandom number generator must be initialized with a sufficiently unpredictable
    _____
    .
    Hint

    It is the initial random input from which later values are generated.

    Answer

    seed

  38. 38
    If a Bitcoin signature scheme reuses the same nonce for two signatures, an attacker may recover the user's
    _____
    .
    Hint

    The repeated value can expose the secret used to authorize transactions.

    Answer

    private key

  39. 39
    A security mechanism can fail even when the policy and threat model are reasonable if the implementation contains a
    _____
    .
    Hint

    A small programming mistake may prevent the intended check from being enforced.

    Answer

    bug

  40. 40
    A certificate format that records a string's length before its contents uses a
    _____
    representation.
    Hint

    The size appears before the string data.

    Answer

    length-prefixed

  41. 41
    In C, strings are commonly terminated by a
    _____
    byte rather than represented by an explicit length.
    Hint

    It has the value zero and marks the end of the string.

    Answer

    null

  42. 42
    When two components interpret string encodings differently, an attacker may exploit an embedded
    _____
    to make them see different names.
    Hint

    One component may treat this as the end of a C string.

    Answer

    zero byte

  43. 43
    In the certificate example, a browser interpreting the name through C string rules would see the host name as
    _____
    before the embedded zero byte.
    Hint

    The attacker placed this apparent target name at the beginning of a longer certificate name.

    Answer

    Amazon.com

  44. 44
    A general way to find encoding vulnerabilities is to look for places where two components
    _____
    the same input differently.
    Hint

    Disagreement about the meaning of data can create an exploitable gap.

    Answer

    interpret

  45. 45
    On the x86 system described, the stack grows toward
    _____
    memory addresses.
    Hint

    New stack space is allocated by decreasing the stack pointer.

    Answer

    lower

  46. 46
    The CPU register that points to the current top of the stack is the
    _____
    .
    Hint

    Its value changes as stack space is allocated or released.

    Answer

    stack pointer

  47. 47
    In the x86 calling convention example, the
    _____
    register provides a reference point for a function's stack frame.
    Hint

    It is used to locate saved frame information and local variables.

    Answer

    EBP

  48. 48
    A function's
    _____
    is saved on the stack so execution can continue in the caller after the function returns.
    Hint

    It identifies the instruction to resume after a call.

    Answer

    return address

  49. 49
    In the illustrated x86 stack frame, the saved return address was located at
    _____
    relative to EBP.
    Hint

    It was one 32-bit word above the address held in EBP.

    Answer

    EBP plus four

  50. 50
    The x86 instruction that restores the stack frame before a function returns in the example is
    _____
    .
    Hint

    It restores the stack using the frame pointer.

    Answer

    leave

  51. 51
    The instruction pointer register discussed in the example is called
    _____
    .
    Hint

    It identifies the instruction the CPU will execute next.

    Answer

    EIP

  52. 52
    After a function returns, the CPU uses the saved
    _____
    to determine where execution resumes.
    Hint

    Corrupting this value can redirect program execution.

    Answer

    return address

  53. 53
    The dangerous C function in the demonstration was
    _____
    because it reads input without checking the destination buffer's size.
    Hint

    The compiler warned that this function should not be used.

    Answer

    gets

  54. 54
    In the demonstration, the input buffer was allocated with space for
    _____
    elements.
    Hint

    The example used a buffer of this fixed size before supplying a longer input.

    Answer

    128

  55. 55
    A buffer overflow occurs when a program writes more data into a buffer than the buffer can
    _____
    .
    Hint

    The excess data spills into nearby memory.

    Answer

    hold

  56. 56
    When the example received a long sequence of the character A, the input function wrote beyond the buffer because it did not know the buffer's
    _____
    .
    Hint

    The function received a pointer but no limit on how many bytes to copy.

    Answer

    length

  57. 57
    In the example's ASCII representation, the character A had the hexadecimal value
    _____
    .
    Hint

    The debugger showed this repeated value in the corrupted memory.

    Answer

    0x41

  58. 58
    When the overflowing input reaches the saved
    _____
    on the stack, it can change where the function returns.
    Hint

    This saved value controls the next location executed after the function finishes.

    Answer

    return address

  59. 59
    In the demonstration, a return address overwritten with repeated As became the invalid address
    _____
    .
    Hint

    This value consists of four copies of the hexadecimal encoding of A.

    Answer

    41414141

  60. 60
    A crash caused by execution jumping to an invalid address was reported as a
    _____
    .
    Hint

    The process attempted to access an invalid memory location.

    Answer

    segmentation fault

  61. 61
    An attacker can redirect execution to existing program instructions by carefully choosing the overwritten
    _____
    .
    Hint

    The attacker controls this saved control-flow value through the overflow.

    Answer

    return address

  62. 62
    An attacker can also place code in the overflowing input and redirect execution into the
    _____
    .
    Hint

    The injected instructions are stored in the memory region filled by the request.

    Answer

    buffer

  63. 63
    Injected code that traditionally launched the Unix command interpreter was often called
    _____
    .
    Hint

    The name refers to code that could provide a shell.

    Answer

    shell code

  64. 64
    A return-to-libc attack reuses existing program code to bypass the need to execute injected code from the
    _____
    .
    Hint

    Modern systems may mark this memory region as non-executable.

    Answer

    stack

  65. 65
    On a system where the stack grows upward, an overflowing buffer can still corrupt the return address of a nested function such as
    _____
    .
    Hint

    This is the input function called by the demonstrated function.

    Answer

    gets

  66. 66
    To exploit a buffer overflow reliably, an attacker must account for code that runs after the overflow and before the corrupted value is
    _____
    .
    Hint

    The corrupted value must eventually affect execution for the attack to succeed.

    Answer

    used

  67. 67
    A CPU memory permission that allows instructions to run from a region is called the
    _____
    permission.
    Hint

    Modern systems can assign this permission to code but not ordinary data.

    Answer

    execute

  68. 68
    Marking the stack as non-executable helps prevent an attacker from running injected code stored on the
    _____
    .
    Hint

    This is where local buffers are often allocated.

    Answer

    stack

  69. 69
    A non-executable stack does not prevent an attacker from redirecting execution to
    _____
    code already present in the program.
    Hint

    Return-to-libc attacks rely on reusing code rather than injecting executable data.

    Answer

    existing

  70. 70
    The most direct way to fix a buffer overflow caused by unsafe source code is to correct the
    _____
    .
    Hint

    The underlying mistake should be removed rather than merely made harder to exploit.

    Answer

    source code

  71. 71
    A system can reduce the impact of mechanism bugs by enforcing security in a small number of carefully chosen
    _____
    .
    Hint

    The rest of the software should not need to enforce the security policy.

    Answer

    components

  72. 72
    The set of components that must be trusted to enforce a system's security is called the
    _____
    .
    Hint

    Reducing this set is a useful security design technique.

    Answer

    trusted computing base

  73. 73
    A design with a smaller trusted computing base is less dependent on every piece of software correctly enforcing the
    _____
    .
    Hint

    The goal is to make most software irrelevant to security enforcement.

    Answer

    security policy

1 of 73
Question 1 of 73

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent