fanf: (Default)
[personal profile] fanf
I've just written a proposal for implementing rate limits on outgoing email via ppswitch (our central email relay). The aim is to detect and stop floods of viruses or spam from a compromised machine on the University's network.

The document includes a description of the simple mathematical model I'm planning to use to compute a client's sending rate. It seems to satisfy my requirements but if anyone has any better ideas then I'm all ears.

http://www.cus.cam.ac.uk/~fanf2/hermes/doc/antiforgery/ratelimit.html

Date: 2005-05-07 14:11 (UTC)
From: [identity profile] hserus.livejournal.com
I'd suggest a few simple things, such as

1. 30 second delays before the smtp banner on your outbound mail relays

2. Look for signs of http headers or other proxy type headers being passed to your mail relays before the email is injected. That kills http proxies dead

3. Rate limits arent going to work against the sort of horizontal scaling viruses are becoming good at (infect more machines and send less spam per machine, as far as possible mimicking regular user mail traffic volumes)

4. There's a symantec "antispam router" which was originally called turntide aka spamsquelcher, before symantec bought it. I know the developers, and it is pretty decent for outbound filtering (note: it was originally intended to filter out incoming mail from trojans etc but most trojans route out through smarthosts these days). It is basically like an IDS for spam, and claims to sniff traffic at wire speed, and when it finds a flow of spam incoming through it [in this case outgoing spam across your network] it QoS's that spam flow down to something ridiculous like a few bits per minute, so it times out. You could hack a variant of this together if you hacked around with openbsd's pf I expect, but well, the product is ready and its reasonably good.

-suresh

Date: 2005-05-07 15:05 (UTC)
From: [identity profile] hserus.livejournal.com
the muas are going to feel like its slightly slower to send email - though the delay you set can be dynamic, and based on other factors too (wire the delay interval to your rate limiter, for example)

slow rates - you need something like Vern Schryver's DCC to aggregate bulkiness of outbound email from across your network

Implement smtp auth and force use of smtp auth. That way you dont need to dig through several logs to find who owns an IP, and you dont need to track his infected laptop across several dhcp sessions on your campus wireless. Even if viruses hijack the guy's smtp auth creds from his outlook settings - which they will - you can identify the guy and cut off his auth privileges pronto when you detect spam. Oh, and note that you'd better have some way to get the guy VLAN'd into a walled garden that only has access to windows update / other security patch sites, till such time as he cleans his virus up and contacts campus IS staff.

how turntide defines spam - last I saw of it (BEFORE symantec bought it, and when it was in very early beta .. say mid 2003) it was pretty flexible. Existing signatures provided by turntide's developers [at least one of who is a respected antispammer, and a friend over the last six or seven years], plus stuff you can plug in yourself. Now? I guess it'll operate the same way norton antivirus works, distributing signatures .. though if the norton people know what they're doing they'll give you a lot more flexiblity than the average norton antivirus server edition user gets :)

Turntide

Date: 2005-05-09 12:53 (UTC)
From: (Anonymous)
Turntide uses bayes to determine what is/isn't spam. Well, they use a weighted decision, of which 80% of the weighting is towards bayes.

Date: 2005-05-07 15:08 (UTC)
From: [identity profile] hserus.livejournal.com
oh another thing (ot to this discussion, sort of)

MAAWG (http://www.maawg.org) in Düsseldorf June 21-24, at the Hilton on Georg Glock Strasse. Lots of people will be around, including some large broadband providers who have done just this kind of thing across large networks.

Then, ITU thematic meet on cybersecurity and spam at geneva (just like the thematic meeting on spam last year - I spoke in that meeting and found a lot of it well worth my time to attend). Spamhaus will be there, I'll be there, a few other people we both know as well .. [Wietse Venema was there last year, as was John Levine]

I'd strongly recommend your making a quick trip across the channel (maybe bring Philip Hazel over too) for one or the other meeting. Both if you can swing it ..

Date: 2005-05-10 01:00 (UTC)
From: [identity profile] hserus.livejournal.com
> my wedding

well, congratulations!

December 2025

S M T W T F S
 123456
78910111213
14151617181920
21222324 252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 2025-12-30 17:56
Powered by Dreamwidth Studios