Enrico Zini: Audit your debian uploads
Audit your debian uploads
My bank is sending me an e-mail every time I log into the home
banking system, so that I can spot malicious logins.
My credit card is sending me a SMS message every time it gets
charged, so that I can spot mailicious charges.
Can I get a notification of every Debian upload done with my
key, so that I can spot if my key has been stolen?
Let's work on that. As a start, thanks to Ganneff, here is how
to do a one-off audit:
# go to merkel to access projectb, which is the postgresql database
# with all dak information
$ ssh merkel
merkel$ psql projectb
# look up the database id of my fingerprint
projectb=> select id, fingerprint from fingerprint where fingerprint like '%797EBFAB';
id fingerprint
-----+------------------------------------------
394 66B4DFB68CB24EBBD8650BC4F4B4B0CC797EBFAB
(1 row)
# get a list of all uploads done with my key, sorted by date
projectb=> select * from source where sig_fpr=394 order by install_date desc;
First you get to do it (done); then you document it (done); then
you automate it. It's quite trivial at this point, so enjoy the new
Debian upload
monitor.
It's got search as you type to find your full fingerprint, then
you get an HTML page with the log of your uploads in the last 2
months, and the page has an RSS feed that you can use to track your
own uploads.
Also, generating all this static content is acceptably fast:
merkel$ time ./deb-key-audit
real 0m7.145s
user 0m4.244s
sys 0m0.384s
If you want to see the code, you can git clone
http://merkel.debian.org/~enrico/keylog.git
Currently it wrongly encodes UTF-8 characters: I suppose the
strings come out of the database as ASCII instead of UTF-8. A patch
would be welcome to fix that.
I will now contact QA to see what we can do with it; if it ends
up fitting in some bigger picture then it may be that the RSS links
will change, but I'll post about it in that case.


Tonight I'm going to enjoy a nice long sleep after attending
Boston offers slim pickings for vegetarian fine-dining options in the financial district. Most nice places have some sort of pasta dish and not much else. I have forgotten several times, but now write this blog entry to permanently remember, that
Excuse the quality; this is a low-light low-resolution image taken by cell phone. It was called “Butter Cake” but went well beyond the humble title. Those specks around the outside are dried grapefruit.
Technorati Tags: 
Teaching dammit to link against Boost proves to be rather tricky, because they already have a scheme for encoding ABI information into file names (in fact, multiple that can be selected at build time).
It might make sense to allow for sites (not packages!) to provide scripts in a Turing complete language to allow scanning for other packages.
I shall call that "legacy support".
With Hans Reiser
In the last week, Nicholas Negroponte gave
When I heard that there will be a miniseries based on “The Andromeda Strain” book, I was very exited. That was one of my favorite sci-fi books in my childhood. After watching the miniseries I must conclude that this is another book perverted and trivialized by Hollywood. SPOILERS AHEAD!
They created some crazy pseido-sci-fi idea that humans from the future sent Andromeda back from the future via a wormhole in a container that contained a message which was then picked up by a satellite that was sent up to investigate the wormhole. No wormhole was there in the book. The book had a much more modest idea - a Scoop satellite was to skim the outer layers of the atmosphere for mutations of common Earth bacteria for military purposes when it was impacted my a micrometeorite carrying the Andromeda. Much more probable, no need to involve wormholes, time travel, ASCII messages, eco-terrorists and a sub-plot on conservation of marine species.
Due to extreme modernization of the script, the whole subplot of the teletype mechanical failure was omitted. Andromeda was made sentient instead and communicated via ’some kind of inductive field’ to shoot down a fighter jet and activate a nuke.
The survivors and their pH levels got barely a glance. Also the amount of destruction was obviously too low for the movie, so the Andromeda was made to mutate more, spread out of containment easily and even make a flock of birds attack a squad of solders ‘Hitchcock style’. Disgustingly cheap scriptwriting.
Huge chunks of plot were ripped out (searching for the micro-meteorite impact crater with different lenses, central core security) and the two hours were filled with Rembo style journalism vs. black ops, selfless president and scenes of animals eating each other and dieing. At the end they ran out of budget and just made it look like presence of Andromeda made air and water bright red so that people would have something to run away from in fear. Oh and the scientists are allowed to freely talk about the event after it’s done. Yeah, right.
In my book this movie rates very close to the infamous “The Core” with the only difference that they managed to fuck up a really good book. Do not watch it and read the book instead.



As