Slashdot Mirror


Ask Slashdot: FTP Server Honeypots?

An anonymous reader writes "I run an FTP server for a few dozen people, and it seems like every week I have a random IP address connect to my box and try guessing 'Administrator' passwords once every five seconds or so. This poses no real risk to me, since all my accounts have custom (uncommon) names. But if this is happening to me, I would wager lots of people are at risk of low level, persistent, long term password cracking attempts. Is there a way to report the perpetrators, or any action we can take to address this kind of danger?"

298 comments

  1. No by Anonymous Coward · · Score: 1

    Really, that's the short answer.

    1. Re:No by man_of_mr_e · · Score: 1

      And the long answer. All you can do is firewall, and use things like fail2ban.

    2. Re:No by Anonymous Coward · · Score: 0, Insightful

      Change to a nonstandard port and switch to sftp or webdav over https. In my case, this resulted in no more overfilled logs of sshd failed logins (hilariously, in this context, it was the unlogged successful that I really needed to know, since it was just a fishing expedition). Moving to a nonstandard port means that you'll know that the attacks are targeted, and allows you respond accordingly. It isn't security through obscurity, because you are going to be using an actually secure mechanism.

    3. Re:No by 0100010001010011 · · Score: 4, Informative

      Denyhosts also. I just set this up after finding over 40,000 failed ssh attempts in the last 3 days.

    4. Re:No by mlts · · Score: 2

      That sums it up right there. Why? Lots of reasons:

      1: A honeypot might get someone in legal hot water if someone then launches criminal activity from it. For example, if someone's honeypot was used for torrents or CP, it will be tough explaining to cops (or the RIAA's pet judge) that the owner knowingly allowed such activity to happen and hoping not to get found culpable/convicted.

      2: FTP for anonymous downloads is one thing (assuming a hardened FTP server.) Anonymous uploads can be done too, provided you clean the incoming directory. FTP for users with passwords sent plaintext is just bad form. Use sftp, or scp for this.

      3: Before '97, you could call an ISP or other domain and deal with someone who would be ready/willing/able to stop someone hacking from a site. These days, nobody cares, especially offshore domains. IP address banning is noble, but just not running the service unless needed is the best bet.

      4: Even with IP banning, it won't do much. Blackhats have a crapload of bots on wide IP ranges. Better to just figure out what ranges to allow and deny everyone else.

      5: Passwords should never be used anyway. Use S/Key or OPIE if one can't authenticate using two factor stuff. Best of all, use public key authentication over ssh. This way, there is no way a brute force attack could succeed, if the SSHGuard program or other anti-guessing daemon doesn't work.

    5. Re:No by QuasiEvil · · Score: 2

      Denyhosts is the bomb. Seriously, I get weeks where I used to get hammered with ssh login dictionary attacks. Now, denyhosts nicely bans them, and best of all, it can share back with a central server so once somebody starts attacking a couple people, we all ban their asses. It's one of the first things I install on any new server. Seriously, I think I'm going to go send the DH guys another donation because they're so damned awesome.

      DH is ssh-centric, though. For your FTP problem, fail2ban is better.

    6. Re:No by Sancho · · Score: 3, Interesting

      We use honeypots purely for denyhosts purposes. These are machines which are not in DNS and should never have machines connect to it. If a machine connects, we assume that it's malicious and add it to a blocklist which is shared amongst the rest of our machines. No one ever gets in to the honeypot. One could wait for a failed login attempt to occur (it would be a little more generous to scanners who aren't trying to break in)--it's just a tradeoff. We're much harsher.

    7. Re:No by Culture20 · · Score: 1

      Is the denyhosts server model released yet? I know large orgs would love to use denyhosts central server, but not rely on "The Internet" to tell them what should be denied.

    8. Re:No by GameboyRMH · · Score: 2

      Who needs to synchronize ban lists? Have it ban a host for a week or so after 10 failed attempts (for both existing and nonexistent accounts, so they can't brute-force usernames). No meaningful number of brute-force attempts will get through to any box that way.

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    9. Re:No by emt377 · · Score: 1

      Ten is really low - it could reasonably be someone who can't remember their username and/or password. I like to ban at 250; if you get up that high you're pretty much bound to be running some sort of automated attack, while it's still not high enough to have a non-trivial chance of success for a dictionary attack.

    10. Re:No by orangesquid · · Score: 2

      This is the sort of thing I've considered doing, but I've worried about locking myself out, if I'm trying to connect remotely and having a particularly bad case of clumsy typing.
      A similar example to my worry follows.... it's a very interesting idea, but I wonder what procedures you have in place to prevent the following??

      ---

      Sancho:> Hey, orangesquid, can you check out something on sancho3 for me, in /var/log?
      orangesquid:> sure, let me open a shell

      os@orangesquid.net:~$ ssh sancho3.sancho.com
      Resolver timed out
      os@orangesquid.net:~$ grep sancho3 ~/sancho-hosts
      11.22.33.49 sancho3
      os@orangesquid.net:~$ ssh 11.22.33.46
      ^C "Dammit, clumsy hands"
      os@orangesquid.net:~$ ssh 11.22.33.49
      Connection timed out
      os@orangesquid.net:~$ ping 11.22.33.49 -c3
      Ping 11.22.33.49 (64 bytes) from 99.88.77.66
      ---
      4 packets transmitted, 0 packets received
      "Stupid auto-block..."

      os@orangesquid.net:~$ mail sancho2000@gmail.com
      Hey, can you unblock me? Typo!
      .
      os@orangesquid.net:~$
      MAIL FROM: postmaster@sancho.com
      You attempted to send mail to "sancho2000@gmail.com" from 99.88.77.66. This IP address has been banned. Sorry.

      --
      --TheOrangeSquid Is it any wonder things seem so awry? We swim in a sea of confusion and don't have to think to survive
    11. Re:No by Sancho · · Score: 1

      We essentially prevent that due to exceptions in the blanket statement I made. Hosts which don't allow password logins (e.g. using certificates or keys) don't get the blacklist. Mail doesn't get the blacklist, but that's because a different subgroup runs that. If we did run mail, we would use alternate accounts to deal with unblocking, or perhaps require a phone call. And we'd probably have a fumble-finger wall of shame :)

    12. Re:No by WuphonsReach · · Score: 1

      And the long answer. All you can do is firewall, and use things like fail2ban.

      Which does nothing against distributed attacks where each IP only tries a handful of username/password pairs before the next bot in the network takes over.

      (You would need to be a member of a large organization, with a few thousand machines all sharing information on failed attack attempts.)

      --
      Wolde you bothe eate your cake, and have your cake?
    13. Re:No by WuphonsReach · · Score: 1

      2: FTP for anonymous downloads is one thing (assuming a hardened FTP server.) Anonymous uploads can be done too, provided you clean the incoming directory. FTP for users with passwords sent plaintext is just bad form. Use sftp, or scp for this.

      The best way to do anon uploads.

      - Keep them in their own folder (usually /uploads).
      - Don't allow files to be downloaded by other anon users.
      - Bonus points if the files are invisible once uploaded.
      - As you state, clean the files off the server after a short period.

      Our anon upload server sees files like "test1.zip" being uploaded about once a year by automated probe tools. But since they can't download the file once its up there, they can't use the server as a warez / nasty-stuff distribution hub. So they move on.

      --
      Wolde you bothe eate your cake, and have your cake?
    14. Re:No by sys_mast · · Score: 1

      Our blackberry enterprise server does a device wipe if you have the wrong password 10 times. Doesn't happen very often, least not on accident ;)

      --
      Those who can, do.
    15. Re:No by Nursie · · Score: 1

      It puts them back a lot. I was seeing tens of attempts from each IP trying to log in to my system. My system is a NAS, but they don't know that...

      fail2ban trips at six attempts. I'm not important enough to get properly hammered by whoever these folks are, but I'm happy that there is now less chance of a break in and compromised IPs are permabanned.

    16. Re:No by orangesquid · · Score: 1

      Ah, sounds sensible, then =) Hey, if you ever start up a fumble-finger wall of shame, can I be an honorary member? *g*

      --
      --TheOrangeSquid Is it any wonder things seem so awry? We swim in a sea of confusion and don't have to think to survive
    17. Re:No by vegiVamp · · Score: 1

      I prefer the recent module to iptables. Works for any protocol on any port, simply limits the number of connect attempts from a given IP in a given timeframe, then bans for a specified time.

      Because it's an iptables rule like any other, you can add source- or destination-based filters, set different rules for different subnets and whatnot. Works wonders.

      For SSH, I allow five connections per five minutes. Plenty for me, as i tend to use master/slave connections anyway; and it means any attacker usually gets banned within five seconds.

      --
      What a depressingly stupid machine.
    18. Re:No by Culture20 · · Score: 1

      Who needs to synchronize ban lists?

      I know distributed botnet brute forces (a botnet focusing on a computer/network instead of just making each zombie run its own attacks) aren't happening as much these days as they did a couple years ago, but banning via synchronized lists is the only way to really stop these. Any large group with a lot of public facing computers that might have the same accounts on each would probably like something like this (if nothing else to prevent a ton of accounts from being locked by a botnet).

    19. Re:No by Culture20 · · Score: 1

      So if you scp successfully five times in three minutes, you have to wait two minutes before you can connect again? Great for a personal system, but I could see issues with a multi-user system.

    20. Re:No by vegiVamp · · Score: 1

      You can obviously tweak the values as neccesary. As for me, as I said, I use master/slave connections. I open up a single connection at the start of the day, and leave that open. All subsequent connects simply piggyback on top of that one and aren't counted.

      Of course, for many connections it might be better to only count failed authentications, but I like the simplicity of this, not to mention how it's entirely protocol-agnostic.

      --
      What a depressingly stupid machine.
    21. Re:No by Anonymous Coward · · Score: 0

      Reply from our network people: "This is useless! It doesn't run on Windows. We don't like Linux. It's too hard! And did we mention that it's not Windows and so is useless?"

    22. Re:No by mlts · · Score: 1

      The coolest anon server I saw was one that would check files once the connection was closed. If they were not encrypted with a PGP key assigned to the server, the file was wiped on the spot. The checking mechanism was in multiple parts too, so it would do a quick PGP/gpg header check, if that wasn't present, chuck the file, then check to see if it was encrypted to a certain key ID.

      Users that needed to upload files could easily do so. Combining normal write only permissions with the fact the server erased contents if they were not encrypted to the server's key (making the files unusable to anyone else) also ensured that the warez hounds seek storage elsewhere.

    23. Re:No by Sancho · · Score: 1

      Sure!

    24. Re:No by Coren22 · · Score: 1

      Whois the IP address and report them to their ISP. We had someone hack one of our servers before (service account with default password...someone else, not I) and started running a dictionary attack from it, we were notified by our ISP, and we cleaned it up, then started notifying the ISPs of the source of our attack. That is the smart thing to do, but not all ISPs will even do anything about it.

      --
      APK likes to ask for responses to the same things over and over. Maybe he just likes the responses?
  2. ssh is the same by bugs2squash · · Score: 4, Funny

    About all you can do is briefly connect the Ethernet to a power outlet and hope that the tubes carry the high voltage across the interweb and fry their equipment. Of course, timing is everything.

    --
    Nullius in verba
    1. Re:ssh is the same by JustNiz · · Score: 3, Funny

      Mod parent up Wow this works really well!
      Since briefly connecting my ethernet to the power socket I haven't had any hack attempts at all!! That must have showed them!!

    2. Re:ssh is the same by webmistressrachel · · Score: 0

      Is your NIC working still? Something tells me you don't check your mail much...

      --
      This tagline was transcoded to result in at least one smirk. If you experience failure to smirk, please consult your Gen
    3. Re:ssh is the same by maswan · · Score: 2, Insightful

      Stop allowing password-based access. There is no way anyone is going to be able to guess a key by connecting and trying them.

    4. Re:ssh is the same by cos(0) · · Score: 1

      *whoosh*

    5. Re:ssh is the same by RichM · · Score: 1

      Not sure why you'd run SSH over the standard port...

    6. Re:ssh is the same by webmistressrachel · · Score: 0

      Whoosh^2!

      --
      This tagline was transcoded to result in at least one smirk. If you experience failure to smirk, please consult your Gen
    7. Re:ssh is the same by cowboy76Spain · · Score: 1

      I finally solved the issue of logs of failed logins with a way simpler metod... in the initial message I tell everybody the root password.

      Been years since I saw one of those pesky messages.

      --
      Why can't /. have a rich-text editor? Editing your own HTML is so XXth century.
    8. Re:ssh is the same by Capt.DrumkenBum · · Score: 1

      Security through obscurity. That works well. NOT!

      --
      If I were God, wouldn't I protect my churches from acts of me?
    9. Re:ssh is the same by InlawBiker · · Score: 1

      That's a fine idea for private systems. For private servers I use only ssh with certificates. Poof, hack attempts are gone.

      For a public facing FTP server the idea is to keep it easy. It should work with any FTP client out of the box with no configuration. In this case your only defense is to pick real username and long, quality passwords.

    10. Re:ssh is the same by blair1q · · Score: 1

      I have a cuckoo bird who listens for such traffic and dangles my keys on the modem connector when it happens.

    11. Re:ssh is the same by mywhitewolf · · Score: 1

      i found another effective method, you just disable the logging.

    12. Re:ssh is the same by mywhitewolf · · Score: 1

      Am i the only one wondering how the hell you connect an ethernet cable to a power outlet? would be a pretty funny support call though

      Dell: welcome to dell customer service, how can i help you?
      Customer: I got hacked so i fought back with electricity, and now the monitor isn't working properly.
      Dell: *sounds of someone securing a noose*

    13. Re:ssh is the same by InlawBiker · · Score: 2

      It actually works very well. Almost every break-in attempt is from a script. Almost every script only tries the default port. You can easily eliminate a very large number of script attacks just by changing the port.

    14. Re:ssh is the same by icebraining · · Score: 4, Insightful

      Proper security measures and changing port is better than having only the former.

    15. Re:ssh is the same by Mr.+Freeman · · Score: 2

      At a decent company yeah, that's probably how it would go.

      At Dell the response would probably be "Have you tried rebooting the computer?"

      --
      -1 disagree is not a modifier for a reason. -1 troll, flaimbait, redundant, overrated are NOT acceptable substitutes.
    16. Re:ssh is the same by sconeu · · Score: 1

      Damn. I thought that only worked on Kermit connections.

      +1 Cliff Stoll reference

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
    17. Re:ssh is the same by plover · · Score: 1

      You may be the only one of us who hasn't made a "fool-killer". It's a 120V plug on one end connected to alligator clips on the other. Great for connecting ANYTHING to a power outlet, especially things that shouldn't be.

      --
      John
    18. Re:ssh is the same by cos(0) · · Score: 1

      I am too dense to see the wit in your original post, I apologize. :)

    19. Re:ssh is the same by Darinbob · · Score: 1

      Send the Phone Spiders!

    20. Re:ssh is the same by fahrbot-bot · · Score: 1

      About all you can do is briefly connect the Ethernet to a power outlet ...

      Or, you could geolocate their IP and nuke them from orbit. It's the only way to be sure.

      --
      It must have been something you assimilated. . . .
    21. Re:ssh is the same by Anonymous Coward · · Score: 0

      Unfortunately if you use keys instead of passwords, all an attacker needs to do is compromise a desktop; this is obviously fairly trivial in the grand scheme of things.

    22. Re:ssh is the same by Anonymous Coward · · Score: 0

      Stop allowing password-based access. There is no way anyone is going to be able to guess a key by connecting and trying them.

      yeah?

    23. Re:ssh is the same by Anonymous Coward · · Score: 0

      I agree with this. I used to have an ssh server so I could sync my netbook with the files on my home machine. Ran it on a nonstandard port, and I remember ever seeing an IP I didn't recognize.

    24. Re:ssh is the same by Anonymous Coward · · Score: 0
    25. Re:ssh is the same by sexconker · · Score: 1

      A key is a password. It's just along password that people write down and store somewhere, typically as a file on a computer.

      Your problem is now securing that key. People typically encrypt their keys. With passwords.

      The safest place for a password is in your brain. If your brain can't remember a password that's complex enough to withstand brute forcing for longer than it takes for you to change your password, then too bad.

    26. Re:ssh is the same by WuphonsReach · · Score: 1

      Public-facing FTP sites are only good for (2) things.

      1) Distribution of public material. In which case you upload it with scp (over SSH) then just grant anonymous access to download the files.

      2) Upload-only for clients / users to upload files that can't be uploaded (easily) via some other method or which are too large to fit in an email. Make sure that you don't allow uploaded files to be downloaded, otherwise the warez folks will come park their bits on your server.

      Either way, you should be using scp instead of FTP for password-based authentication and for the secure transmission of files that need to be uploaded/downloaded. If you're doing password authentication over FTP (and not even using SSL), then you're just begging to get hacked.

      --
      Wolde you bothe eate your cake, and have your cake?
    27. Re:ssh is the same by WuphonsReach · · Score: 1

      The difference between using SSH key authentication and plain old passwords is pretty large.

      - In order to attack password authentication, you can be anywhere in the world, use a botnet, and pretty much have no restrictions or advance work needed. You can probably even just sniff them off the wire if the users are using FTP / POP3 / IMAP / SMTP-AUTH without encryption.

      - In order to attack SSH key authentication, you have to first obtain a copy of the SSH private key. Which is not what your everyday attacker is prepared to do. Your server is no longer the "low hanging fruit" that 99% of attackers go after. And getting the private key file would require either physical access or a trojan that steals SSH keys.

      (There's not much that will fully protect you against a determined adversary who is specifically targeting you. Just like there's no such thing as a perfect safe or lock. But you can at least make it darned difficult for them.)

      --
      Wolde you bothe eate your cake, and have your cake?
    28. Re:ssh is the same by WuphonsReach · · Score: 4, Informative

      Security through obscurity. That works well. NOT!

      The point of "don't rely on security through obscurity" is that being obscure should not be your only layer of defense.

      Moving your SSH service off of the default port has a few benefits:

      - Most of the standard attack scripts no longer work against your server.

      - Your security logs are 99% less cluttered (if not 99.9%), making it easier to see the more determined and worrisome attackers.

      I never leave a public facing server's SSH port on the default, it's not hard to specify an alternate port in the SSH clients and it makes my life a lot simpler when I don't have to wade through a few thousand password attempts each day on the standard port. There are a few attackers out there who do port-scanning first to find the SSH port before trying dictionary attacks, but since we don't do password authentication they're still left out in the cold unless they get our private SSH keys.

      --
      Wolde you bothe eate your cake, and have your cake?
    29. Re:ssh is the same by mywhitewolf · · Score: 1

      I might have to add that to my toolkit, i could see it coming in useful when marketing comes up with an idea.

      "Sure, i can introduce a popup on our website to signup to our newsletter, but could you just quickly hold on to these alligator clips first please"

    30. Re:ssh is the same by seanadams.com · · Score: 1

      You too can make one at home, connect the transmit pins of the RJ-45 to HOT on 110VAC and the recieve pins to Common.

      This actually would not work as described because of ethernet's transformer isolation which provides common-mode rejection. If you're going to make a proper etherkiller you need to tie the Tx+ and Rx+ together on one side of the AC, and Tx- and Rx- together on the other side. This will properly cook the transformers on the other end.

    31. Re:ssh is the same by qubezz · · Score: 1

      Your router can't understand the destination network of 60hz 120VAC. Clearly as this little thread shows, you need to have your routing tables set up to send all traffic off the LAN before you plug in one of these. I recommend setting your netmask on all internal machines to 255.255.255.255 first just to be safe.

    32. Re:ssh is the same by tibit · · Score: 1

      Now be careful. Whooshes can interfere constructively. Don't get a hurricane going!

      --
      A successful API design takes a mixture of software design and pedagogy.
    33. Re:ssh is the same by Anonymous Coward · · Score: 0

      Why not? "PasswordAuthentication no" is an *actual* security measure, denyhosts is a mitigation measure; non-standard ports is just security by obscurity (plus, most people will move to the "non-standard" ports of 222 or 2222).

    34. Re:ssh is the same by oojimaflib · · Score: 1

      This is a lovely idea in theory, and I wholeheartedly support it.

      In the real world, however,

      1) ordinary users (i.e. the people in other companies who might want to use our company FTP site) are probably not going to have any programs installed that can talk to SFTP/SCP etc., and are not going to want to bother their IT department with it 'cos it'll probably take about 6 months to get any software approved and the project will be a dim and distant memory by then.

      2) these same users, even if they had the software, are going to be blocked from the vast majority of other methods of sharing information with us (including conventional FTP on a different port) by overly-draconian internet filtering policies, probably mandated by the same people in the IT dept. that insist that all their FTP/SFTP/etc. sites are locked down and secured with all types of encryption and on a strange port.

      Sadly, there are few practical alternatives to lowest-common-denominator FTP access for communicating with a lot of companies.

    35. Re:ssh is the same by TheRaven64 · · Score: 1

      Ordinary users are not going to have any FTP software that they can use installed either, they're going to have the command-line FTP client, and have to download something else if they want to upload to ftp. They will, however, have a WebDAV client installed, because one is built in to every modern OS (including Windows, since 98). You can give them an HTTPS WebDAV URL, and they get a shared folder. You can use any of the HTTP authentication mechanisms that you like, including client-side certificates, or passwords.

      --
      I am TheRaven on Soylent News
    36. Re:ssh is the same by jafiwam · · Score: 1

      Windows has had an FTP client built into the GUI since Windows 2000. Perhaps before. Open Windows Explorer (the one that shows the little yellow folders) and type "ftp://hostname" in the address bar. Authenticate. Poof. FTP access. Bonus, it looks just like any other file move to the user so they don't have to learn anything new. If they can drag and drop they can use FTP. WebDav is a bit better in Windows, but requires a bunch of futzing with shortcuts. One of the recent security patches seems to have broken a lot of the functionality in it though.

    37. Re:ssh is the same by Anonymous Coward · · Score: 0

      Not sure why you'd run SSH over the standard port...

      Because he knows the difference between security and obscurity?

    38. Re:ssh is the same by Anonymous Coward · · Score: 0

      Following standards? Oh, the horror!

    39. Re:ssh is the same by Monchanger · · Score: 1

      At Dell the response would probably be "Have you tried rebooting the computer?"

      Or better yet: tell you to unplug that "power cable" and reconnect it, resulting in additional fried components.

    40. Re:ssh is the same by splatter · · Score: 1

      Won't make a bit of good except for the ones that are paying attention and really know what they are doing. Most are script kiddys that will hammer a server not paying attention to the fact that their password attempts aren't even being sent because keyboard authentication is turned off.

        I had to resort to tcp/ip wrappers & firewall rules blocking china, korea & other domains that have no business on my server. I think that's the easiest way

      --
      "(I) have this unfortunate condition that causes me not to believe a single thing any politician says when a mic's on.
    41. Re:ssh is the same by operagost · · Score: 1

      pls send teh codes
      - nagesh

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    42. Re:ssh is the same by Anonymous Coward · · Score: 0

      Considering the number of routers between your host and the client this is unlikely to effect them. A better method would be to set up a fake admin account that has only one file (or many fake files but at lest one) in it a Trojan that uses some poor method to try to hack the dept of homeland security. If they are dumb enough to run it they deserve what they get.

    43. Re:ssh is the same by operagost · · Score: 1

      Am i the only one wondering how the hell you connect an ethernet cable to a power outlet?

      http://www.tburke.net/fun_stuff/pictures/computers/ethernetkiller.htm

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    44. Re:ssh is the same by houstonbofh · · Score: 1

      Have you not read bofh?

    45. Re:ssh is the same by Coren22 · · Score: 1

      Hook it to their fingers? For more fun, do it to different hands.

      --
      APK likes to ask for responses to the same things over and over. Maybe he just likes the responses?
    46. Re:ssh is the same by RockDoctor · · Score: 1
      Some years ago someone was asking for something similar on a LUG mailing list. She wanted a mains plug, with the live and neutral connected to various pins of an RJ45. For the obvious reasons.

      When I met her in real life, I realised that her signature line of "I take sweets from strangers." was probably true. But not in a way that the stranger intended.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    47. Re:ssh is the same by sexconker · · Score: 1

      You have to have access to the system that stores the password file, or perform a MITM attack to listen in.

      If they're sending passwords in plaintext, unencrypted wireless, or wireless at all, that's their own fault.
      Certificates are subject to the same MITM attacks.

      If they're accessing a web service, you can only brute force against the web service front end. You'll never get anywhere doing this if there's any policy in place to limit login attempts per ip and per account.

  3. Yep, by webmistressrachel · · Score: 1

    You can pwn their box...

    Seriously though, if you report something like this to the Police in the UK they'll look at you like you're mad, so if they won't listen to the victim, why would they listen to a victim of revenge?

    --
    This tagline was transcoded to result in at least one smirk. If you experience failure to smirk, please consult your Gen
    1. Re:Yep, by Cryacin · · Score: 1

      Because they hate vigilantees. Hurts their business.

      --
      Science advances one funeral at a time- Max Planck
    2. Re:Yep, by zebs · · Score: 3, Interesting

      Hmmm, on the systems I help look after we occasionally see large number of RDP sessions with invalid logons. On some rare occasions we've been able to RDP to the source IP (get to the logon screen). Gives me the impression that its a bot.

    3. Re:Yep, by SuricouRaven · · Score: 1

      Because they'd spend many hours of police time and all the hastle of getting the ISP to hand over the address, and in all probability find some fourteen-year-old script kiddie who is playing with a brute-force program and password list he grabbed off of a site with two many Zs in the name.

    4. Re:Yep, by Archangel+Michael · · Score: 1

      The basis for social construct is that the collective does the work of the individual to prevent abuse. If the collective (police) won't do the work, then by default it returns back to the individual. But you're right, however the "they" you speak of is "us".

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    5. Re:Yep, by Anonymous Coward · · Score: 0

      with a brute-force program and password list he grabbed off of a site with two many Zs in the name

      But English is a living language and it evolves over time. Get over it.

    6. Re:Yep, by webmistressrachel · · Score: 1

      And they should then punish that 14yo accordingly, preventing him from doing worse in the future.

      I'm fed up with people being hassled by society for something harmless like smoking pot, while people make lame excuses for other people, who can get away with far worse because it's considered less harmful.

      In the long run, which hurts others more, personal use of natural herbs or script kiddies and what script kiddies will become if they are allowed to continue to get away with it, and learn to become full-blown black-hatters? Add spammers to that and w've got a recipe for actively encouraging crime and criminals.

      --
      This tagline was transcoded to result in at least one smirk. If you experience failure to smirk, please consult your Gen
    7. Re:Yep, by Xtifr · · Score: 1

      You can pwn their box...

      There's a decent chance that the box that's actually trying to connect is already pwned by the person making the login attempt. Retribution against the (owner of the) box is likely to be retribution against a fellow victim. At least—I dunno about ftp—I use ssh with hosts.allow/deny to control access, which does a reverse DNS lookup so I get the host names of attackers in my logs, and a high percentage of them look like small mail servers and the like, so I'm pretty sure they're already pwned. Maybe ftp has a different set of attackers than ssh, but I'd want to verify that before blindly handing out retribution.

      Speaking of ssh, I have to wonder why the original poster isn't using sftp? It sounds like it would be a perfect fit for his needs.

    8. Re:Yep, by John+Hasler · · Score: 1

      The basis for social construct is that the collective does the work of the individual to prevent abuse.

      And there really is a tooth fairy, too!

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    9. Re:Yep, by DigiShaman · · Score: 1

      If you can reach the source via RDP, than it must be a hacked webserver (SQL injection attack most likely). It takes effort to port-forward 3389. If in fact it's a home network, than I doubt it's a bot. Such activity would normally not go unnoticed by someone that network savvy. Or so, that's been experience.

      --
      Life is not for the lazy.
    10. Re:Yep, by cdrguru · · Score: 1

      You have hit upon the answer. It isn't profitable to prosecute minors for low-level crimes. It doesn't help anyone's career. You need to wait until the perp does something that will make the career needle move, or at least provide for some more prison guard employment.

      Yes I used to wonder about the motivation for not even giving the script-kiddie a hand-slap in response to attempted breaking and entering, computer-style. I finally figured it out that at least 70-80% are going to go on and do something really serious later in life and they would much rather catch them at that. Of course, they aren't going to catch them unless they brag about it anyway.

    11. Re:Yep, by utoddl · · Score: 1

      with a brute-force program and password list he grabbed off of a site with two many Zs in the name

      But English is a living language and it evolves over time. Get over it.

      But English iz a living language and it evolvez over time. Get over it.

    12. Re:Yep, by queBurro · · Score: 0

      "at least 70-80% are going to go on and do something really serious later in life" - citation needed

      --
      sag
    13. Re:Yep, by queBurro · · Score: 0

      smoking pot though is illegal, illegal activities are done by criminals in search of profit, when you buy your herb (in a tiny way) you're condoning the violence that the criminals use to protect their profit. this kid is just rattling car-door handles

      --
      sag
    14. Re:Yep, by Domint · · Score: 1

      If you can reach the source via RDP, than it must be a hacked webserver (SQL injection attack most likely). It takes effort to port-forward 3389. If in fact it's a home network, than I doubt it's a bot. Such activity would normally not go unnoticed by someone that network savvy. Or so, that's been experience.

      Or, what I'd suspect is more likely, it's a workstation plugged directly into a broadband modem, thus getting a publicly addressable IP right on the NIC.

  4. FBI? by Anonymous Coward · · Score: 0

    I'm pretty sure that qualifies as unauthorized computer access and you could just hand over the IP addresses to the FBI.

    1. Re:FBI? by Anonymous Coward · · Score: 0

      They haven't gained access to the system, so there wasn't any unauthorized computer access.

    2. Re:FBI? by Anonymous Coward · · Score: 0

      I'm pretty sure that qualifies as unauthorized computer access and you could just hand over the IP addresses to the FBI.

      I disagree, unless they successfully accessed the box or hacked in through some other means I don't think it's a criminal act. Besides, there is the 'reasonable doubt' thing, someone could have gotten the IP address of a dedicated server wrong and forgot their admin password and they are trying to brute force their way into their own server (It's a long shot, I know).

      In response to the poster, I used to have a hosted dedicated server and would get the same connection attempts all day long. Make sure to run the server as a non-privileged user, keep the user passwords decently tough to crack, and keep your software up to date. If you do all that, you should be fine.

    3. Re:FBI? by hedwards · · Score: 1

      I'm pretty sure it doesn't. That would be like saying that turning the doorknob on somebody's home qualifies as breaking and entering.

    4. Re:FBI? by webmistressrachel · · Score: 2

      Surely trying every doorknob on a terraced street qualifies as intent to tresspass and steal??

      --
      This tagline was transcoded to result in at least one smirk. If you experience failure to smirk, please consult your Gen
  5. Probably not worth the effort by The+MAZZTer · · Score: 3, Informative

    They could easily be zombies or proxies you're seeing, especially zombies since it sounds automated.

    1. Re:Probably not worth the effort by bab72 · · Score: 2

      What? First, I had to worry about zombies eating my flesh - Now, I have to worry about them hacking into my FTP server, too?!?

      --
      Bab72 (Not my real name)
    2. Re:Probably not worth the effort by Reservoir+Penguin · · Score: 1

      I agree, looks like the dude is totally amateur and panicked over something he saw in the logs. Everyone has these automated scans. Rest easy, hackers are not targeting you specifically.

      --
      US-UK-Israel: The real Axis of Evil
    3. Re:Probably not worth the effort by jd · · Score: 1

      They are, however, bloody annoying and make spotting anything important that much harder.

      If you know legit connections will be in certain IP blocks, ban all others.

      If not but you've decent FTP software, have it block access from any IP that tries to access specific accounts (such as Administrator, samba, nagios or whatever ones that both don't exist and are being targeted on your box).

      If you prefer something more entertaining, use Linux' packet munging code. What you want to do is detect inbound connections that aren't legit then rewrite the destination IP to somewhere else. Make it someone who is unlikely to be at any real risk but is likely to kick up a fuss.

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    4. Re:Probably not worth the effort by SharpFang · · Score: 2

      On my WWW server all common IIS exploits are HTTP/1.1 301 Moved Permanently Location: http://www.microsoft.com/%5Bsame path]

      --
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
    5. Re:Probably not worth the effort by IsoRashi · · Score: 1

      Wait, now the zombies will be ONLINE?? Oh jesus christ, we're fucked!

      --
      This is not the greatest sig in the world, no. This is just a tribute.
    6. Re:Probably not worth the effort by Anonymous Coward · · Score: 0

      Filezzz! Fiiiilllleeeezzzzz! Urrrrg! Fiiiiillllllleeezzzz!!!

  6. Fail2ban? by gilgongo · · Score: 2

    I've used Fail2ban in the past:

    http://www.fail2ban.org/wiki/index.php/Main_Page

    --
    "And the meaning of words; when they cease to function; when will it start worrying you?"
    1. Re:Fail2ban? by trainman · · Score: 1

      I second Fail2Ban, I've set my tripwire VERY tight for services. I also agree with the following post, SFTP, I'm phasing out FTP myself. About bloody time.

    2. Re:Fail2ban? by fuckface · · Score: 1

      In addition to Fail2ban I also make liberal use of iptables to permanent block large swaths of IP-space covering countries that I know I will never be doing business with nor plan to visit in this lifetime. For me these are mostly in eastern Europe, the middle east, and Asia. There are many web pages that provide IP lists of common offending countries.

      On top of that I have an iptables rule that logs every non-http (ports 80 and 443, since those are already well logged by apache) connection attempt to the host so I can tally up the big offenders every week or two and add them to my every-growing block list. I always keep a terminal in a screen session that runs a script which tails and formats a number of my system logs including this one (with pretty colors too!) so I can see what kind of activity is going on. I usually keep it running off to the side, half-hidden and when a brute-force attack comes in it catches my eye so I can squash the fucker immediately.

    3. Re:Fail2ban? by mirix · · Score: 1

      Yeah, there are a few script package deals, fail2ban, denyhosts(?), etc.

      Or you can just modify iptables / pf / whatever your firewall is directly. I've got a rule on pf to plonk any traffic on ssh if more than 3 connections are made in some amount of time.

      Of course, all of these aren't immune to massive distributed attacks, as a billion * three attempts is still 3 billion attempts.

      --
      Sent from my PDP-11
    4. Re:Fail2ban? by billcopc · · Score: 1

      Yep, I've been doing and saying this for years. If Asia, Russia, South America are not interesting markets for my site/service/product/email, I simply block the IP ranges from hitting the respective ports. I'm certainly not about to sell high-end gaming computers or consulting services to China, so they're more than welcome to find some other host to crack.

      --
      -Billco, Fnarg.com
    5. Re:Fail2ban? by CrazedSanity · · Score: 1

      denyhosts is your best bet, IMHO. After a few failed attempts, it blocks the IP and kills automated attacks.

      I was so excited to share that... after going through all the work of figuring out how to login again AND get back here, I find someone had already suggested it. *sigh*

      --
      Sanity is like a condom: rather have it and not need it, than need it and not have it.
    6. Re:Fail2ban? by WuphonsReach · · Score: 2

      denyhosts is your best bet, IMHO. After a few failed attempts, it blocks the IP and kills automated attacks.

      Except that for the more serious attackers, who have botnets at their disposal, it doesn't do much. In a attack by a botnet, each IP address only hits your server a handful of times and they're synchronized so that each bot tries a different username/password combination. But since there are a few thousand or tens of thousands of machines in the botnet, it adds up to a few tens of thousands of attack attempts.

      denyhosts and fail2ban are fine against the script kiddies operating from a single source IP, but not so good against the larger adversaries.

      --
      Wolde you bothe eate your cake, and have your cake?
    7. Re:Fail2ban? by Pieroxy · · Score: 1

      denyhosts and fail2ban are fine against the script kiddies operating from a single source IP, but not so good against the larger adversaries.

      That's still something, right?

    8. Re:Fail2ban? by Jaysyn · · Score: 1

      Fail2ban seems to be Fail2Load at the moment.

      --
      There is a war going on for your mind.
  7. use SFTP and a certificate by Anonymous Coward · · Score: 0

    1. Require your users to connect using SFTP.
    2. Implement a signed-certificate with the SFTP server and share the cert file only with authorized individuals

    1. Re:use SFTP and a certificate by SeNtM · · Score: 1

      3. ?
      4. Profit!

      FTFY

      --
      "There ought to be limits to freedom." -George W. Bush
    2. Re:use SFTP and a certificate by Opportunist · · Score: 1

      3 would probably be "charge for it". Since everything else is in place.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  8. Well, not really... by DWMorse · · Score: 4, Insightful

    Proactively? Not really. The systems used for this are typically overseas, in countries that more or less don't care.

    However, you -can- configure your server to disregard even initial connection attempts from specific ranges of IP addresses. I solved a lot of this on my own home FTP server by (sorry comrads) telling my server to ignore connection attempts from Russia and China.

    Upon doing so, it went from a daily occurrence, to maybe one attempt a month. Usually less.

    And, if a friend ever needs to FTP in from one of these countries, it's a simple enough rule change.

    --
    There's a spot in User Info for World of Warcraft account names? Really?
    1. Re:Well, not really... by LWATCDR · · Score: 1

      Every once in a while some one will do something. After checking my logs I found one day I found some attacks coming from a university in the UK. Sent that section of the log to the admin of the school. I got a nice email back thanking me for email because it allowed him to find and fix the machine that was compromised.
      Another option would be to write a script that would detect any attempt at admin access that fails more than three times and block the IP for a week or so.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    2. Re:Well, not really... by Anonymous Coward · · Score: 0

      Proactively? Not really. The systems used for this are typically overseas, in countries that more or less don't care.

      You mean like in the USA. Sad but true.

    3. Re:Well, not really... by cc1984_ · · Score: 1

      Proactively? Not really. The systems used for this are typically overseas, in countries that more or less don't care.

      However, you -can- configure your server to disregard even initial connection attempts from specific ranges of IP addresses. I solved a lot of this on my own home FTP server by (sorry comrads) telling my server to ignore connection attempts from Russia and China.

      Upon doing so, it went from a daily occurrence, to maybe one attempt a month. Usually less.

      And, if a friend ever needs to FTP in from one of these countries, it's a simple enough rule change.

      That's a pretty good idea. I take it you use the ip blocks given in http://www.ipdeny.com/ipblocks/

      The only slight snag is that the IP I'm on at work in the UK doesn't seem to be listed, so I'm not sure how reliable this list is, although I guess a false negative is better than a false positive.

    4. Re:Well, not really... by Anonymous Coward · · Score: 0

      Just use failtoban
      Whenever some attemps come from one IP, It will set an iptable rule to ban that IP for some time.

    5. Re:Well, not really... by Anonymous Coward · · Score: 0

      If you use something like DenyHosts.py, they have a global blacklist, when 5 or more systems ban an IP for brute force attempts, other users who subscribe to the blacklist also ban that user. Same idea as spam blacklists.

    6. Re:Well, not really... by Anonymous Coward · · Score: 0

      I used to be a webmaster responsible for hp.com, I noticed some very strange activity coming from the university of Hawaii. Seems like someone there had special access to data on our server. I contacted the university and got a very aggressive email back about not sticking my nose into their business. I blocked them using iptables then was then contacted by one of the VPs of HP warning me off. Being an outside contractor I did nothing further beyond unblocking them and never got to the bottom of what was going on.

      Sometimes it seems, it is better not to stick you nose into things !

      Read the "Cuckoos Egg" for another take. Cliff Stoll's obsession tracking a single hacker cost him his marraige.

    7. Re:Well, not really... by LWATCDR · · Score: 1

      I work for a smaller company. I know everything that was going on with the webserver so that was not an issue. This was someone probing and trying passowords so it was a none issue.
      Funny but I am almost tempted to make a user called admin on each server. If anyone attempts a log in to that user name you just block them instantly.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
  9. DISA or FBI by HyTeK3000 · · Score: 2

    I had a few meetings with local FBI cyber people, and they recommended for me to send things like that to either DISA or to them (the local field office for my area) Contact your local FBI field office and see what they say. If you can talk to their cyber division they are usually helpful. (usually...)

    1. Re:DISA or FBI by HyTeK3000 · · Score: 1

      If it is a personal ftp server from your home ISP, then as others have said, NO. Any government agency won't care if someone is trying to hack you. However, if it is being hosted by a business' ISP, and especially if that business does ANY type of government contracting, then do contact a local field office.

    2. Re:DISA or FBI by SuricouRaven · · Score: 1

      "Any government agency won't care if someone is trying to hack you"

      Not unless you are someone of particular noteworthyness. A government official, a celebrity of any kind. Then you'll get their attention. Because the police know that even a famous singer will raise hell if they talk about how useless the police are.

    3. Re:DISA or FBI by cdrguru · · Score: 1

      Don't forget - you need to show at least $25,000 worth of damages before anyone at a federal level will pay any attention at all. If you do not have even $25,000 worth of trumped-up lots-of-consulting-hours damages then it isn't worth their time.

    4. Re:DISA or FBI by Teun · · Score: 1

      Just put op some mp3 and a few downloads should do.

      --
      "The likes of Facebook and WhatsApp are free to those whose privacy is of zero value."
    5. Re:DISA or FBI by davidannis · · Score: 1

      When I owned a small hosting and software company and we were attacked the FBI could not have cared less. Their attitude was that it was highly unlikely they'd catch the culprits. Unfortunately, in my experience, you need to be a big business to get any attention.

    6. Re:DISA or FBI by Anonymous Coward · · Score: 0

      Boy you were lucky. Every time I have ever talked to the FBI they don't have a clue about tech nor were they the least bit interested in who was trying to hack our systems. We're talking about a Data Center too.

      Best cure. A good firewall with some well written rules to drop connections have say 5 bad attempts over the last five minutes to an IP. Works for us especially on bot traffic.

  10. Welcome to the internet by Anonymous Coward · · Score: 0

    Welcome to the internet, not sure what took you so long to find it, but we're glad you did.

  11. Denyhosts handles this for ssh by Anonymous Coward · · Score: 0

    You could probably tweak it to work with FTP. It just parses the logs and looks for failed attempts, and blocks any IPs that have too many failures.

  12. fake weather, murder mayhem crusades ending? by Anonymous Coward · · Score: 0

    this is great. we were thinking we might have to tell the kids that things were not looking too secure. now we van tell them that our rulers have come to our senses, & the truth is going to help us out of our foibles. so that's really good news

  13. honeypots by BigJClark · · Score: 1


    I always found that honeypots also attracted MORE attention to the network, rather than serving as a tool of defense.

    Essentially, even if you did get the police involved to the point where they could trace the hackers, chances are they are using some type of TOR technology, and the ones that aren't, the little bobby droptables of the world, probably aren't worth prosecuting.

    Save yourself the headache and forgo the unnecessary risk and stress of honeypotting.

    --

    Hi, I Boris. Hear fix bear, yes?
  14. Public FTP today... by jellomizer · · Score: 1

    I would recommended that you use SSH/SFTP except for FTP FTP is one of those old standards made before people realized that they could sniff networks, and pull login names and passwords.

    FTP and Telnet are one of those simple protocalls if you are woried about security, HTTPS, SSH and SFTP

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    1. Re:Public FTP today... by tomm3h · · Score: 1

      There is little point saying, "I think you should use $some_better_protocol" when 99% of the world's Dreamweaver/Frontpage users have no clue how any of it works anyway.

      FTP is here to stay for a lot longer (despite no-one in the know enjoying this idea). So whilst we have to put up with it, we do need a good, widespread FTP honeypot system. It's a good bet that people like http://www.atomicorp.com would be interested in contributing to such a thing.

    2. Re:Public FTP today... by Anonymous Coward · · Score: 0

      We're talking about FTPs and you talk about Dreamweaver/Frontpage, you don't seem to have any idea of how it works.

    3. Re:Public FTP today... by Opportunist · · Score: 1

      Put a simple "here's how to use SFTP, if you want to deal with me, use it" text file in the FTP Server, if you really feel like educating your partners. If you don't, just show them the finger if they're too stupid to use SFTP.

      Sorry, but it's not my duty to explain security to people for free. I get paid for that.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    4. Re:Public FTP today... by tomm3h · · Score: 1

      Congratulations on having no customers. Granted I agree with you in principle, but your customers definitely aren't mine and your approach is but a pipe-dream.

      Educating the people we sell website hosting to, about the nature of protocols like SFTP, is a long and painful process.

    5. Re:Public FTP today... by Opportunist · · Score: 1

      Odd. Just yesterday I added an "S" to a project (in front of the "FTP") and nobody raised a concern, it was signed without a problem.

      My partners don't care about protocols or technical tidbits. They care about a working interface. For them, using SFTP or FTP is the same as long as their interface delivers their data. If you're concerned with your customers, give them what they need to access your files instead of leaning back and complaining that you'd lose business if your increase security.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    6. Re:Public FTP today... by mortonda · · Score: 1

      This doesn't change the problem, brute force attempts come through on ssh too. All you solution does is transfer the question to a different port.

      That said, I prefer scp myself.

    7. Re:Public FTP today... by antdude · · Score: 1

      Can SFTP do resume downloads and uploads yet?

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    8. Re:Public FTP today... by jd · · Score: 1

      Require client certs?

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    9. Re:Public FTP today... by Anonymous Coward · · Score: 0

      I would recommended that you use SSH/SFTP except for FTP FTP is one of those old standards made before people realized that they could sniff networks, and pull login names and passwords.

      FTP and Telnet are one of those simple protocalls if you are woried about security, HTTPS, SSH and SFTP

      FTP can be made secure by using FTP over SSL (Implicit or Explicit). Using a good FTP server that support SSL is just as secure as SFTP (or SCP).

    10. Re:Public FTP today... by Braino420 · · Score: 1

      Yes.

      --
      They call me the wookie man, I guess that's what I am
    11. Re:Public FTP today... by antdude · · Score: 1

      What clients are good in Windows XP+, Linux/Debian, and Mac OS X?

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    12. Re:Public FTP today... by WuphonsReach · · Score: 1

      This doesn't change the problem, brute force attempts come through on ssh too. All you solution does is transfer the question to a different port.

      It fixes the issue of FTP sending passwords in the clear.

      --
      Wolde you bothe eate your cake, and have your cake?
    13. Re:Public FTP today... by WuphonsReach · · Score: 1

      WinSCP for Windows, and probably half a dozen others (FileZIlla?)

      On Linux... scp at the command line. Or rsync over SSH.

      Same answer for OS X.

      Once SSH is in the picture, you can do all sorts of magical things over it. And rsync over SSH takes care of the "resuming large downloads" issue entirely.

      --
      Wolde you bothe eate your cake, and have your cake?
    14. Re:Public FTP today... by antdude · · Score: 1

      No SSH GUI clients in Linux and Mac OS X? :(

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    15. Re:Public FTP today... by Anonymous Coward · · Score: 0

      As mentioned, FileZilla. Works great with SSH in all three.

    16. Re:Public FTP today... by WuphonsReach · · Score: 1

      Also:

      Nautilus: sftp://remotehost/home/user

      The Nautilus trick works by using Places -> Connect to server in GNOME on Ubuntu. And you can probably also do scp://remotehost/some/directory.

      The same trick probably works on OS X.

      gFTP does scp as well?

      There's maybe something called Fugu for OS X.

      --
      Wolde you bothe eate your cake, and have your cake?
    17. Re:Public FTP today... by Anonymous Coward · · Score: 0

      I never said that we'd lose business (well, not in any noticeable amount) but such topics as Frontpage Extensions and FTP clients already take up a disproportionate amount of time. Similarly, the people that we suggest SFTP to then have to bang on the support team for help with Cyberduck or WinSCP.

      In general, people are idiots. I know they should be using SFTP, everyone here knows to recommend it. The customers that are willing and able to accept that SFTP is a better protocol, are likely already doing it. It's the masses of morons that a) don't like change and b) struggle like hell to change.

      If we just stopped FTP access tomorrow (despite Plesk's incessant reliance on it, which would make it difficult, but not impossible) -- or even after a 30-day notice period -- the support channels would be backed-up with people asking why FTP isn't working, explaining how it's an outrage that they have to buy new software.. Yadda yadda yadda.

      If you can start with something better, I'm sure it's a lot easier to push it. So good luck to you. :)

    18. Re:Public FTP today... by ajo_arctus · · Score: 1

      Cyberduck for Mac. Flow is nice too, but doesn't support certificates.

    19. Re:Public FTP today... by Braino420 · · Score: 1

      What clients are good in Windows XP+, Linux/Debian, and Mac OS X?

      Sorry to be rude, but I am simply not going to google your sentences anymore. Seriously, google the exact sentences that you have written that end in a question mark and you will get your answer.

      If you think my reply is rude, consider how rude it is that someone can't be bothered to easily help themselves but then expects others to help them. Your /. id is too low to need hand holding.

      --
      They call me the wookie man, I guess that's what I am
    20. Re:Public FTP today... by antdude · · Score: 1

      "How wude." :P

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  15. our rulers said that? by Anonymous Coward · · Score: 0

    not at all, but we know that our lives are more important than business deals, or keeping secrets

  16. SSH Blacklist by tomm3h · · Score: 1
    http://sshbl.org operates such a system for SSH brute force attacks. Perhaps it's worth asking them to extend their efforts?

    Disclaimer: $dayjob supports them with a base VPS.

  17. Revenge by Anonymous Coward · · Score: 0

    You could *cough* Retaliate *cough* I have done this before if the person using premade scripts you could accidently have an unsecure area or a simple password like Fish with a datafile infected with a virus hackers generally download everything they have access to.

    1. Re:Revenge by qubezz · · Score: 1

      Virus? Why not throw some files like ccnumparser.exe and ccnumdb.sh. Of course exe is a rootkit with a remote, and sh can just be a sudo rm -rf /*.

    2. Re:Revenge by michelcolman · · Score: 1

      No, use "rm -rf ~/*", much more effective, does not require a password and destroys the files the user actually cares about.

  18. Denyhosts by TheRealKolossos · · Score: 1

    Try Denyhosts (http://denyhosts.sourceforge.net/). It's not a honeypot but it will ban an address that keeps trying to log in with an invalid password. Better yet, have your users make longer passwords :)

    1. Re:Denyhosts by thebjorn · · Score: 1

      Seconded! I've set it up so it only accepts one failed ssh login attempt from an unknown ip address before it denies _all_ access. (I need to be able to log in while I'm on vacation, so I can't turn it all the way off...)

  19. rate limit incoming connections based on IP by Shakrai · · Score: 5, Informative

    Easier than banning every overseas IP, IMHO anyway. This is what I do for SSH:

    # Allow SSH with a rate limit
    iptables -A INPUT -i ppp0 -p tcp --syn --dport 22 -m hashlimit --hashlimit 15/hour --hashlimit-burst 3 --hashlimit-htable-expire 600000 --hashlimit-mode srcip --hashlimit-name ssh -j ACCEPT
    iptables -A INPUT -i ppp0 -p tcp --syn --dport 22 -j LOG --log-prefix "[DROPPED SSH]: "
    iptables -A INPUT -i ppp0 -p tcp --syn --dport 22 -j DROP

    There may be a more eloquent way to do this but it gets the job done.

    --
    I want peace on earth and goodwill toward man.
    We are the United States Government! We don't do that sort of thing.
    1. Re:rate limit incoming connections based on IP by cshake · · Score: 1

      Instead of adding the rules manually, I've been using fail2ban for a few years now, and haven't had any problems. Well, except when I opened a shell to let my father upload pictures to my VPS, and he kept forgetting his password and getting locked out for a while.

      It looks like it hasn't been updated in 2 years, but then again the iptables interface hasn't either, so no big deal.

    2. Re:rate limit incoming connections based on IP by Pharmboy · · Score: 1

      Have you ever thought of just running ssh on a port other than 22? I haven't use 22 in many years. We get tons of garbage attacks on the webserver, but I haven't had a single attempt on my ssh server in years. Not one. I still check the logs, but now it takes seconds instead of an hour. One less thing to have to worry about.

      Putting ftp on a different port(s) is much more problematic, but changing sshd is trivial.

      --
      Tequila: It's not just for breakfast anymore!
    3. Re:rate limit incoming connections based on IP by Orgasmatron · · Score: 1

      Even better.

      iptables -A INPUT -s 8.0.0.0/6 -j DROP

      --
      See that "Preview" button?
    4. Re:rate limit incoming connections based on IP by cellurl · · Score: 1

      Do you happen to know how to restrict mysql queries? I want to have a limit somehow... Thanks for any leads!

      Help Stop Stupid Speeding Tickets

    5. Re:rate limit incoming connections based on IP by Chris+Hiner · · Score: 1

      For mysql I just use the skip-networking option to only allow connections locally using the named pipe interface. Or just block port 3306 and only allow connections from IPs that I want to connect.

    6. Re:rate limit incoming connections based on IP by Anonymous Coward · · Score: 0

      thanks

    7. Re:rate limit incoming connections based on IP by Shakrai · · Score: 1

      Not an option; we have a web developer who uses some retarded development environment that just barely supports scp. It will do scp but not with certificates or non-standard ports. Since my boss tells me I have to make it work and scp > ftp I'm stuck using the default port.

      Besides, I don't regard changing the port as effective security. I would still want it rate limited and if I'm going to have a rate limit why not use the standard port?

      --
      I want peace on earth and goodwill toward man.
      We are the United States Government! We don't do that sort of thing.
    8. Re:rate limit incoming connections based on IP by dbIII · · Score: 1

      That's fairly pointless for several reasons.
      The clueless script kiddies were fed portscan software long ago and if you need to ssh in from behind somebody else's firewall you can not expect it to work.
      A short list of allowed users and something like fail2ban if you can't be sure where the valid connections are going to come from does the job and doesn't leave a weird unexpected setup for the next guy.

    9. Re:rate limit incoming connections based on IP by roman_mir · · Score: 1

      I don't know, I use this:

      pass in log inet proto tcp from any to $ext_if port ssh
      pass out log inet proto tcp from any to $ext_if port ssh
      pass log quick proto tcp from $SSH_ALLOW_IPs to $ext_if port ssh \
              flags S/SA keep state
      pass log quick proto tcp from any to $ext_if port ssh \
              flags S/SA keep state \
              (max-src-conn 15, max-src-conn-rate 5/3, \
                overload <bruteforce> flush global)

    10. Re:rate limit incoming connections based on IP by tibit · · Score: 1

      It's a nitpick, but -m state --state NEW is a modern way of matching new connections.

      --
      A successful API design takes a mixture of software design and pedagogy.
    11. Re:rate limit incoming connections based on IP by Anonymous Coward · · Score: 0

      > There may be a more eloquent way to do this but it gets the job done.

      sudo ufw limit ssh/tcp

    12. Re:rate limit incoming connections based on IP by sabt-pestnu · · Score: 1

      I don't speak iptables parameter. So perhaps I missed something in your method.

      How do you prevent a distributed brute-force attack (1 attempt per zombie) while simultaneously preventing said attack to become a defacto DDOS?

  20. it's probably the US government by decora · · Score: 1

    seriously. read the HBGary emails dumped by anonymous. the guy was running crack programs against people he found on irc.

    and this was a federal government contractor with millions in income.

    its only the tip of the iceberg.

    James Bamford's book The Shadow Factory describes specifically how their new system, Turbulence, provides 'offensive' capabilities.

    (coincidentially, two of the documents that whistleblower Thomas Drake is under Espionage Act indictment for were related to Turbulence)

    1. Re:it's probably the US government by Opportunist · · Score: 1

      So you mean I should disable the automated DDoS response to hack attempts?

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  21. Same problem, but for SSH. I use sshblacklist by Anonymous Coward · · Score: 0

    SSH blacklist watches the SSH authentication requests. Once the attempts exceed a configurable threshold, I write those source addresses to a iptables rule that blacklists them.

    I've blacklisted 133,649 unique IP address since starting back in 2009. BTW, zero actually got in :). Also, 95% source from Asia, I'm in California-US.

  22. Just use non-standard ports by Anonymous Coward · · Score: 0

    I have a personal server behind a firewall that only allows SSH connections through. After a while I got literally hundreds of login attempts for root, postmaster etc every day. There was no way anyone was going to get in this way since all but a few trusted user accounts were disallowed and password login was disabled but it was still annoying me. I switched from port 22 to some other random port and the problem went away. Presumably the zombies or script kiddies scan the net more or less randomly for standard services and so far they haven't found me again.

  23. im not saying the US govt is targeting you by decora · · Score: 1

    im saying there are probably a lot of people who work for the government who are doing a lot of 'testing' of their little toys on the unwitting civilian population. nothing makes this more clear than the HBGary emails.

  24. Sounds like fun by Anonymous Coward · · Score: 0

    Jailed FTP server with fake plans for missiles and stuff on it. Six months and $1 million later, they fire it up and bubble-gum comes out the nozzle.

  25. fail2ban or similar by ravenspear · · Score: 1

    Personally I use the lfd daemon with the csf firewall script on my servers. fail2ban is similar.

    People should not get unlimited attempts to connect to your services.

    At the same time, you don't want to clog up your firewall rules with thousands of denied IPs, so I usually set the filter rather high so it will not impact real users (you would be surprised how many users need 10 or 15 attempts to guess their password if they forgot) but only people really performing a serious brute force password guessing attack.

    Also you can use temporary to permanent blocking, where the perp is banned temporarily and rolls off the firewall ban after a few days when he has lost interest, and is only banned permanently if the attacks continue over a longer period.

    1. Re:fail2ban or similar by Anonymous Coward · · Score: 0

      At the same time, you don't want to clog up your firewall rules with thousands of denied IPs

      Err, block in quick on $ext_if from <deny_in_auto> to any in PF with deny_in_auto being filled by another rule is as efficient as it gets. Table lookups are super cheap and you can have tables with thousands of entries without much of a slowdown.

      Quote from the PF manual:

      [...] a table is ideal for holding a large group of addresses as the lookup time on a table holding 50,000 addresses is only slightly more than for one holding 50 addresses.

  26. ftp sends passwords in cleartext; sftp+denyhosts by bcrowell · · Score: 2

    You say this poses no real risk to you, because your passwords are immune to dictionary attacks. But ftp sends passwords in cleartext, so it actually does pose a risk to you if someone is able to sniff your packets on the public internet.

    But anyway, if you feel that the risk to you is insignificant, then why are you asking the question? Are you asking it on behalf of other people who might want to security-harden their ftp servers? If those people are worried, why wouldn't they have already switched from ftp to sftp? And if they're running sftp, they can protect against attacks of the type you're describing by installing denyhosts:http://denyhosts.sourceforge.net/ Denyhosts does have a cooperative blacklisting facility of the type you were asking about.

    I could be wrong, but since ftp is inherently insecure, I would be surprised if someone had created software with the same functionality as denyhosts that would work with ftp. That would be like retrofitting a tricycle to make it supersonic.

  27. Auto ban by Anonymous Coward · · Score: 0

    Fail2ban is your friend.... http://www.fail2ban.org/

  28. OSSEC maybe by DataDiddler · · Score: 1

    OSSEC will block IPs for however long you'd like when they fail on multiple SSH logins. I would assume it can be set up for FTP as well.

    --
    Working...
  29. No. by atari2600a · · Score: 1

    Unless you're being fiscally damaged this isn't even news, just everyday IT whereabouts.

  30. Change Ports! by dclozier · · Score: 2

    Most automated scans will not take the time to scan for open ports. (that I have experienced)

    Also consider FTP with SSL / TLS like what can be done with vsftpd. http://vsftpd.beasts.org/

    As mentioned elsewhere in this thread consider using Fail2ban which is easily configured for monitoring failed attempts at connecting to your server and can then block the IP after a configurable threshold is reached.

    1. Re:Change Ports! by Anonymous Coward · · Score: 0

      Or get out of your cave and use SFTP instead.

      SFTP is part of the OpenSSH package, just type a few lines in sshd_config and it's enabled, files transfer is done encrypted over 1 port so no more double connections for a single file transfer, no more 5000 open ports with keep flags/state rules on your firewall.

      Modern software, for example text editors such as editplus has been supporting SFTP for years, I used to be a loyal fan of vsftpd (for the security and speed), but once I tried SFTP I never looked back.

  31. Reverse by Anonymous Coward · · Score: 0

    You can reverse lookup the IP address, find out who owns the netblock and then report it to abuse@ the isp that owns the block, its normally against their terms of service. I once did this to a good isp who cut a script kiddie off.

  32. Nope by Anonymous Coward · · Score: 0

    Is there a way to report the perpetrators, or any action we can take to address this kind of danger?

    Not really, this is probably just an automated attempt to get access. Googling "how to maek an ftp server secure" is probably the best you can do here.

    Try running an SSH server, you'll have people (bots) hammering it all the time, constantly. We just disable password based access and block any IPs engaging in ovetly suspiciuos behaviour.

  33. Worst thing is the bandwidth drain by BlueCoder · · Score: 3, Interesting

    If your security is even modest as far as passwords there is no need to worry. More sophisticated attacks using coordinated bot nets are the really scary thing but can be countered by limiting the number of login attempts a second/minute. But it's all just extended dictionary attacks. Only someone really dedicated does brute force. This is the equivalent of someone going through a parking lot and checking to see if anyone left their door unlocked and or keys inside their car. If you can just change the port used for ftp, it cuts it down by 99 percent.

    The problem is the bandwidth. You have to pay for it anyway. Even if your server doesn't acknowledge it. Someone really dedicated using a bot net can easily give you overage charges.

    1. Re:Worst thing is the bandwidth drain by WuphonsReach · · Score: 1

      If your security is even modest as far as passwords there is no need to worry.

      Unless they're solely doing FTP over SSL, then as soon as one of their customers goes to a coffee shop with an open WiFi, those passwords (no matter how complex) are useless once sniffed.

      Just say no to authenticating over non-encrypted channels (Telnet, FTP, POP3, SMTP, IMAP).

      --
      Wolde you bothe eate your cake, and have your cake?
    2. Re:Worst thing is the bandwidth drain by Douglas+Goodall · · Score: 1

      After some poor judgement trusting neighbors not to use my open wi-fi with napster, my DSL was useless for over a year because of the constant connection attempts from napster users all over the world. I had to get another DSL line and wait for that one to cal down. BlueCoder is right, and the attackers can easily fill up your pipe with garbage and it does act as a denial of service attack.

  34. Lots of Options Here by avgjoe62 · · Score: 1

    Option 1 - set an access list on your border router and permit connections only from the networks of your users

    Option 2 - eliminate FTP externally, make everyone connect via VPN and run FTP internally.

    Option 3 - Option 1 plus SFTP rather than FTP.

    There are more options of course. There are ways to mitigate the number of attacks, but you have to research and implement them. Good luck!

    --

    How come Slashdot never gets Slashdotted?

  35. Comment removed by account_deleted · · Score: 2

    Comment removed based on user account deletion

  36. fail2ban FTW by Anonymous Coward · · Score: 0

    i use fail2ban and have it set for 3 strikes and yer out for a week

    When i see the failed login attempts to ssh or ftp I setup a script to login to their computer as user fuckyou over and over

    1/2 the attempts originate from China, 1/4 from the Ukraine, 1/8 from Arab countries (not exact but close)

       

  37. sftp? by vampirbg · · Score: 1

    Transfer everything to sftp, use keys and turn off user/pass authentication... It's as simple as that... Then they can keep guessing the password till the rest of their lives :)

  38. Re:ftp sends passwords in cleartext; sftp+denyhost by gamanimatron · · Score: 1

    retrofitting a tricycle to make it supersonic.

    I like your ideas. Do you have a newsletter I could subscribe to?

    --
    cogito ergo dubito
  39. Re:ftp sends passwords in cleartext; sftp+denyhost by alostpacket · · Score: 5, Funny

    That would be like retrofitting a tricycle to make it supersonic.

    So you're saying it would be totally awesome?

    --
    PocketPermissions Android Permission Guide
  40. Simples by /.Rooster · · Score: 1

    I have used fail2ban for years. Very effective and even stopped DDOS attacks against my ssh server

      http://www.fail2ban.org/wiki/index.php/Main_Page

    --
    Rooster - A friend. "Anyone's friend in particular or just generally well disposed to people?"
  41. I wrote a nice security script for that... by Fallen+Kell · · Score: 1

    Like you, I saw the same thing. That said, I also configured my system to respond as though it was a Windows 2000 server, when in reality it was a linux box, so it could try guessing "administrator" all it wants.... That said, I also wrote a script and cron job to parse all the access logs, keep counts of failed login attempts by IP address, subnet, and ISP block, and when they hit certain thresholds, update my firewall rules to reject all connections to that address, subnet, and ISP. I saw a lot of stuff coming out of China and Hong Kong for a long time there (probably other compromised systems), but I am not too worried.

    --
    We were all warned a long time ago that MS products sucked, remember the Magic 8 Ball said, "Outlook not so good"
    1. Re:I wrote a nice security script for that... by Drathus · · Score: 1

      I did the same (except not making it present as a Windows box. =P)

      Just a simple perl script that parses for patterns I can specify and performs actions based on the thresholds I set in each recipe.

      I've got it so X failures in Y hours might lock you out for a time, but then re-allow. Z failures in Y hours will result in a permanent ban, etc.

      It's not as full featured as a full adaptive firewall, but it lets me watch what I want to watch. Both user logins as wells as specific 404s from apache, etc.

  42. Give them a VIRUS by thegarbz · · Score: 1

    Let's see how stupid they are. Find a nasty virus variant, package it in a file called Kiddy_Porn.exe and drop it on your server. Set up an account with the login Administrator:Password and have that account point to just this file. Maybe put some others in a directory to give it some legitimacy.

    Monitor your logs and laugh your butt off when you see get /kiddy_porn.exe

    1. Re:Give them a VIRUS by Anonymous Coward · · Score: 0

      Could you please explain that joke to me? .exe is obviously malware, always has been, so the cracker is most likely aware of that and just wants to increase his/her malware stash? That sounds like a pretty reasonable objective for that kind of person, so what exactly is the joke?

    2. Re:Give them a VIRUS by Anonymous Coward · · Score: 0

      you don't want anything called kiddy porn on _your_ server

  43. 5 seconds by mestar · · Score: 1

    and it seems like every week I have a random IP address connect to my box and try guessing 'Administrator' passwords once every five seconds or so.

    So, your week lasts for about 5 seconds?

    1. Re:5 seconds by blair1q · · Score: 1

      that's totally not what that says and i can't even mis-parse it to say that

  44. SFTP. It's 2011. by bedouin · · Score: 3, Insightful

    Unless you're running an anonymous FTP to download Linux ISOs or something there's no need for it.

    Cyberduck for OS X, FileZilla for Windows, and gFTP all do SFTP and are free. If you're already using SFTP then only allow specific users and disable root access. Key authentication is ideal like others have mentioned but sometimes a hassle.

    The first (and hopefully last time) I was rooted was in '99 on a Redhat box through FTP using a buffer overflow. Since then I learned my lesson.

  45. The longer answer. by Tatarize · · Score: 4, Insightful

    The longer answer is do anything you want. I highly recommend spending a lot of time to configure an "administrator" login. Then have it take one to a fake directory with nothing important. Wait until that IP drops off the inevitable giant pile of files to be shared with other people, and then when all the stuff is uploaded. Disable it and keep the files. It seems like pretending to be there for a short while could get you many gigabytes of something. It would be like peer to peer in reverse.

    --

    It is no longer uncommon to be uncommon.
    1. Re:The longer answer. by laron · · Score: 1

      Depending on the nature of "something", you might not actually want to have it. If someone would upload some pirated terrorist child porn to your server, left a log file on his PC and gets busted by the cyber police, you and your server would be their next target.

      --
      "Beware of he who would deny you access to information, for in his heart he dreams himself your master."
    2. Re:The longer answer. by diodeus · · Score: 5, Funny

      Years ago we found our FTP server was full. It was hacked and contained all kinds of movies and xbox games. We just happened to like movies and xbox games, so we gave it a bit more space.

    3. Re:The longer answer. by DigiShaman · · Score: 1

      My thoughts exactly. It's too risky rolling the dice on something as toxic as CP. Even if you scrub your drives (or tossed them in the trash), your public IP may lead the feds to your house, and in further trouble via destruction of evidence. Even if they don't nail you on CP charges, you will be griefed for the rest of your natural life. Being inflicted with a Federal Gov equivalent of "paper terrorism" is enough to bleed you financially dry from defense attorney fees. Either way, at the end of the day, they will get their pound of flesh!

      --
      Life is not for the lazy.
    4. Re:The longer answer. by bipedalhominid · · Score: 1

      Yeah, we had an Altiris imaging server get hacked over the X-Mas break one year. Damn server had massive hard drives to hold all those PC images. They uploaded all their music and were starting on their movies when they filled up the RAID array. We found a hidden FTP service running an exe out of a hidden folder. The created and used a sub directory in the recycle bin, (it was a windoze server) to store their illegal files. I took a brief look around to see what had been uploaded and it was basically your normal list of musicians and some pretty nasty movies. Of course, the 50 CD anthology of everything Elvis ever did was kind of cool. I did the right thing, threw away everything, wiped the array, rebuilt the server, changed it's IP address got the router guru to help me a bit on the software firewall and we put in some rules to allow/deny access to that box. Lots of fun, aaahhh the good old days.

      --
      This aint Daytona and you aint Dale Earnhardt. So stop trying to draft on Interstate 40.
  46. iptables-by-country by bugi · · Score: 1

    Block by country dynamically: https://github.com/bugi/iptables-by-country

    It's a bit cobbled together, but it works for me.

    1. Re:iptables-by-country by Anonymous Coward · · Score: 0

      Seems like a lot of trouble to me, as the guy only has a couple dozen people it might be simpler to ban EVERYONE not on a white-list.

  47. Just FTP? by mistralol · · Score: 1

    Really It is about time we came up with some good ideas to try to prevent this sort of things. We see it on blogs (backlink spam) We see it on smtp We see it on rdp We see it on website We see it on outlook web access We see it on almost every service!

  48. Use fail2ban or denyhosts by fincan · · Score: 1

    Either use Fail2Ban or denyhosts, assuming you are using some sort of a linux/unix server. Both of them allows you to set thresholds so that it blocks further attempts from that particular IP for a preset amount of time. So you can set something like: if username is valid, allow 5 password attempts, then ban for 10 minutes if username is invalid, allow 2 attempts, then ban for 30 minutes if username is root or admin, block the ip until the world ends (which is two days from now apparently).

  49. Secure any 3rd party NAS boxes on Windows networks by Anonymous Coward · · Score: 0

    We had a dictionary attack recently where a bot group with unrelated addresses tried to log in to our 3rd party NAS. The NAS had a guessable admin name (but fortunately, a long and complex password. Our sysadmin is paranoid - I like him).

    Simple user/password authentication, with no inbuilt three-strikes lockout (wtf? Cheeeep...) It was coming in via IAS vector. Simple fix for us, we shut down IAS on the affected machine. YMMV.

    But there's a hint -- if you buy a cheap 3rd party NAS, you have to secure that sucker.

  50. Let them in. by VortexCortex · · Score: 1

    I wrote a (T)FTP server that after 6 trys gives the user a 6 minute delay; after another 10 tries another delay (15 minutes) is applied, but after 20 to 30 (psedo- random) total failed attempts in one day, the user (irregardless of username) is given what seems like access to the system. They can list a limited set of small "files and directories", although none actually exist, and all simulated file contents are mundane, boring, and severely rate limited.

    Only one fake "guest" account is allowed at a time, any new intruders gaining access cause the previous guest connection to disconnect.

    I've resisted removing the "honeypot" since I've observed several interesting effects due to this "feature":

    1. Users that will not contact the admin or request a new password, and instead keep trying will eventually "gain access"; Upon finding their files missing, will then contact the admin.
      "Oh, this again? We could use more funding for better servers, oh well. I'll have it fixed in a jiffy, but you'll have to select a new password again, sorry."
    2. The time delays slow down brute force attacks considerably, many attackers will tune their scripts to avoid triggering the blockage (by adding delays to their scripts).
    3. Most intruders will get bored and quickly stop showing up.
    4. Network resource consumption due to a brute force attack is mitigated; Most attack scripts stop when they gain access.
    5. Some attack bots will just recursively scrape the meager "contents", and quickly move on to another target.
    6. Log contains less failed attempt lines -- additionally I can just grep for "Dummy FTP Access Granted to ..." to determine offending IP ranges or usernames.
    7. Attackers that reason all accounts have shitty/same passwords, will "hack" a few accounts, then determine that no-one uses the server and move along.

    I've used fuzzing and several attack toolkits to test the system's security (as well as peer review), and our current version also supports SFTP (which many users have transitioned to over the years).

  51. Did you trace the IP address? by damn_registrars · · Score: 1

    I would bet that if it is coming from a single IP at a time, it is coming from a country where English is not the primary language. You can try to report it, but you'll likely get a reply in a language you cannot read and the correspondence will stop there.

    Alternately, if you are seeing distributed (botnet) attempts, there isn't much point in trying. You'll have dozens (if not more) of different addresses, and they are almost always all transient anyways. You could spend your time going through all the addresses, finding all the ISPs, but you'll likely end up with many copies of the same problem I just described.

    In other words, just make sure you don't allow logins of the names they try. Don't just stop with "a really good password" as so many others have tried; rather ban those usernames entirely from remote login. I've even seen phone book attacks on my system where they try a long list of common first names (Aaron, all the way to Zelda).

    --
    Damn_registrars has no butt-hole. Damn_registrars has no use for a butt-hole.
    1. Re:Did you trace the IP address? by blair1q · · Score: 1

      I would be it's coming from China.

      I get fairly periodic hits to my firewalled router. They probe random ports a couple of times then disappear for 40 minutes, then do it again, pretty much 24/7/365.

      There's more than just .cn IPs in there, but the .cn ones have persisted for years.

    2. Re:Did you trace the IP address? by Anonymous Coward · · Score: 0

      starting with iana, you can find who the domain registrar is and report the IP address and log entry for the abuse/unauthorized access. Password hacking is either a violation of the terms of service or the registrar is a problem. If the IP address repeats three times, I blacklist the registrar's allocation. And, yes, too many from China, and too many of those from the Chinese government allocation. Quite the waste of effort to investigate a one-person email server and static IP.

  52. Setup a fake login by __aaqvdr516 · · Score: 1

    Setup a fake login with a separate file structure. Fill it with Goatse and gay porn.

    Alternately (or in addition to) add some random viruses that you know they'll click on.

    1. Re:Setup a fake login by Anonymous Coward · · Score: 0

      I would like the IP too this server

  53. There are other ways... by rickb928 · · Score: 1

    Fail2Ban seems to work well, and one of the mail servers I use does it, but i asked him to not use int on my server - I wanted the wrapper option instead of iptables, and my admin partner balked. He wanted to keep the bans in place for years, which is fairly pointless, except he has a secret admirer that comes back and hax on his system every 2 years or so. I'm not sure i can take him anywhere with me any more, he's pissed someone off who has more scripts than he does. Fortunately his secret admirer is now reduced to moderately intense DOS attacks, instead of deleting data and writing our web pages into pr0n sites... Ah, good times, those were, much lost sleep. If I find him, I'm gonna feed him to ants.

    I used a script I found here, which just needed some fixups for my system. It's fairly good.

    I liked the detecting brute forces and putting them in hosts.deny best, it let me see what was added and flush them out after they went away to someone else's server, and it didn't grow my iptables into something grotesque. At least no more so than it already was. And it made me learn regex a little better.

    --
    deleting the extra space after periods so i can stay relevant, yeah.
    1. Re:There are other ways... by rickb928 · · Score: 1

      BTW, you ARE using ftps or something secure, aren't you? Plain old FTP is so insecure you need to run it in jail, non-root, no write perms, and mark everything r/o.

      I have a team here that uses JScape, but there are other FTPS, S/FTP, and such tools out there. Gotta do it, my friend. FTP is nearly useless. I use SCP a lot, but I will tolerate the clients.

      --
      deleting the extra space after periods so i can stay relevant, yeah.
  54. re: whossh by billstewart · · Score: 1

    That's pretty much what my equipment said when I fed 110v to the Ethernets...

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  55. RMS's root password by billstewart · · Score: 2

    It was "carriage return".

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:RMS's root password by Darinbob · · Score: 3, Funny

      He also had a README file whose contents were
      "cat: README: No such file or directory".

  56. Check your program settings by citylivin · · Score: 1

    Filezilla can do automatic bans. I am sure your favourite FTP server can do that as well. 5 failed login attempts = auto ban for 3 hours. That solved all our problems in the office.

    For home, just running an FTP server on a different port got rid of these kind of attacks completely. Of course, blocking hinet and other chinese netblocks works as well. You have a lot of options here.

    --
    As a potential lottery winner, I totally support tax cuts for the wealthy
  57. Extra Special Content for China by billstewart · · Score: 1

    You might as well provide some customized content for your Chinese visitors. Falun Gong literature, Tibetan Buddhist literature, clones of the epochtimes.com newspaper, an occasional Jasmine Revolution or Grass Mud Horse.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:Extra Special Content for China by billcopc · · Score: 1

      I like that idea, but realistically that should be a redirect to a common archive, or some distributed collaboration tool that allows them to work around their nation's vile censorship.

      --
      -Billco, Fnarg.com
  58. fail2ban by Anonymous Coward · · Score: 0

    Yeah, it's called fail2ban.

    1. Re:fail2ban by Anonymous Coward · · Score: 0

      Seems like the last release was July 2009 -- is this product still current?

    2. Re:fail2ban by Nimey · · Score: 2

      It's a pretty simple concept - a basic heuristic for dodgy-looking connection attempts, and then blocking the originating IP at the firewall. Once it's reasonably bug-free it won't need maintenance until Linus decides to switch to a different firewall again.

      --
      Hail Eris, full of mischief...

      E pluribus sanguinem
    3. Re:fail2ban by Sir_Dill · · Score: 1

      I second Fail2Ban

      I used to run DenyHosts but switched to fail2ban.

      It is remarkably simple, uses iptables and has a TON of versatility.

      I get scanned multiple times a day, tons of "Did not receive identification string from..." looking for a prompt so they can try and identify my host OS. Set it up so that when I get one of those, the ip is banned for a day. Failed login attempts on SSH bans for 24 hours after three failures.

      I have a third rule which monitors the fail2ban log and if an ip shows up more than once in a month its banned for 6. Bans are global on all ports.

      There is not a ton of active development on it but the reality is that its a mature product and works well. Setting up the filters and "jails" can be daunting but the configuration can cover anything you could possibly think of. Supports Regex, exclusion lists, and can be set up for any service or log files.

      Fail2Ban its your friend.

    4. Re:fail2ban by Anonymous Coward · · Score: 0

      i was going to post this.
      let them try 5 times or whatever ..
      if someone cant type in their password in 5 try.. oh well...
      2 week bans on bruteforce blockes them quick.

    5. Re:fail2ban by clorkster · · Score: 1

      Wing FTP Server takes care of this same issue and is extremely easy to use and to setup. http://www.wftpserver.com/wftpserver.htm Even better, you can set a custom message to reply to these "hammering" attacks and really stick it to them in a passive-aggressive way. Not free or open-source, but very painless to use.

  59. port-knock by Anonymous Coward · · Score: 1

    If the users are at all technical, just use port-knocking. The idea is simple: Connects to your ftp[s] port is denied by default. If someone makes a tcp connection to a magic port, the ftp[s] port is opened for say 30 seconds. Naturally you configure it such that if someone connects to the port below or above your port knock that you close the ftp[s] port (assuming they are port scanning you).

    Here is a multi-port implimentation, but you can use a single port:
    http://www.debian-administration.org/articles/268

    I like a single port knock and nothing special other than a tcp connection. This allows you to use telnet from a command line (and batch file/bash shell script).

  60. Only accept connections from a known range by Anonymous Coward · · Score: 0

    Some people here have suggested blocking connections from various IPs. However, since the original question suggested this server is used by very few people, I'd consider setting the firewall to only allow connections from a specific range of IPs. Find out where your friends are connecting from and tell the firewall to only let in connections from those networks.

    Also, consider switching over to SFTP. Sure FTP is fine for public anonymous transfers, but if you're password protecting your data, SFTP is the way to go.

  61. change the port by Anonymous Coward · · Score: 0

    I used to get a load of similar hacking attempts at my ssh server. So I changed the port to something other than the default. Now I get none.

    Do need to specify the port specifically everywhere I want to connect to, or set it in .ssh/config

  62. Not a virus, but a script by jaymunro · · Score: 1

    Better yet, instead of an exe make a script that sends an email to a temp address that you set up with details from their machine. These details could then be used to report the perpetrator. I think that would be completely legal, but if you wanted to take it a few steps further, use your imagination with what to put in the script. ;-) This could be more fun, a challenge and one could learn something from it.

    1. Re:Not a virus, but a script by thegarbz · · Score: 1

      The problem is who do you report them to? There's enough stories about local police ignoring theft of laptops when people have installed phone home software and can identify the perp, but who's gonna care about some lowly Russian accessing some ftp server by guessing the password?

      It almost borders on not hacking.

    2. Re:Not a virus, but a script by jaymunro · · Score: 1

      Report them to Anonymous

    3. Re:Not a virus, but a script by jaymunro · · Score: 1

      Better, put the Report to Anonymous into the script so it is automated and then Anonymous sends an automated attack on the perp.

      Hmm, rethinking that - this may result in a world implosion with Anonymous attacking itself from the inside out.

  63. Reporting the perps by Zomalaja · · Score: 2

    I have had good results when the attacking IP is from a provider such as Comcast, AT&T, Amazon Cloud, etc.
    When it's from "China Unicom Hebei Province Network", like the IP's that hit my router all day long every day scanning port 27977, no reason to even send an abuse message.

    No offense meant to anyone from that part of the world.

  64. Reply from the submitter by glassware · · Score: 3, Insightful

    I'm the guy who posted (accidentally sent it in via anonymous).

    1) I like the idea of programs like DenyHosts and Fail2Ban; as some people mentioned FileZilla also has a nifty "auto-ban" option which I've used too. I specifically like using a shared list of bad hosts; that was really what I was asking for, so thank you all! Totally answered my question.

    2) Switching from FTP is indeed an option. I originally started by using FTPS, which is nicely supported by FileZilla but not by many other programs. The trouble was that a many users had routing difficulties and were unable to reach the FTPS server from their location. The worst part was that many routing difficulties were transient: when they were at the office it would fail, when they were at starbucks it would work, when they were at a hotel it would fail, etc.

    3) I would wager that SFTP is pretty much the right solution. I figure I'll get started on looking for an SFTP replacement for FileZilla server.

    1. Re:Reply from the submitter by WuphonsReach · · Score: 2

      If the users need to authenticate - switch to SCP over SSH. Switching to SFTP sounds nice in theory, until some tech comes along and screws up the FTP server config and people are able to start logging in again over regular FTP.

      If the content is designed to be public readable, setup a download only FTP site that requires no authentication, and do the uploads via SCP.

      If you need to allow uploads, setup a folder that allows anonymous uploads, but don't let FTP users download from that folder. Retrieve the files from the server using SCP, or have an automated system scan them for malware (and delete anything that starts with the EXE signature) and then transfer them over SSH to an internal server.

      (Never allow anonymously uploaded files to be downloaded by anonymous users. The warez folks will come camp on your server as a way to trade files. Which is why you set /uploads as upload-only and require the use of a different access method to retrieve the files.)

      --
      Wolde you bothe eate your cake, and have your cake?
    2. Re:Reply from the submitter by BradleyUffner · · Score: 2

      What ever became of port knocking? Where to gain access to a specific port you had to hit several other ports in a specific order to gain access. When I read about it, it seemed like a wonderful idea, but I haven't heard anything about it for years. It seems that something like that could help.

    3. Re:Reply from the submitter by Bogtha · · Score: 2

      If the users need to authenticate - switch to SCP over SSH. Switching to SFTP sounds nice in theory, until some tech comes along and screws up the FTP server config and people are able to start logging in again over regular FTP.

      That doesn't make sense. SFTP is not a normal FTP server exposed over an SSH or SSL tunnel. There's no "FTP server config" you can screw up and magically transform an SFTP server into an FTP server. Even if there were, server configs don't change on their own, it doesn't really make sense to say "don't switch to something secure because that means if you disable security you won't have that security".

      In fact, if your criticism held weight at all, your recommendation would be going in the opposite direction - SCP is just RCP over SSH.

      --
      Bogtha Bogtha Bogtha
    4. Re:Reply from the submitter by Anonymous Coward · · Score: 1

      Stop confusing the man. SSH1/SCP, SSH2/SFTP, Secure FTP/FTPS. SFTP and FTPS are not the same thing and it drives me up the wall when I see people acting as if it: "Switching to SFTP sounds nice in theory, until some tech comes along and screws up the FTP server config and people are able to start logging in again over regular FTP". What?

      My boss does this and his excuse is, "So what - you know what I mean". My answer is usually along these lines, "No, actually, I don't; either you're an idiot or you've decided to completely re-architect the solution being provided". /rant

    5. Re:Reply from the submitter by Scottaroo · · Score: 1

      Greetings:

      We do a lot of secure FTP. In regards to you point #2, it isn't a routing issue as such, it's a NAT issue. The FTP protocol includes the IP address of the client machine in the data portion of the packets. NATting firewalls have to change not only the headers of the initial FTP packets, but have to reach into the data packets and change the IP addresses as well. FTPS encrypts packets from the get-go, so what happens is the NAT firewalls change the packet headers, but don't change the client IP in the data. So the server tries to respond to the IP address in the data packet, which are usually IANA private, and definitely wrong no matter what, and it doesn't work.

      There are several solutions. Some FTP clients that support FTPS have a spot where you can tell them what their outside IP address will be. It inserts that address into the data packet so the firewall doesn't have to change it. That works OK for people who have a static external address. It doesn't work well for road warriors. A more robust solution is FTPES. That protocol modification does the initial negotiations (which the NAT firewalls have to change) unencrypted, and then switches over to encrypted for passwords and data transmits.

      SFTP can also a good choice, but on Linux FTP servers the user setup is different. FTP servers can be given a list of users & passwords separate from the host's user setup. SFTP is really SSH, and so the users are typically given accounts on the box. This isn't necessarily a problem, it's just different.

      Good luck.

      --
      ----------
      If your answer is Microsoft, you obviously didn't understand the question.
  65. fail2ban by gr8fulnded · · Score: 3, Informative

    How about fail2ban? We use it to block multiple SSH attempts. It blacklists IP's for a user-defined amount of time and then unblocks them again. Works like a charm, every time. Hell, it's even locked me out on more than one time (because I didn't update the whitelist file for my workstation's IP).

    "Fail2ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP address."

    http://www.fail2ban.org/wiki/index.php/Main_Page

  66. try csf by Anonymous Coward · · Score: 0

    if ur on a redhat based distro, try configserver firewall. csf comes with lfd, it will blocked an ip automatically after X amounts of failed login attempts. pretty easy to install and configure. in regards to reporting the offender ur best bet is doing a whois look up on the source ip and emailling the logs to the abuse contact. u probably wont get the offender but the hosting provider will usually stop the malicious activity.

  67. Back Trace by Anonymous Coward · · Score: 0

    Report them to the internet police.

  68. SnortSam by Anonymous Coward · · Score: 0

    I imagine the default Snort rules would include an example of detecting repeated failed FTP connection attempts (brute force/dictionary attacks). Then SnortSam could block the offending IP address for as long as you like. This is assuming your FTP server is running a compatible firewall, etc.

  69. shell script to auto null route brute force attack by Kamphor · · Score: 3, Interesting

    Guess it's time to give back to the community....a few years ago, I wrote a custom script to continually tail out lines at a time from /var/log/auth.log and null route the bad ip's....to date, I have 4316 ip's null routed. I have the following script running as a background job initiated from /etc/rc.local hope this is helpful to people.

    ----begin----
    #!/bin/bash
    # script to sense bad ssh or ftp login tries from the same ip address
    while [ 1 ];
    do
    # block known linux service user accounts ssh attempts
    previous=0;
    i=0;
    for badip in `awk '/sshd/ && /Failed password for /' /var/log/auth.log | egrep -i "root|bin|daemon|adm|lp|sync|shutdown|halt|mail|news|uucp|operator|games|rpm|vcsa|rpc|xfs|apache|rpcuser|sshd|ftp|kamphor|named|messagebus|haldaemon|ntp|openvpn|x11|polkituser|avahi|avahi-autoipd|htdig|pulse" | awk '{print $11}'| tail -100 | sort | uniq`;
    do
    if ! `grep -q $badip /etc/hosts.deny`; then
    echo "ALL: $badip" >> /etc/hosts.deny;
    echo "route add -host $badip gw 127.0.0.1" >> /etc/routeblock.sh
    route add -host $badip gw 127.0.0.1;
    fi
    done

    # null route any attempt at non-existant users for ssh attempts
    previous=0;
    i=0;
    for badip in `awk '/sshd/ && /invalid user/ {print $13}' /var/log/auth.log | tail -100 | sort | uniq`;
    do
    if ! `grep -q $badip /etc/hosts.deny`; then
    echo "ALL: $badip" >> /etc/hosts.deny;
    echo "route add -host $badip gw 127.0.0.1" >> /etc/routeblock.sh
    route add -host $badip gw 127.0.0.1;
    fi
    done
    # scan for behavior - probe ssh then try password
    previous=0;
    i=0;
    # first loop- check for ssh probe
    for badip in `awk '/sshd/ && /not receive identification string/ {print $12}' /var/log/auth.log | tail -2`;
    do
    if [ $previous == $badip ]; then
    i=`expr $i + 1`;
    # echo "in spoofed checker $badip $i"
    else
    i=0;
    fi
    #echo "these are the bad ip addresses: $badip $previous $i";
    previous=$badip;
    done
    # end first for loop
    #start second loop - check for failed logins
    for badip2 in `grep $badip /var/log/auth.log | awk '/sshd/ && /Failed/ {print $11}' | tail -2`;
    do
    if [ $previous == $badip2 ]; then
    i=`expr $i + 1`;
    # echo "in spoofed checker $badip2 $i"
    else
    i=0;
    fi
    if [ $i -ge 3 ]; then

  70. OSSEC HIDS by Anonymous Coward · · Score: 0

    OSSEC HIDS is used on production servers like a charm. Try it.

  71. Re:SFTP. It's 2011. by Anonymous Coward · · Score: 0

    Unless you're running an anonymous FTP to download Linux ISOs or something there's no need for it.

    Cyberduck for OS X, FileZilla for Windows, and gFTP all do SFTP and are free. If you're already using SFTP then only allow specific users and disable root access. Key authentication is ideal like others have mentioned but sometimes a hassle.

    The first (and hopefully last time) I was rooted was in '99 on a Redhat box through FTP using a buffer overflow. Since then I learned my lesson.

    Was the lesson not to use Redhat?

  72. How do you know you aren't compromised?? by Crazy+Taco · · Score: 1

    The first (and hopefully last time) I was rooted was in '99 on a Redhat box through FTP using a buffer overflow.

    How do you know you aren't rooted now, at this very moment? The first rule of security is that there are only two states when it comes to being compromised:

    1. 1. You know you are compromised.
    2. 2. You are unsure if you are compromised.

    Sorry to be a little pedantic, but it's true. There's no way to know for a fact that you have not been compromised, especially if you are connected to remote systems. A good enough attacker may have gotten in and covered his tracks.

    --
    Beware of bugs in the above code; I have only proved it correct, not tried it.
  73. Re:ftp sends passwords in cleartext; sftp+denyhost by Anonymous Coward · · Score: 0

    That would be like retrofitting a tricycle to make it supersonic.

    So you're saying it would be totally awesome?

    You know, I'm still lauging. Been laughing. Hehee. Great post.
    Since this won't get read, I'll put in an interesting word: I've had the same problem as the poster. I tried leaving my music collection up for sometime over ftp when I would travel. After a few short months, I started getting the same treatment. I took the IP's and started whois'n. I came up with lots of companies of course. And all of them were 'Research' companies. After calling a few, I found out, that quite a few of them had been paid by BMG, Universal, and a few other high profile music vendors for one reason. To locate and research pirated music collections. Fortunately for me non of them would have ever discovered my password.

    @bcrowell. ?? Really? I guess you should ask why you have to use anything else? I use FTP all the time for moving files around my network (and my bosses) because it WORKS EVERY TIME. Even across the net. But I wouldn't recommend it for corporate use. I don't want to use any other file servers especially torrents because I have always been disappointed by their unreliability and high maintenance.

  74. Re:ftp sends passwords in cleartext; sftp+denyhost by pla · · Score: 1

    But anyway, if you feel that the risk to you is insignificant, then why are you asking the question?

    Because, although the guy outside my own titanium-shuttered windows might pose no threat to me, I may feel some vague sense of civic duty not to just wait idly by until he wanders off to attack the rich widow next door?


    Unfortunately for the FP poster, he can pretty much bet on every aspect of the connection as in some way falsified. So the only thing he "knows" about this attacker boils down to "the IP address I see as the source had weaker passwords than I do". Sad but true.

  75. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  76. Fact o' life by Just+Brew+It! · · Score: 1

    You'll get the same sort of thing if you run a SSH server. I typically see multiple attacks/day.

    Just make sure you use strong passwords (no dictionary words, include special characters, yadda yadda). If practical consider using a non-standard port number, and (for SSH) consider disabling password-based authentication entirely (use key based authentication only).

  77. Re:SFTP. It's 2011. by bedouin · · Score: 1

    No, I think RPM hell had more to do with dumping Redhat. Debian guy since '05.

  78. Re:SFTP. It's 2011. by Just+Some+Guy · · Score: 1

    Key authentication is ideal like others have mentioned but sometimes a hassle.

    When is key authentication ever a hassle, once you've learned it? My standard system-building procedure is to SSH to a new machine once, cd ~me; mkdir .ssh; chmod 700 .ssh; cd .ssh; cat > authorized_keys; [paste my pubkey into the xterm window]; chmod 400 authorized_keys, edit sshd_config to disable password logins, and restart sshd. That whole process takes about two minutes, and then it's finished for the lifetime of the machine.

    --
    Dewey, what part of this looks like authorities should be involved?
  79. prevention by Anonymous Coward · · Score: 0

    we utliize a Network IPS to identify these and reset the connection to anyone attempting to utilize an administrative/common account name.
    It then resets and continues to reset their connection for several minutes.

    With SSH, it just watches for multiple incoming connections over a certain time-frame/rate that we set and then blocks those.

  80. The much longer question. by dbIII · · Score: 1

    Are you suggesting there are problems with setting up a spare dinosaur of a machine to ninja pirate terrorist child porn?

  81. SSH HoneyPots have many benefits. by dweller_below · · Score: 2

    HoneyPots can be an important layer. But you need the other layers. We use the following layers to protect SSH (https://it.wiki.usu.edu/ssh_description )

    1.) The firewall limits the vulnerable scope of SSH to a few trusted hosts.
    2.) The firewall can also be used to prevent credential guessing by rate-limiting connections to the SSH port.
    3.) The SSH Port is treated as a shared secret. Only interesting, targeted attacks find the SSH server.
    4.) The SSH server should not allow known usernames including root. The attacker must find a username.
    5.) The admin is trained to create good passwords for his usernames.
    6.) SSH users are taught to verify the identity of their systems when they first connect.
    7.) System admins must regularly review the activity of their SSH servers.
    8) Security monitors all SSH connections, including ones on non-standard ports. We follow up on connections that seem interesting.
    9.) USU has SSH HoneyPots that help us respond to SSH attack.

    SSH HoneyPots give us several benefits:

    1) They make it easy to automate blocking SSH attackers, with virtually no chance of false positives. Some patterns of attack are designed to bypass Fail2ban, but the HoneyPots have to problem handling them.

    2) We notify remote ISPs (and remote managers) that they have attacking systems. This is surprisingly effective. When we started (6 years ago) less than 1 notify in 8 seemed to have any effect. Now about 1/2 of the notifications seem to be have an effect. And remember, virtually every one of those attacking computers belongs to an innocent victim. Notification helps them, and it improves the overall security of the internet. We have also confirmed that notifications drive away some attackers.

    3) We collect and analyze guessed credentials.
    - If they meet our complexity requirements, they are added to our central black-list.
    - Patterns of credentials reveal patterns of attack and patterns of attackers. It's a Heisenberg thing. An attacker both changes the target, and reveals information about himself. Password guessing reveals a lot of information. Virtually every attack has been a unique combination of credentials. You can do cluster analysis against the combinations. You can find relationships between attacks and IPs. You can track how these relationships change over time. You can correlate this information with your other intelligence. The FBI came to us and asked about some attacking IPs. Almost all of them had hit our SSH HoneyPots. We were able to pass all this intelligence back to them.

    Our SSH Honeypots (and several other SSH servers) now have the following banner:

    ---
    USU tracks internet abuse. We have SSH honeypots that automate
    the process of detection, notification, and blocking. These
    honeypots also collect credentials and analyze them.

    If this system is a honeypot, your access will be reported as abuse.
    Your credentials will be logged. Your IP address will be blocked.

    If you believe that your access has been misidentified as abuse,
    please contact USU IT Security at security@usu.edu or 435-797-1804.
    ---

    Miles

  82. Here's the irony by dbIII · · Score: 2

    People who worry about computer security are forbidding the clients of my company from installing software on their MS Windows computers. That means they cannot install the software to do SFTP on their computers - so in the name of security they are using plain old vanilla FTP! For as long as this stupid situation persists I'll be using FTP. The alternatives the clients can actually use are stupid web based FTP done badly ideas like those idiots that set up a system where a password change wouldn't keep people out.
    I think I'll be hosting it until we either get some SFTP client that becomes as ubiquitous as winzip or until Microsoft bundle one in.
    There's a lot of clunky web based FTP front ends out there but nothing I've seen that does things well with uploads doing https all the way and leaving FTP out of it completely.

    1. Re:Here's the irony by RogerWilco · · Score: 1

      Someone suggested elsewhere in this thread to use WebDAV, if people need to upload stuff from Windows computers where you can't install a sFTP client, as that does work out of the box and allows secure login. Might be an idea for you as well?

      --
      RogerWilco the Adventurous Janitor
    2. Re:Here's the irony by dbIII · · Score: 1

      Looks like it will work but makes FTP and SFTP seem very easy in comparison.

  83. Dionaea or Nepenthes by giminy · · Score: 1

    Dionaea has a nice FTP honeypot. It will even let bad guys (or bad automated programs) upload files. It's available here [carnivore.it].

    Be careful, of course. You want to be safe in case these attacks are automated tools doing something icky like uploading kiddie porn or illegal music to your honeypot...(I'm not sure which would be worse).

    --
    The Right Reverend K. Reid Wightman,
    1. Re:Dionaea or Nepenthes by bigrockpeltr · · Score: 1

      ok im not an expert onthis specific topic but do these bots generally try to redownload the files they uploaded? if not, you can just point the upload directory to /dev/null. In my opinion if it's a honeypot, then just the fact that they have connected or tried to means they are malicious or shouldn't be on your servers anyway.

      --
      $ unzip, strip, touch, finger, grep, mount, fsck, more, yes,fsck,fsck,fsck,umount, sleep
    2. Re:Dionaea or Nepenthes by giminy · · Score: 1

      You could probably configure it to send the files to the bitbucket, sure. A lot of times an open file server would be used to host malicious software (so some exploit says to grab its payload from ftp://yourftpserver/uploadedfile.exe). In thise case the files would be interesting for a honeypot to capture, so that they could be analyzed to see what the malicious payload is doing.

      --
      The Right Reverend K. Reid Wightman,
  84. Re:ftp sends passwords in cleartext; sftp+denyhost by Anonymous Coward · · Score: 0

    Your a bonehead! Just because you can google FTP does not mean you have a relative clue as to what you are talking about. Please give a viable (yes viable) example of how exactly your going to get a packet capture on either side's LAN or into the ISP? You can't since you don't have a clue about networks, security or faking your way through a relatively basic and frequently asked question by anyone who runs their own servers...

    Now go to Wikipedia, search for idiot, click edit and upload your pic...have a nice day ;-)

  85. Re:SFTP. It's 2011. by bedouin · · Score: 1

    The only problem is when you want to access the machine from a computer other than your own. I guess you could keep the key on a flash drive . . .

  86. Re:ftp sends passwords in cleartext; sftp+denyhost by roman_mir · · Score: 1

    Not unless you stick a ninja into it before launch.

  87. Well duh, use the iptables rate limiter by Anonymous Coward · · Score: 0

    # General new connection rate limiting for DOS and Brute Force protection
    iptables -I INPUT -p TCP -m state --state NEW -m limit --limit 30/minute --limit-burst 5 -j ACCEPT

  88. Re:SFTP. It's 2011. by Anonymous Coward · · Score: 0

    I fail to understand why using sftp makes you immune to buffer overflow

  89. Change port by zurich31 · · Score: 1

    I find most of the pests disappear when I switch out of port 21 and use a more obscure one, most ftp servers will allow this... You also need to make the necessary forwarding from your router and inform all your clients to use the new port. This does not guaranty pest-control but the obfuscation helps...

  90. Re:SFTP. It's 2011. by Anonymous Coward · · Score: 0

    Tor Linuxisos http is sufficient

  91. Re:ftp sends passwords in cleartext; sftp+denyhost by sourcerror · · Score: 1

    What if someone starts to poison the shared blacklist DB?

  92. Re:SFTP. It's 2011. by Anonymous Coward · · Score: 0

    The first (and hopefully last time) I was rooted was in '99 on a Redhat box through FTP using a buffer overflow. Since then I learned my lesson.

    ... and used OpenBSD software FTW!

  93. DOS them back? by OhioJoe · · Score: 1

    Maybe we can form an anonymous-esque group dedicated to DOS'ing (or worse if possible) IP's known to sweep numerous hosts and ports (i.e., each have our own servers listening for the same type of requests). If nothing else, at least knock them down for a while, each time they pop up on the radar.

    Won't be effective against blind servers, and on second thought, we don't want to DOS blind servers anyway. :(

    --
    "Artificial Intelligence usually beats real stupidity."
  94. Report them by farnsaw · · Score: 1

    I know that much of the world doesn't care but many of these attacks come from compromised servers. I scripted to automatically do a whois on the ip and construct an email to the abuse address with all pertinent log info included. this gets saved to a file and a report generated. I check the report once a month and run another script which sends the emails. I regularly get responses from companies like Amazon letting me know they are tracking them. usually it is a hosting service server and te client didn't lock down the machine, but i have had a few unnamed companies discover their own servers were compromised. you have to fight back people.

    --
    "Computer Scientists can count to 1024 on their fingers" (non-mutant, non-mutilatated, human computer scientists)
  95. Re:ftp sends passwords in cleartext; sftp+denyhost by Combatso · · Score: 1

    I would like a copy of your supersonic tricycle plans please.

  96. SSH is forbidden here by Anonymous Coward · · Score: 0

    My employer blocks ssh as a "VPN protocol".
    FTP is fine though.

    1. Re:SSH is forbidden here by wimvds · · Score: 1

      Run an SSH daemon on port 443, use ntlmaps to create a local proxy and route it through your proxy at work. Guess what happens? (Well, it should work if they don't actually use an application layer filter anyway :p).

  97. What about firewalls? by Anonymous Coward · · Score: 0

    I'm not a professional server admin, but what about using a firewall to only allow whitelisted IP addresses to connect? I've instructed the tech support guys at the datacenter that I'm using to configure a firewall that only allows local access and three particular static IP addresses to connect via ftp or ssh. I think I'm safe, but since no one else has mentioned that solution now I'm worried that I'm missing something obvious... but my sites haven't been tampered with and my server seems ok so far... is my solution secure?

  98. Re:SFTP. It's 2011. by Just+Some+Guy · · Score: 1

    I went through the trouble of setting up one-time passwords on a couple of my hosts. I carry a little printout in my wallet and scratch off passwords as I use them. More commonly, I use an SSH client on my iPhone that gets me into my home server, then branch out from there.

    --
    Dewey, what part of this looks like authorities should be involved?
  99. Honeyd and non-standard port by corychristison · · Score: 1

    Switch your real FTP server to a random, non-standard port.

    Set up Honeyd on port 21: http://www.honeyd.org/

  100. Why do people still use FTP? by Anonymous Coward · · Score: 0

    Seriously, people stopped using telnet years ago as the risks were well known, yet people still transmit their username and password (often the same as their normal account login) across the net in clear text. There are lots of alternatives to FTP - especially for developers (STFP, SCP, SVN, GIT, a web-based interface - whatever)

    As others mentioned, fail2ban is a great tool to severely limit brute-force attempts in the event you are exposing any authentication service to the internet.

  101. VPNs by Gyorg_Lavode · · Score: 1

    I would personally consider setting up a simple VPN. Anyone that needs to use the server can VPN into a small LAN first and then connection. On the other side, you can nat 21 and 22 off to a different computer. Run honeyd on that computer and simply capture everything to 21 and 22. it'd take more work to actually do something with what you capture, but you'll have some fun stuff to look at every once in a while.

    --
    I do security
  102. Re: whossh by Coren22 · · Score: 1

    I much prefer our 440v 3 phase for a nice boom.

    --
    APK likes to ask for responses to the same things over and over. Maybe he just likes the responses?
  103. Re:SFTP. It's 2011. by bigrockpeltr · · Score: 2

    Sorry but as far as i remember Filezilla server does not do SFTP only FTPS(implicit and explicit) as secure connections.
    http://en.wikipedia.org/wiki/File_Transfer_Protocol#Secure_FTP

    Although the end result is the same the process is different. Its like watering your garden with a supermodel, you can fill a watering can or use your hose but the end result is the same... your pants will be wet.

    --
    $ unzip, strip, touch, finger, grep, mount, fsck, more, yes,fsck,fsck,fsck,umount, sleep
  104. Just be careful by zhub · · Score: 1

    Can you be absolutely sure that the organization that you're reporting the abuse to isn't the same as the organization that's probing you to begin with. People have been known to try that little trick. Sending them an e-mail may mark you as a live target ?

  105. Joel Julio vs Anges Adjaho Live by sports365 · · Score: 0

    Joel Julio vs Anges Adjaho Live Streaming Video Sopcast Online TV Link Here Joel Julio vs Anges Adjaho Live Date: 20th May welterweights Enjoy This Live Game Here Welcome to everyone to watch this exciting PPV Boxing Match between Joel Julio vs Anges Adjaho. The Game is Scheduled on Friday, 20th May. So, Watch This PPV Boxing Game via This Sports Channel Site. Catch The Game Here

  106. Re:SFTP. It's 2011. by bedouin · · Score: 1

    Thanks. I've been procrastinating on this for years and finally did it.

  107. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion