LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-27-2003, 08:44 AM   #1
porous
Member
 
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Rep: Reputation: 15
how to detect sniffers


we have a switched lan in our college lab ; how can i know some one is using sniffers like ettercap , on the network ,

what kind of tools can detect the presence of sniffers in switched
environment...

i hope there is a way can someone tell me how ?


thx in advance ;;;;
 
Old 10-27-2003, 09:14 AM   #2
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Rep: Reputation: 30
if its switched then someones going to be sending out ARP storms to make your interface think its talking to something that its not, so perhaps get some sort of traffic analysis tool (ie. tcpdump) and see where all the faked ARP responses are comming from and go from there ...
 
Old 10-27-2003, 11:13 AM   #3
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
there are IDS tools out there that will do what your looking to do i believe

http://www.cs.tut.fi/~rammer/aide.html

Last edited by sopiaz57; 10-27-2003 at 11:14 AM.
 
Old 10-27-2003, 02:40 PM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
AIDE is used for checking integrity withint the filesystem - not at the network level.
 
Old 10-28-2003, 05:30 AM   #5
porous
Member
 
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Original Poster
Rep: Reputation: 15
Quote:
AIDE is used for checking integrity withint the filesystem - not at the network level.
so will it do any good to me .

there should be a way to know whether ettercap is running on the lan.

Last edited by porous; 10-28-2003 at 06:39 AM.
 
Old 01-02-2004, 10:02 AM   #6
valve
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
hehe there is

Download Ettercap
configure and install,
then run.
#./configure
#make
#make install
#make complete_install

start ettercap, when ettercap loads (press "h" for help) you will see that by pressing "c" ettercap will look for any arp cache poiseners (switch sniffers) on your
network.

-Job Done~!
 
Old 01-02-2004, 08:45 PM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
By definition, sniffers are passive (they "sniff" the traffic as it passes by). There's no way to detect that. Now as has been mentioned, on a switched network traffic is not echo'd to every port normally, so in order to see any "good stuff" with a sniffer, you some how have to trick the switch into echo'ing traffic to all ports (or at least the port your sniffer is on). This is usually accomplished by ARP poisoning/flooding, which is pretty obvious if you're looking for it. Basically an ARP flooding attack will fill up the switches memory with too many ARP table entries, so it will revert to "dump" hub mode, i.e. all traffic echo'd to all ports.
 
Old 01-03-2004, 03:11 AM   #8
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
A well configured IDS would probably give you the information you like.
One that seems good is snort, www.snort.org
I haven't setup snort my self yet so I can't help in that.
 
Old 01-03-2004, 11:58 AM   #9
neuroX
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 10

Rep: Reputation: 0
ids?

i don't really see how an IDS could help you to see if your traffic is being intercepted. is there some way that IDS can detect ARP poisoning? switched nets are more protected from sniffing than others, but it IS possible to sniff if you really want to.

Quote:
start ettercap, when ettercap loads (press "h" for help) you will see that by pressing "c" ettercap will look for any arp cache poiseners (switch sniffers) on your
network.
if you do this, and your still paranoid that you are being watched, use some encryption. PGP your email and SSH your network connections. most recreational sniffers are probably just filtering for hotmail passwords anyway.
 
Old 01-04-2004, 09:13 AM   #10
cjcuk
Member
 
Registered: Dec 2003
Distribution: Openwall, ~LFS
Posts: 128

Rep: Reputation: 15
Since it has not already been mentioned: you can also look for network interfaces that are running in promiscuous mode. Promiscuous mode interfaces are listening to everything on the network. They are fairly easy to spot, a search on Google will quite happily turn up the necessary tools.

EDIT: Also, before you have fun with Ettercap. Realise two things (that at least previously applied, if they do not now...): that Ettercap has to run as root and has previously had remotely exploitable vulnerabilities, and that Ettercap is one of those pieces of software that ``trigger-happy'' network admins will quite happily ban you for using on their network. As another point, if Ettercap still requires root privileges (it will for ARP manipulation, RAW sockets, etc) do you have root in the college lab?

Last edited by cjcuk; 01-04-2004 at 09:16 AM.
 
Old 01-05-2004, 03:38 AM   #11
valve
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
Good points made by all,
Yes you do have to have root, or at least a properly configured sudo to use ettercap.
Lets remember this is a switched network, and so far, ARP manipulation/cache poisening is the only way that i am aware of sniffing accross a switched network.

However, the question was how to detect ettercap running on his lan.

Attacking/Sniffing a switched lan.
Yes you can overrun the cache on your switch which would send it into broadcast mode, althuogh i find this clunky and slow and it tends to ring alarm bells. As any basic TCP monitor such as say TCPDump would light up like a christmas tree.

A more subtle way is a MiM attack using arp poisening on the "bob and alice" machines. That way is subtle and does not get broadcast from the switch, in fact.It leaves the switch alone so unless the IDS was running on all the clients locally i dont see how it could pick it up. That would allow a mallicious user to monitor all connections, even manafacture packets or manipulate existing ones. (again providing they had root privilages)

Ettercap, and surely parts of the dsniff package, although i couldnt say for certain, are very good at dealing with ARP security in general. And in my very humble opinion i think that learning to use the tool that people will be using against you, to protect yourself, is valuble learning.

- Its also good fun
 
Old 01-05-2004, 09:15 AM   #12
cjcuk
Member
 
Registered: Dec 2003
Distribution: Openwall, ~LFS
Posts: 128

Rep: Reputation: 15
Quote:
Originally posted by valve
Lets remember this is a switched network, and so far, ARP manipulation/cache poisening is the only way that i am aware of sniffing accross a switched network.
That will teach me to read the thread with more focus =(.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ethereal and Kismet wireless sniffers difference powah Linux - Wireless Networking 1 10-08-2005 07:19 AM
IP Tables , sniffers covertops Linux - Newbie 6 03-21-2005 08:40 AM
how to detect modem? anupverma Linux - Newbie 3 04-20-2004 01:36 AM
Http Sniffers leninkoduru Linux - Security 2 01-31-2004 11:31 PM
How to stop sniffers ?? jad Linux - Security 8 08-14-2002 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration