Problem C-1.5
Suppose that you are a computer virus writer; hence, you know that you need to store a
copy of the code for your virus inside the virus itself. Moreover, suppose you know that a
security administrator is also aware of this fact and will be using it to detect the presence of
your virus in operating systems files, as described in the previous problem. Explain how you
can hide the embedded copy of your virus so that it is difficult for the security administrator
to find it.
Problem C-1.9
Benny is a thief who tried to break into an Automated Teller Machine (ATM) using a
screwdriver, but was only able to break five different keys on the numeric keypad and jam
the card reader, at which point he heard Alice coming, so he hid. Alice walked up, put
in her ATM card, successfully entered her 4-digit PIN, and took some cash. But she was
not able to get her card back, so she drove off to find help. Benny then went back to the
ATM, and started entering numbers to try to discover Alice’s PIN and steal money from her
account. What is the worst-case number of PINs that Benny has to enter before correctly
discovering Alice’s PIN?
Problem C-1.10
As soon as Barack took office, he decided to embrace modern technology by communicating
with cabinet members over the Internet using a device that supports cryptographic proto-
cols. In a first attempt, Barack exchanges with Tim brief text messages, encrypted with
public-key cryptography, to decide the exact amounts of bailout money to give to the largest
10 banks in the country. Let pBand pTbe the public keys of Barack and Tim, respectively.
A message msent by Barack to Tim is transmitted as EpT(m) and the reply rfrom Tim
to Barack is transmitted as EpB(r). The attacker can eavesdrop the communication and
knows the following information:
•Public keys pBand pTand the encryption algorithm, such that there is exactly one
ciphertext for each plaintext.
•The total amount of bailout money authorized by congress is $900B
•The names of the largest 10 banks
•The amount each bank will get is a multiple of $1B
•Messages and replies are terse exchanges of the following form:
Barack: How much to Citibank?
Tim: $144B.
5