Questions: Information Flow Security

4 questions to test your understanding

Score: 0 / 4
Question 1 Short Answer

Noninterference is a fundamental security property defined as: if two executions differ only in a secret input S, their observable outputs should be identical. Why is this a strong security guarantee?

Think about your answer, then reveal below.
Question 2 Multiple Choice

Taint analysis tracks the flow of sensitive data (taints) through a program. If a password string P is tainted, and the program computes H = hash(P), is H tainted?

AYes, H is tainted because it depends on P
BNo, H is untainted because hash is a one-way function
CIt depends on the analysis. Conservative taint analysis marks H as tainted (information from P flows to H). However, if the analysis understands that hash is cryptographically secure, it might mark H as untainted because the hash doesn't leak information about P
DTaint analysis cannot handle hash functions
Question 3 Short Answer

Type-based information flow security assigns security labels to data (e.g., Secret, Public) and enforces that Secret data never reaches Public outputs. A program reads a password P (Secret) and checks if P == 'admin'. This produces a boolean result. Should the result be labeled Secret or Public?

Think about your answer, then reveal below.
Question 4 Short Answer

Timing attacks exploit information leaks through execution time. A password checker loop terminates early if the password is wrong but runs longer for correct passwords (checking all characters). How can information flow analysis detect this vulnerability?

Think about your answer, then reveal below.