🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
30 messages
30 total messages Started by Andrew Bulhak Fri, 21 Oct 1994 07:13
Spam detection -- methods?
#2964
Author: Andrew Bulhak
Date: Fri, 21 Oct 1994 07:13
65 lines
4358 bytes
Since the frequency of spams (identical messages posted separately to
many unrelated newsgroups)  on the net is increasing, and the C&S
how-to book is coming out soon, it may be a good time to give some
thought to efficient ways of detecting and cancelling spams. I have been
thinking about the problem and have come up with some ideas.

Firstly, it should be kept in mind that any spam-exclusion software
should err on the side of caution; it would be a more grevious mistake
to cancel legitimate (non-spam) posts than to not cancel spams.

My first idea for a spam-detection technique would be to compare
messages by using an edit-distance function. This function would be
applied to the message body only (as headers would be different for each
copy). Because a wily spammer could chance a few minute details
(spacing, etc.) to defeat strcmp() or something similar, edit distance
would be used.* Any two posts with a distance below a certain threshold
would be classified as a spam. The threshold would be set low enough as
not to trigger on two follow-ups to the same post.

This brings up the issue of comparing posts. Clearly, comparing each
post on the system with each other post has O(n^2) time complexity, and
would be inefficient, especially if edit distance is calculated each
time.

A simple way of reducing this complexity would be to only compare recent
articles, say, those which arrived in the same 24 hours. There is,
however, a trade-off between complexity and vulnerability; if the
"statute of limitations" is too short, some spams will be undetected.

Another technique would be to firstly have an inexpensive screening test
to weed out posts which are unlikely to be copies of a post. Comparing
the From: and Path: headers of two posts may be one way of doing this.
Iff they match, the edit-distance procedure is applied; otherwise, they
are known to probably not be a spam.

If this software is built into the news site software, it could reduce
computation required by placing articles in a hash table by site of origin.
When a new article arrives, its origin (inferred from headers) would be
looked up in the hash table and it would be screened against other
articles in that hash group. If the screening test returns a positive,
the new article's edit distance from the previous article would be
computed. If they are below the spam threshold, the new article is
dropped.

This would result in only one copy of each spam arriving at each site,
in the first group to which the spam is posted. If this is
inappropriate, the spam can be moved into junk by the software. This
would also allow the software to search against posts in junk first,
making it more efficient against large spams.


* The edit distance between two strings is the number of insertions,
deletions or transpositions required to transform one into the other.


If you have any ideas concerning ways of detecting multiple posts
efficiently, or any comments/corrections/suggestions concerning the 
above post, please follow up to this post.

--
Andrew Bulhak            | "Not everything in a cup is a drink. I would 
acb@yoyo.cc.monash.edu.au| argue that simply putting spaghetti in a cup 
Monash Uni, Clayton,     | does not make it a drink."
Victoria, Australia      |	-- pt@acl.icnet.uk, on Mornington Crescent
Re: Spam detection -- methods?
#2967
Author: Joe D
Date: Fri, 21 Oct 1994 18:10
23 lines
2164 bytes
Andrew Bulhak (acbul1@penfold.cc.monash.edu.au) wrote:

: My first idea for a spam-detection technique would be to compare
: messages by using an edit-distance function. This function would be
: applied to the message body only (as headers would be different for each
: copy). Because a wily spammer could chance a few minute details
: (spacing, etc.) to defeat strcmp() or something similar, edit distance
: would be used.* Any two posts with a distance below a certain threshold
: would be classified as a spam. The threshold would be set low enough as
: not to trigger on two follow-ups to the same post.

A slightly less intensive method would be to keep track of the number of
different newsgroups one person posts to in a 24 hour period.  Once some
threshold is crossed (say, 10 for normal people, 50 for Kibo) then either
alert a human to check into it, or start the edit distance calculations.

This would only work if the spammer was using one account to spam from, but
it should work reasonably well in most cases.

Joe D
--
+++  ATH  NO CARRIER
Re: Spam detection -- methods?
#2968
Author: Bruce Tomlin
Date: Fri, 21 Oct 1994 18:11
24 lines
2416 bytes
Andrew Bulhak (acbul1@penfold.cc.monash.edu.au) wrote:
: A simple way of reducing this complexity would be to only compare recent
: articles, say, those which arrived in the same 24 hours. There is,
: however, a trade-off between complexity and vulnerability; if the
: "statute of limitations" is too short, some spams will be undetected.

Another way of reducing complexity would be to only check against messages
from the lower-volume alt.* groups.  Since most spams are automated and
come right from the spammer's .newsrc, some effort would have to be made
to exclude the groups where it would be most conspicuous to automated
software. 

I'm not talking about creating a single newsgroup like "alt.0a" here.  If
ALL low-volume (<5 messages a day, for instance) newsgroups were checked,
the effort reqired on the part of the spammer to escape automatic
detection would be very high.  Yes, it would be possible to incorporate
the code that identifies "low volume" newsgroups directly from the
spamming detection software into the spamware, but it would require some
programming knowledge and should certainly do away with most of the
"freshman spam".

What gave me this idea?  It was the fact that the ONLY thread currently in 
alt.binaries.pictures.dorks was started with a spam.
Re: Spam detection -- methods?
#2970
Author: Bram Cohen
Date: Fri, 21 Oct 1994 18:40
7 lines
1404 bytes
Since nearly all, if not all, spams which have ocurred so far have had the 
same return address, probably the safest thing to do right now is to have 
a warning go off whenever there are some large number of posts from a 
single user, then have a human go look at them. It would probably be a waste 
of resources to attempt a differencing heuristic on posts with different 
From: lines.
Re: Spam detection -- methods?
#2972
Author: Krishna Kunchithapadam
Date: Sat, 22 Oct 1994 01:04
90 lines
5327 bytes
In article <387pmq$blt@harbinger.cc.monash.edu.au>
acbul1@penfold.cc.monash.edu.au (Andrew Bulhak) writes:
:
: [notes about edit-distance comparisons deleted]
:
: This brings up the issue of comparing posts. Clearly, comparing each
: post on the system with each other post has O(n^2) time complexity, and
: would be inefficient, especially if edit distance is calculated each
: time.
:


Udi Manber (U. Arizona) had a paper in the Winter-93 Usenix on a
tool called `sif' (_s_imilarity _i_n _f_iles), which does a fast
hashing of text files to allow O(n.log(n)) similarity tests.

The essential idea is that if a text file is "sufficiently"
large, some continuous sequence of characters in it will hash (in
the checksum sense, as an example) to 0 (modulo some pre-chosen
integer).  It does not matter what checksumming strategy you use,
how many contiguous characters you plan to checksum (as long as
you checksum only a fixed-length string, and not the whole file)
and what integer you choose to perform modulo-checks.

Large files will yield _many_ different signatures and two files
that have many shared signatures are increasingly likely to be
similar (save editing changes).  The degree of similarity is
often a good measure of the edit-distance that Andrew mentions in
his posting.

Spam detectors using this approach might look like this:

(1) Sample the world (or at least that part of the world in your
    news spool).  Strip all headers from articles and run through
    the signature generator.  The generated information will be
    records of the form "signature filename/article-id".  The
    cost of doing this is O(n) where n is the size of the spool-
    --each byte in each article will be seen once (and only
    once).

(2) Sort the signature records (by signature).  This step
    requires O(n.log(n))) in the size of the signature file---
    there is obviously a trade-off: you want lots of signatures
    so that spams do not slip through, but you do not want so
    many that this step becomes a bottle-neck.

(3) Scan through the file and build your edit-distance matrix.
    Alternatively, if you have a fast hash-table implementation
    of multi-sets, you can do away with the sort and generate the
    edit-distance matrix at the cost of iterating through the
    multi-set.

All entries of the matrix whose value is more than a threshold
(90% say) are candidates for a spam---time to fire the ARMM (or
your favorite spam-killer).  Manber's paper also makes for
interesting reading, so it is worth a look.

The main reason why I think this approach has some merit is that
it has no fixed concept of a signature (as checksums do) or a
fixed concept of edit distance in terms of additions and
deletions.  Therefore, McElwaine spams (where each article had a
subtly different promo-message) and Dave Rhodes spams (where the
10 current recipient list changes with every successive
sucker/net-abuser) will still be caught.  It is almost trivial to
catch the Green-card lottery spams since all articles had
identical bodies.

There are lots of weeding that one can do to reduce the
population of the signature file.  Andrew points out many in his
post.  For a start, we can immediately ignore all moderated
newsgroups from consideration.  Secondly, we can watch out
specifically for articles posted to defunct newsgroups in the alt
hierarchy---the only traffic that these groups have seen in their
lifetimes is spam---and signature test them (and alert the
sysadmins or trigger the execution of an edit-distance comparator
as above).  Thirdly, we can (and probably should) ignore all the
*binaries* groups (by using a simple heuristic to identify those
articles that seem to be uuencoded).  All the above should
drastically reduce the number of articles that get passed on to
the signature generator, in which case it might even make sense
to run the program on every candidate article as it arrives (and
drop the results into a database).

Finally, I would like the final act of the metaphorical "pulling
the trigger" to be done by a human---it is easy to write code
that helps in detecting potential spams, but I am less sure about
having the program also act as a cancel-bot.

--Krishna
Re: Spam detection -- methods?
#2974
Author: Larry Nathanson
Date: Sat, 22 Oct 1994 04:18
22 lines
1818 bytes
bcohen@cs.buffalo.edu (Bram Cohen) writes:

>Since nearly all, if not all, spams which have ocurred so far have had the 
>same return address, probably the safest thing to do right now is to have 
>a warning go off whenever there are some large number of posts from a 
>single user, then have a human go look at them. It would probably be a waste 
>of resources to attempt a differencing heuristic on posts with different 
>From: lines.

From memory, the last herbal spam was posted with a number of
different From addresses.  (Check your databases if you want more
precision).  They have already learned to 'burn' free trial accounts,
and redirect email replies to a 'safe' account, like mcimail.  They
are also learning to forge headers so as to redirect flamage...

I think discussion of some solid heuristic spam detection methods
would be excellent.  

--L


Re: Spam detection -- methods?
#2975
Author: Daniel P Tasman
Date: Sat, 22 Oct 1994 16:43
19 lines
2161 bytes
I'm not a programmer or Unix wizard, but the following idea should be possible-

How about checking the posts on many unrelated groups, where normal crossposting
of articles would be unlikely, for news articles of the same title.  If 100
groups are on the check-for-spamming list, and 25% of them contain a post with
the same title or a post by the same author, the program would warn "postmaster"
at the site, and post an automated warning to this group.

-- 
   Dan Tasman         SUNY at Buffalo School of Architecture and Planning  
      E-mail - tasman@acsu.buffalo.edu & v132pdd6@ubvms.cc.buffalo.edu 
           WWW Home Page - http://www.acsu.buffalo.edu/~tasman/
+--------------------------------------------------------------------------+
| "I think that I shall never see a billboard lovely as a tree.            |
|  indeed, unless the billboards fall, I'll never see a tree at all."      |
|                                        Odgen Nash, Song of the Open Road |
+--------------------------------------------------------------------------+
Re: Spam detection -- methods?
#2976
Author: Andrew Bulhak
Date: Sat, 22 Oct 1994 17:11
31 lines
2643 bytes
Bruce Tomlin (btomlin@crl.com) wrote:
: Andrew Bulhak (acbul1@penfold.cc.monash.edu.au) wrote:
: : A simple way of reducing this complexity would be to only compare recent
: : articles, say, those which arrived in the same 24 hours. There is,
: : however, a trade-off between complexity and vulnerability; if the
: : "statute of limitations" is too short, some spams will be undetected.

: Another way of reducing complexity would be to only check against messages
: from the lower-volume alt.* groups.  Since most spams are automated and
: come right from the spammer's .newsrc, some effort would have to be made
: to exclude the groups where it would be most conspicuous to automated
: software. 

: I'm not talking about creating a single newsgroup like "alt.0a" here.  If
: ALL low-volume (<5 messages a day, for instance) newsgroups were checked,
: the effort reqired on the part of the spammer to escape automatic
: detection would be very high.  Yes, it would be possible to incorporate
: the code that identifies "low volume" newsgroups directly from the
: spamming detection software into the spamware, but it would require some
: programming knowledge and should certainly do away with most of the
: "freshman spam".

This is a good idea; however, high-volume newsgroups should still be
checked. They should, however, be checked after lower-volume newsgroups.
Thus, the process is optimised.

--
Andrew Bulhak            acb@yoyo.cc.monash.edu.au
Estimated Usenet time to live: 24 days.
Oh well, it was good while it lasted.....
Re: Spam detection -- methods?
#2977
Author: Andrew Bulhak
Date: Sat, 22 Oct 1994 17:16
24 lines
2339 bytes
Bram Cohen (bcohen@cs.buffalo.edu) wrote:
: Since nearly all, if not all, spams which have ocurred so far have had the 
: same return address, probably the safest thing to do right now is to have 
: a warning go off whenever there are some large number of posts from a 
: single user, then have a human go look at them. It would probably be a waste 
: of resources to attempt a differencing heuristic on posts with different 
: From: lines.

Not necessarily. Discounting bizarre spams like incoherent text
generated with a recursive grammar (see flame.el), machine-modified
spams should be easy to detect. The only difference would be some custom
keywords.

I have received mail from a reader, suggesting the use of word-frequency
histograms as an alternative to edit-distance functions for detecting
similarity of content. This sounds like a better idea, as it can handle
machine-transposed paragraphs well (which edit-distance cannot), and
would probably be faster to compute.

--
Andrew Bulhak            acb@yoyo.cc.monash.edu.au
Estimated Usenet time to live: 24 days.
Oh well, it was good while it lasted.....
Re: Spam detection -- methods?
#2978
Author: Andrew Bulhak
Date: Sat, 22 Oct 1994 17:26
20 lines
2215 bytes
Krishna Kunchithapadam (krishna@cs.wisc.edu) wrote:

: Finally, I would like the final act of the metaphorical "pulling
: the trigger" to be done by a human---it is easy to write code
: that helps in detecting potential spams, but I am less sure about
: having the program also act as a cancel-bot.

I did not intend my spam detector to be a cancelbot; the problem with
cancels is that they consume bandwidth and are messy. Rather, my
suggestion was for a modification to software such as inn or cnews to
act as a sentry of sorts, allowing non-spams to pass and dropping spams
on the floor, so to speak. If enough systems (especially upstream) were
to run this, this would greatly reduce the effectiveness of spamming.

--
Andrew Bulhak            | "Not everything in a cup is a drink. I would 
acb@yoyo.cc.monash.edu.au| argue that simply putting spaghetti in a cup 
Monash Uni, Clayton,     | does not make it a drink."
Victoria, Australia      |	-- pt@acl.icnet.uk, on Mornington Crescent
Re: Spam detection -- methods?
#2979
Author: Andrew Bulhak
Date: Sat, 22 Oct 1994 17:34
38 lines
2950 bytes
Larry Nathanson (lan@panix.com) wrote:
: bcohen@cs.buffalo.edu (Bram Cohen) writes:

: >Since nearly all, if not all, spams which have ocurred so far have had the 
: >same return address, probably the safest thing to do right now is to have 
: >a warning go off whenever there are some large number of posts from a 
: >single user, then have a human go look at them. It would probably be a waste 
: >of resources to attempt a differencing heuristic on posts with different 
: >From: lines.

: From memory, the last herbal spam was posted with a number of
: different From addresses.  (Check your databases if you want more
: precision).  They have already learned to 'burn' free trial accounts,
: and redirect email replies to a 'safe' account, like mcimail.  They
: are also learning to forge headers so as to redirect flamage...

: I think discussion of some solid heuristic spam detection methods
: would be excellent.  

The Path: header generally is a good indicator of suspiciousness. If an
article's path varies greatly from the typical paths of articles
emanating from a site, this should trigger warning bells.

For the purpose of the spam detector/suppressor, valid and genuine From:
addresses are not important; the software, being potentially fallible, 
should not be trusted to autonomously lodge complaints to postmasters
about inappropriate behaviour of users.

Suspicious paths and inconsistent headers, however, could count for
"suspicion points", which would decide which articles are checked
against incoming articles.

--
Andrew Bulhak            | "Not everything in a cup is a drink. I would 
acb@yoyo.cc.monash.edu.au| argue that simply putting spaghetti in a cup 
Monash Uni, Clayton,     | does not make it a drink."
Victoria, Australia      |	-- pt@acl.icnet.uk, on Mornington Crescent
Re: Spam detection -- methods?
#2980
Author: J.D. Falk
Date: Sun, 23 Oct 1994 20:38
23 lines
2267 bytes
Andrew Bulhak (acbul1@penfold.cc.monash.edu.au) writes...

> I did not intend my spam detector to be a cancelbot; the problem with
> cancels is that they consume bandwidth and are messy. Rather, my
> suggestion was for a modification to software such as inn or cnews to
> act as a sentry of sorts, allowing non-spams to pass and dropping spams
> on the floor, so to speak. If enough systems (especially upstream) were
> to run this, this would greatly reduce the effectiveness of spamming.

	I'm not sure if I like this, either.  IMHO, except for messages 
with seriously non-RFC-compliant (the kind where you have no idea how it 
even got past the poster's site), nothing should be automagically junked 
by a site feeding other, autonomous sites.
	However, it'd be nice if the major feed sites' news admins were to
jump on the cancelbot bandwagon, and perhaps use the type of scheme we've
been discussing here so that they can be quickly alerted to the problem. 

    "But still the screen is flickering  /-----------------\
   With an endless stream of garbage to  |    J.D. Falk    |
                        Curse the place  | jdfalk@cais.com |
             In a sea of random images." \-----------------/
                           -Pink Floyd
Re: Spam detection -- methods?
#2981
Author: Andrew Bulhak
Date: Mon, 24 Oct 1994 00:59
23 lines
2214 bytes
Daniel P Tasman (tasman@acsu.buffalo.edu) wrote:

: I'm not a programmer or Unix wizard, but the following idea should be possible-

: How about checking the posts on many unrelated groups, where normal crossposting
: of articles would be unlikely, for news articles of the same title.  If 100
: groups are on the check-for-spamming list, and 25% of them contain a post with
: the same title or a post by the same author, the program would warn "postmaster"
: at the site, and post an automated warning to this group.

Setting up the lists would be time-consuming; also, relatedness is
subjective.

Furthermore, the spam detector should not be relied upon to post to
Usenet, cancel messages or notify postmasters other than the one at the
local site. A competent human being should be responsible for such
actions.

--
Andrew Bulhak            acb@yoyo.cc.monash.edu.au
Estimated Usenet time to live: 22 days.
Have you enjoyed Usenet today to the fullest?
Re: Spam detection -- methods?
#2982
Author: Andrew Bulhak
Date: Mon, 24 Oct 1994 01:06
37 lines
2959 bytes
Chris Lewis (clewis@ferret.ocunix.on.ca) wrote:

: For the most part, the spams we've seen have been commercial advertising,
: which need useable return addresses, or, at least consistent believable ones
: if the ad is intended to make money.

Exception: political/conspiracy rants, like "FREE MONEY".
They may also specify return addresses (paper or e-mail) only in the
message text.

: As such, a simple spam detector that "went off" when it saw more than,
: say, 50 posts with the same Reply-To or From within 24 hours would
: catch all (or virtually all) of the spams we've seen to date.  The
: software would have to have an exception list however, so the
: administrator could turn off the alarm for specific legitimate uses,
: such as the UUCP maps, or the people with clarinet or ncar's weather
: feeds etc.

Some people post more than 50 articles on some days -- that's not
spamming. It's spamming only if the articles are virtually identical.
General purpose posting quotas to eliminate spamming would be like
cutting off your nose to spite your face.

: As an enhancement, maintain a byte count of each article, and consider them
: potential spam if they're within 5% of each other in length.

Good idea; should be a way of optimising edit-distance or word frequency
comparisons. If this triggers, the comparator should be run.

Of course, eventually spammers may write a script to append a random
number of spaces to the end of spams.....

--
Andrew Bulhak            acb@yoyo.cc.monash.edu.au
Estimated Usenet time to live: 22 days.
Have you enjoyed Usenet today to the fullest?
Re: Spam detection -- methods?
#2983
Author: Andrew Bulhak
Date: Mon, 24 Oct 1994 01:08
28 lines
2508 bytes
Malcolm McMahon (malcolm@geog.leeds.ac.uk) wrote:
: In article <387pmq$blt@harbinger.cc.monash.edu.au>,
: Andrew Bulhak <acbul1@penfold.cc.monash.edu.au> wrote:
: >
: >Another technique would be to firstly have an inexpensive screening test
: >to weed out posts which are unlikely to be copies of a post. Comparing
: >the From: and Path: headers of two posts may be one way of doing this.
: >Iff they match, the edit-distance procedure is applied; otherwise, they
: >are known to probably not be a spam.
: >

: Perhaps it would be possible to use the fact that spams are adverts
: (even if what is being advertised is the end of the world) and
: advertisers tend to use a special vocabulary. I suspect that a word
: use frequency analysis of adverts and non-adverts would give quite a
: good discrimination. Suspected adverts could then be chacked for
: spamming. Perhaps posts with a very high advertising index that
: weren't detected as spams could be hand-checked for being commericial
: adverts.

Not all spams are advertisements. Counterexamples: "GLOBAL ALERT: Jesus
Is Coming Soon", "FREE MONEY".

--
Andrew Bulhak            acb@yoyo.cc.monash.edu.au
Estimated Usenet time to live: 22 days.
Have you enjoyed Usenet today to the fullest?
Re: Spam detection -- methods?
#2984
Author: Stan Ryckman
Date: Mon, 24 Oct 1994 08:09
24 lines
1845 bytes
[ugh, I really think I should cut down on the Newsgroups: line.
Instead, note that I redirect Followup-To:, but feel free to add
back any groups I shouldn't have excluded.]

In article <38f1bd$dda@harbinger.cc.monash.edu.au>,
Andrew Bulhak <acbul1@penfold.cc.monash.edu.au> wrote:

[most everything snipped]

>Of course, eventually spammers may write a script to append a random
>number of spaces to the end of spams.....

Of course, any decent spam detector will realize that:
	All White Space Is Created Equal

(I am not saying here that I approve of spam detectors for
other than local use.  My mind is not made up yet.)

Cheers,
Stan.
-- 
HELP!  I'M BEING HELD PRISONER IN A .SIGNATURE FACTORY!
    Stan Ryckman   sgr@alden.com
Re: Spam detection -- methods?
#2985
Author: Andrew Bulhak
Date: Mon, 24 Oct 1994 16:07
57 lines
3666 bytes
Stan Ryckman (sgr@ae-sun01.alden.com) wrote:
: In article <38f1bd$dda@harbinger.cc.monash.edu.au>,
: Andrew Bulhak <acbul1@penfold.cc.monash.edu.au> wrote:

: [most everything snipped]

: >Of course, eventually spammers may write a script to append a random
: >number of spaces to the end of spams.....

: Of course, any decent spam detector will realize that:
: 	All White Space Is Created Equal

That is correct; another poster, however, proposed the use of the
physical size of articles on the disk to screen possible spams. My
comment was an example of an Achilles' heel of this technique.

: (I am not saying here that I approve of spam detectors for
: other than local use.  My mind is not made up yet.)

My proposal was for a PASSIVE (my emphasis) spam detector; i.e., its
mandate would be limited to dropping incoming spams into the bit bucket.
I certainly do not approve of active cancelling, except in exceptional
circumstances. If systematic cancelbotting becomes an institution, the
Net will be that much easier to censor, be there enough pressure from
the "moral majority", the political correctness lobby or whoever.

But I diverge. My proposal was intended as an extension to standard
Usenet software (such as cnews or INN), to make it more resilient to
spams. If it becomes widespread, spamming will be all but eradicated; if
not, at least the sites which run it won't drop news or fall over
because of tens of megabytes of spam on the news spool.

One could go further toward preserving the pure "peacekeeping" nature of
the software by having it, instead of deleting spams, collate them into
a single crossposted post. Thus its role would be limited to optimising
disk space usage and allowing users with "smart" newsreaders which
globally mark read articles to not see a spam more than once. But that
may be too limited and inadequate a role for it. Ideally, the detector
would have several user-selectable modes of operation. These would be:

0: Log spams to log file, possibly notifying local news adminitrator by
email, and do nothing.

1: Log spams to log file and collate into one article cross-posted to
all the original groups.

2: Log spams to log file and collate into one article posted to junk
(or perhaps "spam").

I would not recommend using this software to send cancel messages out
onto the Net. It's messy and takes up bandwidth, beside other issues.

--
Andrew Bulhak            acb@yoyo.cc.monash.edu.au
Estimated Usenet time to live: 22 days.
Have you enjoyed Usenet today to the fullest?
Re: Spam detection -- methods?
#2986
Author: Charles R Martin - Personal Acco...
Date: Mon, 24 Oct 1994 20:34
34 lines
3009 bytes
In article <rhoward.783020991@matd> rhoward@matd.gatech.edu (Robert L. Howard) writes:

   acbul1@penfold.cc.monash.edu.au (Andrew Bulhak) writes:

   >Krishna Kunchithapadam (krishna@cs.wisc.edu) wrote:

   >: Finally, I would like the final act of the metaphorical "pulling
   >: the trigger" to be done by a human---it is easy to write code
   >: that helps in detecting potential spams, but I am less sure about
   >: having the program also act as a cancel-bot.

   >I did not intend my spam detector to be a cancelbot; the problem with
   >cancels is that they consume bandwidth and are messy. Rather, my
   >suggestion was for a modification to software such as inn or cnews to
   >act as a sentry of sorts, allowing non-spams to pass and dropping spams
   >on the floor, so to speak. If enough systems (especially upstream) were
   >to run this, this would greatly reduce the effectiveness of spamming.

   But then all I have to do to "beat" this system is to put a long enough
   wait between each article/group to make the total spam take, say, 24
   hours.  Certainly you aren't going to hang onto articles for 24 hours
   or more until you can make a spam/no spam decision to propagate?  Or
   are you?

Um, actually, the propagation delay idea was mine, so don't blame
Andrew for it.  but in answer to your question, sure, why not?  If it is
going to take you in the neighborhood of 25 years to spam the whole net,
maybe you'd take some care to only post to appropriate groups, or to
cross-post appropriately.
--
Charles R. Martin/(Charlie)/Box 52236/Durham, NC 27717/Software Consulting and
Training/(919) 419-1754 day or night/"Boredom is for bores." -- a fish
There's more to be seen than can ever be seen/More to do than can ever be done
Re: Spam detection -- methods?
#2989
Author: David Adams
Date: Tue, 25 Oct 1994 02:02
49 lines
3282 bytes
While we are working out the Spam Detection and Eradication (SDE) methods
I would like to add my suggestions:

	1.  Separate the SDE software into front-end and back-end processes.
	    The front-end process would detect the spam and the back-end
            processes would handle it.

	2.  Plan on having multiple front-end processes that could
	    encompass multiple methods of detecting spam.  A site
	    could pick and choose it's spam detection methods.

	3.  Plan on having multiple back-end processes with different
            ways of handling spam.  Again a site could pick and choose
            how it wants to treat spam.

	4.  Create mechanisms to allow one or more sites running
	    front-end spam detectors to feed spam info to other sites.
	    The spam info could be propagated via email or via a specialized
	    newsgroup (like control messages).


Here is an example of how the above would work:

Let's say I wanted to detect spam based on some sort of correlation
algorithm matching articles in more than 50 groups within a 3 day
timeframe.  I also want to screen out all commercial ads in the
misc.entrepreneur group.  I have the processor power available to
handle the correlation but I don't have anyone who can manually
scan the misc.entrepreneur group for ads.

Site X has someone trustworthy who reads misc.entrepreneur all the
time and is willing to flag the ads to the spam.ctl group.  All I have
to do is run my spam correlator front-end as a daemon and feed its output
to the spam.ctl group.  My cron triggered spam eradicator periodically
scans the spam.ctl group looking for spam control messages that
match hosts in my trusted_hosts file and that match the critera
in my spam defination file.  Presto -- the spam is blown away, or
sent back to the originator, or posted to a spam catch-all group.

Slick Huh?


--
 ******************** David Adams vera2@netcom.com **************************
 ObJoke: Judge  > Why did you cheat all those people who trusted you so much?
         Con Man> Well its kind of hard to cheat people who don't trust you.
 ObComment: Boycott Laurence Canter AKA Green Card Lawyer and net spammer

Re: Spam detection -- methods?
#2991
Author: Andrew Bulhak
Date: Tue, 25 Oct 1994 10:37
39 lines
3198 bytes
Robert L. Howard (rhoward@matd.gatech.edu) wrote:
: acbul1@penfold.cc.monash.edu.au (Andrew Bulhak) writes:

: >Krishna Kunchithapadam (krishna@cs.wisc.edu) wrote:

: >: Finally, I would like the final act of the metaphorical "pulling
: >: the trigger" to be done by a human---it is easy to write code
: >: that helps in detecting potential spams, but I am less sure about
: >: having the program also act as a cancel-bot.

: >I did not intend my spam detector to be a cancelbot; the problem with
: >cancels is that they consume bandwidth and are messy. Rather, my
: >suggestion was for a modification to software such as inn or cnews to
: >act as a sentry of sorts, allowing non-spams to pass and dropping spams
: >on the floor, so to speak. If enough systems (especially upstream) were
: >to run this, this would greatly reduce the effectiveness of spamming.

: But then all I have to do to "beat" this system is to put a long enough
: wait between each article/group to make the total spam take, say, 24
: hours.  Certainly you aren't going to hang onto articles for 24 hours
: or more until you can make a spam/no spam decision to propagate?  Or
: are you?

The spam detector can check the rest of the news spool, if its searching
tehcnique is sufficiently fast. Word-frequency comparisons, hash tables
and edit-distance signatures would enable such efficiency.

And anyway, even if it does call it a day after some time, it has
reduced the potential output of spammers by restricting their posts to
a certain maximum frequency, which in itself is a Good Thing. If this
time is made equal to the expiry time of news, then spams do not cause
any greater a disturbance than ordinary posts, in terms of disk space
and bandwidth. And some sites have  l o n g  expiry times.

--
Andrew Bulhak            acb@yoyo.cc.monash.edu.au
Estimated Usenet time to live: 21 days.
Have you enjoyed Usenet today to the fullest?
Re: Spam detection -- methods?
#2992
Author: jwes on BIX
Date: Tue, 25 Oct 1994 20:04
11 lines
1514 bytes
acbul1@penfold.cc.monash.edu.au (Andrew Bulhak) writes:

Can I suggest a simple low-tech way of reducing spam. Charge for it.
For example, 1 cent per kB per site per newsgroup to bu used to fund the 
internet. The Green Card boys would have bought us a new T3 backbone.
It can be done ex post facto, won;t cause another ARGM fiasco, and is
easy to explain to judges and juries if someoneone needs to be taken 
to court.

                       jwes@bix.com
Re: Spam detection -- methods?
#2993
Author: Andrew Bulhak
Date: Wed, 26 Oct 1994 04:35
24 lines
2357 bytes
jwes on BIX (jwes@BIX.com) wrote:
: acbul1@penfold.cc.monash.edu.au (Andrew Bulhak) writes:

: Can I suggest a simple low-tech way of reducing spam. Charge for it.
: For example, 1 cent per kB per site per newsgroup to bu used to fund the 
: internet. The Green Card boys would have bought us a new T3 backbone.
: It can be done ex post facto, won;t cause another ARGM fiasco, and is
: easy to explain to judges and juries if someoneone needs to be taken 
: to court.

Do you want to pay for your news posts?

I don't.

The point of my proposal was to specifically avoid building a "brave new
world"; it is meant to be a proposal for a minimal, technical solution
primarily to protect servers and links from wasteful spams. It is not
intended to be the blueprint for a new, clean, regulated network.

--
Andrew Bulhak            acb@yoyo.cc.monash.edu.au
Estimated Usenet time to live: 20 days.
Have you enjoyed Usenet today to the fullest?
Re: Spam detection -- methods?
#2994
Author: John Payson
Date: Wed, 26 Oct 1994 04:40
21 lines
2007 bytes
[Newsgroups: trimmed]

In article <jwes.783115442@bix.com>, jwes on BIX <jwes@BIX.com> wrote:
>acbul1@penfold.cc.monash.edu.au (Andrew Bulhak) writes:
>
>Can I suggest a simple low-tech way of reducing spam. Charge for it.
>For example, 1 cent per kB per site per newsgroup to bu used to fund the
>internet. The Green Card boys would have bought us a new T3 backbone.
>It can be done ex post facto, won;t cause another ARGM fiasco, and is
>easy to explain to judges and juries if someoneone needs to be taken
>to court.

Unfortunately, this will encourage people not to post at all--even those who
would otherwise benefit the group.  I think it might be good for services to
have a posting quota for new users, with the proviso that those who show
themselves to post well would get their quotas raised or removed.
--
-------------------------------------------------------------------------------
 supercat@mcs.com    |  "Je crois que je ne vais jamais voir...  |   J\_/L
 John Payson         |   Un animal si beau qu'un chat."          |  ( o o )
Re: Spam detection -- methods?
#2995
Author: Thomas Boutell
Date: Wed, 26 Oct 1994 17:25
50 lines
3096 bytes
In article <38kmbe$8fh@harbinger.cc.monash.edu.au>,
Andrew Bulhak <acbul1@penfold.cc.monash.edu.au> wrote:

>The point of my proposal was to specifically avoid building a "brave new
>world"; it is meant to be a proposal for a minimal, technical solution
>primarily to protect servers and links from wasteful spams. It is not
>intended to be the blueprint for a new, clean, regulated network.

I've suggested it before, and I'll suggest it again:

If you want to prevent a spam from *originating at your site*,
which is not as good as preventing spams completely but
sure helps you stay in business and avoid the nightmare
that C&S' providers went through, do the following:

Modify your news injection software to note the last time
it injected a message from each user on your system. Call
this time X. 

If a new message arrives at time Y, where Y-X is less
than a constant time between posts unlikely to be
exceeded by a legitimate human user (say, 10 seconds),
*just sleep on it until the constant time period has
expired* and then go ahead and post it. (No, this
doesn't prevent the system from doing other work/posting 
other users' messages. Sleeping is the *least*
wasteful thing a process can do. (: )

When you deliver the new posting, set time X to the
current time once more.

For bonus points, geometrically increase the time delay
to help would-be spammers get the hint.

Make the modification to injnews, or in your nntp server;
don't just modify Pnews or rn, since those can be easily 
replaced by users.

This will stop the vast majority of spammers in their
tracks by making spamming a slow, painful process
during which you can catch on and beat them over
the head with a lead pipe (pipe Z; see diagram).

-T
-- 
boutell@netcom.com, purveyor of fine World Wide Web pages and tools.
Drop by comp.infosystems.www.users and learn about the web.

<a href="http://sunsite.unc.edu/boutell/index.html"><em>Thomas Boutell</em></A>
Re: Spam detection -- methods?
#2996
Author: Don Doumakes
Date: Thu, 27 Oct 1994 13:17
20 lines
1949 bytes
In article <38g5bc$mof@mercury.dur.ac.uk>, B R Davidson
<B.R.Davidson@durham.ac.uk> wrote:
> PS: What are everyone's opinions on USENET advertising, is everyone
> against it? Do people believe in direct retribution (the unix kernal!) or
> just in stoking your kill files?
>

I definitely favor the direct retribution method, i.e., sending the
complete spam to the user's and host sysadmin's mailbox.

After all, the behavior isn't going to go away if we merely find a
sophisticated way of ignoring it.  The way to teach net citizens what is
expected, is to let them know what is expected.

--
______________________________________________________________________
Don Doumakes             Finger doumakes@netcom.com for PGP public key
PGP bug alert:  If you check my signature, check the output file too!
Curious about socialism?  Subscribe to SocNet.  Finger me for info.
Re: Spam detection -- methods?
#2997
Author: Don Doumakes
Date: Fri, 28 Oct 1994 10:47
35 lines
2437 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In article <boutellCyAJ39.7vL@netcom.com>, boutell@netcom.com (Thomas
Boutell) wrote:


> Modify your news injection software to note the last time
> it injected a message from each user on your system. Call
> this time X.
>
> If a new message arrives at time Y, where Y-X is less
> than a constant time between posts unlikely to be
> exceeded by a legitimate human user (say, 10 seconds),
> *just sleep on it until the constant time period has
> expired* and then go ahead and post it. (No, this

I use uqwk to inject a batch of messages once a day.  Your
spam-prevention algorithm would introduce a three to five minute delay
every time I post.

- --
______________________________________________________________________
Don Doumakes, RN         Finger doumakes@netcom.com for PGP public key
PGP bug alert:  If you check my signature, check the output file too!
Curious about socialism?  Subscribe to SocNet.  Finger me for info.

-----BEGIN PGP SIGNATURE-----
Version: 2.6

iQCVAwUBLrACfxtumcu2AjihAQGNrQP9E+QGVGNPpeMg5ZnXMHcyzNM5a2SfHfFh
ogQbLfYBEokiX2LuPK+nQF7J8j1YnID7p4cF20Bw6yAL/tG1lTmKaYJRiCR4UXvO
8Abj7xS4bFXbmnXpIHxd15M77IdyQpK24Fueb6gXknZBaD+WCRVjkQgmkiqf0lU8
2gBQwo3sT48=
=iihG
Re: Spam detection -- methods?
#3000
Author: Kai Henningsen
Date: Mon, 31 Oct 1994 18:02
18 lines
1863 bytes
crmartin@mercury.interpath.net wrote on 24.10.94 in <CRMARTIN.94Oct24163419@mercury.interpath.net>:

> Um, actually, the propagation delay idea was mine, so don't blame
> Andrew for it.  but in answer to your question, sure, why not?  If it is
> going to take you in the neighborhood of 25 years to spam the whole net,
> maybe you'd take some care to only post to appropriate groups, or to
> cross-post appropriately.

Don't forget that old articles get dropped by news software. That spam
won't survive for 25 years.

Kai
--
Internet: kh@ms.maus.de, kai@khms.westfalen.de
Bang: major_backbone!{ms.maus.de!kh,khms.westfalen.de!kai}
[ussig.xps]
## CrossPoint v3.02 ##
Re: Spam detection -- methods?
#3001
Author: J.D.Watson
Date: Mon, 31 Oct 1994 19:46
30 lines
2041 bytes
In article <doumakesCyCIE3.64t@netcom.com>,
Don Doumakes <doumakes@netcom.com> wrote:
>
>I definitely favor the direct retribution method, i.e., sending the
>complete spam to the user's and host sysadmin's mailbox.
>
>After all, the behavior isn't going to go away if we merely find a
>sophisticated way of ignoring it.  The way to teach net citizens what is
>expected, is to let them know what is expected.


Now isnt that a good Idea, So If I Spam the net and put your address
in my .forward file you too can enjoy the benefits of your suggestion.

Wont that make you popular with your service provider/employer.
Its a nice idea it just wont work in proactice as we have seen recently.

regards

John



newsgroup line edited
--
________________________________________________________________________
| John Watson       | Remember to be green........                     | 
| Keynes college    | Always seperate the Beer cans from the Pizza     | 
| UKC Canterbury UK | boxes when putting out the trash.                | 
Re: Spam detection -- methods?
#3004
Author: halasz
Date: Wed, 02 Nov 1994 23:06
36 lines
3178 bytes
In article <38kmbe$8fh@harbinger.cc.monash.edu.au>, acbul1@penfold.cc.monash.edu.au (Andrew Bulhak) writes:
> Do you want to pay for your news posts?
Nothing wrong with paiing; one pais for sending a letter to the editor

But here is a technical suggestion:
For each new incummind article  u , run this on it:
   tr -cs '[@-~]' '[\012*]' | tee M | tr '[`-~]' '[@-^]' | sort | uniq -c > W
The outputted files I call  M(u)  and  W(u) .
Compare this with the latest erlier article  w , for which  M(w)  onlie
slightlie differs from  M(u)  in size.  This operation I call  J :
	join -a3 W(u) W(w) | awk '{ v = $2 - $3; s += v * v } END { print sqrt(s)/NR }'
If a small number is printed, then there is a chance that  u  and  w  are
variants of the same article, and with "diff" compare  M(u)  and  M(w) .
If this also shows likeness, then likewize match  u  with articles in a queue
of suspicious articles.  If there is no match, enqueue  u  with  its  M  and
W , and a counter  T  which is at first in newsgroups the length of the
newsgroup-line, and drop the oldest.  If there is a match, shift the match
to the back of the queue, and bump its counter for each newsgroup in  u .
If nou  T  is too great, warn of a suspect spam.

Note that manie variables are left in this, what the limits are that match a
real spamth.  Furthermore, I am not sure that the likeness-meazure in the
"awk"-script is reallie the best one.

There is also the question of houmanie newsgroups are in the newsgroup line,
and whether thei are related.  If I see "comp.org.acm,comp.org.ieee,
ieee.general", I suspect that it is legitimat: "comp.org" is found in one
pair, "ieee" in another, and the pairs overlap and exhaust the list.  This is
suspect: "alt.fan.kello-kitty,rec.arts.sf.written.robert-jordan,comp.std.c,
rec.folk-dancing".  There is nothing in common but "rec.", but that is the
root of a wyyyde tree.  Care is needed, though, for "alt.hello-kitty" and
"alt.gothic" hav been legitimatlie paird, and also "alt.atheism" and
"alt.christnet.philosophy" (even if to no:one s comfort and pleazure).

It will be a long while ere I anew read this newsgroup
Re: Spam detection -- methods?
#3028
Author: Jonathan Adair
Date: Tue, 15 Nov 1994 00:22
40 lines
2750 bytes
In article <doumakesCyCIE3.64t@netcom.com> doumakes@netcom.com (Don Doumakes) writes:
>In article <38g5bc$mof@mercury.dur.ac.uk>, B R Davidson
><B.R.Davidson@durham.ac.uk> wrote:
>> PS: What are everyone's opinions on USENET advertising, is everyone
>> against it? Do people believe in direct retribution (the unix kernal!) or
>> just in stoking your kill files?
>>
>
>I definitely favor the direct retribution method, i.e., sending the
>complete spam to the user's and host sysadmin's mailbox.
>
>After all, the behavior isn't going to go away if we merely find a
>sophisticated way of ignoring it.  The way to teach net citizens what is
>expected, is to let them know what is expected.
>

Exactly.  When I was a student at Georgia Tech so many moons ago, in
order to post to Usenet, you had to sign a form that reminded you of
nettiquite and basically told you that you would loose access if you
abused your posting privledges.

If only all service providers, colleges to AOL, would do something
similar, I think that we would see a lot less of this garbage in the
next year or two.  Just flashing a screenful or two of text up before
they post is a waste though -- everyone ignores that stuff.  Make them
interactively answer questions about what they've just read and you'll
make them actually read it.


The alternative that I hate is more moderated newsgroups.  This appears
to be the only workable solution though, since many providers won't and
can't control their users.


--
  Jonathan E. Adair           http://marathon.csee.usf.edu/adair/adair.html
  adair@bigpine.csee.usf.edu (primary)       PGP Key (617E4D49) Fingerprint
  adair@gnu.ai.mit.edu (alternate)                  12 54 48 F3 EA B4 E7 9C
  ccastje@prism.gatech.edu (old)                    F9 85 CD F5 17 60 B3 76
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