Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sniffing network traffic for signs of viruses/spyware

How can I connect a system to a network and sniff for virus/spyware related traffic? I'd like to plug in a network cable, fire up an appropriate tool sand have it scan the data for any signs of problems. I don't expect this to find everything, and this is not to prevent initial infection but to help determine if there is anything trying to actively infect other system/causing network problems.

Running a regular network sniffer and manually looking through the results is no good unless the traffic is really obvious,but I havn't been able to find any tool to scan a network data stream automatically.

like image 555
DrStalker Avatar asked Sep 24 '08 00:09

DrStalker


2 Answers

I highly recommend running Snort on a machine somewhere near the core of your network, and span (mirror) one (or more) ports from somewhere along your core network path to the machine in question.

Snort has the ability to scan network traffic it sees, and automatically notify you via various methods if it sees something suspicious. This could even be taken further, if desired, to automatically disconnect devices, et cetera, if it finds something.

like image 167
Dominic Eidson Avatar answered Sep 30 '22 03:09

Dominic Eidson


  1. Use snort: An open source network intrusion prevention and detection system.

  2. Wireshark, formerly ethereal is a great tool, but will not notify you or scan for viruses. Wireshark is a free packet sniffer and protocol analyzer.

  3. Use the netstat -b command to see which processes have which ports open.

  4. Use CPorts to see a list of ports and the associated programs, and have the ability to close those ports.

  5. Download a free anti-virus program such as free AVG.

  6. Setup your firewall more tightly.

  7. Setup a gateway computer to let all network traffic go through. Take the above recommendataions to the gateway computer instead. You will be checking your whole network instead of just your one computer.

like image 35
Brian R. Bondy Avatar answered Sep 30 '22 02:09

Brian R. Bondy