Server making LOTS of outbound connections to different IP addresses on port 22
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Server making LOTS of outbound connections to different IP addresses on port 22
Hi all, im trying to fix a server, which is basically making thousands of multiple connections to random IP's all starting with 193.*.*.*, I found this out by looking at the IPCop firewall, example:
Well, it's not looking good. The host is perhaps acting as a ssh scanner / brute force bot, and ps(1) has been altered..? (Actually, where are you running ps from?)
There are a couple good (recent) threads on cracked hosts and how to respond. Please search the Linux - Security forum.
23:36:00 up 36 days, 11:15, 1 user, load average: 1.10, 1.01, 0.95
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/1 cpc2-nfds13-2-0- 23:33 0.00s 0.02s 0.00s w
is it likely that this server has been gained access to and theyve done this to it? the IPCop shows thats its been doing this like crazy for a few weeks now, very strange stuff on network graphs, ive attached the traffic graphs, as the server shouldnt really be uploading like that.
i'll have a little search for theese threads also...
(..)is it likely that this server has been gained access to and theyve done this to it?
Yes.
Quote:
Originally Posted by SyntheticRed
the IPCop shows thats its been doing this like crazy for a few weeks now, very strange stuff on network graphs
Your have served them well allowing them to scan networks for weeks then. Any reason why you didn't respond to anomalies way earlier? Do you allow SSH root login? Do you use (weak) passwords instead of pubkey auth?
Also tell us the OS and version you run. Then raise the firewall to only accept traffic to and from your management IP. After that stop/kill all public services and rogue processes (verify!) except SSH. Verify your OpenSSH server and client package. If integrity can not be verified reinstall the packages and restart the server. Then look through the logs for clues how they came in. Read the (CERT) Intruder Detection Checklist: http://web.archive.org/web/200801092...checklist.html if you need some steps.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.