Defend your network against idle scanning

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

COMMENT

If your organisation's intrusion-detection system (IDS) identifies a scan of your network, and you just block that IP address, you likely haven't addressed the real threat to your network. Black hats employ several stealth scanning techniques, and one of those threats is the idle scan.

Idle scanning is a procedure that involves scanning TCP ports. An attacker will probe a public host with SYN|ACK (synchronisation acknowledgement) and receive an RST (reset the connection) response that has the current IPID (IP identification) number. The attacker will then send a SYN (synchronisation) request packet to the port of his or her target with a source IP of the public host.

If the port is open, the target will send a SYN|ACK packet to the public host. The public host will then send an RST packet to the target and increment the IPID.

If the port is closed, the target will send an RST packet to the public host indicating that the port is closed. The attacker will then send another SYN|ACK packet to the public host and look at the IPID number to determine if sending an RST packet to the target incremented the IPID.

After several hundred of these bogus session requests, your IDS will realise that something is scanning the network, and you'll eventually block the public host. But even though you didn't identify the attacker, the intruder still managed to map your network.

This pre-emptive probe becomes an even greater problem if the public host used to scan your internal network is one of the trusted machines that sits in front of your firewall. However, you can protect your network from this type of scanning technique.

The best defence against idle scanning is to follow these simple best practices:

  • Don't put a public host in front of your firewall that uses a predictable IPID sequence. Solaris and Linux are two operating systems that aren't vulnerable to this type of behaviour. Unix/Linux is a much more stable and secure platform for your Web site. Learn Unix, and replace the Windows box that sits outside your firewall.
  • Use a firewall that can maintain state-on connections, determine whether someone initiated a phony session request, and drop those packets without a target host response. If your firewall doesn't maintain state-on connections, your network really just has a "speed bump" — not a firewall.
  • Use an ingress filter on your network to ensure that no packets enter your outside boundary with a source address of your internal network.
  • Use an egress filter on your network to ensure that no packets leave your network with a source address that isn't a part of your internal network.

If you don't use ingress and egress filtering, you're an easier target for black hats and wannabes on your own network to attack the rest of the Internet.

Final thoughts
New scanning techniques will continue to evolve and bombard your network, probing for holes and weak spots in your security. It's up to you to continue to use best practices to defend your organisation's systems.

Mike Mullins has served as an assistant network administrator and a network security administrator for the US Secret Service and the Defense Information Systems Agency. He is currently the director of operations for the Southern Theater Network Operations and Security Centre.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

8 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

10 hours ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

10 hours ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

12 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

14 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

15 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

15 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

16 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

17 hours ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

18 hours ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

24 hours ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

1 day ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

1 day ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

1 day ago by via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

1 day ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 day ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 day ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
ramwellian

Your comments would seem pretty naive and immature. Your 'solution' appears to be, "gee, let's all just give in to the hackers and give them...

1 day ago by ramwellian on Cloud computing security: no more oxymoron?