“IPv6 Security ” 6NET, Zagreb, May ‘03 Eric Marin EMEA Senior Consulting Engineer [email protected] © 2002, 2001, Cisco Systems, Inc. All rights reserved.

1

« But, we have IPsec for securing IPv6 !» Heard many times !

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

2

Topics

• Are some IPv4 security issues resolved with IPv6 ? • Filtering IPv6 • Fragmentation • Conclusion

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

3

IPv6 Security

• All implementations required to support authentication and encryption headers (AH and ESP of IPsec) • Authentication separate from encryption for use in situations where encryption is prohibited or prohibitively expensive • Key distribution protocols are under development (independent of IP v4/v6) • Support for manual key configuration required

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

4

IPv6 Security Exposures… • Autoconfiguration – stateless configuration and discovery, contradicting requirements with security

• ICMPv6 protected by IPsec – security bootstrap problem

• DAD – duplicate address detection mechanism

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

5

Stateless autoconfiguration

1. RS 1. RS:

2. RA 2. RA:

ICMP Type = 133

ICMP Type = 134

Src = :: Dst = All-Routers multicast Address query= please send RA

ICMP w/o IPsec AHÙ gives exactly same level of 2. RA security as ARP for IPv4 (none) Bootstrap security problem!

Potential solution: Src = Router Link-local Address 802.1X on L2. Dst = All-nodes multicast address Data= options, prefix, lifetime, autoconfig flag

Router solicitation are sent by booting nodes to request RAs for configuring the interfaces. Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

6

Neighbor Discovery - Neighbor Solicitation

A

B

Bootstrap security problem!

ICMP type = 135 Src = A Dst = Solicited-node multicast of B Data = link-layer address of A Query = what is your link address?

A and B can now exchange packets on this link Eric Marin

Security mechanisms built into discovery protocol Ù None.

Potential solution: 802.1X on L2. ICMP type = 136 Src = B Dst = A Data = link-layer address of B

© 2003, Cisco Systems, Inc. All rights reserved.

7

DAD (Duplicate Address Detection) From RFC 2462: A

B

ICMP type = 135 Src = 0 (::) Dst = Solicited-node multicast of A Data = link-layer address of A Query = what is your link address?

« If a duplicate @ is discovered … the address cannot be assigned to the interface…» Ù What if: Use MAC@ of the node you want to DoS and fabricate its IPv6 @

• Duplicate Address Detection (DAD) uses neighbor solicitation to verify the existence of an address to be configured. Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

8

IPv6 Routing Header like Loose Source Routing ? 3ffe:0b00:0:0::1

3ffe:0b00:0:1::1

3ffe:0b00:0:2::1

A B

C

3ffe:0b00:0:4::1

3ffe:0b00:0:5::1

3ffe:0b00:0:3::1

3ffe:0b00:0:6::1

3ffe:0b00:0:6::1

D

• Routing type 0: Routers list = 3ffe:0b00:0:1::1, 3ffe:0b00:0:3::1 Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

9

IPv6 Routing Header Next header = 43 Routing header

IPv6 basic header Routing header Routing header

Next Header

Ext Hdr Length

Routing Type

Segments Left

Routing Hdr Data

• Routing header is:

An extension header. Processed by the listed intermediate routers. Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

10

IPv6 Routing Header (cont.) IPv6 header fields

A->B Packet flowing through the network

Routing header fields

Src. Add.

Dest. Add.

Seg left

Routing header RH1 IPv6 ÙRH2 Source routingadd. in IPv4 add.

A

B

2

Coff (like ’no D ip

« Cannot be turned

B->C

A

C

1

source-route’ in BIPv4) cause D it is REQUIRED for mobile IPv6 !»

C->D

A

D

0

BSolution:CUse extended ACL (if mobile IPv6 not required)

draft-savola-ipv6-rh-ha-security-03.txt Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

11

ICMPv6 Next header = 58 ICMPv6 packet

IPv6 basic header ICMPv6 packet ICMPv6 packet

ICMPv6 Type

ICMPv6 Code

Checksum

ICMPv6 Data

• ICMPv6 is similar to IPv4: Provides diagnostic and error messages Is used for path MTU discovery Runs on top of IPv6! ARP-like security ! Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

12

Renumbering

Router Advertisment (RA) relay sole on IPsec AH security…

RA RA packet definitions: ICMP Type = 134 Src = Router Link-local Address Dst = All-nodes multicast address Data= 2 prefixes:

Current prefix (to be deprecated) with short lifetime New prefix (to be used) with normal lifetime

• Renumbering is done by modifying the RA to announce the old prefix with a short lifetime and the new prefix. Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

13

Topics

• IPv6 short introduction • Are some IPv4 security issues resolved with IPv6 ? • Filtering IPv6 • Fragmentation • Conclusion

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

14

Cisco IOS IPv6 ACL • IPv6 Access Control Lists 12.2(2)T Simple ACL, ONLY matching src and dest 12.2(8)T Extended ACL support

• IPv6 and IPv4 ACL functionality Implicit deny any any as final rule in each ACL. A reference to an empty ACL will permit any any. ACLs are NEVER applied to self-originated traffic.

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

15

IPv6 Header Options (RFC 2460) IPv6 Header Next Header = TCP

TCP Header + Data

IPv6 Header Next Header = Routing

Routing Header Next Header = TCP

IPv6 Header Next Header = Routing

Routing Header Next Header = Fragment

TCP Header + Data

Fragment Header Next Header = TCP

Fragment of TCP Header + Data

• Processed only by node identified in IPv6 Destination Address field => much lower overhead than IPv4 options exception: Hop-by-Hop Options header

• Eliminated IPv4’s 40-octet limit on options in IPv6, limit is total packet size, or Path MTU in some cases Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

16

Filtering Extension Headers • IPv6 headers and optional extensions need to be scanned to access the upper layer protocols (UPL) • May require searching through several extensions headers - Routing - AH (no special handling) - ESP (no special handling) - Fragmentation - Payload compression (no special handling)

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

17

IPv6 Extended Access Control Lists • Upper Layers : ICMP (next header 58), TCP (6), UDP (17), SCTP (132) – Could filter on any next header value (0-255) • ICMPv6 code and type • syn, ack, fin, psh, urg, rst and established (ack && rst) • L4 port numbers • Traffic class (only 6 bits/8) = DSCP • Flow Label (0-0xFFFFF) • IPv6 header options (Fragments, Routing, ...)

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

18

IPv6 ACL Implicit Rules

• Implicit permit for enable neighbor discovery The following implicit rules exist at the end of each IPv6 ACL to allow ICMPv6 neighbour discovery: permit icmp any any nd-na permit icmp any any nd-ns deny ipv6 any any

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

19

Issues with ACL filtering

• Filtering 2827 becomes difficult • ACL more difficult to apply and deploy in a consistent manner • Multiple addresses per node • Renumbering : it means that for a certain lifetime 2 addresses are coexisting on the node. Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

20

IPv6 ACL Reflexive : Stateful filtering • Reflect A reflexive ACL is created dynamically, when traffic matches a permit entry containing the reflect keyword. The reflexive ACL mirrors the permit entry and times out (by default after 3 mins), unless further traffic matches the entry (or a FIN is detected for TCP traffic). Reflexive ACLs can be applied to TCP, UDP, SCTP and ICMPv6.

• Evaluate Apply the packet against a reflexive ACL. Multiple evaluate statements are allowed per ACL. The implicit deny any any rule does not apply at the end of a reflexive ACL; matching continues after the evaluate in this case. Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

21

IPv6 Reflexive ACL Router1# interface ethernet-0 ipv6 address 2000::45a/64 ipv6 traffic-filter In in ipv6 traffic-filter Out out

2000::45a/64 Ethernet-0

Router1 Ethernet-1

2001::45a/64

interface ethernet-1 ipv6 address 2001::45a/64 ipv6 access-list In permit tcp host 2000::1 eq www host 2001::2 time-range tim

reflect myp

permit icmp any any router-solicitation ipv6 access-list Out

evaluate myp

Allow www traffic via a Reflexive ACL, based on time of day Eric Marin

evaluate another time-range tim periodic daily 16:00 to 21:00

© 2003, Cisco Systems, Inc. All rights reserved.

22

Topics

• IPv6 short introduction • Are some IPv4 security issues resolved with IPv6 ? • Filtering IPv6 • Fragmentation • Conclusion

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

23

Fragment Header - IPv6 Next header = 44 Fragment header

IPv6 basic header Fragment header Fragment header

Next Header

Reserved Fragment Offset Identification Fragment data

• In IPv6 fragmentation is done ONLY by the end system • Reassembly done by end system like in IPv4 Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

24

Fragmentation handling in IPv4 • In IPv4, you can use the « fragment » keyword for an extended ACL • The only packets that will match are those that have fragment offset != 0, that is, non-first fragments. • For IPv4 we know the protocol and fragments flags and

offset from the IP header, so we can easily calculate if enough of the ULP is within the first fragment (likely) • First fragments and non-fragmented packets go through the normal "extract L4 info" process • Is used against DoS mainly

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

25

Fragmentation issues in IPv6

• For IPv6, we must traverse the Next Headers before reaching the fragment header to extract the flags and offset. • Then, we may need to traverse further NHs before reaching the ULP and then check if enough of the ULP header is within the first fragment. • This makes matching against the first fragment nondeterministic : tcp/udp/icmp might not be there.

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

26

« fragment » in IPv6 ACLs • For IPv6, the « fragment » keyword matches non-initial fragments (same as IPv4) AND the first fragment if the protocol cannot be determined. Note : IOS also supports a new keyword "undeterminedtransport" which matches any ipv6 packet where the layer4 cannot be determined

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

27

Topics

• Are some IPv4 security issues resolved with IPv6 ? • Filtering IPv6 • Fragmentation • Conclusion

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

28

IP Mobility - security still work in progress Home Agent

Destination Node

Mobility and security Not Possible in IPv4elements of mobile IPv6 still work in Mobile Node progress… (MIPv6 draft : 3ffe:0b00:c18::1 2001:2:a010::5 Return Routability Test).

• Mobility means:

Mobile devices are fully supported while moving Built-in on IPv6 Any node can use it Efficient routing means performance for end-users Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

29

Transition mechanisms security http://www.6net.org/publications/ D6.2.2: Operational procedures for secured management with transition mechanisms

draft-savola-v6ops-6to4-security-02.txt Processing of 6to4 packets : o Relay Router 1. incoming from native, tunneled to 6to4 2. tunneled from 6to4, going to nativ o Router 1. tunneled from relay, source is native 2. tunneled to relay, destination is native 3. tunneled directly, destination is 6to4

«…. in particular, checks that always match 2002:V4ADDR and V4ADDR must be implemented. » • Anti-spoofing ACLs • Use of IPsec for protecting manually configured tunnels Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

30

Conclusion

• IPsec is not the answer to every IPv6 security issues • A new protocol brings new security issues with it • Mobile IPv6 brings also many security challenges with it . • Work in progress

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

31

By the Way … IPv6 Hacking Tools • Sniffers/packet capture

• Scanners IPv6 Security Scanner

Snort

Halfscan6

TCPdump

Nmap

Sun Solaris snoop

Strobe

COLD Ethereal Analyzer

Netcat

• DoS Tools 6tunneldos

Windump

4to6ddos

WinPcap NetPeek Sniffer Pro

Imps6-tools

• Packet forgers SendIP

• Worms

Packit

Slapper

Eric Marin

Spak6

© 2003, Cisco Systems, Inc. All rights reserved.

32

By the Way (cont) … IPv6 Security Tools

• IPTrap Listens to ports and fakes services Works with IPChains/Tables to Firewall clients

• AESOP TCP Proxy

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

33

By the Way (cont) … • « Recently one of the Honeynet Project's Solaris Honeynets was compromised. What made this attack unique was after breaking into the system, the attackers enabled IPv6 tunneling on the system, with communications being forwarded to another country. The attack and communications were captured using Snort, however the data could not be decoded due to the IPv6 tunneling. Also, once tunneled, this could potentialy disable/bypass the capabilities of some IDS systems. » Lance Spitzner http://www.securityfocus.com/archive/119/303782/2002-12-15/2002-12-21/0 Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

34

Questions?

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

35

Thank you!

“IPv6 Security ” Eric Marin EMEA Senior Consulting Engineer

Eric Marin

© 2003, Cisco Systems, Inc. All rights reserved.

36

IPv6 Security

Data = link-layer address of B. A and B can now exchange ..... Lance Spitzner http://www.securityfocus.com/archive/119/303782/2002-12-15/2002-12-21/0 ...

501KB Sizes 2 Downloads 205 Views

Recommend Documents

ipv6.PDF
IPv6 Operations and Deployment Scenarios over IEEE 802.16 Network โดย Myung-Ki ... งเดิมเป นโครงข ายไอพีในจังหวดภั ูเก็ต. Page 2 of 2. ipv6.PDF. ipv6.PDF.

IPv6.pdf
identificados por DNS (Domain Name Server) que traducen dominios a ... subred en IPv6 siempre es de 64bits. Page 3 of 5. IPv6.pdf. IPv6.pdf. Open. Extract.

Hacking IPv6 Networks
Identifies the Internet Protocol version number (“6” for IPv6). ▫ It should match ... No additional “Quality of Service” (QoS) feature in IPv6, sorry. ▫ “Traffic ..... ping6 –s 1800 2004::1 ..... BSD-derived and Linux implementations

Broken IPv6 clients
The canonical behaviour for dual-stack applications is ... Host may prefer 6to4 address over IPv4 address. Not using ... using invisible element on web page.

IPv6 Whitelist Operations
Receive a list of resolvers and/or prefixes. 2. Attempt to ... Convert to ASN(s), complete list of IPv4 and IPv6 prefixes. 4. Verify mutual ... impact analysis of proposed new whitelist entries ... Implementation (software and processes) may be a.

Multicast based fast handoff in Hierarchical Mobile IPv6 ...
Handoff-Aware Wireless Access Internet Infrastructure. (HAWAII) [15]. ... home agent by sending another BU that specifies the binding between its home address ...

Understanding Current IPv6 Performance: A ...
performance study based on both large scale TCP and. ICMP traffic ... characterize the performance of IPv6 Internet by data ... Then we perform large scale data ..... AEARU Workshop on Web Technology and Computer. Science, Oct 2003. 14.

IPV6 x IPV4.pdf
Orientadores: Prof. M. Sc. André Calazans. Barreira e M. Sc. Gustavo Fleury. Soares. Page 3 of 122. IPV6 x IPV4.pdf. IPV6 x IPV4.pdf. Open. Extract. Open with.

Are you ready for IPv6? - GitHub
Page 5 .... IPv6 Support in Boost.Asio. Resolver: ○ Obtain endpoints corresponding to host and service names. ○ Usually uses DNS ...

IPv6 Route Redstribution Considerations.pdf
IPv6 Route Redstribution Considerations.pdf. IPv6 Route Redstribution Considerations.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying IPv6 Route ...

IPv6 Transition for VzW
Each device will have Two IP Addresses. – VoIP (v6 Always On). – Internet/ASP (v6 or v4) ... competence. • Training is critical. – Academic. – Web-based classes.

Download IPv6 Address Planning: Designing an ...
The Only IP Book You Will Ever Need!: Unraveling the mysteries of IPv4 & IPv6 · Ansible for DevOps: Server and configuration management for humans.

Performance Studies of TCP/IPv6 Header Compression ...
Performance Studies of TCP/IPv6 Header Compression ... technologies. ... destination addresses, error checking, and other information for routing and delivery ...

Handling Seamless Mobility in IPv6 based Sensor ...
network connectivity, it is the IP-based Internet access that has ... network connectivity intact especially while the sensor nodes move, definition ..... Infinite Fast.

Macro/micro-mobility fast handover in hierarchical mobile IPv6
Abstract. Mobile Internet Protocol version 6 (MIPv6) has been proposed to solve the problem of mobility in the new era of Internet by handling routing of IPv6 packets to mobile nodes that have moved away from their home network. Users will move frequ

Design and Implementation of an IPv6-enabled ...
In anomaly intrusion detection, profiles of normal ... from Rules Database in sequence and present them ... patterns in IPv4 IDS (such as snort's rule database),.

pdf-1862\handbook-of-ipv4-to-ipv6-transition-methodologies-for ...
Try one of the apps below to open or edit this item. pdf-1862\handbook-of-ipv4-to-ipv6-transition-methodologies-for-institutional-and-corporate-networks.pdf.