🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
18 messages
18 total messages Started by Steve Sun, 22 Feb 2009 12:50
Cleanfeed Thoughts
#80153
Author: Steve
Date: Sun, 22 Feb 2009 12:50
35 lines
2464 bytes
Hi all,

I have a couple of thoughts on Cleanfeed updates I'd like to gauge
opinions on.

Firstly, I've received a number of feedback requests for changes to the
binary filtering.  In 2008 Julien fixed a bug in INN that was breaking
multi-line regex filtering.  This greatly improved the performance of
the misplaced binary filter but there is a downside: Messages containing
blocks of PGP get rejected.  For example, it's now almost impossible to
post a PGP Public Key outside a binary group.

In an attempt to resolve this I'm testing separate Base64 filtering from
uuEnc and yEnc.  This enables the operator to specify a different line
limit for each.  E.g. max_encoded_lines vs. max_base64_lines.  I hit
issues with this due to the processing overhead of trying to regex match
say 250 lines of Base64 content.  To reduce the overhead I'm currently
checking for 10 lines of Base64 payload *but only* if $lines > 250.  Not
perfect but better than the current false rejects.  If anyone has
suggestions on how this could be improved, I'm all ears.

My other query centres around the number of urls being spammed in
machine generated spew.  I've written some code to produce a list of
these which can be viewed here:-
http://www.mixmin.net/cleanfeed/bad_url_central
I'd like to gauge if there's interest in supporting such a list in
Cleanfeed.  It's simple enough to add but I see no point clogging it up
with features that nobody wants.  :)

Steve

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Re: Cleanfeed Thoughts
#80159
Author: D. Stussy
Date: Mon, 23 Feb 2009 02:48
42 lines
3325 bytes
"Steve" <steve@mixmin.net> wrote in message
news:slrngq2ih9.782.steve@news.mixmin.net...
> I have a couple of thoughts on Cleanfeed updates I'd like to gauge
> opinions on.
>
> Firstly, I've received a number of feedback requests for changes to the
> binary filtering.  In 2008 Julien fixed a bug in INN that was breaking
> multi-line regex filtering.  This greatly improved the performance of
> the misplaced binary filter but there is a downside: Messages containing
> blocks of PGP get rejected.  For example, it's now almost impossible to
> post a PGP Public Key outside a binary group.

If this also blocks PGP-signed control messages, I'd have a problem with
it.  However, those signatures are in the header, and I believe you're
talking about PGP signatures in the body, correct?  I'm not concerned about
the latter and in fact find it only used by the overly paranoid.  Does the
Usenet community really care if a particular non-control article can be
authenticated?

> In an attempt to resolve this I'm testing separate Base64 filtering from
> uuEnc and yEnc.  This enables the operator to specify a different line
> limit for each.  E.g. max_encoded_lines vs. max_base64_lines.  I hit
> issues with this due to the processing overhead of trying to regex match
> say 250 lines of Base64 content.  To reduce the overhead I'm currently
> checking for 10 lines of Base64 payload *but only* if $lines > 250.  Not
> perfect but better than the current false rejects.  If anyone has
> suggestions on how this could be improved, I'm all ears.
>
> My other query centres around the number of urls being spammed in
> machine generated spew.  I've written some code to produce a list of
> these which can be viewed here:-
> http://www.mixmin.net/cleanfeed/bad_url_central
> I'd like to gauge if there's interest in supporting such a list in
> Cleanfeed.  It's simple enough to add but I see no point clogging it up
> with features that nobody wants.  :)

Perhaps it should be implemented as a DNSBL, extracting the domain from the
URL and looking it up.  Once we have DNSBL code in there, then perhaps
other things (bad_central_hosts) could be likewise coded.  Local overrides
could be eithe DNSBL or flat-file encoded.

Re: Cleanfeed Thoughts
#80160
Author: Russ Allbery
Date: Mon, 23 Feb 2009 03:35
19 lines
1957 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:

> If this also blocks PGP-signed control messages, I'd have a problem with
> it.  However, those signatures are in the header, and I believe you're
> talking about PGP signatures in the body, correct?  I'm not concerned
> about the latter and in fact find it only used by the overly paranoid.
> Does the Usenet community really care if a particular non-control
> article can be authenticated?

I PGP-sign all release announcements and security advisories as a matter
of course, since in that case having a signature of the MD5 checksum or
some way of proving that the advisory is authentic is at least moderately
worthwhile.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Cleanfeed Thoughts
#80161
Author: D. Stussy
Date: Mon, 23 Feb 2009 07:38
36 lines
2957 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87bpstu8oq.fsf@windlord.stanford.edu...
> "D. Stussy" <spam@bde-arc.ampr.org> writes:
> > If this also blocks PGP-signed control messages, I'd have a problem
with
> > it.  However, those signatures are in the header, and I believe you're
> > talking about PGP signatures in the body, correct?  I'm not concerned
> > about the latter and in fact find it only used by the overly paranoid.
> > Does the Usenet community really care if a particular non-control
> > article can be authenticated?
>
> I PGP-sign all release announcements and security advisories as a matter
> of course, since in that case having a signature of the MD5 checksum or
> some way of proving that the advisory is authentic is at least moderately
> worthwhile.

OK, but don't many (most; all?) of those refer the reader to another
resource?  Does anyone really check the PGP signature?

If your readers don't care to check, then it's not useful, and we return to
my question.  I was also addressing some of the cuckoos we have out there
that feel they must sign EVERY message they send.

Personally, when I read something (e.g. a new version of INN released), I'm
off to the [ISC, e.g.] website to verify it at the source of the release,
not verifying at the source of the message.  The authenticity of the
announcement doesn't really matter.

Now, if we had a system that auto-PGP-verifies every message that has a
message body PGP signature, perhaps my view would be different (at least
until the kook-squad starts signing their spew too).




Re: Cleanfeed Thoughts
#80162
Author: Russ Allbery
Date: Mon, 23 Feb 2009 08:07
40 lines
3151 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> "Russ Allbery" <rra@stanford.edu> wrote:

>> I PGP-sign all release announcements and security advisories as a
>> matter of course, since in that case having a signature of the MD5
>> checksum or some way of proving that the advisory is authentic is at
>> least moderately worthwhile.

> OK, but don't many (most; all?) of those refer the reader to another
> resource?  Does anyone really check the PGP signature?

I rarely do, but I have been known to do so on occasion.

> If your readers don't care to check, then it's not useful, and we return
> to my question.  I was also addressing some of the cuckoos we have out
> there that feel they must sign EVERY message they send.

There are logical reasons why you might want to sign every message.  I
never found the achieved goal worth the hassle, but given that any good
news reader will hide the signature unless the user cares about it and
given that the signature can be completely automated, it consumes almost
no resources and there isn't much harm in doing it.

Anyway, I guess my point was more that yes, some people sign posts, so
you're rejecting non-spam, non-binaries stuff if those get caught in
binary filters.  Although my guess is that signatures are going to be too
small to be caught by any filter and it's specifically posting keys, which
can be quite long, that would get caught.  Regardless of whether one
thinks it's a good idea or not, there are people like me who aren't going
to stop doing it.  (No offence to the arguments of anyone reading, but it
would surprise me a great deal if anyone came up with an argument in one
direction or the other that I hadn't heard before, and obviously having
heard all those arguments I've decided to sign posts under some
circumstances.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Cleanfeed Thoughts
#80163
Author: Tim Skirvin
Date: Mon, 23 Feb 2009 08:11
10 lines
1640 bytes
Russ Allbery <rra@stanford.edu> writes:

> There are logical reasons why you might want to sign every message.  

        *wave*

                           - Tim Skirvin (tskirvin@killfile.org)
-- 
http://wiki.killfile.org/           Skirv's Homepage <FISH>< <*>
http://wiki.killfile.org/projects/              Skirv's Projects
Re: Cleanfeed Thoughts
#80164
Author: Michael Grimm
Date: Mon, 23 Feb 2009 20:29
12 lines
1538 bytes
Tim Skirvin <tskirvin@killfile.org> wrote:
> Russ Allbery <rra@stanford.edu> writes:

>> There are logical reasons why you might want to sign every message.  
>         *wave*

In the body or headers block? Steve mentioned PGP in the body, IIRC.

Regards,
Michael
-- 
to let
Re: Cleanfeed Thoughts
#80165
Author: Russ Allbery
Date: Mon, 23 Feb 2009 20:41
22 lines
2202 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:
> Tim Skirvin <tskirvin@killfile.org> wrote:
>> Russ Allbery <rra@stanford.edu> writes:

>>> There are logical reasons why you might want to sign every message.  

>>         *wave*

> In the body or headers block? Steve mentioned PGP in the body, IIRC.

The standards for doing signatures in the body are considerably more
mature and more widely supported by clients (as opposed to server software
used for specific purposes) than the protocols for putting signatures in
the headers.  If you're going to sign messages, you may as well sign them
in a way that's useful and widely supported, which right now means RFC
1847 and RFC 3156 (multipart/signed with application/pgp-signature).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Cleanfeed Thoughts
#80167
Author: Steve
Date: Tue, 24 Feb 2009 10:28
23 lines
2343 bytes
On Mon, 23 Feb 2009 12:41:34 -0800, Russ Allbery wrote in
Message-Id: <87eixo3myp.fsf@windlord.stanford.edu>:

> The standards for doing signatures in the body are considerably more
> mature and more widely supported by clients (as opposed to server software
> used for specific purposes) than the protocols for putting signatures in
> the headers.  If you're going to sign messages, you may as well sign them
> in a way that's useful and widely supported, which right now means RFC
> 1847 and RFC 3156 (multipart/signed with application/pgp-signature).

Some while ago I made an update to Cleanfeed's scoring mechanism so that
multipart/signed messages received a weighted score.  I've never seen
spam using PGP/MIME so it seemed like a good idea.  :)

At the moment I'm testing various ways to identify Base64 messages
without requiring regex's that scan hundreds of lines of payload in
every message.  If it works then I'll make an update as I don't see why
posting PGP keyblocks should be effectively banned.

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Re: Cleanfeed Thoughts
#80170
Author: A Mixmin User
Date: Tue, 24 Feb 2009 21:38
38 lines
2734 bytes
In article <gnt2pl$5qd$1@aux.snarked.org>
"D. Stussy" <spam@bde-arc.ampr.org> wrote:
>
> "Steve" <steve@mixmin.net> wrote in message
> news:slrngq2ih9.782.steve@news.mixmin.net...
> > I have a couple of thoughts on Cleanfeed updates I'd like to gauge
> > opinions on.
> >
> > Firstly, I've received a number of feedback requests for changes to the
> > binary filtering.  In 2008 Julien fixed a bug in INN that was breaking
> > multi-line regex filtering.  This greatly improved the performance of
> > the misplaced binary filter but there is a downside: Messages containing
> > blocks of PGP get rejected.  For example, it's now almost impossible to
> > post a PGP Public Key outside a binary group.
>
> If this also blocks PGP-signed control messages, I'd have a problem with
> it.  However, those signatures are in the header, and I believe you're
> talking about PGP signatures in the body, correct?  I'm not concerned about
> the latter and in fact find it only used by the overly paranoid.  Does the
> Usenet community really care if a particular non-control article can be
> authenticated?

Hello,
I'm one of the users of Steve's mixmin server who has pointed out the
problem.  The problem usually does not lie with signatures, rather with the
posting of public keys and/or small PGP encrypted messages.  I might agree
with your perception that such things are the product of paranoia, and
would also add that one could argue that such things don't belong on a
public forum such as Usenet.  What I do believe is that such small (<100
lines in general) non-binary messages posted in text groups do not
constitute abuse.  They are merely a means of communicating text in a
private manner and should not be filtered based on lumping them together
with other obviously misplaced binary encoded content.  If an operator
wants to filter them for some other reason, fine.
I just wanted to clarify, and thank Steve for applying his skills to this
matter.

Re: Cleanfeed Thoughts
#80169
Author: D. Stussy
Date: Tue, 24 Feb 2009 22:22
45 lines
3551 bytes
"Steve" <steve@mixmin.net> wrote in message
news:slrngq7itu.782.steve@news.mixmin.net...
> On Mon, 23 Feb 2009 12:41:34 -0800, Russ Allbery wrote in
> Message-Id: <87eixo3myp.fsf@windlord.stanford.edu>:
> > The standards for doing signatures in the body are considerably more
> > mature and more widely supported by clients (as opposed to server
software
> > used for specific purposes) than the protocols for putting signatures
in
> > the headers.  If you're going to sign messages, you may as well sign
them
> > in a way that's useful and widely supported, which right now means RFC
> > 1847 and RFC 3156 (multipart/signed with application/pgp-signature).
>
> Some while ago I made an update to Cleanfeed's scoring mechanism so that
> multipart/signed messages received a weighted score.  I've never seen
> spam using PGP/MIME so it seemed like a good idea.  :)

How about this:  For whatever score you assign to a multipart/signed
message (or message fragment), assign the same value score to its PGP
signature.  Add the score if the PGP section fails, and subtract it if the
PGP section passes (thus resultig in zero assuming no other scoring rules
trigger).

Score results (normalized):
0 - PGP signed section validated
1 - Signature had no PGP signature (or another recognized signature)
2 - PGP signed section failed.

A message with more than one signature (under the same multipart/signed
fragment) of the same type (as the other signature(s)) should be rejected
as malformed.  There's probably code that one may borrow from MIMEDefang
for this.

> At the moment I'm testing various ways to identify Base64 messages
> without requiring regex's that scan hundreds of lines of payload in
> every message.  If it works then I'll make an update as I don't see why
> posting PGP keyblocks should be effectively banned.

If you require the proper declaration of mime type in message sections,
then perhaps any base64 encoding that doesn't fit in a declared section is
a malformed message.  That allows the filter to rely on mime-type alone for
further processing.

Re: Cleanfeed Thoughts
#80171
Author: D. Stussy
Date: Tue, 24 Feb 2009 22:46
62 lines
4384 bytes
"A Mixmin User" <example@invalid.com> wrote in message
news:MTAwMDAyOS5kcnNub2lk.1235511514@quikprotect...
> In article <gnt2pl$5qd$1@aux.snarked.org>
> "D. Stussy" <spam@bde-arc.ampr.org> wrote:
> > "Steve" <steve@mixmin.net> wrote in message
news:slrngq2ih9.782.steve@news.mixmin.net...
> > > I have a couple of thoughts on Cleanfeed updates I'd like to gauge
> > > opinions on.
> > >
> > > Firstly, I've received a number of feedback requests for changes to
the
> > > binary filtering.  In 2008 Julien fixed a bug in INN that was
breaking
> > > multi-line regex filtering.  This greatly improved the performance of
> > > the misplaced binary filter but there is a downside: Messages
containing
> > > blocks of PGP get rejected.  For example, it's now almost impossible
to
> > > post a PGP Public Key outside a binary group.
> >
> > If this also blocks PGP-signed control messages, I'd have a problem
with
> > it.  However, those signatures are in the header, and I believe you're
> > talking about PGP signatures in the body, correct?  I'm not concerned
about
> > the latter and in fact find it only used by the overly paranoid.  Does
the
> > Usenet community really care if a particular non-control article can be
> > authenticated?
>
> Hello,
> I'm one of the users of Steve's mixmin server who has pointed out the
> problem.  The problem usually does not lie with signatures, rather with
the
> posting of public keys and/or small PGP encrypted messages.  I might
agree
> with your perception that such things are the product of paranoia, and
> would also add that one could argue that such things don't belong on a
> public forum such as Usenet.  What I do believe is that such small (<100
> lines in general) non-binary messages posted in text groups do not
> constitute abuse.  They are merely a means of communicating text in a
> private manner and should not be filtered based on lumping them together
> with other obviously misplaced binary encoded content.  If an operator
> wants to filter them for some other reason, fine.
> I just wanted to clarify, and thank Steve for applying his skills to this
> matter.

I wasn't saying that they were spam.  I simply questioned their value - not
really seeing anything signficant.  The distribution of the public keys is
an implied problem.  Other than certain public announcements (I'll call
that "the Allbery exception"), it's not a value-adding feature.  I shall
agree such doesn't mean that it should be disallowed, banned, or filtered
out, but is its accidental filtering side-effect something that really
needs to be fixed in all practicallity?  In theory, I agree that perhaps
they should not be filtered - and thus Steve's query.

Perhaps what needs to be affirmatively established is:  Are PGP-body-signed
messages specifically allowed or forbidden, or do they exist simply due to
a lack of a rule addressing them, AND should its current status be changed?
Once a policy exists, then a course of action will show itself.

Re: Cleanfeed Thoughts
#80179
Author: Jeffrey M. Vinocur
Date: Thu, 26 Feb 2009 02:43
17 lines
1783 bytes
In article <go1rur$e8g$1@aux.snarked.org>,
D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote:
>
>How about this:  For whatever score you assign to a multipart/signed
>message (or message fragment), assign the same value score to its PGP
>signature.  Add the score if the PGP section fails, and subtract it if the
>PGP section passes (thus resultig in zero assuming no other scoring rules
>trigger).

I wonder about the computational cost of verifying PGP signatures
(particularly when an attacker can supply an arbitrary number of
arbitrarily long PGP-signed articles).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Cleanfeed Thoughts
#80181
Author: Son of Serpent Esq
Date: Thu, 26 Feb 2009 04:33
18 lines
1886 bytes
D. Stussy wrote:
> Perhaps what needs to be affirmatively established is:  Are PGP-body-signed
> messages specifically allowed or forbidden, or do they exist simply due to
> a lack of a rule addressing them, AND should its current status be changed?
> Once a policy exists, then a course of action will show itself.

We have given this matter careful consideration and in our judgement
the use of PGP and GnuPG should be allowed and encouraged on usenet.
Please update all FAQs and related policy documents to reflect this
consensus.

So let it be written, so let it be etc., etc...

Thank you and have a nice day.

-- 
The Benevolent and Protective Order of Fluffy
Re: Cleanfeed Thoughts
#80186
Author: Steve
Date: Thu, 26 Feb 2009 09:12
28 lines
2639 bytes
On Tue, 24 Feb 2009 14:22:17 -0800, D. Stussy wrote in
Message-Id: <go1rur$e8g$1@aux.snarked.org>:

> A message with more than one signature (under the same multipart/signed
> fragment) of the same type (as the other signature(s)) should be rejected
> as malformed.  There's probably code that one may borrow from MIMEDefang
> for this.

I'll take a look at this but I think the issue of signature validation
is a little beyond the scope of Cleanfeed.  Signatures imply little
meaning without trust validation and that squarly puts it in the client
arena as trust is subjective.

> If you require the proper declaration of mime type in message sections,
> then perhaps any base64 encoding that doesn't fit in a declared section is
> a malformed message.  That allows the filter to rely on mime-type alone for
> further processing.

This raises an interesting point.  I have been thinking mostly about inline
posting of public keys (and potentially long signatures) but it would be
easier to make binary filter exceptions based on MIME type.  Of course
this assumes that everyone who wants to use PGP has a reader that's MIME
friendly.  SLRN for one doesn't match that assumption.

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Re: Cleanfeed Thoughts
#80205
Author: Son of Serpent Esq
Date: Sun, 01 Mar 2009 23:24
17 lines
1871 bytes
Steve wrote:
> My other query centres around the number of urls being spammed in
> machine generated spew.  I've written some code to produce a list of
> these which can be viewed here:-
> http://www.mixmin.net/cleanfeed/bad_url_central
> I'd like to gauge if there's interest in supporting such a list in
> Cleanfeed.  It's simple enough to add but I see no point clogging it up
> with features that nobody wants.  :)

Well, just my opinion but, usenet spammers would go out of business
if they couldn't post those links to their sites. I added that list
to my cron a few days ago and it helps for sure. Thanks.

Since they are being updated automatically, I'm wondering if there
is a way to have them checked for errors before they are loaded by
function filter_art and maybe if it notices something to not load
them and continue on... instead of doing the harakiri.
Re: Cleanfeed Thoughts
#80208
Author: Steve
Date: Mon, 02 Mar 2009 09:43
23 lines
2069 bytes
On Sun, 1 Mar 2009 23:24:57 +0000 (UTC), Son of Serpent Esq wrote in
Message-Id: <gof5g9$lqc$1@tioat.net>:

> Well, just my opinion but, usenet spammers would go out of business
> if they couldn't post those links to their sites. I added that list
> to my cron a few days ago and it helps for sure. Thanks.
Good to hear, thanks for the feedback.  :)

> Since they are being updated automatically, I'm wondering if there
> is a way to have them checked for errors before they are loaded by
> function filter_art and maybe if it notices something to not load
> them and continue on... instead of doing the harakiri.
The code that generates the list does check the syntax of the
expressions to some extent.  Fortunately the allowable characters in
domain name syntax precludes the use of dangerous things like
parenthisis that could break a Regex.  The only valid characters that
require special handling are '.' and '-', both of which need to be
(and are) escaped.

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Re: Cleanfeed Thoughts
#80207
Author: Son of Serpent Esq
Date: Mon, 02 Mar 2009 14:48
25 lines
2036 bytes
Steve wrote:
> On Sun, 1 Mar 2009 23:24:57 +0000 (UTC), Son of Serpent Esq wrote in
> Message-Id: <gof5g9$lqc$1@tioat.net>:
>
> Good to hear, thanks for the feedback.  :)

Can you rig one up that's a little more aggressive?
Suggested name: bad_url_fluffenstein_3D

> The code that generates the list does check the syntax of the
> expressions to some extent.  Fortunately the allowable characters in
> domain name syntax precludes the use of dangerous things like
> parenthisis that could break a Regex.  The only valid characters that
> require special handling are '.' and '-', both of which need to be
> (and are) escaped.

Well, I gotta fess up here; I'm using the bad_host file to help me
learn perl and I've killed perl more times than I care to admit so I
was trying to get you to save me from myself. It might be better to
move my testing into cleanfeed.local so I can do perl -cw before I
reload.

-- 
Talk2Cheezus:  1\-8[0-8][0-8]\-[1-9][0-9][0-9]\-sl.t
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads