Dear ssh-team,

I have written AdmitSSH, a fork of OpenSSH that puts a small
cryptographic admission exchange in front of the SSH protocol. I have
used Debian for twenty-five years and would like to maintain AdmitSSH as
a Debian source package. Before I go further I would value your advice
on how to get there.

The problem.

A colleague and I run test machines on the public internet. Scanning has
grown to the point where the rate limiting meant to stop it stops us: on
one host more than half of fresh SSH connections are refused, while
sessions carried over an established ControlMaster remain reliable. What
fails is connection setup, not authentication, and it makes scripted
administration unworkable. MaxStartups, PerSourcePenalties and moving
the port do not help, because the load is the connection attempts
themselves; our administrators come from changing addresses, so a source
filter is not an option either.

What it does.

AdmitSSH adds a short dialogue between server and client in front of the
proper SSH protocol. The client must prove knowledge of a pre-shared
secret before it is admitted. The secret itself never travels on the
wire and stays secret, and a client that cannot prove it is refused at
the cost of one read and one comparison - before any key exchange,
before the fork, and without writing to the authentication log.

What it is not.

It is not authentication. The key is one secret shared by a group, so it
says nothing about who is connecting; SSH still makes every decision it
made before. What it changes is the economics of being scanned. It also
changes what a failed login means: on an AdmitSSH host the attempt can
only come from a client that already passed the filter, whereas on an
ordinary host failed logins are constant and carry no information.

Maintenance.

I will track your releases as my upstream and keep AdmitSSH in step with
them. The filter also addresses the problem that attacks begin as soon
as a security deficiency is published: the scanning that follows a
disclosure does not reach the daemon behind it.

Why a fork and not an option.

The admission exchange takes place before the SSH identification string,
so a server that requires it is not speaking SSH until the client has
been admitted. That cannot be reduced to a configuration setting in
openssh: it would produce a daemon that is sometimes SSH and sometimes
not, which is confusing to reason about and a poor thing to get wrong.
AdmitSSH is therefore a complete and separate set of executables, man
pages and configuration. It installs alongside openssh, shares nothing
with it, and changes nothing about it; the two packages are entirely
independent of each other.

The tree.

I built this from a clone of the ssh-team's packaging repository, in a
local admitssh branch. It is large only because of the mechanical rename
that separation requires; the substantive code is admission.c and
admission.h, self-contained, with small bindings in sshd.c and
sshconnect.c. The default port is 922. The design is written up in
PROTOCOL.admission and admitssh_admission_keys(5), both in the branch.

Your packaging is the basis, and debian/ is renamed and builds. The tree
also carries contrib/redhat/openssh.spec and contrib/suse/openssh.spec
from upstream. I have not looked at those; whether rpms come out of them
is an open question, and I am content to leave it to whoever cares about
them.

What I plan.

Until the package can be in Debian I would publish it through OBS so
that people can install it, and drop the Debian target there once it is
in the archive. I could equally do the packaging first and come to you
with something finished. If you have been through this with other
packages, I would rather hear now which order works.

Questions:

 1. Does anything speak against a separate source package alongside
    openssh, given that I forked from your tree and carry your patch
    set underneath?

 2. Is there anything about starting on OBS that later gets in the way
    of an upload - version numbering in particular, or users staying on
    the external repository?

I intend to file an ITP. If you would rather I went through
mentors.debian.net and found a sponsor there, say so.

Comments and corrections are welcome.

Regards,

Claus Fischer

Reply via email to