Neighbour Discovery Protocol (NDP) & Automatic tunnelling

With neighbours like these....

The Neighbor Discovery Protocol (NDP) was originally designed to do the equivalent of ARP in IPv4. That is, to resolve layer three addresses into layer two addresses. Later the protocol was extended to handle other functions, like duplicate address discovery, router redirects, router advertisements and neighbor reachability.

In its normal form, NDP has almost no built-in security. It does some basic sanity checks on itself, and it requires that the hop limit in packets be 255, but that's it. This means that it is very easy to spoof, at least for an on-link attacker. It is much harder (though not impossible) to get a valid NDP packet onto a link through a router.

A hand-crafted neighbor advertisement, for example, could map an incorrect layer two address to a layer three address, causing traffic for the layer three address to be delivered to the wrong host. A malicious router advertisement could invalidate a prefix, leaving hosts on the link with no addresses. A more subtle attack might spoof duplicate address responses, blocking autoconfiguration. Hours and hours of fun!

These types of issues are not entirely new to IPv6. ARP spoofing can do much the same things in IPv4. Sometimes these techniques can be useful – consider proxy ARP, for example, or its IPv6 equivalent, ND proxy.

So what to do?

The original NDP specification called for IPSec to be used to secure every NDP transaction. This was quickly seen to be way too hard, and in its stead a protocol called SEND was specified – SEcure Neighbor Discovery. SEND uses cryptographically generated addresses and signs NDP packets, making it impossible to spoof them. SEND cannot prevent an on-link node from misbehaving, but it can prevent one on-link node from pretending to be another.

In the next installment we'll look at two specific NDP problems – rogue router advertisements and ND flooding.

Now to another kind of insider problem – automatic tunnelling. When Microsoft Vista was released, it came with Teredo, 6-to-4 and ISATAP tunnel drivers ready to go. Given the right environment, these protocols automatically provide IPv6 connectivity by tunnelling out to the IPv6 Internet over the existing IPv4 infrastructure – look Mum, no hands!

Tunnelling is not new – given ssh, an outside host and an open port, you can tunnel pretty much anything to anywhere. But automatic tunnels are different. An automatic tunnel means that an innocent user can, simply by starting his or her machine, set up with a new path between the outside world and your network, bypassing your security arrangements. The user doesn't even know it's happened. There is a good chance that any local firewall configurations are not set up to take this unexpected IPv6 connectivity into account, either. All this sounds bad, but luckily it's not as bad as it sounds.

Automatic tunnels are not deliberately trying to bypass your security; that's just a side-effect of their over-enthusiastic attempts to connect the user to the IPv6 Internet. They are not malicious or tricky. They can generally be stopped with a simple filter – for example, 6-to-4 tunnels can be interrupted by blocking the use of Internet protocol number 41, IP-in-IP. And if you have a standard operating environment (SOE), you can disable these unwanted features.

©Copyright 2011 Karl Auer

About the author: Karl is technical manager at IPv6Now , a company specialising in helping organisations get into and get the most out of IPv6. This is the second in a four-part series of articles on IPv6 security issues.

More articles from this author

IPv6 - The devil you don't know

Tags: Automatic tunnelling, IP in IP, ipv4, microsoft vista, NDP (Neighbour Discovery Protocol), proxy ARP, rogue routers

Comments

1

stove tops

Sun 15/04/2012 - 07:31

I love it when individuals come together and share views.
Great blog, stick with it!

Post new comment

The content of this field is kept private and will not be shown publicly.
Users posting comments agree to the CSO comments policy.
Login or register to link comments to your user profile, or you may also post a comment without being logged in.
CSO Corporate Partners
  • FirEye
  • Clear Swift
  • Trend Micro
  • Sophos
  • NetIQ
rhs_login_lockGet exclusive access to CSO, invitation only events, reports & analysis.
CSO Directory

Splunk for Security

Use Splunk to search, alert and report in real time on any user, network, system or application activity, configuration changes, and other IT data from one place.

Security Awareness Tip
Software security company www.clearswift.com gives some advice this holiday season to make sure employees don’t end up on Santa’s naughty list!


At a fundamental business level, social media is a useful additional tool for communicating and collaborating with customers, colleagues and new business prospects. From an HR point of view, the social web is not only useful for recruitment but also as a knowledge network. At an employee level, social media is changing the way we work: Employees increasingly expect to be able to access personal technology and services in the workplace. As the lines between work and home life blur, staff are looking for greater flexibility in their roles; working from home is an increasing trend, but so too is ‘home-ing from work’, where staff expect to be able to perform personal tasks at work.

But social media brings risk and reward to business in equal measure. Information security is a key concern: Many organisations view social media channels as yet another route along which sensitive data can escape from the business, whether accidentally or maliciously. On top of this, senior management may be concerned about the amount of time employees spend on social networks.

This cultural shift raises new questions about trust in the workplace, the balance of power in employer / employee relationship and levels of control over people and content.


Organisations using content and web security technology can manage the way their staff use email and the internet without having to resort to a default position of mistrust. With a whopping third of ANZ employers completely blocking social media access at work, there’s a real danger of throwing the benefits of collaboration out with the risks.


It doesn’t have to be that way.

Trust breeds responsibility: People underestimate the amount of company time they spend on personal browsing. Allow staff to view their own web usage and foster more responsible behaviour without undermining trust.


Know limits: Set clear limits on personal surfing and communicate them to users. Alert them when they are approaching their limit. Help your people to play by the rules.


Share the load: Spread responsibility for usage reporting among managers and department heads so everyone gets to see how their usage impacts on the rest of the organisation. This also gives managers greater control and visibility into usage.


Need to know: Yes, you need reports and visibility. What you don’t need is employee data becoming common knowledge. Access control means reporting can be adjusted on a need-to-know basis.


Security ABC Guides

7 Ways to Protect Your Business Printers

Can a hacker burn down your business by remotely setting one of your printers on fire? Researchers at Columbia University have recently proposed such a scenario, although HP quickly denied that it's possible. However, even if your printers can't be used as remote firestarters, there are many risks involved in networking a printer.