Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Help needed with a Virtual server running Linux.

  1. #1
    Join Date
    Sep 2007
    Location
    Essex, England
    Posts
    806

    Default Help needed with a Virtual server running Linux.

    Hi all.

    I have a virtual private server which has been used to malicious intent. It came about because I was running an old version of Plesk on it and it got hacked.

    1and1 have shut it down and won't switch it back on unless I re-image the server.
    I'll need to back everything up. I only have SSH access to the server. Once backup I'll need to go through all the files and check for malware, find it and remove it. Then re-image the server and then reinstate all the domains, databases and files for each domain.

    I am not able to any of this. Is anyone here able and willing to help me?

    Thanks
    Graham
    Need a new website or update an old one? I'm your man!

    https://www.buildmeawebsite.uk/

  2. #2
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Do you know the nature of the hack?

    Maybe you can just fix that and everything else will be OK.

    If you have SSH you can turn other things on and off from that, unless your ISP is blocking all your common service ports.

    Things like Plesk, webmin, MySQLadmin, etc... should always be disabled when you are not using them.

    What version of Linux?

    Log files from your various services will tell you who is doing what and when.

    James.
    Last edited by james; 10-16-2013 at 13:02.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  3. #3
    Join Date
    Sep 2007
    Location
    Essex, England
    Posts
    806

    Default

    Hi James.
    Thanks for responding

    I don't know what version of Linux.
    I have about 20 domain names on there. Only about 5 have actual websites running on them.
    So I need MySql running all the time.

    The attack was email related.
    1and1 mentioned emails were being sent and that my ip is in a blocked listing.

    Apparently this happened because plesk was version 9 instead of 11 so someone took advantage of a security hole.
    1and1 have been emailing me but to an address I have not used in years.
    I haven't got a clue how to do this.
    I'm not a Linux person at all.

    Graham
    Need a new website or update an old one? I'm your man!

    https://www.buildmeawebsite.uk/

  4. #4
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    OK. It sounds like someone is using your machine as an SMTP server. IOW, they are pumping Spam out of your IP. You should be able to shut down your mail services while you back up your data and fix the security problem. It might take a while to convince the blacklist servers to remove your IP, so you will have some issues sending ligit mail from that IP for a while.

    Do you have an ftp service running?

    You can stop MySQL and make backups of all the data. Zip it up and move it off of there onto some other place.

    All of the domain setups are a bit harder to deal with. A lot of the functionality of that is all about how and where that stuff is stored in the /var/www directory AND the httpd.conf file.

    James.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  5. #5
    Join Date
    Sep 2007
    Location
    Essex, England
    Posts
    806

    Default

    1and1 have blocked and stopped everything,
    FTP, email, plesk, databases, everything
    I haven't tried yet but ssh is the only thing I'm allowed to use.
    But once in I'd be totally stuck.
    To give you an idea of how stuck...I know how to change directory and how to list folders in a directory.
    N that's about it :-/
    Need a new website or update an old one? I'm your man!

    https://www.buildmeawebsite.uk/

  6. #6
    Join Date
    Sep 2007
    Location
    Essex, England
    Posts
    806

    Default

    Here is the email from 1and1

    Please inform us when your server administrator is ready to perform the necessary maintenance, as we will only unlock your virtual server when you are prepared to immediately boot your server into repair mode, back up all of your files via scp, scan your files for malware, and reimage the server.
    If we simply unlock the server before you are prepared to perfrom this maintenance, any DOS attacks or other malicious scripts will immediately re-initiate which will result in automatic re-locking of the server.
    Need a new website or update an old one? I'm your man!

    https://www.buildmeawebsite.uk/

  7. #7
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Well...... It's a freaking VIRTUAL server!

    They should be able to zip up the whole thing and let you have it.

    Not sure what you would do with all that.

    But at least you would have all of your data.

    Kinda- like throwing all the stuff inside your house into a wood chipper and giving it to you in a big bag.

    Do you have any kind of special software that gives you a more intimate console into the virtual machine?

    IOW, Can you boot it up in a service or recovery mode?

    That's not something you can do with good-old ssh.

    I have to admit, I don't use virtual servers. I migrated everything off of one a long time ago, but I never had to deal with it in any way other than just a regular server.

    I'm lucky, I guess. I have always owned my servers and all I have to do is drive about 2.5 miles into downtown Akron to kick them in person.

    James.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  8. #8
    swamidog's Avatar
    swamidog is offline Jr. Woodchuckington Janitor III, Esq.
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,545,837

    Default

    unless the DB's are on raw filesystems, he can rsync the relevant data across his ssh connection, re image the server with a fresh load, run an AV pass on the backed up data, then rsync it back.

    Quote Originally Posted by james View Post
    Well...... It's a freaking VIRTUAL server!

    They should be able to zip up the whole thing and let you have it.

    Not sure what you would do with all that.

    But at least you would have all of your data.

    Kinda- like throwing all the stuff inside your house into a wood chipper and giving it to you in a big bag.

    Do you have any kind of special software that give you a more intimate console into the virtual machine?

    IOW, Can you boot it up in a service or recovery mode?

    That's not something you can do with good-old ssh.

    James.
    suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.

  9. #9
    Join Date
    Sep 2007
    Location
    Essex, England
    Posts
    806

    Default

    Swami, that sounds good.

    When you say " rsync the relevant data across his ssh connection " could that do EVERYTHING like databases, files, domain settings, email accounts etc...?

    Thanks

    Graham
    Need a new website or update an old one? I'm your man!

    https://www.buildmeawebsite.uk/

  10. #10
    swamidog's Avatar
    swamidog is offline Jr. Woodchuckington Janitor III, Esq.
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,545,837

    Default

    yes.

    here's a link that might be helpful: http://www.thegeekstuff.com/2010/09/...mand-examples/

    Quote Originally Posted by laserLips View Post
    Swami, that sounds good.

    When you say " rsync the relevant data across his ssh connection " could that do EVERYTHING like databases, files, domain settings, email accounts etc...?

    Thanks

    Graham
    suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •