next up previous contents
Next: The Future of IP Up: TCP/IP and Security Previous: TCP/IP and Security

     
Defending Against Attack

If a network is attached to the Internet with no security provisions, hosts on that network will be exposed to all of these types of attack. This is where firewalling gateways come into play. By placing a firewall between the Internet and your internal networks, you provide a barrier, preventing internal hosts from being directly attacked. Instead, an attacker must first compromise the security of the firewall before they can gain internal access. This allows system administrators to concentrate their efforts on securing a single host rather than a whole network or collection of networks.

For this to succeed, a fundamental requirement of a firewall gateway is that it strictly controls which packets are gatewayed. The simplest types of firewalls are packet filtering gateways : these match packets (in particular, their addresses and ports) against tables which specify which packets can be gatewayed and which should be filtered (i.e. discarded). Packet filtering can be quite effective, but setting up good packet filters takes intimate knowledge of the various protocols and great care. A more sophisticated approach is to use application-specific proxy servers to gateway individual services in a controlled fashion.

Firewalls can help secure your networks against the following types of attacks:

ICMP attacks

The ICMP  protocol can be used to determine information about hosts and routes, to make services appear inaccessible, to change routes, and so on. Firewalls usually either disallow ICMP completely or restrict its use considerably.

Denial-of-service attacks

These can be handled using the following techniques:

Password-cracking attacks

These can be handled by not allowing user accounts on the firewall, preventing incoming telnet requests from being relayed, and prohibiting network logins on the firewall itself. If any of these is not possible, the use of a one-time password system   such as S/Key can achieve the same ends.

Exploiting security holes

Again, by using robust and secure servers on the firewall, this risk can largely be eliminated. In particular, no robust firewall would use the sendmail program to receive mail (using it to send mail is much less of a security risk if done with care).

Address-spoofing, tunnelling and routing attacks

  These can be avoided in several ways:

Session hijacking

This is difficult to prevent, but can be done in some instances through the use encrypted connections.

No firewall can provide complete protection. Every network is vulnerable to physical attack. Another security problem is in the form of Trojan horse-type attacks, such as viruses . If users upload software from the Internet that contains viruses, the firewall may not be able to prevent this (the CEQURUX Technologies firewall does support virus scanning of e-mail attachments, however, using the Sophos PLC anti-virus library obtainable from Sophos PLC at www.sophos.com). Another example is the use of Java  on the World Wide Web; despite the declamations of its proponents, Java represents a potential security problem. If you allow users on the inside of your network to access the WWW using Java-aware browsers, then you are exposing yourself to this risk.

In particular, it is worth being aware that text-based clients may be vulnerable to terminal control attacks. Some terminal types (such as ANSI) support character sequences which can reassign key bindings. A server could potentially serve data with such a control string embedded (consider, for example, a string which reassigns the ENTER key to send a command to reformat the hard disk). To avoid such attacks, you should use terminal emulators which do not allow such key redefinitions (e.g. simple VT100 emulators). This is considered the main potential danger of allowing users access to text-based services such as whois.

To maximise the effectiveness of your firewall, you should follow these guidelines:    


next up previous contents
Next: The Future of IP Up: TCP/IP and Security Previous: TCP/IP and Security
Copyright © 2004, CEQURUX Technologies