Computer Security
- 67Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why can software errors create security vulnerabilities even when the software continues to function?
67 questions
- 1
Why can software errors create security vulnerabilities even when the software continues to function?
Model answer
Some developer mistakes do not stop software from working but leave exploitable weaknesses. Attackers can use those weaknesses to compromise systems.
Explanation
The lecture distinguishes functional failures from errors that attackers can exploit; both attackers and defenders may use such weaknesses.
- 2
Why can attacks on computer systems have consequences beyond financial or data loss?
Model answer
Some attacked systems are mission-critical, so disrupting them can endanger people and cause deaths.
Explanation
The lecture notes that attacks on critical systems can have life-threatening consequences.
- 3
Why is the internet's original design relevant to modern security problems?
Model answer
The internet was designed to operate without encryption, so security was added later rather than built into its foundations.
Explanation
The lecture describes internet security as extensive but partly an afterthought because the original design assumed unencrypted communication.
- 4
What do the terms black hat and white hat mean in computer security?
Model answer
A black hat is a malicious hacker, while a white hat is someone who uses hacking skills for defensive or beneficial purposes.
Explanation
The terms use the convention in old Western films of villains wearing black hats and good characters wearing white hats.
- 5
Why is the meaning of a right to privacy difficult to define in law?
Model answer
Privacy laws differ across jurisdictions, and governments may recognize privacy while reserving exceptions that are not precisely defined.
Explanation
The lecture presents privacy as a contested issue because the limits and meaning of the right remain uncertain.
- 6
What broad principle did investigations into privacy recommend about software?
Model answer
They recommended that software should help people protect their privacy.
Explanation
The lecture summarizes the investigations as supporting privacy and the use of software to help safeguard it.
- 7
How does the postcard analogy explain the privacy problem in internet communication?
Model answer
Like a postcard, an unencrypted internet packet can be read by someone who intercepts it, so private information needs additional protection.
Explanation
The analogy highlights that communication on an open system may be visible to others unless measures are taken to keep it private.
- 8
What four questions or factors does the lecture identify as central to internet security?
Model answer
They are what privacy means, the reward for hacking, the effort required to hack, and the system's connectivity.
Explanation
These factors frame what needs protection, how attractive a target is, how difficult it is to attack, and how connected it is.
- 9
How can reducing connectivity improve a system's security?
Model answer
A system that is disconnected from the internet has fewer opportunities for internet-based attacks; some organizations use air-gapped systems for backups.
Explanation
The lecture emphasizes that constant connectivity is not necessary and that disconnecting systems can reduce their exposure.
- 10
What does the story of the executive's iPhone illustrate about security practices spreading through an organization?
Model answer
After an executive received permission to connect an insecure early iPhone, other employees began connecting theirs as well, showing how exceptions can spread.
Explanation
Within a week, ten people had connected iPhones, illustrating how one security exception can become a wider practice.
- 11
How can the internet's legal environment complicate the use of security technologies?
Model answer
Internet activity can cross jurisdictions with different laws, making compliance difficult; export restrictions on encryption can also obstruct commercial use.
Explanation
The lecture notes that internet laws do not map neatly onto physical borders and that some encryption technologies are restricted for export.
- 12
How can internet communication affect people's behavior and their ability to form communities?
Model answer
People may feel less inhibited online and may more easily connect with others who share their interests, enabling communities and shared activity to grow.
Explanation
The lecture identifies online disinhibition and the ability of people with similar interests to find one another as social effects of connectivity.
- 13
What is cryptography, and what practical problem does it address?
Model answer
Cryptography is secret writing that protects messages from being understood by unauthorized people.
Explanation
The lecture presents cryptography as a way to address the privacy challenges of communication over an open internet.
- 14
How does a one-time pad work, and why is it difficult to use for large volumes of data?
Model answer
The sender combines a message with a random sequence from a pad, and the receiver uses an identical pad to recover it. Supplying and using enough random material for large amounts of data is impractical.
Explanation
The lecture describes one-time pads as uncrackable in principle but impractical for encrypting large volumes because both parties need matching random material.
- 15
What is a cryptographic key, and how does it help a receiver recover a message?
Model answer
A key is shared information used by an algorithm to encrypt or scramble a message. A receiver with the key can reverse the process and recover the message.
Explanation
The lecture describes the key as information known to both parties that makes scrambling and unscrambling possible.
- 16
In standard cryptography terminology, who are Alice, Bob, and Eve?
Model answer
Alice and Bob are the conventional participants communicating with one another, while Eve is an eavesdropper trying to intercept or analyze their communication.
Explanation
These names are standard characters used to explain cryptographic protocols and attacks.
- 17
What is the purpose of a key-exchange protocol such as Diffie–Hellman–Merkle?
Model answer
It allows two parties to establish a shared secret over a public channel without first sending that secret directly.
Explanation
The protocol addresses the difficulty of securely sharing a key with someone who may be a stranger, such as an online retailer.
- 18
What information is public in the lecture's Diffie–Hellman–Merkle example, and what does each participant keep secret?
Model answer
The base and modulus are public, while Alice and Bob each keep their own private exponent secret and publish the corresponding computed value.
Explanation
The example uses shared public parameters and separate private values to let both parties derive a common secret.
- 19
What does modulo arithmetic do in the lecture's key-exchange example?
Model answer
It replaces a number with the remainder left after division by the modulus, making successive powers appear irregular and difficult to reverse.
Explanation
For example, with modulus 23, 25 leaves remainder 2. The resulting sequence of remainders obscures the original exponent.
- 20
Using base 5 and modulus 23, what is 5^2 mod 23, and why does the result differ from the ordinary square?
Model answer
5^2 mod 23=2, because 25 divided by 23 leaves a remainder of 2.
Explanation
Modulo arithmetic records the remainder rather than the unreduced power.
- 21
In the example with base 5 and modulus 23, what public values do Alice and Bob produce from private exponents 6 and 15?
Model answer
Alice produces 8 and Bob produces 19.
Explanation
The public values are calculated by raising the base to each person's private exponent and taking the remainder modulo 23.
- 22
How do Alice and Bob derive the same shared secret in the key-exchange example?
Model answer
Alice raises Bob's public value to her private exponent, and Bob raises Alice's public value to his private exponent; both obtain 2 in the example.
Explanation
The two calculations give the same shared result, while Eve cannot readily derive it from the public values when secure parameters are used.
- 23
Why does a small modulus make the lecture's key-exchange example unsuitable for real security?
Model answer
With a small modulus, an attacker can test possible private exponents and recover the secret; real systems require much larger, carefully chosen parameters.
Explanation
The example's modulus of 23 is for illustration. Its tiny size makes exhaustive search feasible.
- 24
What is an exhaustive search attack on a key, and why does key size matter?
Model answer
An exhaustive search tests possible keys or exponents until it finds the right one. Larger key parameters make the number of possibilities—and the work required—much greater.
Explanation
The lecture contrasts the easily searched toy example with real parameters that would require an infeasible number of computations to search directly.
- 25
How do security analysts estimate whether a cryptographic key will remain secure in the future?
Model answer
They consider the best known attack, estimate its computational cost, project future computing power, and add a safety margin.
Explanation
The lecture describes key selection as a calculation based on attack complexity and expected advances in computing, not merely a guess.
- 26
What is an elliptic-curve approach to cryptography, according to the lecture?
Model answer
It performs cryptographic operations using points on an elliptic curve rather than relying on ordinary multiplication modulo a number.
Explanation
The lecture describes a geometric point-combination operation and presents elliptic-curve cryptography as a more complex alternative that can use shorter keys.
- 27
How does the lecture describe adding points in elliptic-curve geometry?
Model answer
To combine points, a line or tangent is drawn through points on the curve, and the intersection is reflected across the curve to define the result.
Explanation
The lecture uses this geometric construction to show why elliptic-curve operations differ from ordinary addition.
- 28
What is a man-in-the-middle attack?
Model answer
An attacker secretly places themselves between two parties, impersonating each party to the other and relaying their messages.
Explanation
The attacker can maintain two separate conversations, causing both participants to believe they are speaking directly to one another.
- 29
Why does a key-exchange protocol alone not prevent a man-in-the-middle attack?
Model answer
The protocol can establish a shared secret but does not by itself prove that the other participant is the intended person or organization.
Explanation
The lecture says Diffie–Hellman–Merkle protects communication when the other party is genuine, but does not itself prevent an impostor in the middle.
- 30
What role does a certification authority play in browser security?
Model answer
A certification authority provides a certificate asserting that a website is genuine, helping users verify the identity of the site they are connecting to.
Explanation
The lecture uses browser padlock certificates as an example of how a third party attests to a website's identity.
- 31
What is a hash function, and how does it help check whether transmitted data has changed?
Model answer
A hash function transforms data into a digital fingerprint. Comparing the resulting hash with an expected value can reveal whether the data differs.
Explanation
The lecture describes hashing as a way to generate a value associated with a block of data for checking and verification.
- 32
How does odd parity detect some transmission errors?
Model answer
A parity bit is added so the total number of ones has the required odd parity; if a bit changes, the parity may no longer match.
Explanation
Parity is inexpensive and can detect some errors, but it does not protect against every possible error.
- 33
What is a checksum, and how can it help detect a corrupted packet?
Model answer
A checksum is a value calculated from packet data and sent with it. The receiver recalculates the value and checks whether it matches the transmitted checksum.
Explanation
If the data or checksum is corrupted, the recalculated value may differ, indicating that the packet should be resent.
- 34
How does a cryptographic hash differ from a simple parity bit or checksum?
Model answer
A cryptographic hash produces a longer, more complex fingerprint of the data, with properties designed to make reversal and matching different inputs difficult.
Explanation
Parity and checksums offer relatively simple error detection, while cryptographic hashes are designed for stronger verification and security uses.
- 35
Why should it be difficult to recover the original data from a cryptographic hash?
Model answer
This one-way property lets someone verify data using its hash without revealing the data itself.
Explanation
The lecture illustrates this with checking an image's hash without sending the photograph.
- 36
What is a collision in a hash function, and why is it a security concern?
Model answer
A collision occurs when two different inputs produce the same hash. It can undermine confidence that a hash uniquely identifies the intended data.
Explanation
If distinct files share a hash, matching the hash does not reliably distinguish which file was used.
- 37
What did the 2017 collision demonstration involving the SHA-1 hash show?
Model answer
It showed that two different PDF files could produce the same SHA-1 hash, demonstrating a practical collision in that hash algorithm.
Explanation
The lecture identifies the demonstration as a collision attack and notes that the files were fundamentally different.
- 38
Why are longer hash outputs commonly used, and what status did the lecture assign to SHA-256?
Model answer
Longer outputs make successful collisions harder to find; the lecture described SHA-256 as commonly used and not yet broken at that time.
Explanation
The lecture contrasts the broken earlier hash with SHA-256's longer output and continued use.
- 39
Why are hash functions usually designed to be fast?
Model answer
Fast hashing makes it practical to check large amounts of data quickly.
Explanation
The lecture notes that hashes are used to verify files and transmitted data, so quick computation is useful.
- 40
How does a cryptocurrency wallet use a cryptographic key and a hash to produce an address?
Model answer
A secret key is used in an elliptic-curve cryptosystem to generate a public key, and a hash of that public key produces a more compact address.
Explanation
The lecture explains that the public key is very large and hashing gives a fixed-size value that can be used as an address.
- 41
Why is a brain wallet vulnerable even if it uses a strong hash algorithm?
Model answer
A brain wallet derives its key from a memorable phrase, which attackers can guess from dictionaries or common expressions; a fast hash makes those guesses easier to test.
Explanation
The lecture emphasizes that SHA-256's cryptographic strength does not protect a weak or predictable passphrase from brute-force guessing.
- 42
What is the main security lesson of the brain-wallet examples?
Model answer
A secure cryptographic algorithm can be undermined by an insecure way of choosing or managing keys.
Explanation
The lecture presents theft from brain wallets as a failure in the surrounding system and its use, not a failure of Bitcoin's core cryptography.
- 43
How does the public nature of a blockchain help attackers guess weak wallet keys?
Model answer
An attacker can test candidate phrases and keys, then monitor the public ledger for an address or transaction that matches a guess.
Explanation
The lecture describes attackers building lists of possible keys and watching the ledger for evidence that one has been used.
- 44
What does the birthday problem illustrate about searching for a hash collision?
Model answer
Finding any two matching cases is much more likely than matching one particular target, so collisions can appear sooner than a simple one-target comparison suggests.
Explanation
The birthday analogy contrasts finding someone who shares a birthday with the teacher against finding any pair of students who share a birthday.
- 45
How did the lecture characterize the motives behind early phone phreaking?
Model answer
It described phone phreaking as driven largely by curiosity about how telephone systems worked, though it could also enable free calls by exploiting control tones.
Explanation
Phreakers used tones sent over telephone lines to manipulate exchanges, including to obtain calls without paying.
- 46
What did the Chaos Computer Club demonstrate with its 1984 bank hack?
Model answer
It removed 134,000 deutsche marks from a bank after the bank had not acted on warnings about a flaw, then returned the money at a press conference.
Explanation
The incident was presented as a public demonstration intended to prove that the bank had a computer-security problem.
- 47
How did the Morris worm exploit a software flaw, and what did it demonstrate?
Model answer
It exploited a buffer-overflow vulnerability and spread across the internet, demonstrating how a software error could enable a rapidly propagating worm.
Explanation
An inadequately handled buffer overflow left a computer vulnerable, allowing the worm to spread.
- 48
What legal consequence followed Robert Morris's release of the Morris worm?
Model answer
He received the first felony conviction in the United States under the Computer Fraud and Abuse Act, along with a suspended sentence.
Explanation
The lecture links the conviction to the worm's release and identifies the relevant law as the 1986 act.
- 49
How did the dominant motives for hacking change as internet commerce expanded in the 1990s?
Model answer
Hacking shifted from being associated mainly with intellectual curiosity toward financially motivated theft and extortion.
Explanation
As online commerce grew, attackers had opportunities to steal money or demand payment.
- 50
What is cyber warfare in the lecture's account?
Model answer
Cyber warfare is the use of the internet for state purposes that amount to warfare.
Explanation
The lecture describes it as a more recent theme alongside financially motivated hacking.
- 51
Why might a cyberattack be considered a war crime?
Model answer
An attack may raise that concern if it causes mass harm indiscriminately.
Explanation
The lecture highlights indiscriminate harm and the scale of resulting injury as relevant features in considering war crimes.
- 52
What is a bug bounty, and how can it encourage responsible security work?
Model answer
A bug bounty is a reward for finding and reporting security flaws, giving researchers a financial incentive to identify vulnerabilities.
Explanation
The lecture gives the example of a hacker earning substantial rewards by discovering bugs through a bounty platform.
- 53
Why does the lecture distinguish attacks on Bitcoin's surrounding infrastructure from attacks on Bitcoin's core security?
Model answer
A wallet or key-management weakness can expose funds even when the cryptocurrency's underlying cryptographic system remains secure.
Explanation
The brain-wallet example illustrates that user practices and supporting systems can fail independently of the core cryptography.
- 54
What is a supply-chain attack, and how did the SolarWinds incident illustrate one?
Model answer
A supply-chain attack compromises a supplier or its products to reach downstream users. In the SolarWinds incident, attackers inserted malicious code into software updates that carried valid certificates.
Explanation
Because users trusted the updates, the valid certificates helped conceal that the software had been compromised.
- 55
What kind of activity did the Snowden disclosures describe beyond ordinary code breaking?
Model answer
They described state actors targeting or collaborating with supply-chain participants to create vulnerabilities for possible later use.
Explanation
The lecture presents the creation and collection of vulnerabilities as activities that can change the security landscape.
- 56
What is the purpose of a vulnerabilities equities process?
Model answer
It weighs the benefit of keeping a vulnerability secret for intelligence or security use against the risk that leaving it unfixed will expose systems.
Explanation
A vulnerability in widely used software may help an agency in one context while also endangering its own systems and the public.
- 57
Why can retaining a software vulnerability for future use create risks for the government that retains it?
Model answer
The same vulnerability may exist in the government's own systems and could be discovered or exploited by an adversary.
Explanation
The lecture stresses that weaknesses in generic software can expose both the intended target and the party retaining the vulnerability.
- 58
Why can ransomware attacks lead organizations to pay a ransom, and what broader effect can payment have?
Model answer
Organizations may pay to restore operations or limit disruption, but paying can encourage attackers to continue developing ransomware.
Explanation
The lecture notes both the pressure on affected organizations and the concern that ransom payments reward further attacks.
- 59
Why does the lecture argue that encryption is necessary for protecting users on the current internet?
Model answer
Because internet communication is fundamentally open, encryption is needed to protect information from people who could otherwise observe it.
Explanation
The lecture argues that without changing the internet's connectivity model, encryption is essential for privacy and security.
- 60
What is the security argument for end-to-end encryption, and what concern did the lecture attribute to law enforcement officials?
Model answer
End-to-end encryption protects communications from access by intermediaries, while officials argued that it could make criminal communication or harm to children harder to detect.
Explanation
The lecture contrasts the protective purpose of encryption with law-enforcement concerns about reduced access to messages.
- 61
Why does the lecture compare opposing encryption to opposing locks on doors?
Model answer
Both arguments claim that protective tools should be withheld because criminals might also use them, even though ordinary people need protection from criminals.
Explanation
The analogy challenges the idea that encryption should be weakened merely because it can also be used by offenders.
- 62
Why can a vulnerability that is useful against an adversary also threaten the people who retain it?
Model answer
A broadly shared software flaw can be exploited against anyone using the affected system, including the party that has kept the flaw secret.
Explanation
The lecture emphasizes that vulnerabilities in common systems do not selectively affect only an intended enemy.
- 63
What is meant by a store-now, crack-later strategy?
Model answer
It involves collecting encrypted information now in the hope of decrypting it later, when improved methods or computing power become available.
Explanation
The lecture discusses retaining information or vulnerabilities for later use and connects the risk to future computing capabilities.
- 64
Why did the lecture caution against assuming that quantum computing will automatically make encryption useless?
Model answer
At the time discussed, quantum computers did not have the feared capability, and any future advantage could be available to defenders as well as attackers.
Explanation
The lecture acknowledges theoretical concerns but argues that a future contest would involve both sides adopting the technology.
- 65
What challenge did the lecture identify in assessing a chain of trust in computing?
Model answer
Computing systems rely on certificates and authentication, but these represent trust in a relatively primitive way compared with complex human trust relationships.
Explanation
The lecture argues that computing has not yet captured human trust well and that better ways to reason about trust are needed.
- 66
Where did the lecture direct users seeking advice on choosing a good password?
Model answer
It directed users to the National Cyber Security Centre's password guidance.
Explanation
The lecture's response to the password question was to consult the National Cyber Security Centre.
- 67
Why is it difficult to predict whether future mathematical advances will weaken a cryptographic system?
Model answer
A new mathematical method could make an attack easier, and analysts cannot know in advance what discoveries will be made.
Explanation
The lecture notes that security estimates based on current attack methods cannot account for every future development in mathematics.

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