More security for FTP

Discussion in 'Feature Requests' started by manarak, Nov 11, 2012.

  1. manarak

    manarak Member

    Many sites are nowadays getting hacked after a trojan spied on the webmaster's passwords for ftp and sends them out to the bad guys.

    So I have the following idea for feature requests:

    - please provide a "deactivate" button on the ftp accounts list. the effect of the button would be the same as the current delete button, but ISPC would retain the settings and account name, so that the account could be reinstated with one click.

    - please provide a "reactivate for duration X" function for FTP accounts.
    For example, FTP accounts could be reactivated for 1, 2, 24 hours and then ISPC would automatically deactivate the account again.

    - please provide the possibility to specify *PER FTP ACCOUNT* IP addresses and IP ranges that are allowed to access the FTP account.

    This is something I would definitely use on my servers!
  2. falko

    falko Super Moderator ISPConfig Developer

    I've added this feature request to our bugtracker.
  3. manarak

    manarak Member

    thank you Falko, I reckon the IP restriction alone would already add a lot to security.
  4. Ben

    Ben ISPConfig Developer ISPConfig Developer

    But isn't it more security by obscurity, as by limiting the activity time the time window for any trojan to spy the password is smaller.
    Also if not enforcing this by default, I assume nobody will really take care of this option.
    If the user / admin would know about the problem he would more than that make use of:
    fail2ban against bruteforce on the server,
    forced (or at least configured) ftps (!= sftp),
    forced password policy (complexity)
    forced password renewal (aging), optionally with time based deactivation.

    To assist the admin, ISPConfig could alert on the ftp tab, if some of the above mentioned mitgation options are not in place.

    Just as an additional idea on how to assist solving this issue.
  5. manarak

    manarak Member

    Actually it is not, because all the cases I saw so far have been caused by the webmaster getting a trojan on his computer which did then mail out the ftp passwords the webmaster had stored in his system.

    fail2ban is not going to help, because the bots already have the password.

    But I can imagine that reducing the time window will inscrease security, because the bots are very likely to give up after some time if some passwords don't work.

    In the meanwhile, virus sweeps will likely detect a problem on the webmaster's computer.

    And restricting ftp access to certain IPs and IP ranges (from where the webmaster connects) will help a lot by simply not letting the bots in.
  6. manarak

    manarak Member

    in fact I think the restriction to IPs and IP ranges is the best protection.

Share This Page