Article View: alt.privacy.anon-server
Article #265944Re: A new Mixmaster is in the works!
From: StealthMonger
Date: Fri, 21 Mar 2014 04:10
Date: Fri, 21 Mar 2014 04:10
249 lines
11340 bytes
11340 bytes
--=-=-=
Content-Transfer-Encoding: quoted-printable
Crypto <crypto@jpunix.net> writes:
> We have decided that we are going to investigate updating to a new
> Mixmaster that will fill the weaknesses and issues that are present in
> the current version of Mixmaster (Mixmaster 3.0). ...
> More features are under discussion. We would like your input on what
> features you would like to see.
Please include a "stealth" mode for clients. Traffic on a stealth
channel for outbound mail is according to a rigidly fixed schedule
independent of how much "live" traffic there is. When there is a live
item in the queue, it is substituted for the dummy item which would
otherwise have gone. This provides perfect cover for the live traffic.
Long ago, I implemented this as a shell script, appended below for
reference. But this is a clumsy way to do it. It should be integrated
into Mixmaster as a client option. (Discard the modem-related stuff and
replace the exim4 call with Mixmaster's outgoing MTA interface.)
=2D-=20
-- StealthMonger at nym.mixmin.net
Long, random latency is part of the price of Internet anonymity.
Key: mailto:stealthsuite at nym.mixmin.net?subject=3Dsend%20stealthmonger-k=
ey
#!/bin/sh
# SYNOPSIS
# outbeat
# DESCRIPTION
# outbeat : "Output Heartbeat" or "Output Drum-beat"
# Maintain a rigidly periodic sequence of mailings or postings, using
# dummy articles when there are no live ones to send. The live and
# dummy articles are supposed to be indistinguishable except to an
# intended recipient who has the correct decryption keys. The effect
# is to conceal live traffic in an ongoing stream of cover traffic, so
# that an observer cannot determine when or how much live traffic is
# being sent.
# The frequency of the output mails is determined by the "mail
# period", which can be set by the user. Once established, it defines
# an unending sequence of time-slots into the future, to each of which
# will be assigned a mail. If sending is interrupted for a time,
# perhaps because the Internet connection or the computer itself is
# down, the actual sending frequency is increased when the system
# comes back up, until synchrony is reestablished. Frequency during
# such catch-up phases is determined by the "catch-up period", which
# is also a user-controlled parameter.
# Notes on choosing the mail period and the catch-up period. The mail
# period should be short enough to accommodate all live traffic into
# the foreseeable future without unduly delaying any particular mail;
# however, it should be no shorter, to avoid accusations of abuse.
# The catch-up period has to be shorter, and is some compromise between
# making sure catch-up actually occurs often during up-times on the one
# hand, and being open to charges of abuse of the system on the other.
# outbeat is intended to be left running at all times. However, it is
# reasonably tolerant of restarts, as would be required for example if
# the computer is taken down and rebooted. It spends most of its time
# asleep.
# outbeat state is maintained in a directory $DIR, which must be
# writable by the user. On first-ever invocation, outbeat creates the
# necessary files and directories under $DIR. They are:
# next-slot A small file which always holds the absolute (since epoch)
# minute-count at which the next unsent mail should be or
# should have been sent.
# urgent A Maildir-style mail directory for urgent outgoing mail.
# normal A Maildir-style mail directory for routine outgoing mail.
# cover A Maildir-style mail directory for outgoing cover mail.
# See Bernstein's qmail documentation for a description of Maildir
# directories. A Maildir has subdirectories tmp, new, and cur. New
# articles can be constructed in tmp and moved to new when completed.
# Because all components of a Maildir are required to be in the same
# file system, such a move is an atomic operation, eliminating mail
# loss or duplication which can result from race conditions.
# urgent, normal, and cover form a priority queue for outgoing mail.
# The user constructs an article in normal/tmp/ or urgent/tmp/, then
# moves it to normal/new/ or urgent/new/. cover/tmp and cover/new are
# used in a similar way for cover traffic, except that whenever
# cover/new goes empty, this script calls a user-supplied program
# MAKE_COVER, which is supposed to create a new piece of cover traffic
# for use next time it's needed.
# Each time a mail is to be sent, outbeat selects a highest-priority,
# oldest article, sends it, and moves it to the cover/cur directory
# (renaming it to usually prevent clobbering a previous entry there).
# Sent articles all go to the same directory so as to erase record of
# which are live and which are dummy. (normal/cur and urgent/cur are
# therefore not used, and need not actually exist.) The user should
# delete old articles from cover/cur/ from time to time, so they don't
# pile up indefinitely. (They are useful for monitoring and debugging
# outbeat operation.) The sent article is also touch(1)ed to erase
# its original modification and access times, further obscuring its
# origin. Note the rename erases the original creation time.
# An article deposited in */new should be complete with headers. It
# is sent verbatim as standard input to "/usr/lib/sendmail -t", which
# should be implemented even in systems using other than sendmail as
# the MTA (true for example for qmail and smail).
export HOME=3D/var/lib/stealthmail
PATH=3D"/usr/local/bin:/usr/bin:/bin:/var/lib/stealthmail/bin"
export PATH
# Directory where it all happens
DIR=3D/var/lib/stealthmail/outbeat
. /etc/stealthmail-conf
# Program to generate cover traffic
MAKE_COVER=3D/var/lib/stealthmail/bin/make-outbeat-cover
cd $DIR
# The loop is organized to do the right thing during normal, routine
# operation, but also to be somewhat graceful in case of one or more
# restarts during one sleep interval (as might occur while performing
# unrelated system maintenance) and for the one-time initialization.
# Arrange for immediate send unless next-slot is in the future. If
# this is a restart after a brief interruption, this could crowd
# multiple sends into less than one CATCHUP_PERIOD. Tough.
WAKEUP_TIME=3D$(cat next-slot)
while true; do
# Be sure that there's some cover traffic if needed:
if [ "$(ls cover/new/* 2>/dev/null)" =3D=3D "" ] ; then
$MAKE_COVER $DIR
fi
SLEEPTIME=3D$(echo $WAKEUP_TIME 60 '*' $(date +%s) - p | dc)
if (( $SLEEPTIME > 0 )) ; then sleep $SLEEPTIME ; fi
# NB: Elapsed real time between here and the "sendmail" invocation
# below is world-visible, and should not be allowed to depend
# significantly on whether the mail to be sent is live or dummy.
# Minutes since 1970 Jan 1 00:00 :
NOW=3D$(echo $(date +%s) 60 / p | dc)
NEXT_SLOT=3D$(cat next-slot)
# Bring up the modem link if necessary.. (uses our own pon)
pon-if outbeat
# Give it a while to come up..
sleep 120
# Reload the configuration
. /etc/stealthmail-conf
if [ -e /var/lock/LCK..modem ] ; then
# Select the highest priority, oldest mail for sending..
SENDING=3D$(echo $(ls -tr urgent/new/* 2>/dev/null) \
$(ls -tr normal/new/* 2>/dev/null) \
$(ls -tr cover/new/* 2>/dev/null) \
| cut -d ' ' -f1)
# Use exim's -odqr in order to leave the message for dequeuing
# by the run-mail-queue below. Otherwise, the queue run in
# run-mail-queue will find the message already being processed
# and return immediately, leading to premature modem hangup if
# the news pull doesn't take enough time. The "-f '<>'"
# placates the ISP and causes the ISP to supply the sender.
if ( /usr/sbin/exim -odqr -t -f '<>' < $SENDING ) ; then
rm $SENDING
fi
# After a send, the next-slot time is advanced by one period
# regardless of whether the send was on time:
NEXT_SLOT=3D$(( $NEXT_SLOT + $MAIL_PERIOD ))
echo $NEXT_SLOT > next-slot
# Opportunisticly perform other network activity
if [ ! -f /var/lock/modem-user-pull-aam.lock ] ; then
pon-if pull-aam
/var/lib/stealthmail/bin/pull-aam &
fi
if [ ! -r /var/lock/modem-user-run-mail-queue.lock ] ; then
pon-if run-mail-queue
/var/lib/stealthmail/bin/run-mail-queue &
fi
fi
poff-if outbeat
# The time of our next wake-up call:
if (( $NEXT_SLOT - $NOW < $CATCHUP_PERIOD )) ; then
WAKEUP_TIME=3D$(( $NOW + $CATCHUP_PERIOD )) ; else
WAKEUP_TIME=3D$NEXT_SLOT
fi
done
# Implementation notes: Times are expressed in minutes partly because
# this was initially conceived as an "at" script, which uses minutes,
# and partly because seconds-counts since epoch are large enough to
# stress long-integer limitations in some installations.
# "at" was not used because it insists on writing to stderr no matter
# what, and because it doesn't accept simple seconds-since-epoch as
# the time the job should be run. Stupid translations would be
# required from tick-counts to "civil" time notations, just so at's
# algorithm could apply the reverse translation back to tick-counts
# again. So instead, one perpetual process is used, which spends most
# of its time sleep(1)ing.
# A down-side of this implementation is that some way has to be found
# to automatically start the job at boot time. (But to prevent floods
# of outbound mail it should only run while connected to the Internet,
# so it could be started from ip-up.)
# Modified 2004 Nov 11: added "touch $SENDING" to erase original
# create and access times; cleaned up documentation a bit.
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlMrqkgACgkQDkU5rhlDCl5E5ACght8zVrtNA26uJK7ZKkihDIz7
04gAoISlmK50S1z3593hK4PHdjglHAIp
=rePJ
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID:
<20140321041039.2C499EAB05@snorky.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news.glorb.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mailReferences:
<rerWu.19228$x%2.13560@fx02.iad>Show Full Headers
Complete Article Headers
Message-ID: <20140321041039.2C499EAB05@snorky.mixmin.net> Subject: Re: A new Mixmaster is in the works! Date: Fri, 21 Mar 2014 04:10:39 +0000 From: StealthMonger <Use-Author-Supplied-Address-Header@[127.1]> References: <rerWu.19228$x%2.13560@fx02.iad> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news.glorb.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail In-Reply-To: <rerWu.19228$x%2.13560@fx02.iad> (crypto@jpunix.net's message of MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Newsgroups: alt.privacy.anon-server Author-Supplied-Address: StealthMonger<AT>nym<DOT>mixmin<DOT>net Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net X-Received-Bytes: 11073 Lines: 248