Eric Sosman said:
Roedy Green wrote On 03/07/06 02:32,:
I think that is much less of a problem. I think I could write
software that even on crash would never reusa a pad. Further with CDs,
there is no shortage of random gibberish. It is not precious the way
it would have been on paper.
Keep in mind that mere "random gibberish" is not enough:
What's needed is R.G. that's an exact duplicate of the R.G.
at the other end of the encrypted communication. Once the
existing supply of R.G. is exhausted, the two ends cannot
just make more gibberish and keep on chatting[*]; they must
communicate a new batch of R.G. through some other channel.
That channel is cumbersome and potentially vulnerable --
and no, OTP wouldn't help on the second channel (infinite
regress).
I was confused by Roedy's post at first too. I think what he means is
that imagine you somehow received a CD which contains the OTP to use (and so
did the person you wish to communicate with). From that point on, how could
you ensure you never re-use a pad (and Roedy's solution is to copy the CD,
break the CD, and run special software, etc.)
We're now getting into issues of writing a secure OS as well (no
Microsoft jokes please). An unsecure OS may be caching the key in a virtual
memory file.
If you're the originator of the OTP, you would probably generate the OTP
on a file, and then burn it onto a CD. Well, now you have to ensure that the
buffers in your CD burner are cleared after the burning process is done.
Maybe that's controlleable from the OS, or maybe you have to write special
device drivers, or maybe even build your own custom CD burner to get that
facility.
For the extremely paranoid, you'd want to enclose your working
environment in a faraday cage, so that attackers (outside of your working
environment) could not monitor electromagnetic waves being emitted by the
CPU, RAM, or other components of your computer, and try to detect what
sequence of operations it is performing (known as a TEMPEST attack).
The National Institute of Standards and Technology (NIST, as US
organization) published a Federal Information Processing Standards
Publication called FIPS PUB140-2 titled "Security Requirements for
Cryptographic Modules". I stumbled over a while ago while going through the
NIST archives researching something unrelated.
Post a summary of it on my blog, intended for the Military Otakus:
http://nebupookins.net/entry.php?id=240
It seems to me that by making a second (third, really)
copy of your most precious secret, you have diminished rather
than enhanced security. It seems to be rather difficult to
erase things from a magnetic medium, no matter how many times
you overwrite it or how cleverly you choose the overwriting
patterns. I'm told (by my old pal from the spook shop) that
the approved procedure for wiping classified information from
a drive involves an incinerator.
I had a non-programmer (i.e. "normal person") friend who asked me if you
could corrupt the contents of a hard drive using a magnet. The question as
ambiguous: I wasn't sure if she was asking whether it was safe to have
magnets lying around near the harddrive, or whether she was asking if she
could evade the FBI/CIA/whoever else just by waving magnets around her
harddrive. The answer to the two questions might seem, at first, to
contradict each other!
So I told her this, and she told me I wasn't answering her question. So
I asked her what her question was, and she repeated the same ambiguous
question. I spent maybe 2 hours trying to explain to her why it was
ambiguous, and I gave her the above two questions, and tried asking her
which one her question was more similar to, all to no avail. To this day,
she still doesn't know the answer to her question, and I still don't know
what question she was asking.
Or, if they can recover the "erased" data, everything you
ever encoded with that OTP.
Security is all about making it more expensive for the attackers to run
their attack than how much they would gain from succeeding. If you have a
$10'000 secret hidden on your laptop, but it costs $50'000 to recover the
erased data to get at that secret, it's not worth it for your attackers to
pursue this route.
- Oliver