CSC 3201 Quiz 1

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/168

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:30 PM on 9/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

169 Terms

1
New cards

L1 — What is security engineering?

Building systems that remain dependable in the face of malice, error, or mischance.

2
New cards

L1 — What three kinds of problems must security engineering handle?

Malice, error, and mischance.

3
New cards

L1 — How does security engineering differ from ordinary software engineering?

Software engineering focuses on making desired things happen; security engineering must also ensure undesired things do not happen.

4
New cards

L1 — Why are hostile adversaries a unique challenge?

Attackers deliberately search for unexpected weaknesses instead of behaving like random failures.

5
New cards

L1 — Why does security require continual vigilance?

Attackers can find new and unpredictable ways to exploit systems, so defenders must anticipate new failures.

6
New cards

L1 — Can perfect security be guaranteed?

No. The lecture emphasizes that no one knows how to build unbreakable security and claims of perfect security are wrong.

7
New cards

L2 — CIA Triad

Confidentiality, Integrity, Availability.

8
New cards

L2 — Confidentiality

Information is not disclosed to unintended or unauthorized parties.

9
New cards

L2 — Confidentiality question to ask

Who is allowed to see this information?

10
New cards

L2 — Example confidentiality violation

A private bank statement or password is exposed to an unauthorized person.

11
New cards

L2 — Integrity

Data cannot be modified in an unauthorized way, and the system functions as intended.

12
New cards

L2 — Integrity question to ask

Can I trust that the data or system has not been improperly changed?

13
New cards

L2 — Example integrity violation

A bank balance or file is changed without authorization.

14
New cards

L2 — Availability

A resource is accessible and usable by authorized users on demand.

15
New cards

L2 — Availability question to ask

Can authorized users access the resource when they need it?

16
New cards

L2 — Example availability violation

A DDoS attack makes a website or network unavailable.

17
New cards

L2 — Bank website cannot be accessed: which CIA property?

Availability.

18
New cards

L2 — Bank balance randomly changes: which CIA property?

Integrity.

19
New cards

L2 — Bank statements are sent to unintended people: which CIA property?

Confidentiality.

20
New cards

L2 — Why use risk assessment?

Not all security problems are equally serious, so risks must be prioritized.

21
New cards

L2 — What does DREAD stand for?

Damage, Reproducibility, Exploitability, Affected Users, Discoverability.

22
New cards

L2 — DREAD: Damage

How bad would the attack be?

23
New cards

L2 — DREAD: Reproducibility

How easy is it to reproduce the attack?

24
New cards

L2 — DREAD: Exploitability

How much work is required to launch the attack?

25
New cards

L2 — DREAD: Affected Users

How many users would be impacted?

26
New cards

L2 — DREAD: Discoverability

How easy is it to discover the threat or vulnerability?

27
New cards

L2 — Security through obscurity

Relying mainly on secrecy about a system's design or implementation as the security mechanism.

28
New cards

L2 — Why is security through obscurity a weak foundation?

If the hidden design becomes known, the protection can collapse; secrecy should not replace real security controls.

29
New cards

L2 — Can obscurity ever help?

It can be an additional layer on top of strong security practices, but it should not be the main defense.

30
New cards

L2 — Security by Design

Security should be built into the system from the beginning rather than added only after problems appear.

31
New cards

L2 — OWASP

Open Worldwide Application Security Project; a nonprofit foundation dedicated to improving software security.

32
New cards

L2 — OWASP Security by Design Principles in the posted slides

The quiz topic sheet names them, but the posted Lecture 2 slides only reference the OWASP principles and do not enumerate the full list.

33
New cards

L3 — Cryptography

The science of hiding secret data.

34
New cards

L3 — Cryptanalysis

The science of breaking secret messages.

35
New cards

L3 — Cryptology

The broader field containing both cryptography and cryptanalysis.

36
New cards

L3 — Symmetric-key cryptography

The same secret key is used for encryption and decryption.

37
New cards

L3 — Symmetric encryption notation

C = E_K(P), where P is plaintext, K is the secret key, and C is ciphertext.

38
New cards

L3 — Symmetric decryption notation

P = D_K(C), using the same secret key K.

39
New cards

L3 — Plaintext

The original readable message or data before encryption.

40
New cards

L3 — Ciphertext

The encrypted output produced from plaintext.

41
New cards

L3 — Cipher

An algorithm consisting of well-defined steps for encryption or decryption.

42
New cards

L3 — Substitution cipher

Replaces plaintext bits, characters, or blocks with different bits, characters, or blocks.

43
New cards

L3 — Transposition cipher

Scrambles the positions of characters without changing the characters themselves.

44
New cards

L3 — Permutation cipher

A type of transposition cipher that rearranges the order of plaintext symbols.

45
New cards

L3 — Stream cipher

Processes plaintext continuously, commonly a bit or byte at a time using a keystream.

46
New cards

L3 — Block cipher

Processes fixed-size blocks of plaintext and maps each plaintext block to a ciphertext block.

47
New cards

L3 — Substitution vs. transposition

Substitution changes what symbols are present; transposition changes where the symbols are located.

48
New cards

L3 — Open design

Security of the cipher should rely on the key being secret, not on the cipher algorithm being secret.

49
New cards

L3 — What should remain secret under open design?

The cryptographic key, not the algorithm.

50
New cards

L3 — XOR identity: X XOR X

0

51
New cards

L3 — XOR identity: X XOR 0

X.

52
New cards

L3 — One-time pad encryption

C = M XOR K.

53
New cards

L3 — One-time pad decryption

M = C XOR K because (M XOR K) XOR K = M.

54
New cards

L3 — OTP requirement 1

The key K must be uniformly random.

55
New cards

L3 — OTP requirement 2

The key K must be at least as long as the message M.

56
New cards

L3 — OTP requirement 3

The key K must be used only once.

57
New cards

L3 — OTP requirement 4

The key K must remain secret.

58
New cards

L3 — Why can the one-time pad provide perfect secrecy?

For a given ciphertext, every same-length plaintext is possible with exactly one corresponding key, so the ciphertext alone does not favor one plaintext.

59
New cards

L3 — What happens if an OTP key is reused?

C1 XOR C2 = M1 XOR M2, which leaks a strong relationship between the two plaintexts.

60
New cards

L3 — Why is a block-cipher mapping one-to-one?

Encryption must be reversible; if two plaintext blocks mapped to the same ciphertext block, decryption would be ambiguous.

61
New cards

L3 — Do block ciphers automatically provide integrity?

No. They are widely used for confidentiality, but confidentiality alone does not prove data is authentic or unchanged.

62
New cards

L3 — Pseudorandomness

Random-like behavior produced by a deterministic algorithm; the output is determined by the seed and algorithm.

63
New cards

L3 — Initialization vector (IV): main purpose

Introduce randomness so repeated or similar plaintext encrypted with the same key does not reveal obvious repeated ciphertext patterns.

64
New cards

L3 — Must an IV be secret?

No, but in the construction discussed in lecture it must be protected from unauthorized manipulation.

65
New cards

L3 — Big lesson from IV bit flipping

Confidentiality does not imply integrity.

66
New cards

L4 — DES

Data Encryption Standard; a symmetric-key block cipher.

67
New cards

L4 — DES block size

64 bits.

68
New cards

L4 — DES usable key size

56 bits.

69
New cards

L4 — DES number of rounds

16

70
New cards

L4 — DES major steps

Key generation, key schedule, initial permutation, round function, final permutation, decryption.

71
New cards

L4 — DES key schedule

Generates 16 round subkeys from the original 56-bit key.

72
New cards

L4 — DES round-subkey size

48 bits.

73
New cards

L4 — DES key schedule split

Split the 56-bit key into two 28-bit halves, circularly shift them, recombine them, then PC-2 selects/reorders 48 bits for the round key.

74
New cards

L4 — DES initial permutation

A fixed reordering of the 64 plaintext bits before the Feistel rounds.

75
New cards

L4 — DES structure

Feistel network.

76
New cards

L4 — DES Feistel round: first step

Split the 64-bit block into 32-bit left and right halves.

77
New cards

L4 — DES round: expansion

Expand the 32-bit right half to 48 bits.

78
New cards

L4 — DES round: key mixing

XOR the expanded 48-bit right half with the 48-bit round subkey.

79
New cards

L4 — DES round: substitution

Split the 48-bit result into eight 6-bit chunks; each S-box maps 6 bits to 4 bits, producing 32 bits total.

80
New cards

L4 — DES round: permutation

Permute the 32-bit S-box output using a fixed table.

81
New cards

L4 — DES round: combine with left half

XOR the permuted 32-bit result with the left half, then swap halves for the next round.

82
New cards

L4 — DES final permutation

After the last round, combine the halves and apply the inverse of the initial permutation.

83
New cards

L4 — DES decryption

Uses essentially the same Feistel process as encryption, but applies the round subkeys in reverse order.

84
New cards

L4 — Main weakness of DES

Its 56-bit key is too small for modern security requirements.

85
New cards

L4 — 2DES encryption

C = E_K2(E_K1(P)).

86
New cards

L4 — Why does 2DES not provide the expected 112-bit security?

It is vulnerable to a meet-in-the-middle attack.

87
New cards

L4 — Meet-in-the-middle attack against 2DES

Compute and store E_K1(P) for all K1 values, compute D_K2(C) for all K2 values, and look for matching intermediate values.

88
New cards

L4 — MITM matching condition

E_K1(P) = D_K2(C).

89
New cards

L4 — 2DES MITM complexity from lecture

Essentially O(2^56), rather than O(2^112), plus substantial storage.

90
New cards

L4 — Why use a second known plaintext-ciphertext pair in MITM?

To test candidate key pairs and eliminate false matches.

91
New cards

L4 — 3DES form

EDE: C = E_K3(D_K2(E_K1(P))).

92
New cards

L4 — 3DES security discussed in lecture

Approximately O(2^112) against the discussed meet-in-the-middle strategy.

93
New cards

L4 — Why is the middle 3DES step decryption?

The EDE structure increased security while preserving compatibility with legacy DES systems.

94
New cards

L5 — Confusion

Makes the relationship between the key and ciphertext difficult to see or predict.

95
New cards

L5 — Diffusion

Spreads the influence of each plaintext bit across many ciphertext bits.

96
New cards

L5 — Confusion memory cue

Key-to-ciphertext relationship becomes confusing.

97
New cards

L5 — Diffusion memory cue

A small plaintext change spreads across the ciphertext.

98
New cards

L5 — Avalanche effect

A small input change, ideally one bit, causes many ciphertext bits to change.

99
New cards

L5 — AES

Advanced Encryption Standard; a symmetric-key block cipher based on Rijndael.

100
New cards

L5 — AES block size

128 bits.