Wednesday, December 5, 2007

IPtables using DNAT

Because of the scope of our network, and the randomness of SQL's choice of IP addresses to infect, we have used DNAT to manipulate the traffic on the fly, and have it sent to our other vulnerable machine.

The infected machine is on IP address 192.168.1.5 and the non infected vulnerable machine is on 12.9.5.6. The Linux machine sits between the two switched networks and passes traffic.

The iptables rule that was used to manipulate the packets was as follows:

iptables -t nat -A PREROUTING -p udp -d 0/0 --dport 1434 -j DNAT --to-destination 12.9.5.6

The problem here is that the Linux machine is forced to change the IP header of approximately 26,000 packets per second, and the computer becomes completely unusable (mouse and keyboard are non responsive). As we develop a more advanced snort detection rule, and a script that parses the snort log, we have to consider that it is possible the DNAT may cause snort to crash or perform so slow it is not useful.

Tuesday, December 4, 2007

Gnuplot VLC and Snort

This week we added streaming video with the worm infection into the mix in our test network. The video is streaming from a Windows 2003 Machine to a client Windows XP machine using VLC (Video Lan Client). Surprisingly when using the IPCOP Linux router, the video is not completely dropped when all 100mbps connections are used, but noticable artifacts are in the video as a result of traffic on the network. All TCP based services are completely disrupted, including SSH and HTTP.

Additionally we have a rule configured for snort to detect traffic from a SQL Slammer infection. This rule will generate a log event that will be parsed by a script that will take down the host that is causing the disruption and cause normal activity to continue on the network.

Tuesday, November 27, 2007

VLC and IPCop

Today we setup VLC media player on Carl and Marty. VLC is capable of streaming video, so Marty is now configured as a streaming video server, and Carl is a client. We will put them on either side of the 2600 to see what happens to the stream in specific, and the overall network traffic in general, when the network gets a machine infected with SQL Slammer.

We have also installed IPCop on Cosmo. It is a Linux distrobution that has an IDS ( Snort ) and easy to configure IP tables built into it. There is a web interface to control both the IDS, and IP tables. The goal for this machine is to use it to monitor all traffic on the network, at the end with the infected computer, and when the IDS detects the worm, run a script that will throttle the bandwidth of the infected computer using IP tables.

With these two parts of the project combined, we will be able to see exactly when the infection takes place, and if/when the script successfully runs. When the infection happens, we predict that the streaming video will come to a halt, and when the script kicks in, the video should come back.

Wednesday, November 21, 2007

Infection w/ Cisco Router

We have inserted a Cisco 2600 series router into the network topography. Our goal was to see how many infected machines it would take to bring down a router. We have properly configured the router, and the infected comptuer to pass traffic through the router.

With one infected machine, we were able to max out the CPU usage of the 2600. When logged into the router through the console port, and while the worm was passing traffic, we pressed the up arrow to see the previous router command, and it took approxiamtely 30 seconds for the router to respond.

Thursday, November 15, 2007

Moving Forward

Now that we have successfully infected a machine with the worm, we need to plan out where to go next. Our ideas include:
  1. Send the worm through a Cisco router, to see if it can be taken down.
  2. Try and get the worm to infect another computer on its own.
  3. Stream video through a router, and monitor what happens at the time of infection. ( This will allow us to see the real effects of network congestion due to the worm. )
  4. Implement an IDS to detect the worm.
  5. Filter traffic using IP tables, so that the worm doesn't effect the network, even though there is an infected machine.
  6. Use TCP Dump and GNU Plot to gather useful data, and make it easier to interpret.

Tuesday, November 13, 2007

Successful Infection

We have performed a successful infection of SQL Slammer on our test bed. We previously were trying to infect SQL Server 2000 unpatched. After installing SQL Server 2000 Service Pack 1, our current method of infection worked. The results were impressive, SQL Slammer was able to nearly saturate a 100mbps connection, and took CPU Usage to near 100%.

Tuesday, October 23, 2007

Defense Strategy Ideas

  1. Block Ports
  2. Patch
  3. Snort
  4. Use the exploit as defense mechanism
  5. IP tables