LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-25-2011, 10:43 PM   #1
el_tedward
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Rep: Reputation: 0
/proc/net/packet says my server is acting as network sniffer, according to NSA doc


So, the NSA puts out some handy documentation on locking down a RHEL server (running centos 5.6 x64 myself) here, http://www.nsa.gov/ia/_files/os/redh...guide-i731.pdf. Under "Ensure System is Not Acting as a Network Sniffer" on page 63, it says that if any numbers below the first line in /proc/net/packet, that it is acting as a network sniffer. I get the following output:


Code:
sk       RefCnt Type Proto  Iface R Rmem   User   Inode
ffff8100b3757400 3      3    0003   3     1 0      0      8402
Edit: The NSA doc does not really go into detail about what /proc/net/packet is for, so if anyone wants to go into detail about that, I'd be a very happy panda

Unless I've been pwned, I don't know exactly what could be causing this. Besides samba, nmap (compiled from source, not from yum), screen, and rtorrent, there's nothing I've installed beyond the fresh install I did a few days ago. I was not running nmap when looking at /proc/net/packet.

Last edited by el_tedward; 04-25-2011 at 10:47 PM.
 
Old 04-25-2011, 10:59 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

To avoid a lot of typing and confusion, see here: http://www.linuxquestions.org/questi...on-apps-54751/

Josh
 
1 members found this post helpful.
Old 04-25-2011, 11:17 PM   #3
el_tedward
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Original Poster
Rep: Reputation: 0
So, based on that post, what I'm thinking is that nmap could have put my interface into promiscuous mode, and that would be why I'm getting the stuff in /proc/net/packet that I'm getting.
 
Old 04-26-2011, 06:23 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Yup Have you learned any kernel programming skills at all? Knowing the system and how it works helps in these types of situations

Edit - This post isn't meant to be negative in anyway, I just didn't know how else to say that

Last edited by corp769; 04-26-2011 at 06:25 PM.
 
Old 04-26-2011, 06:58 PM   #5
el_tedward
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks! I don't have much programming experience, beyond some scripting. Interested in picking up more lower level programming skills at some point, just not what I'm doing right now.

And dun worry, your comment doesn't come across as negative
 
Old 04-26-2011, 08:11 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
No problem man.

Cheers,

Josh
 
Old 04-27-2011, 09:41 AM   #7
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
I must have missed something, where is it saying nmap puts your nic into promiscuous mode?
The only other reference I see to an app, other then the obvious tcpdump, is to a dhcp client?
 
1 members found this post helpful.
Old 04-27-2011, 09:49 AM   #8
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by nomb View Post
I must have missed something, where is it saying nmap puts your nic into promiscuous mode?
The only other reference I see to an app, other then the obvious tcpdump, is to a dhcp client?
I didn't read anything but I'm pretty sure it will put it in prom mode. Anything that sniffs will activate prom mode, in my experience. You can test by running nmap and checking the interface while it is running.
 
Old 04-27-2011, 10:09 AM   #9
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
nmap is an active scanner though not a passive one.

Even it's "passive" scan still is sending out syn packets.
 
Old 09-06-2012, 02:51 PM   #10
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Rep: Reputation: Disabled
DHCP will cause those to show up.

So i know this thread is old but....

If your using dhcp it will show up in /proc/net/packet
I was following the same rhel guide and was wondering how i could have a packet sniffer or tcpdump running on a fresh install. I'm fairly certain it's just DHCP causing that line to show up.

Here is a link that helped me out: http://blog.cloudpassage.com/2012/09...iffer-running/
 
1 members found this post helpful.
Old 09-06-2012, 06:05 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You could have just run
Code:
awk '/^f/ {print "lsof -Pwln|grep "$NF}' /proc/net/packet|/bin/sh|awk '{print $1}'
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
network-scripts Does Not Match ifconfig or /proc/net alienslideshow Linux - Networking 2 12-18-2010 09:44 AM
/proc/net/dev packet counters question shibeaux Linux - Networking 6 08-25-2010 02:23 PM
Writing a packet sniffer program for a network card gauthamk Programming 1 09-18-2007 03:19 AM
Suggestions for packet sniffer w/ packet viewing? TruckStuff Linux - Networking 5 05-31-2002 09:50 AM

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

All times are GMT -5. The time now is 06:29 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