LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Box is attempting to scan and ssh into random machines using random usernames (https://www.linuxquestions.org/questions/linux-security-4/box-is-attempting-to-scan-and-ssh-into-random-machines-using-random-usernames-682185/)

gianh 11-09-2008 01:06 PM

Box is attempting to scan and ssh into random machines using random usernames
 
Hey guys I have a question it has been brought to my attention that a box i just got put in charge of is attempting ssh into another box with several random username. what should i look for? Thanks

Savet 11-09-2008 05:20 PM

It sounds as if the box has been compromised.

In general, once a box is tainted, a clean OS install is the only 100% sure way to make sure it's clean.

If this is not possible, you should read up on rootkits and securing ssh, as they likely exploited a weak ssh password initially to gain control of the box.

unSpawn 11-09-2008 05:42 PM

Quote:

Originally Posted by gianh (Post 3336298)
what should i look for?

Something piggybacking onto a vulnerable setup or a good breach of security. I don't know. No info. I'd say log the full process, open files, user logins and network connection data (off site), then raise the firewall to only allow traffic from and to your management IP (range), then kill all 'net-facing services except SSH, then look around for stray processes. Then post info here to help us help you. For checks after that read the Intruder Detection Checklist (CERT): http://www.cert.org/tech_tips/intrud...checklist.html.


Quote:

Originally Posted by Savet (Post 3336476)
In general, once a box is tainted, a clean OS install is the only 100% sure way to make sure it's clean.

...but before you do, you should put some effort into investigating the matter. With breaches of security there's no room for gut feelings, "thinking" or assumptions. If you don't then sure you can harden a box the next time around but you won't know what caused it.


Quote:

Originally Posted by Savet (Post 3336476)
as they likely exploited a weak ssh password initially to gain control of the box.

What clues did I miss it's that specific vector?


All times are GMT -5. The time now is 04:42 PM.