Building Secure Systems
- 73Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
73 questions
- 1In general, security is about achieving a goal when an_____is present.
Hint
Think of the opposing party trying to prevent success.
Answer
adversary
- 2A 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
- 3The 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
- 4The security property that limits who can access data is called_____.
Hint
It concerns keeping information from unauthorized readers.
Answer
confidentiality
- 5The security property that limits who can modify data is called_____.
Hint
It concerns preventing unauthorized changes.
Answer
integrity
- 6A 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
- 7The 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
- 8The 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
- 9Security 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
- 10Showing 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
- 11Security design commonly proceeds as an_____in which weaknesses are found and addressed.
Hint
The design is repeatedly evaluated, corrected, and improved.
Answer
iterative process
- 12Finding 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
- 13A 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
- 14Google'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
- 15Adding 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
- 16A 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
- 17Sarah Palin's Yahoo account recovery questions were vulnerable because their answers were available on_____.
Hint
The information was publicly documented online.
Answer
Wikipedia
- 18In 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
- 19In 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
- 20Amazon 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
- 21In 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
- 22Although Amazon concealed full saved card numbers, it displayed their_____digits.
Hint
The partial number helped users distinguish among cards.
Answer
last four
- 23A conservative threat model should generally err on the side of_____.
Hint
Assume less about an attacker's limitations rather than more.
Answer
caution
- 24A 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
- 25Threat-model assumptions may become unreliable as technology and attacker capabilities change_____.
Hint
A once-reasonable assumption may not remain reasonable indefinitely.
Answer
over time
- 26The 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
- 27An 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
- 28A 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
- 29In 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
- 30The 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
- 31A 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
- 32If users commonly choose predictable passwords, an attacker may find an account by trying many_____.
Hint
The attacker repeatedly submits candidate passwords.
Answer
guesses
- 33The 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
- 34A 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
- 35The 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
- 36For 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
- 37A 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
- 38If 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
- 39A 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
- 40A 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
- 41In 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
- 42When 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
- 43In 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
- 44A 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
- 45On the x86 system described, the stack grows toward_____memory addresses.
Hint
New stack space is allocated by decreasing the stack pointer.
Answer
lower
- 46The 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
- 47In 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
- 48A 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
- 49In 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
- 50The 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
- 51The instruction pointer register discussed in the example is called_____.
Hint
It identifies the instruction the CPU will execute next.
Answer
EIP
- 52After a function returns, the CPU uses the saved_____to determine where execution resumes.
Hint
Corrupting this value can redirect program execution.
Answer
return address
- 53The 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
- 54In 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
- 55A 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
- 56When 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
- 57In 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
- 58When 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
- 59In 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
- 60A 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
- 61An 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
- 62An 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
- 63Injected 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
- 64A 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
- 65On 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
- 66To 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
- 67A 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
- 68Marking 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
- 69A 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
- 70The 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
- 71A 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
- 72The 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
- 73A 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

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