[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Honeypots?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2004-04-01 18:40 [EET],  Matt wrote:

> On Thu, 2004-03-11 at 17:16, David Masover wrote:
>
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Matt wrote:
>>| Hi,
>>| Can anyone recommend any honeypot SPAM software for use with qmail?
>>What I'd like to do is be able to have a few select e-mail addresses
>>that are checked by this honeypot program, and if mail comes in block
>>the sender or ip it is from.
>>|
>>
>>Can you do it on a per-user basis?  Any mail filter should support a
>>blacklist, I just use maildrop, and install it in .qmail
>
>
> I suppose it can be done per user.. but what I'd like to do is have an
IP dumped to my RBLDNS server so I can blacklist instantly.


1) Inject Honeytokens ( http://www.securityfocus.com/infocus/1713 ) in
your website in a way that no visitor could use them but harvesting
robots can add them to their list. A nice format would be someting like
gotcha-RemoteIPAddress_Date@xxxxxxxxxxxxxx
(something like the http://www.securityfocus.com./infocus/1747 example
in PHP)

2) Create a gotcha user and create a .qmail-default file including a
parser ( maybe a Perl script ) that will extract the remote IP, check if
it should be blacklisted ( you don't want to blacklist your secondary
MXs - do you? ) and add it to your blacklist. I personaly would apply
the remoteip.patch ( from http://will.harris.ch/ ) to qmail as this
makes it very easy to extract the remote IP (but maybe use a different
string instead of X-Remote-IP so that senders can't spoof it - say
X-Remote-IP-SomeString).

3) You can now both add IPs to your blacklist and satisfy your curiosity
on what remote IP harvested them in the first place (by examining the
To: header)


Suggested reading: http://www.geocities.com/spamresources/tools-honeypot.htm


PS: I really would like a version of the remoteip.patch that:
a) makes sure that prior X-Remote-IP headers are removed
b) doesn't insert an X-Remote-IP header if RELAYCLIENT is set



- --
Best regards,
Thanos Massias

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows 2000)

iD8DBQFAbEZUOs3ahFN/QpkRAmigAKCw4c363Oc6V0SDYIG5InVfiwxAGACg3D50
EwlxhRH4mLMu40wxnSgDMT4=
=LFK4
-----END PGP SIGNATURE-----