PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.security.ssh > Hacker on my system ?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.security.ssh SSH secure remote login and tunneling tools.

Hacker on my system ?

Réponse
 
LinkBack Outils de la discussion
Vieux 23/10/2006, 11h31   #1
sdonnet@ddo-org.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Hacker on my system ?

Hi,

Since this week-end, I have big problems on my RHEL3 server, with sshd
:
- I can no more connect from clients whith ssh. I was able to connect
from 2 years,
- I have 2 new lines in my sshd_config : "DString sweetgeorgiana" and
"DVersion openssh-.3.6p2...",
- I deleted these 2 lines last Saturday evening, and they came back on
Sunday,
- between Saturday and Sunday, I restarted my sshd, and was able to
connect,
- I have a process which abnormally opens the port 417 : this process
is called "ssh/bin/initsshd -p 417", directly connected to "init". The
command line of this process does not begin by "/". I performed a find
/ -name initsshd without finding it,
- I also killed this process on Sunday morning, and is now back on
Monday morning,
- I have reboot on Sunday, after examination of /etc/init.d, but I saw
nothing special.

Does somebody knows what happens to me ? And could I reprotect my
server, if I am really hacked ?

TIA

Sylvain

  Réponse avec citation
Vieux 23/10/2006, 17h41   #2
Unruh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Hacker on my system ?

sdonnet@ddo-org.com writes:

>Hi,


>Since this week-end, I have big problems on my RHEL3 server, with sshd
>:
>- I can no more connect from clients whith ssh. I was able to connect
>from 2 years,
>- I have 2 new lines in my sshd_config : "DString sweetgeorgiana" and
>"DVersion openssh-.3.6p2...",
>- I deleted these 2 lines last Saturday evening, and they came back on
>Sunday,
>- between Saturday and Sunday, I restarted my sshd, and was able to
>connect,
>- I have a process which abnormally opens the port 417 : this process
>is called "ssh/bin/initsshd -p 417", directly connected to "init". The
>command line of this process does not begin by "/". I performed a find
>/ -name initsshd without finding it,
>- I also killed this process on Sunday morning, and is now back on
>Monday morning,
>- I have reboot on Sunday, after examination of /etc/init.d, but I saw
>nothing special.


>Does somebody knows what happens to me ? And could I reprotect my
>server, if I am really hacked ?



Sounds to me like you have been cracked.

backup your crucial stuff.
Wipe the disk
reinstall the operating system
Change ALL passwords
use find to scan the reinstalled backup for suid root programs.

  Réponse avec citation
Vieux 23/10/2006, 19h30   #3
Todd H.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Hacker on my system ?

sdonnet@ddo-org.com writes:

> Does somebody knows what happens to me ? And could I reprotect my
> server, if I am really hacked ?


Reformat and reinstall operating system from original media, apply all
updates before opening any internet facing service.

Sounds like you may well be owned.

Best Regards,
--
Todd H.
http://www.toddh.net/
  Réponse avec citation
Vieux 23/10/2006, 20h45   #4
Jeff B
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Hacker on my system ?

Todd H. wrote:
> Reformat and reinstall operating system from original media, apply all
> updates before opening any internet facing service.
>
> Sounds like you may well be owned.
>
> Best Regards,


consider installing an IDS to track what changes when

--
try a random act of kindness today -- you just might surprise even
yourself
  Réponse avec citation
Vieux 24/10/2006, 08h53   #5
sdonnet@ddo-org.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Hacker on my system ?


Todd H. a écrit :

> sdonnet@ddo-org.com writes:
>
> > Does somebody knows what happens to me ? And could I reprotect my
> > server, if I am really hacked ?

>
> Reformat and reinstall operating system from original media, apply all
> updates before opening any internet facing service.
>
> Sounds like you may well be owned.
>
> Best Regards,
> --
> Todd H.
> http://www.toddh.net/


Thanks for your support. I was hoping that corrections could be done...
I am going to prepare a reinstallation...

Sylvain

  Réponse avec citation
Vieux 24/10/2006, 17h10   #6
Todd H.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Hacker on my system ?

sdonnet@ddo-org.com writes:

> Todd H. a écrit :
>
> > sdonnet@ddo-org.com writes:
> >
> > > Does somebody knows what happens to me ? And could I reprotect my
> > > server, if I am really hacked ?

> >
> > Reformat and reinstall operating system from original media, apply all
> > updates before opening any internet facing service.
> >
> > Sounds like you may well be owned.
> >
> > Best Regards,
> > --
> > Todd H.
> > http://www.toddh.net/

>
> Thanks for your support. I was hoping that corrections could be
> done...


Unfortunately it's just not feasible or advisable. The problem is
that it's impossible to gauge the depth of the penetration. Even if
you scan and find 10 problems and fix them, there could be several
others that your scanner, root kit detector, etc doesn't know about.
As such, it's always "best practice" to format and start from original
media.

> I am going to prepare a reinstallation...


Yeah, sadly as much as it is a pain in the butt, it's still the
fastest way to get to a known state again.

--
Todd H.
http://www.toddh.net/
  Réponse avec citation
Vieux 24/10/2006, 18h28   #7
Unruh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Hacker on my system ?

comp@toddh.net (Todd H.) writes:

>sdonnet@ddo-org.com writes:


>> Todd H. a écrit :
>>
>> > sdonnet@ddo-org.com writes:
>> >
>> > > Does somebody knows what happens to me ? And could I reprotect my
>> > > server, if I am really hacked ?
>> >
>> > Reformat and reinstall operating system from original media, apply all
>> > updates before opening any internet facing service.
>> >
>> > Sounds like you may well be owned.
>> >
>> > Best Regards,
>> > --
>> > Todd H.
>> > http://www.toddh.net/

>>
>> Thanks for your support. I was hoping that corrections could be
>> done...


>Unfortunately it's just not feasible or advisable. The problem is
>that it's impossible to gauge the depth of the penetration. Even if
>you scan and find 10 problems and fix them, there could be several
>others that your scanner, root kit detector, etc doesn't know about.
>As such, it's always "best practice" to format and start from original
>media.


>> I am going to prepare a reinstallation...


>Yeah, sadly as much as it is a pain in the butt, it's still the
>fastest way to get to a known state again.


It is however also crucial that you scan the stuff you reinstall as well.
When I was broken into I found files scattered all over the file system--
/tmp, /dev/, /home, ....
which were suid shells-- ie anyone knowing about them if they had any entry
at all onto the machine could simply run that program and be root.

Ie, scan all of the files you restore for suid
find / -perm +6000 -ls
check each one to see if it should be suid. su is fine. /tmp/banana is not.


  Réponse avec citation
Vieux 24/10/2006, 18h44   #8
Todd H.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Hacker on my system ?

Unruh <unruh-spam@physics.ubc.ca> writes:

> It is however also crucial that you scan the stuff you reinstall as well.
> When I was broken into I found files scattered all over the file system--
> /tmp, /dev/, /home, ....
> which were suid shells-- ie anyone knowing about them if they had any entry
> at all onto the machine could simply run that program and be root.
>
> Ie, scan all of the files you restore for suid
> find / -perm +6000 -ls
> check each one to see if it should be suid. su is fine. /tmp/banana
> is not.


This is a good anecdote as why reformating is a good first step before
the reinstall.


--
Todd H.
http://www.toddh.net/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h15.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,20629 seconds with 16 queries