News for hackers. Stuff that matters.
Re:Ask HN: How to deal with SYN FLOOD and extortion by asmithmd1 on Tuesday March 24, 2009 @07:15PM (#531052)
Black listing the source IP's is NOT going to help. The attacker can just spoof any IP, he doesn't care about actually connecting he just wants to tie-up your server

http://en.wikipedia.org/wiki/SYN_flood

Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Tuesday March 24, 2009 @07:28PM (#531072)
depends on how smart your attacker is. the source IPs must not respond or the attack won't work, so potentially you could block enough bogons. Also the first syn flood attacks came from a fixed source IP.

You have OpenBSD firewalls... have you checked out OpenBSD SynProxy? I haven't used it, but it was designed for just your case.

http://www.openbsd.org/faq/pf/filter.html#synproxy

Re:Ask HN: How to deal with SYN FLOOD and extortion by daveungerer on Tuesday March 24, 2009 @09:06PM (#531207)
Makes you wonder why ISPs are not discarding packets with spoofed addresses, instead of letting them escape into the greater internet. Is it too expensive to do? My knowledge is a bit rusty, but isn't this a common router function?
Re:Ask HN: How to deal with SYN FLOOD and extortion by tptacek on Tuesday March 24, 2009 @09:56PM (#531261)
In a likely worst case, it doesn't matter, because the traffic is coming from a botnet and could be entirely legitimate from an IPv4 perspective.
Re:Ask HN: How to deal with SYN FLOOD and extortion by daveungerer on Tuesday March 24, 2009 @10:15PM (#531279)
Can you please expand? Not sure I understand. Also read my post a bit lower down where I attempted to clarify my question. Would appreciate your perspective.
Re:Ask HN: How to deal with SYN FLOOD and extortion by knowtheory on Tuesday March 24, 2009 @11:33PM (#531365)
i.e. if you've got a botnet, you can still syn flood a host, and simply not respond with an ack.

In such an event all of the bots on the botnet have valid IPs and are representing themselves correctly, it's just that they're not behaving as they should with regard to the TCP handshake cycle.

So i gather that your suggestion would cut down on ip spoofing syn floods (but maybe not, i don't really know the full story :) ), but that wouldn't stop botnets.

Re:Ask HN: How to deal with SYN FLOOD and extortion by daveungerer on Wednesday March 25, 2009 @02:10AM (#531521)
Ah, I see. But if we ever manage to get everyone behaving properly at the IPv4 level (i.e no spoofing), it opens up a whole new realm of possibilities for managing attacks, especially DDOS floods: at the very least, ISPs would be able to notify each other of attacks originating within their networks, possibly even with some automation over a secure protocol, to automatically block packets at the source. But I could be missing something, seeing as it's 3 in the morning... and this needs to be modeled to see if it's actually viable.
Re:Ask HN: How to deal with SYN FLOOD and extortion by tptacek on Wednesday March 25, 2009 @02:27AM (#531541)
ISPs can already do that. I think you're underestimating how frequent these attacks are; hundreds per week. Nobody can staff against that.
Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Wednesday March 25, 2009 @04:55AM (#531629)
If an attacker can not change it's IP, it is easy for the person under attack to automate the identification of an attacker. In the case of a syn flood (that is, if the attacker is sending an amount of traffic that overloads your box or application rather than your network) it's simple enough to automatically block attacking IPs. The reason why this doesn't work now is that the attackers are usually spoofing the source.
Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Wednesday March 25, 2009 @04:59AM (#531630)
it's easy to track down an attacker if they do not spoof their IP, at least to track it to the network it came from. Its something the victim can do.

tracking down the network a spoofed packet came from can be quite a bit more difficult; If you have access to all your routers, you can track it to the peer or upstream the traffic is coming from, but it might be a peer of a peer of a peer (or a customer of a customer of an upstream of an upstream) requiring quite a lot of cooperation to track down.

Re:Ask HN: How to deal with SYN FLOOD and extortion by khafra on Wednesday March 25, 2009 @09:51AM (#531800)
Don't forget the first "D" in "DDoS." The Storm botnet, at its peak, had estimates between 1 and 10 million computers. Many, many more botnets have between 100,000 and 1,000,000. It would be far easier to get ISPs to cooperate with a backscatter trace on one or a few computers spoofing random IPs than to track and shut down hundreds of thousands of computers.
Re:Ask HN: How to deal with SYN FLOOD and extortion by tptacek on Wednesday March 25, 2009 @12:35PM (#532020)
That's why ISPs automate this process, with homebrew tools and by instrumenting their backbones (with things like 1:1000 netflow).
Re:Ask HN: How to deal with SYN FLOOD and extortion by ericwaller on Tuesday March 24, 2009 @09:19PM (#531219)
There's no way to know the address is spoofed without replying to it. It's the same idea as "spoofing" the return address on a letter.
Re:Ask HN: How to deal with SYN FLOOD and extortion by daveungerer on Tuesday March 24, 2009 @09:34PM (#531240)
Sorry, that's not what I meant, and I may have forgotten some terminology, so let me attempt to make myself clearer: The first edge router that a packet encounters, coming from the source, knows what the valid addresses are. The router simply needs to ask itself: "If I were to receive a return packet destined for the claimed return address, would I know what to do with it?"

If invalid ones were dropped, then you can at most spoof another address in the same network. But either way, it can be traced back to the correct edge router.

I'm looking for someone experienced in these matters to explain why this theory isn't / can't be put into practice.

Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Tuesday March 24, 2009 @09:44PM (#531246)
It's called BCP38 and decent ISPs and competent network admins do it. I do it on the port level for all my IPv4 addresses (that is, all packets leaving a xen vps of mine are dropped unless they come from the address I assigned them.) and I will do it for IPv6 when I build out the routing infrastructure for my new location.

It's really pretty easy to do... especially just edge level like you are talking about. The problem is that it costs me some time/money (even if it's only a little) to do it, and it mostly benefits other people. So some ISPs still don't do it.

http://www.faqs.org/rfcs/bcp/bcp38.html

but it's really easy. on my router I look at all outgoing packets, and I ask "Does this IP have a source address that is reasonable? (one of my IPs, or an IP of someone for whom I am carrying traffic.)" If my router sees a outgoing packet with a source address not associated with me, it's obviously spoofed, so it drops the packet. If everyone did this, spoofing would only be possible within your own network.

Every time an ISP does this, the world becomes a little better for all of us. But spoofing will still be a problem until all ISPs do this, and that probably won't happen for a while.

(you also do this to incoming packets, if it is an incoming packet coming in from the internet and it has a source of one of my IP addresses, something has obviously gone horribly wrong. drop the packet. but this only protects you from the most obvious spoofs. It is very important if you do IP based security.)

Re:Ask HN: How to deal with SYN FLOOD and extortion by daveungerer on Tuesday March 24, 2009 @10:10PM (#531272)
Thanks, exactly what I was looking for. Now, if only we could start a movement to only use BCP38 compliant ISPs. And then convince our ISPs to reject all packets from other ISPs that have been shown to be non-compliant, in case any survived.

EDIT: The way I put it may be a bit extreme, but the idea is there.

Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Wednesday March 25, 2009 @04:43AM (#531620)
I'm not sure it's too extreme. take it to NANOG. We'd need the support of big players, much more than one-and-a-half rack operations like me. (though bcp38 compliance is much more common amongst the big players. Heck, the provider I'm moving away from doesn't do it, something I didn't know before I signed a contract. For that matter, I only do it on outgoing IPv4. I don't do it on incoming packets or IPv6. This will be corrected in the network upgrade that is in progress now, but still.)

The big problem with your proposal is verification. It seems... difficult to verify that another network properly implemented BCP38 without actually putting a probe on that network.

Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Tuesday March 24, 2009 @09:59PM (#531264)
this guy is suggesting that the mailman check the return address when he picks up the mail. It's actually a good idea (and fairly common amongst competent ISPs.)

the wikipedia explains it well, I think:

http://en.wikipedia.org/wiki/Ingress_filtering

Re:Ask HN: How to deal with SYN FLOOD and extortion by chairface on Tuesday March 24, 2009 @09:45PM (#531247)
I am by no means an expert, but shouldn't it be possible for the source's ISP to tell whether the source address is spoofed?

edit: Looks like the OP managed a better explanation than I could since I loaded the page. Please disregard.

Re:Ask HN: How to deal with SYN FLOOD and extortion by axod on Tuesday March 24, 2009 @07:23PM (#531065)
As far as I'm aware (Correct me if I'm wrong anyone in the know), the process for any spoofed source address flood would be:

  * Determine which upstream provider it's coming from
  * Contact that provider, and ask them to investigate
  * They do the same thing
  * If a provider finds out the source is local, then they block it / contact the person(s) responsible etc
Of course it gets harder if it's a botnet or some other system that is distributed over a large number of sources.
Re:Ask HN: How to deal with SYN FLOOD and extortion by blhack on Tuesday March 24, 2009 @08:10PM (#531139)
I think that, if we're talking about the level of traffic that I think we're talking about here, it would almost HAVE to be a botnet.

either that, or somebody at one of the bandwidth providers got really <i>really</i> pissed off at you...if the later is the case the guy (or girl...they can be vindictive as hell) has probably already been fired since, you know, they sortof monitor these sorts of things.

Re:Ask HN: How to deal with SYN FLOOD and extortion by xal on Tuesday March 24, 2009 @09:19PM (#531220)
Yea its a botnet and the traffic is spoofed. we never get the same IP twice. Unfortunately it's so much traffic that the firewalls just collapse. Even if you blackhole all traffic they still jump into the blender as soon as they acquire the main ip.
Re:Ask HN: How to deal with SYN FLOOD and extortion by tptacek on Tuesday March 24, 2009 @09:55PM (#531259)
If it's all spoofed, you (meaning AT&T or Verizon) can stop it with a SYN proxy.
Re:Ask HN: How to deal with SYN FLOOD and extortion by tptacek on Tuesday March 24, 2009 @09:54PM (#531258)
That's not strictly true. On the very high end, in products sold pretty much only to ISPs, you can get source address filtering for hundreds of thousands of sources for established connections, and you can get SYN proxying to have the head-end complete the 3WH before your downstream connection ever sees those SYNs.
Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Wednesday March 25, 2009 @04:51AM (#531628)
From my experience at ISPs

they tend to be very cost conscious, and far more likely to use a NIX box to do this sort of thing. ISPs are generally competing in a comparatively low-margin market. Usually it's the large corporations with less NIX knowledge (and someone else's money to spend) where I see the really high end firewall/proxy/load balancer gear.

Re:Ask HN: How to deal with SYN FLOOD and extortion by tptacek on Wednesday March 25, 2009 @12:32PM (#532008)
Your experience conflicts sharply with mine; maybe you're thinking about a different tier of ISP.
Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Wednesday March 25, 2009 @04:47AM (#531623)
openbsd has synproxy

http://www.openbsd.org/faq/pf/filter.html#synproxy

and urpf

http://www.openbsd.org/faq/pf/filter.html#urpf

which sounds a lot like the features you describe.

Re:Ask HN: How to deal with SYN FLOOD and extortion by tptacek on Wednesday March 25, 2009 @12:33PM (#532014)
Yes, now do that at several million packets per second.
Re:Ask HN: How to deal with SYN FLOOD and extortion by lsc on Wednesday March 25, 2009 @02:43PM (#532222)
ah. sorry. I was under the impression that this was a sub 100Mbps attack.