Skip to main content

Brute force username question

Comments

10 comments

  • cPanelMichael
    I'm wondering how they would even know this username exists?

    Hello :) It's difficult to say exactly how the guess on the username occurred. Is it possible the username was utilized by a user with a hacked workstation? Or, do you notice any other entries in /var/log/messages where the attempt to guess the FTP username materialized? Thank you.
    0
  • jonh
    "Is it possible the username was utilized by a user with a hacked workstation?" Since the server was built I've used FTP 2 times, on two different accounts. The cphulk FTP notifications have been coming steady since the server was turned on. Most of the notifications are for easily guessed names. Nothing has materialized. Anyway to turn off FTP and use Ssh/SFTP?
    0
  • cPanelMichael
    Anyway to turn off FTP and use Ssh/SFTP?

    You can disable FTP via: "WHM >> FTP Server Selection" However, note there is no replacement in the cPanel interface to create virtual SFTP accounts. Thank you
    0
  • jonh
    I'm getting like 100 Brute Force attempt against pure-ftp each day. Do I worry about this, just turn off the notifications or shut down pure-ftp when not in use?
    0
  • cPanelMichael
    New I'm getting like 100 Brute Force attempt against pure-ftp each day. Do I worry about this, just turn off the notifications or shut down pure-ftp when not in use?

    Have you installed a firewall management application such as CSF to help block these types of brute force attacks? Thank you.
    0
  • jonh
    YES, it's sending me the notifications.
    0
  • cPanelMichael
    If the attack is coming from different IP addresses each time, then you may want to disable FTP and require users to utilize SFTP with the cPanel account username. Or, you could switch to ProFTPD and utilize the host access control option to restrict FTP access to specific IP addresses: Host Access Control - Documentation - cPanel Documentation Thank you.
    0
  • jonh
    Thank you for both solutions! Do you have any additional info on how to do this part: "disable FTP and require users to utilize SFTP"?
    0
  • cPanelMichael
    The suggestion was based on your earlier question:
    Anyway to turn off FTP and use Ssh/SFTP?

    You can disable FTP via: "WHM Home " Service Configuration " FTP Server Selection" However, note that users will not be able to create virtual FTP accounts via cPanel. Instead, they will need to use a FTP client that supports SFTP and access it via their cPanel username: How to Configure Your SFTP Client - cPanel Knowledge Base - cPanel Documentation Thank you.
    0
  • keat63
    jonh. first thing i would do would be to install CSF, it's a free firewall, and provided you choose the correct options will work straight out of the box. Additional things like utilising Host Access Control. You add a list of IP's that you trust to use SSH, FTP and a few other services, and an entry right at the end that says deny all services to all users. If you're allocated dynamic IP's then you might have to allow a few subnets, eg 123.456.0.0/16 and 123.678.0.0/16, but this would essentially kill any attempt to ftp in, unless you're in the whitelist. You would need to ensure that you have a few ways to get in yourself though. Work, Home, Parents etc, and also maybe your Host Provider.
    0

Please sign in to leave a comment.