When an website or system is being attacked, is there ever a scenario where it should automatically take action against the attackers rather than just passively handling the attack? If so, what responses are appropriate and legal? Are there any examples (good or bad) of this happening in the wild?
|
Passive scanning such as determining geo location, IP address, network routes is probably a good idea (to give you an understanding of where attacks are originating from). Update: Actually for larger institutions this is kind of essential in determining whether the attack is a large scale organised attack or simply a lone hacker testing out the defences. Either way it will probably be distributed. In either case it will provide useful information for further locking down the firewalls. Depending on the legal framework of the country you live in, retaliating to an attack with a active network attack of your own (such as DOS or virus) would constitute an illegal act. |
|||||||||||||
|
|
Fighting back is what the cool kids do! >:) Regarding law, I grabbed this snippet from http://lawmeme.law.yale.edu/static/pastevents/digitalcops/papers/karnow_newcops.pdf (2005)
On a serious note there are so many bad hack-back scenarios to imagine that you have to wonder when you would be ready to pull the trigger; for example, what if you hack-back to stop a botnet attack only to later learn that some of the systems you counter-attacked were critical hospital system that were inadvertently part of the botnet herd. Regarding examples, Richard Bejtlich blogged in 2005:
|
|||
|
|
The #1 Question for me is: what do you hope to achieve in "fighting back"? If I get stung by a mosquito, I'll kill it, but if it gets away I won't chase it across the field. If I get attacked by a swarm of bees defending their hive, I won't swat them - I'll protect myself by running away. The dangers of fighting back are well presented in the other answers, but I'll repeat them:
My personal choice of reactions:
Hack-back also leads to a new type of attack: Kallisti. "Joe Jobs" spoof the source of attack to trick defenders into attacking the spoofed source. The "Kallisti" attack would try to cause a hack-back loop between 2 or more sites, either to create noise in which to hide the "real" attack or just to cause chaos. (Hail Eris) |
||||
|
|
|
A related response could be to set-up a honey trap to attract attackers and make them think they succeeded. Let them waste time and effort while you trace them, maybe. Although that sounds like a bad script from a Hollywood film. |
|||||||||||
|
|
Is it ever appropriate to become a criminal and put yourself, your organization and your entire livelihood in jeopardy of legal action? This is not a case of a masked gunman putting you in a fight or flight situation. Yes, you could concoct a scenario where an internet borne attacker is threatening human life through an attack on systems critical to hospitals or some such thing. However, even in those situations, there is no precedent that I am aware of that justifies the same reactive force be applied as in a physical altercation. Likely the systems that you would be attacking are innocent service providers or end users that have been hijacked for malicious purposes. It would be no different than setting fire to an automobile that was stolen and used in a bank robbery. Immediately plug the holes that an attacker is exploiting. Immediately report the incident to the proper authorities. Do not let your emotions take over and convince you to stoop to the same level as your aggressors. |
|||
|
|
|
An interesting case in the Netherlands is appropriate here. The Dutch Police (KLPD) brought down some servers that run a big botnet. They deemed it legal to use the botnet now to send a message to the owners of the machines to inform them that they are infected. There is some discussion about whether it was actually legal, but I think most people agree it's an ethical thing to do. This case is quite different from what you as a company would face, but if this is already questioned as being not legal when done by the police, one should wonder whether any action towards the attacker can be taken at all. |
|||
|
|
|
Another point to take into account, is how the badguys can subvert your counter-attack. For example, they can send malicious packets with spoofed IP addresses, knowing you will detect this, and in retaliation attack the source of the attack - or actually, the innocent server that is actually registered at the spoofed IP. Thus, they are using you to attack their victim, the spoofed 3rd party. Don't forget, the attacked company will now believe - correctly - that your servers are attacking theirs. Never mind that you believed that you had just cause to do so - that is irrelevant, point of fact that you are actively attacking them. And they will have reason to press charges, or whatever. An interesting scenario would be if the 3rd party victim is also configured to counter-attack. Then, of course, you will be receiving actual attacks from their server - this time, for real, but of course that was YOUR fault, wasnt it? Both sides would probably DoS each other before real harm was done... unless they both choose to escalate and scale out... THEY COULD BRING DOWN THE WHOLE INTERTUBES! |
|||
|
|
|
The answer is pretty certainly no, don't do it. I can imagine a scenario where a worm is attacking you and because you know that the worm spreads via vulnerability X, you know that all computers that are attacking you have vulnerability X. It may be possible for you to use vulnerability X to access the infected computers and warn their users, or even shut them down. While you might think this is a morally acceptable thing to do, it's very dangerous ground. What if something you do goes wrong, e.g. leading to data loss that wasn't caused by the worm, or you anger the original worm creator who then wants to retaliate against you in another way. It's likely to be illegal in most jurisdictions as well. |
|||
|
|
|
I have an excellent example stated by Ivan Orton (Senior Deputy Prosecuting Attorney who specializes on IT crimes) during his speech for Stanford online course's students (Sorry I can not upload the video to youtube, because of the policy of website):
After having this question he speaks a lot about different similar scenarios in non electronic word (it is too long to put it here, but if someone would like, I would) and in the end he stated: You may be tempted to use active defence and you may have some liability associated with that and keep in mind but right now there is no clear law regarding this issue and a lot depends on the jury (This is not exactly his words - it is shortening of his 7 minutes talk regarding this issue) I hope this will make it clear, how unclear the situation with active defence is. |
|||
|
|
|
When you are the victim of an attack, your situation implies that you currently have:
By "fighting back", you loose the third, and most probably the second. You will not necessarily get rid of the problem, though. Fighting back is illegal in most countries; it will prevent you from claiming assistance from police forces and, perhaps more importantly, it will void insurance (your insurance company will be quick at pointing that out). Last but not least, your retaliation may harm bystanders and plunge you into bigger trouble than what you started with. So, no, not worth it. Use passive protection, and call the police. |
|||
|
|
