Author Topic: [SOLVED] Internet security (urgent) - system being attacked  (Read 3936 times)

Offline ternor

  • Hero Member
  • *****
  • Posts: 1793
Re: Internet security (urgent) - system being attacked
« Reply #30 on: August 03, 2010, 04:28:03 AM »
Thanks.

Quote from: kjpetrie
Open PCC ->System->Manage system services... and untick the run on root box next to ssh. While you're there check other services set to start on boot and make sure you need them. If you don't, turn them off too.

ssh is and was not set to open on boot.  It started running for some other reason.  It is not running today.

Quote from: kjpetrie
Then the changes reported by rkhunter are almost certainly the result of upgrading and not an indication of an intruder replacing commands.

I hope to attempt to view or open all the changed files tomorrow or later in the week.  If my earlier experience is repeated, I will be unable to do so.

OldJimbo

  • Guest
Re: Internet security (urgent) - system being attacked
« Reply #31 on: August 03, 2010, 12:54:05 PM »
Quote
Evidently, one should install tripwire...

I am sensing "the burgled person syndrome" where the first thing you want to do is set up alarm systems, bar the windows and so on. The trouble is that it never lasts long, because it consumes all of your time. I think that you are making a job out of protecting your computer. That's fine if it's for recreation, fun or in preparation for highly paid employment, but not otherwise. I realize that an  IDS is free and that lots of people have spent money on setting up hardware firewalls, but it isn't free in terms of time. And without a lot of knowledge, it isn't likely to be productive. We had a super network setup (in that it worked all the time for years). Unfortunately the techs who had put it together left and some new ones inherited that network. We got trashed and lost work because of some basic vulnerability which was left unpatched because the new techs were too busy learning about the complicated protections.

We can all get too involved with the complicated stuff, too. Let's keep sight of a summary of the situation.

I'm just saying to relax for a while and think things through. If you'd have had the most secure computer in the world, that wouldn't have helped with someone sending spam through your router. Don't lose sight of the little things. Spam is bad but things could have been worse with your online banking compromised or something illegal done as a joke to bring the police to your door.
You not only had a good wake up call with regard to keeping your router secure, but learned some valuable information with regard to securing your computer properly through learning more about the firewall and running services. You now have experience with Firestarter which gives far more visual feedback. You know about the proper use of rkhunter and getting it's database updated.
Even with your firewall improperly set and with your router wireless not secured, it's highly improbable that someone hacked your computer. JohnBoy and I differ on points - but in your case we're both sure that your computer was fine. I'm far more cautious, but if I was your neighbor who had compromised your router (through wireless) - and had great Linux skills - and had malicious intent toward you - well why would I enter your computer and not trash things? Why wouldn't I use the opportunity of access to your router to spy from there or get at your bank account - or in legal trouble. As I said above, when someone used some exploit to enter our network, they made darned sure that everyone knew and felt the hurt.
It could have happened because of something running which we haven't considered. But now you know how to get an install verified, up and protected, step by step. All of your concerns have been taken seriously, and I sure did the best I knew to reassure - but also to reassure by over-caution.
So far you are well ahead in terms of learning and safety. So are we, because in discussion on this thread, we've considered how simple things can go wrong. At this point you have to look at things realistically in two aspects:
1. If there is an exploit for Linux desktops - then it will be found quickly because of many people like me being over-cautious. But you'll hear of many people being affected, too.
2. A person has to reach a level of comfort with tools like computers. They either serve for work when you might not enjoy them, or for recreation when you should enjoy them. The GRC forum people and others who use all the new and home-made security stuff are not paranoid, but having a lot of fun playing. If you don't have fun learning about security, then it's wasted time in your life. Problems will often come from something simple, just as in life. With the current router exploit being discussed on various forums, people felt safe because of course they'd changed the login and password. Then someone asked about logins being saved on the browser... For most of us, we have to keep the basics in mind like proper backups. We'll probably never get hacked but a lightning storm or flood can just as damaging.
I'm just trying to be helpful because we're getting too focused, and perhaps forgetting some basics.
 

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Internet security (urgent) - system being attacked
« Reply #32 on: August 03, 2010, 01:42:03 PM »
Are you sure that your computer is the only one using the router?

If there are other systems using the same router they should be examined, especially the non-linux ones.

Make sure your wireless router is secured with wpa. If you have none security then it's probably an infected computer nearby that is using your router,

cheers,
MBantz

OldJimbo

  • Guest
Re: Internet security (urgent) - system being attacked
« Reply #33 on: August 03, 2010, 06:28:08 PM »
Quote
Are you sure that your computer is the only one using the router?

Covered.

Offline ternor

  • Hero Member
  • *****
  • Posts: 1793
Re: Internet security (urgent) - system being attacked
« Reply #34 on: August 04, 2010, 01:31:42 AM »
Thanks all.  OldJimbo, I appreciate your advice.  I am taking this slowly because I realise that initially I went into panic mode.  I am thinking of opening a new topic about the changes to file properties but I will run "rkhunter --propupdate" first.  That may be all that is required.  I hope so.

Thanks to everyone who replied.  I think the system has been secured now so I am marking the problem as solved.

P.S. That command changed the status of the files listed as suspect by rkhunter previously.  I am still unable to open them with a text editor and Midnight Commander still displays the message "nm: <file path> no symbols".  In addition, rkhunter still says "Unable to find the 'lsof' command".
« Last Edit: August 04, 2010, 03:41:14 AM by ternor »

OldJimbo

  • Guest
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #35 on: August 04, 2010, 02:13:24 PM »
Good to hear that you have things sorted! While it may have been a lot of pain and frustration - the problem had to be worked through step by step.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #36 on: August 04, 2010, 02:19:50 PM »
Glad to see things have settled down   ;)

Quote
I am still unable to open them with a text editor and Midnight Commander still displays the message "nm: <file path> no symbols".


They are not text files I guess so that is why an editor cannot open them.



Quote
In addition, rkhunter still says "Unable to find the 'lsof' command"

It won't find it here either   ;)   It is not on this install it seems.

regards.
« Last Edit: August 04, 2010, 02:26:40 PM by JohnBoy »

Offline ternor

  • Hero Member
  • *****
  • Posts: 1793
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #37 on: August 04, 2010, 08:09:59 PM »
Quote from: JohnBoy
They are not text files I guess so that is why an editor cannot open them.
  When I viewed the files in Midnight Commander, all they contained was text. ???

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #38 on: August 05, 2010, 02:55:50 AM »
Quote from: JohnBoy
They are not text files I guess so that is why an editor cannot open them.
  When I viewed the files in Midnight Commander, all they contained was text. ???

Can you give say three examples of the files in question?

This should be looked at more closely ... 

regards.

Offline ternor

  • Hero Member
  • *****
  • Posts: 1793
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #39 on: August 08, 2010, 11:14:25 PM »
These are the files I was able to view in Midnight Commander (and were in text) but not open in Gedit:

/bin/awk symlink to gawk
/bin/find
/bin/mail
/bin/gawk
/usr/bin/awk symlink to ../../bin/awk
/usr/bin/chattr
/usr/bin/curl
/usr/bin/find symlink to ../../bin/find
/usr/bin/lsattr
/usr/bin/gawk symlink to ../../bin/gawk

uncleV

  • Guest
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #40 on: August 09, 2010, 03:36:08 AM »
All this files are executable and I think some editors don't want to open executables because there's nothing editable there.

Offline j-retired

  • Hero Member
  • *****
  • Posts: 983
  • To find out what 'busy' is, then try retiring!
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #41 on: August 09, 2010, 04:17:29 AM »
I don't know enough about this, but since it is possible to 'spoof' e-mails as coming from an address not owned by the sender, could the ISP action have been precipitated by a totally different machine doing just that, using the details from his machine, which may have been 'lifted' via the wi-fi??

j

DBobb

  • Guest
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #42 on: August 10, 2010, 06:07:56 AM »
Okteta can open binary files (it IS a binary editor after all), allowing you to view some of the non-obsfucated (e.g: encrypted) strings.

Offline ternor

  • Hero Member
  • *****
  • Posts: 1793
Re: [SOLVED] Internet security (urgent) - system being attacked
« Reply #43 on: August 12, 2010, 01:08:13 AM »
It seems the view in Midnight Commander is parsed, that's why it is visible there as text.  Thanks for the information about Okteta.