+NET.3.1 Routers and Switches
---+NET.3.1.G1. Distributed Denial of Service (DDoS)
---+NET.3.1.G2. Manipulation
---+NET.3.1.G3. Incorrect Configuration of a Router or Switch
---+NET.3.1.G4. Improper Planning and Design
---+NET.3.1.G5. Incompatible Active Network Components
---+NET.3.1.G6. MAC Flooding
---+NET.3.1.G7. Spanning Tree Attacks
---+NET.3.1.G8. GARP Attacks
---+NET.3.1.A1 Secure Basic Configuration of a Router or Switch (B)
---+NET.3.1.A4 Protection of Administration Interfaces (B)
---+NET.3.1.A5 Protection Against Fragmentation Attacks (B)
---+NET.3.1.A6 Emergency Access to Routers and Switches (B)
---+NET.3.1.A7 Logging on Routers and Switches (B)
---+NET.3.1.A8 Regular Backups (B)
---+NET.3.1.A9 Operational Documentation (B)
---+NET.3.1.A10 Creating a Security Policy(S)
---+NET.3.1.A11 Procurement of a Router or Switch (S)
---+NET.3.1.A12 Drawing Up a Configuration Checklist for Routers and Switches (S)
---+NET.3.1.A13 Administration Using a Separate Management Network (S)
---+NET.3.1.A14 Protection Against Misuse of ICMP Messages (S)
---+NET.3.1.A15 Bogon and Spoofing Filtering (S)
---+NET.3.1.A16 Protection Against “IPv6 Routing Header Type-0” attacks (S)
---+NET.3.1.A17 Protection Against DoS and DDoS Attacks (S)
---+NET.3.1.A18 Configuration of Access Control Lists (S)
---+NET.3.1.A19 Protection of Switch Ports (S)
---+NET.3.1.A20 Security Aspects of Routing Protocols (S)
---+NET.3.1.A21 Identity and Authorisation Management in Network Infrastructure (S)
---+NET.3.1.A22 Contingency Planning for Routers and Switches (S)
---+NET.3.1.A23 Audits and Penetration Tests (S)
---+NET.3.1.A24 Use of Network Access Controls (H)
---+NET.3.1.A25 Advanced Integrity Protection for Configuration Files (H)
---+NET.3.1.A26 High Availability (H)
---+NET.3.1.A27 Bandwidth Management for Critical Applications and Services (H)
---+NET.3.1.A28 Use of Certified Products (H)

NET.3.1 Routers and Switches

Introduction

Routers and switches form the backbone of today’s data networks. The failure of one or more of these devices can bring an entire IT infrastructure to a halt, which is why they require special protection.

Routers work on OSI layer 3 (the network layer) and transport data packets based on the destination IP addresses in IP headers. Routers are able to connect networks with different topologies. They are used to segment local networks or connect local networks via wide area networks. A router identifies a suitable connection between the source system or network and the destination system or network. In most cases, this is performed by forwarding data packets to the next router.

The first switches worked on OSI layer 2, but switches with different functions are now available. Manufacturers usually give their devices designations that indicate the OSI layer they support. This has resulted in the terms "layer 2", "layer 3", and "layer 4 switch", whereby layer 3 and layer 4 switches are actually already routers in functional terms. While the functions of switches and routers were originally different, they are now frequently combined in one device.

Objective

This module describes how routers and switches can be used securely.

Scoping and Modelling

Module NET.3.1 Routers and Switches must be applied to each router and switch used in the information domain under consideration.

A wide selection of different routers and switches from different manufacturers are available on the market. This module does not describe any specific requirements for certain products. It is designed to be as manufacturer-agnostic as possible.

Due to the amalgamation of the functions of routers and switches, the majority of its requirements are applicable to both routers and switches. In most instances, this module does not differentiate between these device types.

Today, nearly all the operating systems of servers and clients also offer a routing feature. This module does not mention any requirements for enabled routing features in server and client operating systems.

In addition, aspects of infrastructural security such as suitable installation, power supplies, or cabling are not covered in this module. Security requirements on these topics can be found in the respective modules of the INF Infrastructure layer.

This module does not describe any requirements for securing virtual routers and switches. The firewall features that routers and switches may offer are not addressed either. Module NET.3.2 Firewall must be implemented in this regard. Some aspects of network design and management are also important for using routers and switches and will be mentioned within the framework of the corresponding requirements. Additional information for establishing, designing, and managing a network can be found in the modules NET.1.1 Network Architecture and Design and NET.1.2 Network Management.

In principle, routers and switches should also be considered when implementing the modules ORP.4 Identity and Access Management, OPS.1.1.3 Patch and Change Management, CON.3 Backup Concept, and OPS.1.1.2 Proper IT Administration.

Useful Resources

The BSI has published further information on the security of routers and switches in the BSI Standards for Internet Security (ISi series).

The Institute of Electrical and Electronics Engineers (IEEE) has published the standards IEEE 802.1Q, “IEEE Standard for Local and Metropolitan Area Networks – Bridges and Bridged Networks”, and IEEE 802.1AE, “IEEE Standard for Local and Metropolitan Area Networks: Media Access Control (MAC) Security”.

RFC 6165, “Extensions to IS-IS for Layer-2 Systems”, and RFC 7348, “Virtual Extensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer-2 Networks over Layer-3 Networks”, provide further information on routers and switches.

1. Forbhreathnú

Teideal Caighdeán
NET.3.1.A1 Secure Basic Configuration of a Router or Switch (B)

Prior to using a router or switch, it MUST be configured securely. All configuration changes SHOULD be documented in a transparent manner. The integrity of the configuration files MUST be protected appropriately. Before access passwords are stored, they MUST be secured using an up-to-date cryptographic method (see CON.1 Crypto Concept).

Routers and switches MUST be configured in such a way that only absolutely necessary services, protocols, and functional extensions are used. Services, protocols, and functional extensions that are not required MUST be disabled or uninstalled completely. Unused interfaces on routers and switches MUST also be disabled. If possible, unused network ports MUST be disabled or at least assigned to an unassigned VLAN set up for this purpose.

If functional extensions are used, the security policies of the organisation in question MUST continue to be met. The use of such extensions SHOULD also be justified and documented.

Information on internal configurations and operating statuses MUST be hidden from third parties. Unnecessary information services MUST be disabled.

NET.3.1.A4 Protection of Administration Interfaces (B)

All administration and management access to routers and switches MUST be restricted to individual source IP addresses or address ranges. It MUST be ensured that it is not possible to access the administration interfaces directly from untrusted networks.

Suitably encrypted protocols SHOULD be used to administer and monitor routers and switches. If unencrypted protocols are nevertheless used, a separate administration network (out-of-band management) MUST be used for administration. The management interfaces and administration connections MUST be protected by means of a separate firewall. Appropriate time limits MUST be specified for the interfaces (e.g. for timeouts).

All services not required for management interfaces MUST be disabled. If a network component has a dedicated hardware interface, any unauthorised access to this interface MUST be prevented appropriately.

NET.3.1.A5 Protection Against Fragmentation Attacks (B)

Protection mechanisms MUST be enabled on routers and layer 3 switches in order to fend off IPv4 and IPv6 fragmentation attacks.

NET.3.1.A6 Emergency Access to Routers and Switches (B)

Administrators MUST always be capable of directly accessing routers and switches to ensure continuous administration even if an entire network fails.

NET.3.1.A7 Logging on Routers and Switches (B)

A router or switch MUST be configured in such a way that it logs the following events, among others:

  • configuration changes (automatically whenever possible)
  • reboots
  • system errors
  • Status changes for each interface, system, and network segment
  • Login errors
NET.3.1.A8 Regular Backups (B)

The configuration files of routers and switches MUST be backed up at regular intervals. The backup copies MUST be created in such a way that they can be accessed in an emergency.

NET.3.1.A9 Operational Documentation (B)

The most important operational tasks of a router or switch MUST be documented appropriately. All configuration changes and security-relevant tasks SHOULD be documented. The documentation SHOULD be protected against unauthorised access.

NET.3.1.A10 Creating a Security Policy(S)

A specific security policy MUST be drawn up for routers and switches based on the general security policy of the organisation in question. This security policy SHOULD transparently describe the requirements and specifications for the secure operation of routers and switches. The policy SHOULD be known to all administrators and be integral to their work. If the policy is changed or deviations from the agreed requirements are allowed, this SHOULD be coordinated with the CISO and documented. It SHOULD be checked regularly whether the policy is still being properly implemented. The results SHOULD be documented appropriately.

NET.3.1.A11 Procurement of a Router or Switch (S)

Prior to procuring routers and switches, a requirements list SHOULD be drawn up based on the relevant security policy that can be used to evaluate the products available on the market. It SHOULD be ensured that the desired security level of the organisation in question can be achieved with the devices to be procured. The procurement process SHOULD thus be based on the requirements of the aforementioned security policy.

NET.3.1.A12 Drawing Up a Configuration Checklist for Routers and Switches (S)

A configuration checklist SHOULD be created that can be used to check the most important security-relevant settings on routers and switches. Since secure configurations strongly depend on the purpose at hand, the different requirements of these devices SHOULD be taken into consideration within the framework of the configuration checklist.

NET.3.1.A13 Administration Using a Separate Management Network (S)

Routers and switches SHOULD only be administered via a separate management network (out-of-band management). Any administration interface available via the actual data network at hand (in-band) SHOULD be disabled. The available security mechanisms of the management protocols used for authentication, integrity assurance, and encryption SHOULD be activated. All insecure management protocols SHOULD be disabled.

NET.3.1.A14 Protection Against Misuse of ICMP Messages (S)

The protocols ICMP and ICMPv6 SHOULD be filtered restrictively.

NET.3.1.A15 Bogon and Spoofing Filtering (S)

Attackers SHOULD be prevented from entering routers and switches with the help of forged, reserved, or unassigned IP addresses.

NET.3.1.A16 Protection Against “IPv6 Routing Header Type-0” attacks (S)

When using IPv6, mechanisms SHOULD be used to detect and prevent attacks on the type-0 routing header.

NET.3.1.A17 Protection Against DoS and DDoS Attacks (S)

Mechanisms SHOULD be used that detect and fend off high-volume attacks and TCP state exhaustion attacks.

NET.3.1.A18 Configuration of Access Control Lists (S)

Access to routers and switches SHOULD be defined with the help of access control lists (ACLs). Based on the security policy of the organisation in question, the ACL SHOULD define which IT systems or networks (and corresponding methods) may be used to access a router or switch. If there are no specific rules, a restrictive whitelist approach SHOULD be preferred as a matter of principle.

NET.3.1.A19 Protection of Switch Ports (S)

The ports of a switch SHOULD be protected against unauthorised access.

NET.3.1.A20 Security Aspects of Routing Protocols (S)

Routers SHOULD authenticate themselves when exchanging routing information or transmitting updates for routing tables. Only routing protocols that support this SHOULD be used.

Dynamic routing protocols SHOULD only be used in secure networks. They MUST NOT be used in demilitarised zones (DMZs). In DMZs, static routes SHOULD be entered instead.

NET.3.1.A21 Identity and Authorisation Management in Network Infrastructure (S)

Routers and switches SHOULD be connected to a central identity and authorisation management system (see ORP.4 Identity and Access Management).

NET.3.1.A22 Contingency Planning for Routers and Switches (S)

There SHOULD be planning and preparation for the errors in routers or switches that can be diagnosed in an emergency. There SHOULD also be planning and preparation regarding how to remedy the errors identified. Appropriate actions SHOULD be defined for typical failure scenarios and updated at regular intervals.

The contingency planning for routers and switches SHOULD be coordinated with overarching fault and contingency planning. The contingency planning SHOULD be based on the general contingency planning concept at hand (see DER.4 Business Continuity Management). It SHOULD be ensured that contingency planning documentation and the instructions it contains are available in paper form. The procedure described in the contingency planning concept SHOULD be tested regularly.

NET.3.1.A23 Audits and Penetration Tests (S)

Routers and switches SHOULD be checked for known security issues at regular intervals. Audits SHOULD also be performed regularly. This SHOULD include checking whether the actual situation corresponds to the basic configuration defined as secure. The results SHOULD be clearly documented and compared against the target situation. Deviations SHOULD be investigated.

NET.3.1.A24 Use of Network Access Controls (H)

Port-based access control according to IEEE 802.1x SHOULD be implemented on the basis of EAP-TLS. Implementations according to the standards IEEE 802.1x-2001 and IEEE 802.1x-2004 SHOULD NOT be performed.

NET.3.1.A25 Advanced Integrity Protection for Configuration Files (H)

If a router or switch crashes, it SHOULD be ensured that no legacy or incorrect configurations (including ACLs) are used when recovering and restarting the device.

NET.3.1.A26 High Availability (H)

The implementation of a high-availability solution SHOULD NOT impair the operation of routers and switches or their security features, or reduce the level of security. Routers and switches SHOULD be designed redundantly. In so doing, it SHOULD be ensured that the security policy of the organisation in question is observed.

NET.3.1.A27 Bandwidth Management for Critical Applications and Services (H)

Routers and switches SHOULD include and use features that can detect applications and prioritise bandwidths.

NET.3.1.A28 Use of Certified Products (H)

Routers and switches with a Common Criteria security evaluation of at least EAL4 SHOULD be used.

1.1 Tagairtí

1.2 Ceanglais aitheanta

1.3 Rialacháin ghaolmhara

2. Ceanglais aitheanta

Ceanglais
Foinse Ceanglas

3. Rialacháin ghaolmhara

Rialacháin
Foinse Rialáil

Saincheisteanna nasctha