LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-09-2011, 04:41 AM   #16
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781

I have read through the list of processes several times. I don't see anything that looks out of the ordinary: no strange processes, nothing appears to be running as root that I wouldn't expect, etc. You do seem to have a lot of terminal prompts open and have stuff going on in the tty windows you get from the ctrl-Fx windows, but as long as this is your usage it isn't indicative of a compromise. If you are only running one desktop, with one application open it may be another story. Again, it is interesting that multiple window managers have running processes and open files at the same time. The activity is indicative of what I would consider a "power" user on a linux system (e.g. you are using mutt and fetchmail), going beyond normal desktop-like internet browsing, but that is about it.

Given the situation with your router, somebody could have gotten in on the LAN side. Depending on the complexity of your wireless setup, this might not have been too difficult. This would have allowed them to see your machines, and piggyback off your internet service and could explain the bandwidth usage.

One other thing that comes to mind is could it have been a download of a large number of application updates and a kernel update?

Was the activity a one time thing or is it continuing currently?
 
1 members found this post helpful.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-09-2011, 10:43 AM   #17
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Noway2 View Post
I have read through the list of processes several times. I don't see anything that looks out of the ordinary: no strange processes, nothing appears to be running as root that I wouldn't expect, etc. You do seem to have a lot of terminal prompts open and have stuff going on in the tty windows you get from the ctrl-Fx windows, but as long as this is your usage it isn't indicative of a compromise. If you are only running one desktop, with one application open it may be another story. Again, it is interesting that multiple window managers have running processes and open files at the same time. The activity is indicative of what I would consider a "power" user on a linux system (e.g. you are using mutt and fetchmail), going beyond normal desktop-like internet browsing, but that is about it.

Given the situation with your router, somebody could have gotten in on the LAN side. Depending on the complexity of your wireless setup, this might not have been too difficult. This would have allowed them to see your machines, and piggyback off your internet service and could explain the bandwidth usage.

One other thing that comes to mind is could it have been a download of a large number of application updates and a kernel update?

Was the activity a one time thing or is it continuing currently?
Answering you in lifo.... The activity is continuing currently.
I see high usage when doing nothing!
Usage is high right now. I have only this machine running.
I'm not a power using (in my opinion). I do keep several tabs open in a terminal emulator (gnome-terminal):
mutt, shell, mc, slrn, iftop etc. But hold everything! You say:
Quote:
Originally Posted by Noway2 View Post
You do seem to have a lot of terminal prompts open and have stuff going on in the tty windows you get from the ctrl-Fx windows, but as long as this is your usage it isn't indicative of a compromise. If you are only running one desktop, with one application open it may be another story.
Wow! Your statement above seems to indicate something extraordinary. I'm not consciously running any tty windows with ctrl-Fx and
consciously running only one desktop although I have 3 installed (gnome, xfce and fluxbox).
This is very weird!
I installed ubuntu 10.04 on another set of partitions last night and didn't see the high usage even tho'
I was doing considerable downloading. I'm going to devote the day to set up my workstation on that
OS and monitor activity with iftop. I will report back sometime later.
thanks again
 
Old 03-09-2011, 11:17 AM   #18
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
Wow! Your statement above seems to indicate something extraordinary. I'm not consciously running any tty windows with ctrl-Fx and
consciously running only one desktop although I have 3 installed (gnome, xfce and fluxbox).
This is very weird!
It does strike me as weird that you have open connections to each of these window managers via an inode stream socket AND it is showing all of them as active processes running. When I wrote my post this morning, I was running on Slackware64-current which also has KDE, Fluxbox, WindowMaker, and a few other desktop managers installed. I was running KDE and only had open sockets and process for KDE, none of the others. It makes me think remote desktop connections, but I don't know what that would look like in the process and connection logs to offer a comparison.
 
2 members found this post helpful.
Old 03-09-2011, 11:31 AM   #19
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by Tim Johnson
I'm going to devote the day to set up my workstation on that
OS and monitor activity with iftop. I will report back sometime later.
I think at this point that is probably a decent idea. If you need to capture packets, you could look into doing so with wireshark or tcpdump, but at this point I think that figuring out where the traffic is headed is probably a key point. You've said that Mint has pretty much always done this, so I think we need to rule out "normal" kinds of phone-home activity. At any rate, some hard data should help.

By the way, I agree with Noway2, there doesn't appear to be anything obviously evil in the ps log.
 
1 members found this post helpful.
Old 03-09-2011, 06:39 PM   #20
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Hangdog42 View Post
I think at this point that is probably a decent idea. If you need to capture packets, you could look into doing so with wireshark or tcpdump, but at this point I think that figuring out where the traffic is headed is probably a key point. You've said that Mint has pretty much always done this, so I think we need to rule out "normal" kinds of phone-home activity. At any rate, some hard data should help.

By the way, I agree with Noway2, there doesn't appear to be anything obviously evil in the ps log.
I've spent the day configuring ubuntu 10.04 on fresh partitions. The first thing I installed was iftop,
since I can read transmitted data and track in real time. Historically, my average usage has been 200 - 250 MB per
day. I'm seeing pretty much that now, down from several times greater on the mint distro. Does it not look
like some serious downloading was going on with mint? Not happening now, only when I so choose. When I get caught up,
maybe I will link the mint forum or LQ/mint forum to this topic with some observations. I know that the
developer for mint actually gets on their forum from time to time. I wonder if I didn't engage some data
gathering device unknowingly..... But I shouldn't be engaged in conjecture.
Thanks for all of the help, I appreciate it very much, I'm not going to call this solved until
I've interacted directly with some mintmeisters.
cheers
tim
 
Old 03-10-2011, 07:03 AM   #21
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by Tim Johnson
Does it not look like some serious downloading was going on with mint?
Based on the evidence you've posted so far, there really isn't much to draw a conclusion from. If we look at the facts of the case (and please feel free to correct where I'm wrong):

- Mint is using more bandwidth than expected, or Ubuntu, apparently since initial install
- Machine in question is inaccessible from the Internet
- Logs of netstat and ps show no unusual/unexpected processes

And that's pretty much it. What we're really lacking here is some sort of look at the traffic Mint is generating.

Quote:
Originally Posted by Tim Johnson
Not happening now, only when I so choose.
Could you explain this further? Are you doing something specific that causes Mint to generate traffic?

Quote:
Originally Posted by Tim Johnson
I wonder if I didn't engage some data gathering device unknowingly.....
This is why I've been asking for you to look at the network traffic. There could be some update mechanism gone wild. Knowing where the bulk of the traffic is going may help clear up what process is causing the traffic.
 
2 members found this post helpful.
Old 03-10-2011, 12:33 PM   #22
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Hangdog42 View Post
Based on the evidence you've posted so far, there really isn't much to draw a conclusion from. If we look at the facts of the case (and please feel free to correct where I'm wrong):

- Mint is using more bandwidth than expected, or Ubuntu, apparently since initial install
- Machine in question is inaccessible from the Internet
- Logs of netstat and ps show no unusual/unexpected processes

And that's pretty much it. What we're really lacking here is some sort of look at the traffic Mint is generating.



Could you explain this further? Are you doing something specific that causes Mint to generate traffic?
No.
Quote:
Originally Posted by Hangdog42 View Post

This is why I've been asking for you to look at the network traffic. There could be some update mechanism gone wild. Knowing where the bulk of the traffic is going may help clear up what process is causing the traffic.
I need a "recipe" for that. I've started the following
Code:
ntop -a ntoplog.txt
but I am unclear as to what to expect. ntop does not appear to be writing to the logfile ntoplog.txt.
Once I have an understanding of how to do the logging, I can reboot to the mint partition and run a logging session
for as long as you think is necessary.
tim
 
Old 03-10-2011, 01:53 PM   #23
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I'm pretty non-conversant with ntop, but my playing around with it a bit suggests you can do dumps of various types from the web interface. Check out the Data Dump entry in the Utils menu of ntop.

As for the lenght of time to capture, you probably need to let it go long enough to generate the unusual traffic you've seen. From what you've posted, it probably isn't very long.
 
Old 03-10-2011, 02:07 PM   #24
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Hangdog42 View Post
I'm pretty non-conversant with ntop, but my playing around with it a bit suggests you can do dumps of various types from the web interface. Check out the Data Dump entry in the Utils menu of ntop.

As for the lenght of time to capture, you probably need to let it go long enough to generate the unusual traffic you've seen. From what you've posted, it probably isn't very long.
Holy Moly, there's all kinds of cool stuff there.
(running ntop -w <portnumber> for web interface)
There is also a log option in the Utils Menu.
I'm awaiting further instructions. Once I have a plan I will boot into the mint partition and
try what is suggested here.
thanks
 
Old 03-10-2011, 04:53 PM   #25
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I'm awaiting further instructions. Once I have a plan I will boot into the mint partition and
try what is suggested here.
I'm thinking that letting ntop run for a bit (couple of hours?) and see what hosts have been contacted.
 
Old 03-10-2011, 06:41 PM   #26
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Hangdog42 View Post
I'm thinking that letting ntop run for a bit (couple of hours?) and see what hosts have been contacted.
Sounds like a plan. I'm running out of time here, so
I may not have any results for you good people until tomorrow, but
I'll get something either to this forum or at one of my sites as
soon as I've had a couple of hours on the mint partition.
Thanks again
 
Old 03-11-2011, 02:13 PM   #27
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Exclamation

Booted into mint partition, started iftop,
ntop -w 1000 and pointed firefox to localhost:1000.
I did just a little bit of surfing. Left ntop running for 3 hours: 7:40 Alaska Standard Time
to 10:40. Did not see any unusual activity. You'll be able to
see results at http://www.johnsons-web.com/ntop - indexing is on.
Don't know what to think, except that I had noticed before that activity could
start out slow in the early morning and then suddenly increase exponentially, but
usually by 11:00.
 
  


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
bandwith usage in sendmail shibu_sp Linux - Newbie 1 02-27-2010 03:13 PM
High load, high RAM usage and unresponsive VPS saeed22 Linux - Server 1 08-20-2009 11:58 AM
How to get bandwith usage(bandwidth used ) in the linux? dangdtvn Programming 4 01-14-2009 12:11 AM
squid bandwith usage for users paul_mat Linux - Networking 1 10-18-2005 05:40 AM

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

All times are GMT -5. The time now is 01:11 AM.

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