Authentication of Usenet Group Changes

This document addresses a method for the authentication of the special types of Usenet articles that are used to maintain the namespace of Usenet groups. A basic familiarity with what the Usenet control message types "newgroup", "rmgroup" and "checkgroups" do is assumed; this is not a tutorial in namespace administration.

Usenet articles are notoriously easy to forge, and control messages are no exception. Since administrators often want to have their news systems automatically honor requests from some particular people to add or remove newsgroups, it is risky to trust the From: and Sender: headers to identify the real sender of a message, as has historically been done. Thus a system using Philip Zimmerman's Pretty Good Privacy® (PGP® ) was developed to provide a more secure means of authenticating the sender of a control message.

Unlike traditional PGP authentication of messages, which just verifies that the contents of the body of a message are unchanged from when it was digitally "signed", this system also needed to sign a few headers of the control message to verify the action to be taken and to guard against certain other pitfalls. Another goal was to make the signature as unobtrusive as possible and require minimal changes to existing software in order to work.

How to Verify Control Messages

Listed below are the steps you need to take to enable PGP authentication of control messages on your system.

Here is the short and simple version for someone who feels confident hacking around the news system and doesn't like to read a lot:

  1. Get and configure the software:
  2. Add maintainers' PGP public keys to the news system key ring.
  3. Enable verification through the news system authorization system.
    INN:
    Use the action verify-pgp_userid (possibly appended =logfile) in control.ctl.
    Other systems:
    Sorry, not implemented yet.
  4. Test pgpverify. If you have the news.announce.newgroups key in your key ring, run ftp://ftp.uu.net/networking/news/misc/pgpcontrol/sample.control through pgpverify on stdin. It should spit out the string "news.announce.newgroups" on stdout.

Here is a more verbose version of the instructions:

  1. Get the software.

    There are two pieces of code that will need to be added to a news server to make use of this authentication system: a stand-alone script that verifies an article is what it says it is, and a patch to hook it into the news server's processing of control messages.

    The stand-alone program, ftp://ftp.uu.net/networking/news/misc/pgpcontrol/pgpverify, is a Perl script that should work with Perl version 4 and up. (I have not tested it with earlier versions.) It does not contain any code making it dependent on any particular news server software.

    ftp://ftp.uu.net/networking/news/misc/pgpcontrol/server-patches/ has patches (currently "a patch" is more correct) for hooking the system into existing news server software. Choose the one for your system from the list below.

    I regret that I do not have the time to develop more patches, but I will gladly add patches for other systems to this page as they are made available to me. I am particularly interested in getting patches for C News version CR.E. The INN version 1.4sec patch will apply to all INN "unoff" versions, albeit with a little bit of fuzz.

  2. Install it in your news system.

    First you must ensure that the absolute paths to perl and to pgp are correct in the first few lines of the pgpverify program. No other configuration of options or pathnames should be needed.

    Next, the following steps assume, solely for the sake of making it easy for me to write a simple recipe, that you have copied pgpverify and the patch for your system to your news server as /tmp/pgpverify and /tmp/pgpcontrol.pch respectively. I have tried to format this so that you should be able to cut and paste any of the lines in italics directly to your shell.

  3. Enable verification for the hierarchies that interest you.

    To verify messages, you must have a PGP public key for each signer that you wish to trust. It should be entered in a key ring that is accessible to the user-id that runs the news system by running pgp -ka on a file containing the key to add. For example, at a site that runs the news server software as news, the following command run by the news user-id should add the key bounded by BEGIN and END "PGP PUBLIC KEY BLOCK" lines in the file /tmp/key to the default key ring that would be used for authentication:

    pgp -ka /tmp/key
    

    As a general policy rule, control message signers will not use their control message keys to introduce other keys, so when PGP asks you a question similar to, "Would you trust this user to act as an introducer and certify other people's public keys to you?" answer that you would not.

    After you have added the appropriate key to your key ring, you need to tell the news software to validate the control messages received. As implemented, the system will perform the requested action if the message can be authenticated and it will mail the message to the news system administrator if it cannot. Clearly there are other possible actions that could be implemented, but I wanted to keep the patches minimal. Future releases of the server software will probably have increased flexibility.

  4. Test the system.

    Get ftp://ftp.uu.net/networking/news/misc/pgpcontrol/sample.control and save it to a file on your system; /tmp/sample.control will be used for this example. You'll use it to make sure things will work as expected.

    To verify the control message, you will need the key for news.announce.newgroups and authorization in your news system for tale@uunet.uu.net to automatically perform "newgroup". Go ahead and enable it for the test even if you don't want to really allow this, because it is easy enough to rescind after the test by editing the control message authorization file and removing the key with pgp -kr news.announce.newgroups.

    You can check that the pgpverify part of the system will work properly simply by feeding it the sample control message on stdin:

    pgpverify < /tmp/sample.control
    

    If if could run pgp and find the correct key in the default key ring, the string news.announce.newgroups should be printed. The exit status of the script, found in most shells with the command echo $? as the next command after pgpverify, should be 0 (zero).

    If it doesn't work and you've tried and tried to figure out why, email me a complete description of the problem you are having and how you have tried to remedy it. At a bare minimum, your mail should include a copy of the message you are trying to verify, a typescript of the attempted execution, and the output of pgp -kc and pgp -kvc news.announce.newgroups.

    When pgpverify passes its test, use the appropriate procedure below for you news server to verify the authorization system.

Frequently Asked Questions

  1. How come this presumably valid messages doesn't check out with pgpverify?


List of PGP Public Keys for Newsgroup Administration

This is a list of keys known to be used for maintaining various parts of the newsgroup namespace. They are listed alphabetically by the hierarchies they are used for, along with the email address they are sent by and the pgp key userid of the signature (both for use in control.ctl). The group that people should follow if they are interested in tracking announcements about the hierarchy is also listed. The "Check also" references point to locations that should have identical public key blocks; it is best if you confirm the block listed here by checking against the others.

The existence of key here only means that I, David Lawrence, trust the person who uses it to be a responsible maintainer of that particular hierarchy of groups. You are solely responsible for deciding whether you will use the keys here at your own site.


clari

Control message sender: cl*@clarinet.com
(But see http://www.clari.net/tech/inn.html#signing )
Key User ID: ClariNet.Group
Administrative group: clari.net.admin
Check also:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzHhqEwAAAEEAK4YEXf3jB1ArKUs8bUMT666mjovSpCiuNGhTClxwLvSJrrB
K4n5ibvAPqAKh8T1AxqDdprDPWPdm/uGAF6/3gFHD8YFA1wU2EayYNWlQ1kvDRI7
bkmkq4QC2rtLnYpsOxwxyjTFsY1cvav+SSLziYauIlsOcHcix8rAq9eiL9vNAAUR
tA5DbGFyaU5ldC5Hcm91cA==
=xkhA
-----END PGP PUBLIC KEY BLOCK-----


comp, humanities, misc, news, rec, sci, soc, talk

Control message sender: tale@uunet.uu.net
Key User ID: news.announce.newgroups
Administrative group: news.announce.newgroups
Check also:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.7

mQCNAjFsLmQAAAEEAKPbDQI6oDtYJYPvYxt7I4PMxThaq51Z/5kqfW7C3dMn6vPL
d+UsXHfRzMaQXkLBR4nIaQj5OHVtbKCjVTVIMtgfgsPeh9GRSONW870S5HUTQcB7
eDhQqvvst1ZEowhTf/CX01chaxOfWq3ZPB09VVohQTmvRJn2BMJdOtO4janBAAUR
tBduZXdzLmFubm91bmNlLm5ld2dyb3Vwc4kAlQIFEDF33BHCXTrTuI2pwQEBiJQD
/1uiv20adyB2a3tzBYESEEhKtugAVHGRJQJE4Ar5PrcnovF3aNpLFumslIaAzCwP
XlCANMjFHg140IB6SgJ8W8XH15u+1cMOmqTbk0wtmVgeLOLaSMgNWt65FV4AUn7e
RZdhK8j/JKxE0a+6gKu4S0PiUDrvnCEWUPjlXiqsbnjR
=E8K8
-----END PGP PUBLIC KEY BLOCK-----


de

Control message sender: moderator@dana.de
Key User ID: de.admin.news.announce
Administrative group: de.admin.news.announce
Check also:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzGeB/YAAAEEALZ+Xfm/WDCEMXM48gK1PlKG6TkV3SLbXt4CnzpGM0tOMxsT
HjlHaU6Xco5ijAuqM1wEGUHD5hw/BL/heR5Tq+C5IEyXQQmYwkrgeVFMOz/rA3Rf
rd9aKQk1bXBxmavi9WxdXP2zxuSglc395StvmO+WxXbBCg1POnU26rXTAzyZAAUT
tBZkZS5hZG1pbi5uZXdzLmFubm91bmNliQCVAwUQMaEnw/Ki8vYA8NXpAQF7kQP/
YNaIHxaHzqQQwfcTG+ICdoiIakmainbZyyHwOYV6nG+sPlRnkPnlC9RP2I+wE91o
WrPHQLlZv1a7+VkXstmHtzW+JzzaaQGaH2+E9wOXMMI97/7GtsCfjEKWi8OZPDEE
SloZH+ibsyPXCnOb7LPUyfGuh8RK9aUAnZUEmAzi20+JAHUDBRAxn7vcfZiDsyJG
Qh0BARv+AvoCVp8UUmQ+Us5OKwGNZfLgVjOa3o9q/MMCR7eGdR3rqUiTL23YVD2s
j4/L2nBnwYF0vLkiPhhrAVO7Gq/z29D5g2vQXJdH0NHc4CAUps0Uls6w8n5Uy3Xu
fB4DCQx/f7WJARUDBRAxngnCCdxwOTnzf10BAcKUB/9F8pyUyGKYc8I9lj3oUxe2
Piz+3DtTpBxvf3zQwylxFnWgZ9ZwuqhXmyzhBdUmGmT8xmk1jONJZyrR6P38D+h5
EduaQ2mKKa3iNgYMwv5Qzh5UCka7NLXkfylsuXOCFDNhSaY4jU4HLgI5ngL8gJJ1
7LnC5heUw6yvO8wyUyH4cW8rbv5Ov+22t/9d48x44hvcHZZ4ZOWvYh+dQGAH484t
sK7CXqvH5QYHxetUSq/p2mlEsxf0tzgEAoQ9TZ0/Ai9o5/6H7EgGRTPRLMxJd+/H
y9iJs4QRI/gCjdqcvzHj1wHtLcVWiG+qQZxIXeX/u665Qe7aSSSrGLp7QOmFnAo1
iQCVAwUQMZ4H93U26rXTAzyZAQE0IgP/dTnrrgsVLRAa5gJYVWmQgSqkXYcsVgYt
isBpaGJSW2+5ifD7vaPu9Vj4aNvqO4zyzdAoWXiqRJ/qiXgoeG7DV01tw8s197RH
IB+DQ6hLuF0IX4dtbGjpiujapwXQ0s3fcu/UuLBRv5UJtNU9hD8vGFkj9mYBzA8L
XjtwTuQVfBe0Ezxtb2RlcmF0b3JAZGFuYS5kZT6JAJUDBRAxngjIdTbqtdMDPJkB
AXQsA/96/iGcbkpEaOUdb3aQCzCDocUGCDH9UrRfjT0sjTMgAmXELdukCiMyt1KT
+vnnPqiwNRdIPD4h3Qk8U70BY6JCAAC03rOtg6EcUGn7ryH2TrvhiD0geqPcFZ1G
MkXq08qh9g9Wm9Gi8zP6VI7L1lyxuz7m3w+P1lUBDJ/EGSoPkA==
=i/Qv
-----END PGP PUBLIC KEY BLOCK-----


fr

Control message sender: control@usenet.fr.net
Key User ID: fr.announce.newgroups
Administrative group: fr.announce.newgroups
Check also:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2i

mQCNAzF41OMAAAEEAOnjgblNPQ+Xhnxw3K/EMz1vm2sfi2Ci/XG8HsWg2yc+hQla
fMGQbQciSDFsBK0Kmy7gNvC9c7qAsQfeqpvQqJ+3hJiUvbQIi6bj2ZOSqE58Vh80
7Y+Fx71R/AKGZ88dGbysUg1r5770aw6JP1wn6Ve29PRTdS7yasmXGhU4K2T9AAUT
tBVmci5hbm5vdW5jZS5uZXdncm91cHOJAJUDBRAxf8MhyZcaFTgrZP0BAZ0ZA/0S
nxzmcN/yI858v+80ZpWaMkO/OtdF49gCfv/yv8xrRQfdGkjLFIl+Gry/H9236MZD
rTSjb5R2PaicExO3b0tcRAAGOXyrRwc1squDdSvldko2ewQE9giZ4T1+fJRou1yO
hbwPmaOBOt2EropUpvRPfKNeu/vjdKv1GEREkhIZTQ==
=o/05
-----END PGP PUBLIC KEY BLOCK-----


humanities

See the comp hierarchy entry.

misc

See the comp hierarchy entry.

news

See the comp hierarchy entry.

rec

See the comp hierarchy entry.

sat

Control message sender: satgroup@endicor.com
Key User ID: satgroup@endicor.com
Administrative group: sat.usenet.config
Check also:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzHtkkUAAAEEAN9sqrBBgcjuaG+mWamDYbOz0GARQhY7dli6m6c6zBaAhvZV
i2CBy4deMWF5wAWY0SPFTSeowZrkI1fCIFwBt2XRdEj8YY06BpsXYaajvD10yppg
Lx70y662p+R7pK7GAlbsaf8o/y31pzbFssJAWA8GGkFbnpRN2gv3azuYaQ7pAAUT
tDFzYXRncm91cEBlbmRpY29yLmNvbSAoc2F0LiogbmV3c2dyb3VwcyBjYXJldGFr
ZXIpiQCVAwUQMe2S+JEf2RAnz77pAQFDIgQAx4DVWloh7gABTQL1B80YDMaiN0x2
haYSCMXHdteksEbzAocqbdzxaFPC9EXdXjl7pmIIwTFcB66LGTtesIgMOhLrzJlF
LmdqHaK6fvHzBzxHSOiSu2DJcMxyT/xj/U163BUFgCspxVqjh3IoGXqWn5l7uie7
S97e+5IjWoiC1vmJAJUDBRAx7ZJjC/drO5hpDukBAdBDA/oDemhuh3iKeurUYhEF
cy50jKNJN36joVJ6tw5FhfTtxShLDpkoxzqKLHHbMTK8HXyrtz+qF8aaSKn8DIGr
27wqi3Uz1zzCfM8KHF+4ldmW7+ABPu8Ih1KhgKZ180+xmqYp1qzQJIuqKktWySOG
n8F00ZMLQvJk27tF3poaaTq39A==
=IUEe
-----END PGP PUBLIC KEY BLOCK-----


sci

See the comp hierarchy entry.

soc

See the comp hierarchy entry.

talk

See the comp hierarchy entry.

uk

Control message sender: control@usenet.org.uk
Key User ID: uk.net.news.announce
Administrative group: uk.net.news.announce.config
Check also:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6

mQCNAjGL0cgAAAEEAJ6p7fQHn139U9zQawLixrExOUrkFhi1yLb8m8fLxmKTprKn
ZNM1nnxMSbRyO8vXohXKKs4G1U2jTpaCkSRrbCiJ5VxWB/B31E/p/vrBXqqQ2amq
3gb4Df9DZub0ZtOhHTF/pPjQmXvAv08umjZWpYlXRmUHBlBhMmOfGXkh8vHZAAUR
tBR1ay5uZXQubmV3cy5hbm5vdW5jZbQXPGNvbnRyb2xAdXNlbmV0Lm9yZy51az6J
AJUCBRAxi9UdY58ZeSHy8dkBARf4A/4pB46ZibhtdF9z1wP8nImdK6qlaNNf+Kuc
svLxwRhn6KX8aaq4xpzbVFeJFpbjaNP9bmGZtaO03qhyOkor/8lkKfkJXTeJxA90
T2rqgrY+XLm5jIK8l4NqXAgYmPm6x1hK9LQVe3EkjhxYqcDOeRQNtnLUM0OZyD2U
Pijwt1o3WYkAlQIFEDGL1FGemw5PLx059QEBje0EAKx99yOZ0zQ9FjibuEBStP8t
0BCsRNqkrVjxO513RBXecgcdXdv9hWn+8LNRZx6JLHv/ZpWsdGXqP3oiqj+LRt7W
pHnZ55He/njx5DAoPAM/TjgTk7arazSjsJuFhcTP7gHitLDoHxVkUfdLX8h4HH9L
WhEnrWEx82EY/29z/xQ6iQCVAgUQMYvTeKSiIc7jUXyJAQHLNwP/Qz+g2RRsuSZr
J9L0HAVPLcmloAEGOMFfYJDM/mvxegAYzL8i0HGFbwTH/+E94WSmsWAx1KZ/Z2DY
KdI7BUaS8c09a2OtqOEbCd7QBI37seyxG0rTWNpuE0ZXBo0eiQBg37oIW+Faf/tq
JQZnALVsV5LDKcf+6+MhgS47HWJ6ZjQ=
=SaMt
-----END PGP PUBLIC KEY BLOCK-----



Signing Control Messages

If you are responsible for sending control messages about authorized changes to a newsgroup hierarchy, then ftp://ftp.uu.net/networking/news/misc/pgpcontrol/signcontrol will sign your control messages so that pgpverify can authenticate them. It is a Perl script that requires Perl version 5 or higher to work. It has several configuration parameters that should be reviewed before use.

When establishing a PGP key and control message sender, please use tokens that are not tied to a particular individual. This makes it easier to transfer the administrative responsibility when it finally comes time. (The all-too-common "tale@uunet.uu.net" sender is still used for control messages because of its legacy in the installed server base; I would prefer to use newgroups-request@uunet.uu.net.) Please also do not sign other keys with the key that is used for control messages.

If you will be using this script to sign control messages, please let me know the hierarchy that you are responsible for maintaining and the information that you would like to appear in the List of PGP Public Keys for Newsgroup Administration.



How to Get PGP

Information about obtaining PGP can be found in the Where to get the latest PGP FAQ article, posted regularly in the alt.security.pgp newsgroup.

How to Get Perl

Information about obtaining Perl can be found in the comp.lang.perl.* FAQ 1/5 - Availability article, posted regularly in the comp.lang.perl.misc newsgroup.
Last modified: 30 October 1996
David C Lawrence
tale@uunet.uu.net