PROBLEM: Sophisticated new attacks on Internet systems based on forged IP packets and hijacked login sessions. PLATFORMS: Primarily Unix systems connected to the Internet, although all systems that support session authentication based on IP addresses are potentially vulnerable. Systems protected by packet filtering firewalls may also be vulnerable. DAMAGE: Unauthorized privileged access to systems. SOLUTION: Enable router packet filtering on inbound Internet traffic, and protect systems against root compromise.
VULNERABILITY These attacks represent a significant new threat to Internet ASSESSMENT: systems. Without proactive measures in place, these attacks are very difficult to detect or defend against. CIAC strongly recommends sites implement the solutions described below as soon as is possible.
Services that are vulnerable to forged IP packets include:
It is possible for forged packets to penetrate firewalls based on filtering routers if the router is not configured to block incoming packets with source addresses in the local domain. It is important to note that this attack is possible even if no session packets can be routed back to the attacker. Note also that this attack is not based on the source routing option of the IP protocol.
The IP spoofing attacks are very similar to those described in section 2 of "Security Problems in the TCP/IP Protocol Suite" by Steve Bellovin. This paper was published in _Computer Communication Review_ vol. 19, no. 2 (April 1989), pages 32-48. It is also available via anonymous FTP from research.att.com in the file /dist/internet_security/ipext.ps.Z. Additional information is available in the paper "A Weakness in the 4.2BSD Unix TCP/IP Software," by Robert T. Morris. It is also available via anonymous FTP from research.att.com in the file /dist/internet_security/117.ps.Z.
Users within the Department of Energy (DOE) and Department of Defense (DOD) communities may obtain a new version of the Network Intrusion Detector (NID) with added features allowing the detection of IP spoofing attacks. Please contact Bob Palasek, NID Project Leader, at (510) 422-8527 or palasek@llnl.gov, for more information.
Additionally, two freely available software tools are known to allow this type of packet monitoring on Unix systems: tcpdump and netlog. The tcpdump package is available via anonymous FTP from ftp.ee.lbl.gov in the file /tcpdump.tar.Z (MD5 checksum 4D8975B18CAD40851F382DDFC9BD638F). When built and installed, the command
# tcpdump src net X.Y and dst net X.Y
will print all packets found that claim to have both a source and
destination IP address on the X.Y network. The netlog package, developed at
Texas A&M University, is available via anonymous FTP at coast.cs.purdue.edu
in the file /pub/tools/unix/TAMU/netlog-1.2.tar.gz (MD5 checksum
1DD62E7E96192456E8C75047C38E994B). When built and installed, it may be
invoked with the command
# tcplogger -b | extract -U -e 'srcnet=X.Y.0.0 && dstnet=X.Y.0.0 {print}'
to scan for packets with a source and destination address on the same
network.
If your current router hardware does not support packet filtering on inbound traffic, a second router may be installed between the existing router and the Internet connection. This second router may then be used to filter spoofed IP packets with an output filter.
Currently, the tap tool is only known to affect SunOS 4.1.x systems, although the system features that allow the attack are not unique to Sun systems.
The tap tool currently in use makes use of SunOS loadable module support to dynamically modify the operation of the running Unix kernel. CIAC recommends that sites not requiring loadable modules disable this feature on their SunOS 4.1.x systems.
To do so, edit the kernel configuration file found in the /sys/`arch -k`/conf directory and comment out the following line with a "#" character:
options VDDRV # loadable modules
Then build and install the new kernel:
# /etc/config CONFIG_NAME
# cd ../CONFIG_NAME
# make
# cp /vmunix /vmunix.orig
# cp vmunix /
# sync; sync; sync
Finally, reboot the system to activate the new kernel. Note that intruders have been known to regenerate their own kernels and reboot systems to install the functionality they desire. The authenticity of the running kernel should be verified after any unexplained system reboots.
Voice: +1 925-422-8193 (7 x 24)
FAX: +1 925-423-8002
STU-III: +1 925-423-2604
E-mail: ciac@ciac.org
World Wide Web: http://www.ciac.org/
Anonymous FTP: ftp.ciac.org