Slashdot Mirror


Ask Slashdot: Where To Report Script Kiddies and Other System Attacks?

First time accepted submitter tomscott writes "So I've been using using Linux for over ten years now and I'm sure like most Linux users I've got SSH running on my box and port 22 open on my cable modem so that I can access my system no matter where I am. Over the years I've seen people try to gain access to my system but — knock on wood — I've never had a breach. What I am wondering: Is there a website where I can report these attempts and even supply the details of where the break-in attempt originated from?" The FBI is interested, but probably only if you've actually suffered a loss.

241 comments

  1. Not like most linux users! by Bill,+Shooter+of+Bul · · Score: 3, Informative

    I have a vpn like most sane people. Leaving port 22 open is just asking for abuse.

    --
    Well.. maybe. Or Maybe not. But Definitely not sort of.
    1. Re:Not like most linux users! by Anonymous Coward · · Score: 5, Insightful

      And which protocol/port does your VPN listen on?
      Because that's just asking for abuse...

      Captcha: insults

    2. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Leaving your computer on and plugged in to a network connection is just asking for abuse.

    3. Re:Not like most linux users! by Bill,+Shooter+of+Bul · · Score: 4, Insightful

      Wouldn't you like to know...

      Seriously, don't use the default port for any service you don't have to. It will drastically drop the number of attempts. Most kiddes out there seemingly don't know about more sophisticated scripts that can identify services on non default ports.

      --
      Well.. maybe. Or Maybe not. But Definitely not sort of.
    4. Re:Not like most linux users! by Anonymous Coward · · Score: 1

      I have SSH running, but it isn't on port 22. I see almost zero attack attempts

    5. Re:Not like most linux users! by Anonymous Coward · · Score: 4, Funny

      Yes, security through obscurity is the best method.

    6. Re:Not like most linux users! by fearlezz · · Score: 3, Insightful

      Run OpenVPN on any udp port using the tls-auth option to drop unsigned packages. Use iptables to drop all other 65534 ports. Good luck finding out which port is the VPN server.

      --
      .sig: No such file or directory
    7. Re:Not like most linux users! by Anonymous Coward · · Score: 4, Informative

      I have a vpn like most sane people. Leaving port 22 open is just asking for abuse.

      Just configure SSHD to accept only SSH Keys (no password login) and 99% of the problem is solved.

    8. Re:Not like most linux users! by TheLink · · Score: 5, Informative

      Most kiddes out there seemingly don't know about more sophisticated scripts that can identify services on non default ports.

      I doubt they care, there are enough exploitable targets. The automated scripts scan _many_ IPs for a few ports. Having them scan more ports would take longer and slow the spread.

      Despite what many say, there is some security through obscurity. It's a case of only having to outrun your neighbour and not the bear.

      The other advantage is if you use an obscure port, if someone does try it and brute force etc, you can consider it more seriously - someone might actually be trying to hack you specifically.

      --
    9. Re:Not like most linux users! by localman57 · · Score: 4, Insightful

      Obscurity can be a layer in layered security plan. As long as the other layers aren't compromised by it in any way, it can't do any harm, and could do some good. But the other layers need to be trusted on their own. A good safe can withstand an attack for a rated amount of time even if the theives have the blueprints of the safe. But that doesn't mean you don't guard the blueprints to the safe.

    10. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      I've had no issues with port 22 being open. In order to stop the kiddies I use denyhosts.

      After 5 failed attempts at guessing a user or 5 different users passwords, the IP is banned. I was banning 6-8 an hour originally, I get around 1 a day now.

      Fail2ban is another alternative.

    11. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      I hear ya, but every layer of security is worth something. If I had to stand in front of a flamethrower, I'd want every layer of protection I could get, no matter how flimsy.

    12. Re:Not like most linux users! by gandhi_2 · · Score: 1

      Ok, how how about moving whatever service you are using to an obscure port, then using iptables to log all attempts at the default port.

      The question remains the same, your answer isn't helpful.

    13. Re:Not like most linux users! by Em+Adespoton · · Score: 2

      And which protocol/port does your VPN listen on?
      Because that's just asking for abuse...

      Captcha: insults

      I get the best of both worlds: my ssh tunnel listens on port 1723 :) It requires a key-based login and doesn't announce.

      My firewall still logs connection attempts on port 22 however; they just don't get anywhere (I redirect port 22 to an internal computer on a port that isn't listening, so the router gets all the information, but the attacker gets zilch -- this allows me to easily set up a honeypot from time to time when I'm curious what the script kiddies/bots are really after).

    14. Re:Not like most linux users! by Githaron · · Score: 1, Informative

      Also, port knocking can help defeat rudimentary scans for open ports.

    15. Re:Not like most linux users! by Desler · · Score: 5, Interesting

      Most idiots just parrot the 'security through obscurity' thinking it's some compelling argument when it's really not. If the basis of your security is entirely reliant on the obscurity of your algorithms, etc. being private then it is bad. But using some level of secrecy as a first line of defense can be quite useful in preventing attacks.

      Even Bruce Schneier does not take the black-and-white stance that the Internet 'experts' do. He is actually quite pragmatic about acknowledging that there is a continuum of secrecy requirements based on the system at hand, but mentions that relying too much on secrecy makes the security of the system more fragile. These Internet 'experts' need to actual read what people like Bruce say rather than just repeating stupid sound bite pieces.

    16. Re:Not like most linux users! by SecurityGuy · · Score: 4, Insightful

      Despite what many say, there is some security through obscurity. It's a case of only having to outrun your neighbour and not the bear.

      No, it's not at all alike because the bear is going to eat one of you: whichever one it catches first. The script isn't going to compromise one box, it's going to compromise every single one that's vulnerable to whatever exploit(s) it's using in the IP ranges it's scanning.

      To put it another way, it's not the bullet with your name on it you have to worry about. It's the 20,000 or so odd rounds labelled "Occupant".

    17. Re:Not like most linux users! by EvanED · · Score: 1

      No, but defense in depth is.

    18. Re:Not like most linux users! by Desler · · Score: 4, Funny

      Nuh uh!!! He parroted the 'security through obscurity' soundbite and automatically wins the debate!! Just like saying 'correlation is not causation' soundbite. He fucking pwned j00!!!

      On the other hand, in the real world like you mention secrecy can be a good line of defense as long as it is not the only line of defense.

    19. Re:Not like most linux users! by MrSenile · · Score: 3, Interesting

      Leaving port 22 open is just asking for abuse.

      Not really, no. If you lock down SSH sufficiently, then it's pretty much bulletproof.

      1. Lock down specific users@ip to be able to ssh in.
      2. Enforce privilege separation and all the other paranoid protection in the sshd_config.
      3. Put in some type of brute force protection like fail2ban.
      4. Enforce non-dictionary passwords.


      Problem solved.

    20. Re:Not like most linux users! by Spazmania · · Score: 1

      Security through obscurity is "necessary but not sufficient" in many real world defense-in-depth strategies. It's one layer in a strategy that is adequately secure without it but more secure with it.

      In OP's case, putting ssh on a different port reduces his effective attack surface. Most attackers don't even find the port let alone send ssh protocol packets, reducing the probability of breach.

      --
      Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
    21. Re:Not like most linux users! by skids · · Score: 1

      This can also be rigged up in iptables using an ipset/recent/etc. Works pretty well, and keeps less state.

    22. Re:Not like most linux users! by Desler · · Score: 3, Insightful

      In Bruce Schneier's own words:

      Just because security does not require something be kept secret, it doesn't mean that it is automatically smart to publicize it.

      You might want to actually read and digest the first article on that page before spouting off again.

    23. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Fail2ban takes care of this. No bruteforcing when all they get is 3 tries followed by a 5 minute pause. No need to make ssh harder for myself, having to remember an obscure port, take care it won't collide with anything else in the future...

    24. Re:Not like most linux users! by Spazmania · · Score: 3, Informative

      Port knocking is less useful now that many corporate environments restrict outbound tcp ports.

      --
      Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
    25. Re:Not like most linux users! by Desler · · Score: 1

      Yeah but moving to another port is an easy and smple way to block most attackers without compromising the security of the system.

    26. Re:Not like most linux users! by Pieroxy · · Score: 1

      I have also disabled password based logins but for one user. You never know when you're going to need to get in without a key at hand.

      This user has a 18chars password that is nowhere near containing anything in any dictionary I know of. Punctuation, digits, letters, etc.

    27. Re:Not like most linux users! by dmomo · · Score: 3, Insightful

      This. I mean, you could argue that even passwords are, in a way, security through obscurity.

    28. Re:Not like most linux users! by Jane+Q.+Public · · Score: 0

      "But using some level of secrecy as a first line of defense can be quite useful in preventing casual attacks."

      There, fixed that for you.

      Security through obscurity is useful in preventing casual, naive attacks. Nothing more. In the same way that lock on your front door (unless you have one of a few good, expensive ones) prevents casual, naive attacks... but hardly slows a professional down.

    29. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Nope. Defeating port knocking is easy - just knock all the ports a few times and it opens up. (Alternatively, if your knock scheme demands a specific order, I can keep you out indefinitely by knocking some wrong port continously.)

      And even when it works, the obscurity is only equivalent to a few more characters in the password.

      Have a nice long password for whatever services you offer - and lock out anyone who tries "too many" times with wrong passwords. Keeps the bruteforcers out easily.

      And finally, don't have a policy of frequent password changes. It is the biggest security risk there is, because it becomes impossible to have long difficult passwords. That is easy if you can remember one password for many years - and hopeless if you change it every month. And no, every third month is not a "compromise" here . . .

    30. Re:Not like most linux users! by Anonymous Coward · · Score: 3, Informative

      "t's a case of only having to outrun your neighbour and not the bear."

      Grizzlies alone can run up to an hour at 30MPH, no way in hell any human outrun a bear. Just needed to point that one out.

    31. Re:Not like most linux users! by tnk1 · · Score: 4, Insightful

      No one is owned until Godwin comes out. Only Hitler would say differently.

      And yes, "security through obscurity" is a layer in a sound defensive strategy. If no one knows you are there, they don't know to start trying to attack you. If anything, it shrinks the size of your logs.

      Unfortunately, if an attacker is looking for you and already knows your service is there, you'd better have a more reliable defensive plan available.

    32. Re:Not like most linux users! by Desler · · Score: 5, Interesting

      Duh? In this case, since he is being port scanned by what is most likely Chinese script kiddies moving the port will stop probably 99% of them. No one said such things will prevent any possible intrusion, but it's an easy and cheap way to prevent the vast majority and causes no compromising to the underlying system. For the determined people who get arou d that you layer on top other defenses such as ony allowing a certain amount of attempts before locking out/banning, only allowing retries after some certain length of time, etc. If all these fail, you still haven't compromised the underlying system but you've severely limited the amount of people who would be successful in attacking you.

    33. Re:Not like most linux users! by Desler · · Score: 1

      Unfortunately, if an attacker is looking for you and already knows your service is there, you'd better have a more reliable defensive plan available.

      Which is why your system should always involve defense in depth.

    34. Re:Not like most linux users! by mcrbids · · Score: 1

      I wish I could mod you +1 more!

      So often, people say "security through obscurity" as though it were somehow diseased. True, you should *never* rely on security through obscurity, but it *is* a form of a secret, and secrets are fundamental to the concept of security. Granted, you should never count on this as your ONLY form of security, but using non-standard ports for important services is a useful first step to mitigating security vulnerability as part of a continued process to minimize your security footprint.

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    35. Re:Not like most linux users! by Desler · · Score: 1

      As a very smart person once said:

      Just because security does not require that something be kept secret, it doesn't mean that it is automatically smart to publicize it.

    36. Re:Not like most linux users! by Midnight_Falcon · · Score: 4, Informative
      fail2ban + SSH-key only access FTW

      Why?

      Fail2ban will block these bots (usually, ssh bruteforce attacks are the result of worms rather than actual script kiddies manually running them) from sshing into your system after a few failed attempts.
      SSH-key only access will increase security by an order of magnitude. A bruteforce against a public-key only SSH server is untenable. Their script likely doesn't even support ssh keys and will just get kicked out with a protocol mismatch error. These attempts are meant to get in via password authentication, default credentials or weak passwords.

      If you have SSH on any port exposed to the internet w/o fail2ban and/or ssh-key only access, you're asking for trouble. I've seen it happen on numbers of boxes with strong passwords for users -- eventually, they get in...

    37. Re:Not like most linux users! by Desler · · Score: 0

      And it was my words, too. You basically were nitpicking some minor word choice to try to claim I was wrong in my statement.

    38. Re:Not like most linux users! by spazdor · · Score: 1

      Most kiddes out there seemingly don't know about more sophisticated scripts that can identify services on non default ports.

      Or they're scanning entire class-B's at a time, and don't find your network interesting enough to slow down their scan to make an exhaustive search for exploitable services, on the reasoning that anyone clever enough to put them on non-standard ports is probably also updating your packages on a somewhat regular schedule?

      If there's any particular reason to want to compromise your box instead of someone else's then perhaps a full portscan and protocol probe is in order, but doing that to every host you scan will probably net them fewer pwnings per hour than casting a wider net for RFC-compliant services.

      --
      DRM: Terminator crops for your mind!
    39. Re:Not like most linux users! by X0563511 · · Score: 3, Informative

      Put something like denyhosts or fail2ban on top of that and you're even more safe.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    40. Re:Not like most linux users! by Anonymous Coward · · Score: 1

      A good safe can withstand an attack for a rated amount of time even if the theives have the blueprints of the safe. But that doesn't mean you don't guard the blueprints to the safe.

      Not to mention the fail deadly mechanisms like glass relockers, tension cables, solenoid locks, etc. We had a safe fail and the lock guys gave us an estimate based on the breakability of the contents (and what they would warrant as being unbroken at the end of the process) and the amount of time and care that would require. Fastest was taking circular saws and beating the shit out of the safe until it opened and was just over the rating of the safe. Middle was drilling the safe and trying to reset the relocker and tension system and opening the safe with the combo (a few hours). Slowest was removing as much of the case as possible with saws and then a diamond blade to the bolts, one by one, time was a couple of days.

      Long story, but my point was, one saw or drill in the wrong place and that rated time job, just turned into a multi-day terror fest.

    41. Re:Not like most linux users! by antdude · · Score: 1

      I use port 22 because some places block that port and don't want have to go to another box, or set up proxies. I do use DenyHosts to block attackers after three failed attempts.

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    42. Re:Not like most linux users! by X0563511 · · Score: 1

      Denyhosts does it via /etc/hosts.deny though - leaving the firewall alone and squishing them with tcpwrappers.

      If you've got a cumbersome iptables, this may be more performance friendly than constantly adding/removing rules.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    43. Re:Not like most linux users! by theshowmecanuck · · Score: 2

      Yeah black is the new white and 'security through obscurity' is the new Godwin's law.

      --
      -- I ignore anonymous replies to my comments and postings.
    44. Re:Not like most linux users! by X0563511 · · Score: 1

      All this does is discourage the lower-level bots, and decent passwords thwart those. A directed attacker will still find it, and is more of a threat anyways.

      It's not a bad idea - just don't rely on it.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    45. Re:Not like most linux users! by X0563511 · · Score: 1

      Fail2ban is quite flexible - but I prefer denyhosts myself.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    46. Re:Not like most linux users! by mitcheli · · Score: 1

      Not really, no. If you lock down SSH sufficiently, then it's pretty much bulletproof.

      Until the next buffer overflow exploit comes into the picture...

      --
      Select from tblFriends where interesting >= 4;
    47. Re:Not like most linux users! by sl4shd0rk · · Score: 1

      It will drastically drop the number of attempts.

      Although this is a nice practice to keep your service off-the-beaten-path, it is still wise to monitor the connection logs and be able to recognize when an attack is happening. Too many people run their services on 5 digit ports expecting them to be "hidden" and it just doesn't work that way. Oftentimes, attackers will log connection banners and log them, only to come back later with a known exploit or 0-day. In this case it doesn't matter what port you listen on.

      Attackers have all the time in the world to scan a full port range and sometimes they do it over the course of a weeks and even months in order to try and hide thier connection attempts or bypass tarpit measures. If you can, configure access to deny all traffic except the IP address you will be coming from. It's not always possible, but reduces attack vectors quite considerably.

      As far as reporting them goes, I'd be surprised if that went anywhere until there is some kind of a dollar figure drawn up on losses due to a compromise.

      --
      Join the Slashcott! Feb 10 thru Feb 17!
    48. Re:Not like most linux users! by Lehk228 · · Score: 1

      Sure they know about them, but unless you in particular are a high profile target there is far more to be had checking 1 port on 65535 machines than checking every port on one machine just in case the owner is simultaniously smart enough to use a non default port and dumb enough to use '12345', 'password', or 'penis' as a password

      --
      Snowden and Manning are heroes.
    49. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      no biggie.. look up 'recent' module.. iptables.. 3 his in a min and dropped.. effective brute force defense

    50. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      In this case, since he is being port scanned by what is most likely Chinese script kiddies moving the port will stop probably 99% of them.

      To what end? What does this *actually* accomplish?

    51. Re:Not like most linux users! by VortexCortex · · Score: 1

      I have a vpn like most sane people.

      Does your VPN have PPTP enabled, like most sane VPNs? FYI, Sanity is relative.
      I had my doubts as to the security after I read MS's shitty MS-CHAP2 protocol, and now it's completely broken. If I have a question like, "Wait, how secure is that really?" I don't use said "security".

      If you don't understand cryptography at an intimate level you're just making guesses as to what's secure or not. You might as well just have port 22 open, it's not like most folks even understand how their VPN or SSH security works. Can you really determine yourself why one is better than the other in terms of security? If not, then you're relying on someone else's claims for security...

      Protip: All security is provided via obscurity. One bit of obscurity is insecure. 256 bits of security is pretty secure. 4096 bits of security is really secure. (currently)

    52. Re:Not like most linux users! by Anonymous Coward · · Score: 0


      As long as the other layers aren't compromised by it in any way, it can't do any harm, and could do some good.

      It can do harm in terms of making it more difficult for legit users to get in. There's now another detail (the port number) to have to remember. So it's not really costless.

      The added security is really marginal. It's about the equivalent of putting up black strips of paper in your windows that from a distance look like metal bars. It might keep away some people that wouldn't have been able to break in anyway, but for anyone with any small amount of actual skills it's a complete joke.

      The problem is that too many people think changing the port number is some really s0up3r Gr3aT idea, like say using 1s and 0s for i and o in a password. They then go on as if anyone who doesn't do this is insecure. Hardly. It will quite down your log files, that might be worth the small inconvenience of having to remember and communicate the port number.

    53. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      What good will it do?

    54. Re:Not like most linux users! by Jonner · · Score: 1

      I have a vpn like most sane people. Leaving port 22 open is just asking for abuse.

      I think actively blocking attackers with something like fail2ban is at least as good as an additional standard VPN or using non standard ports.

    55. Re:Not like most linux users! by Impy+the+Impiuos+Imp · · Score: 1

      So it's like being in prison and dropping your soap and being unable to grab the damned thing...just keeps slipping and squirting away...

      Wait, that analogy is flawed. You might not notice it if your computer is abused.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    56. Re:Not like most linux users! by GNUALMAFUERTE · · Score: 1

      That is preposterous. You are implying that a VPN is more secure than SSH ... and considering the best way to setup a vpn-like environment is to tunnel it over SSH, your argument is obviously invalid. Pay attention: SSH is the most secure service to have ever existed, and statistics are on my side. If you want to avoid all the unwanted traffic from scripts testing default passwords, switch ssh to another port.

      BTW: VPNs suck. If your setup requires a VPN, then it's time to rethink your architecture.

      --
      WTF am I doing replying to an AC at 5 A.M on a Friday night?
    57. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      There is no security through obscurity.

      What you are suggesting (using a random point) is adding several bits of entropy to the information needed to log in as you.

      This is secure for the same reason that using a longer password is more secure.

      I don't recommend that people mistake it for "security through obscurity" and start a slippery slope campaign to justify this false approach.

    58. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Deflect automated scanning.

    59. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      And you think moving SSH to another port will stop a decent port scan from finding it? Seriously. You do realize that a decent port scanner will also attempt to negotiate a connection with the server, not just look for an open port. An open port tells you nothing regarding the service at the other end. If you can get the service to talk back to you then you've won half the battle. Any port scanner worth it's salt is going to send SSH, SMTP, HTTP, etc headers to the server to try to discover what service is on the other end.

      Obfuscation is NEVER a substitute for security. It's not the script kiddies I worry about, it's the criminals with deep pockets who can afford to buy tools such as the one I mentioned. Those are the guys that will make my life miserable, not some stupid Chinese hacker (and what's with all the hackers being Chinese these days? before it was the Russians, now the Chinese?).

      It's better to use a proxy like NGINX and running everything in a jail (chroot). That's true security and you can run your services on public ports without worrying about it. You can also set up firewall rules to prevent bots from hammering your authentication servers (and also prevent DDOS at the filter level).

      Learn some real security or don't bother at all. It's an all or nothing boat. Would you wear a bullet proof vest that came with a hidden area that doesn't have protection? Of course not and you should treat your security the same.

    60. Re:Not like most linux users! by skids · · Score: 1

      If you've got a cumbersome iptables, this may be more performance friendly than constantly adding/removing rules.

      That's why an ipset is used, so you don't have to alter the rule table.

    61. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      If you want to cut the argument of the "security through obscurity is bad" drones, then use another soundbite they cant argue with:
      Defense in depth -

      Something like this:
      "Not only do we take all best practice steps, we also obscure everything at every step so even knowledgeable / black-hat crackers have a tough time getting past platform-level vulnerabilities that may be present or crop up in the system"

    62. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      I'm sorry, but I don't really understand how that's helpful.

    63. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Well, fail2ban won't stop someone who compromises a terminal (mobile or laptop, most likely) with ssh keys on it and uses them to log in -- because they succeed first try.

      And it won't stop someone guessing random ssh keys, because they're already stopped.

      So against what attack are you "even more safe"?

    64. Re:Not like most linux users! by Zero__Kelvin · · Score: 1

      "This. I mean, you could argue that even passwords are, in a way, security through obscurity."

      No. You couldn't. Then again, running your service on a non-standard port isn't security through obscurity either.

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    65. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Just moving ssh from 22 to 23 has removed 99.99% of ssh attempts.

    66. Re:Not like most linux users! by JustOK · · Score: 2, Informative

      Security thru absurdity is just crazy enough to work

      --
      rewriting history since 2109
    67. Re:Not like most linux users! by bobbied · · Score: 1

      Yes, security through obscurity is the best method.

      This old argument... Really?

      Actually the best security method is monitoring the system. Any "security" method you use is pointless if you don't actually monitor the system and detect folks trying to break in. Obscurity just gives you a lower cross section for exploits by requiring that the hacker work harder/longer to figure out how to get in, but if you don't catch them if they make it, you are done.

      --
      "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
    68. Re:Not like most linux users! by Spiridios · · Score: 2

      All this does is discourage the lower-level bots, and decent passwords thwart those. A directed attacker will still find it, and is more of a threat anyways.

      It's not a bad idea - just don't rely on it.

      Actually it does more than discourage lower-level bots - it keeps your logs clear enough so that when you do get something in your logs you can be pretty sure it's not a bot.

    69. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      A few additional characters lead to exponential growth of search space. And you can't keep me out indefinitely by knocking at random ports because your packets (most likely) come from a different address.

      So I'll use port knocker AND a nice long password, TYVM.

      Please, educate yourself on the subject before commenting.

    70. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      All security is provided via obscurity.

      Consider a typical bathroom stall, with a lock designed to secure the area against accidental/casual intrusion. There is no secret. There is no obscurity.

      Think of all the one-way door locks in the world. Now think of how stupid your sound-bite sounds.

    71. Re:Not like most linux users! by DarwinSurvivor · · Score: 1

      Maybe not much "safer" (unless a weakness in the key algorithm is found), but it will reduce the bandwidth they consume by cutting them off before TCP even has a chance to perform a handshake.

    72. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Uhh, run openvpn on a non-standard udp port and I bet most will never even see it. Further run unpriveleged, chroot'd, require rsa cert/key, tls auth key, and user credentials. There's a whole section about hardening it. http://openvpn.net/index.php/open-source/documentation/howto.html#security

      Anything can be compromised given time and a discovered vulnerability, but I would bet this would be security enough for most people...

    73. Re:Not like most linux users! by DarwinSurvivor · · Score: 1

      1. Lock down specific users@ip to be able to ssh in.
      2. Enforce privilege separation and all the other paranoid protection in the sshd_config.
      3. Put in some type of brute force protection like fail2ban.
      4. Disable password login.

      Problem solved.

      FTFY

    74. Re:Not like most linux users! by OdinOdin_ · · Score: 1

      Huh port knocking is per tuple (per source IP and port and destination IP and port). You can bang the ports all you want but you need to do it from my source IP and port number at the time I am doing it, in order to interfere with my port knocking session. Good luck with that!

      Move your SSH to another port, Disable Password authentication (accept only public key auth) and Restrict the valid usernames to a short list (ensuring to remove root). Even if they do find the open port it, it won't accept a password from them to brute force. Want to brute force a public key. Good luck with that!

    75. Re:Not like most linux users! by OdinOdin_ · · Score: 1

      Your ssh keys should have the private keys protected with a local password to armor them from this attack vector.

      When you login with an SSH key your local system should prompt you for a password to unlock (decrypt) the private key part. This password never leaves the local device you are using.

      This gives you a nice buffer of time between knowing the equipment has been lost and revoking the authorization on the server side. Bruting the local SSH private key password is usually hard work (in CPU time) because the implementors of such systems think more about security than performance. Where as the salted and hashed password of a website system usuauly has performance concerns with having to manage passwords of many users at the same time.

      IMHO All login systems of remote systems should take this approach.

      So no it doesn't have to succeed first try if you set it up correctly and are not lazy about protecting the private key.

    76. Re:Not like most linux users! by OdinOdin_ · · Score: 1

      I think you failed at the important matters:

      1) Moving the port is worthwhile (don't be the low hanging fruit for bots to take easy shots at).
      2) Disable the ability to use "Password Authentication" completly, insist on public/private key system.
      3) Use an AllowedUsers list with the minimum usernames in the list (the super user should not be in the list, use 'su/sudo')

      I don't know of many scenarios where your point 1 is useful, maybe between an office and some online systems it is possible to lock down to IPs, but then why don't you just setup a VPN network and use that if things will always be fixed/rigid, Having SSH on public facing port maybe because you don't know the IP and/or you need an assured way of getting into an important system from anywhere at anytime with the least number of hoops (i.e. your VPN network might be broken, your fixed IPs might not have internet connectivity, etc..).
      Your point 2 is valid but standard in many years (6+ on multiple distros I have used), this advice may have been useful when the feature was first created.
      Point 3 is moot, no one brutes a 2048bit key pair.
      Point 4 is moot due non use of passwords.

    77. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Pay attention: SSH is the most secure service to have ever existed, and statistics are on my side.

      Cite or you're a cunt. Seriously.

    78. Re:Not like most linux users! by hawguy · · Score: 3, Insightful

      Nope. Defeating port knocking is easy - just knock all the ports a few times and it opens up. (Alternatively, if your knock scheme demands a specific order, I can keep you out indefinitely by knocking some wrong port continously.)

      And even when it works, the obscurity is only equivalent to a few more characters in the password.

      Since there are 2^16 ports, each port is equivalent to 16 bits of password entropy (depending on how long it takes to test a port versus test a password).

      If it takes 3 knocks to get in (i.e. knock 2 ports, then find the open port for the service you're looking for), that's equivalent to 48 bits of password entropy, or around 8 additional alphanumeric password characters.

      Lock out an IP from unlocking the port after a few unsuccessful knocks and you pretty much eliminate any chance of brute force attack. You can try to attack from different IP addresses through a botnet or spoofing, but with 48 bits of entropy and less than 32 bits of IPv4 addressess to choose from, there aren't enough IP's to brute force.

    79. Re:Not like most linux users! by GNUALMAFUERTE · · Score: 1

      Log in or you are a cunt. Seriously.

      --
      WTF am I doing replying to an AC at 5 A.M on a Friday night?
    80. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      I have no idea how you can claim 'security through obscurity' isn't a compelling argument.

      It's the only real security protection possible. It's the foundation of passwords or any authentication mechanism.

      obscurity/bskyoorit/
      Noun:
              The state of being unknown, inconspicuous, or unimportant.
              The quality of being difficult to understand.

    81. Re:Not like most linux users! by Eil · · Score: 1

      Most idiots just parrot the 'security through obscurity' thinking it's some compelling argument when it's really not. If the basis of your security is entirely reliant on the obscurity of your algorithms, etc. being private then it is bad. But using some level of secrecy as a first line of defense can be quite useful in preventing attacks.

      My favorite analogy so far is: good security is layered like an onion. So, changing your SSH port to something other than 22 is not going to fool an attacker who is pretty sure that you probably have an SSH daemon running on your machine. But doing so lowers your attack surface significantly against random skript kiddies and less skilled crackers. Every layer you add reduces the attack surface that much more, until the only way someone is going to break into your system is if they happen to know exactly how it's set up and happen to have a couple of 0-day vulnerabilities at their disposal.

      If you downplay all of the easy things which offer trivial security on their own but when put together, add significant security, all you're left with is a single barrier between root and the attackers. What are the chances that the barrier is perfectly bug-free and impenetrable? Even OpenBSD has shipped with security issues in the default install and that's probably the most hardened-out-of-the-box OS there is.

    82. Re:Not like most linux users! by Smallpond · · Score: 0

      Yes, security through obscurity is the best method.

      and why are you posting as AC?

    83. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      However, the bad guys are using time on their botnets to expand them, and that costs money. Scanning a few ports, then testing their exploit on you if you have a normal port for the relevant service open, is much faster than testing their exploit on all your open ports. It might be better to scan several times as many machines but miss a few. There is also the simple fact that even these trivial security measures are pretty unusual, and so anyone who has used them is more likely to be someone who takes security seriously enough to notice the problem and clean their machine, which makes exploiting them worth even less.

      Now, I haven't done the economic analysis, but as long as using obscure ports remains pretty unusual, it is probably sensible to ignore potential victims which are using them.

    84. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Right, the kiddies under 8 y/o. I used to work for a dumbass like you. Thankfully, even the ivory tower figured that one out.

    85. Re:Not like most linux users! by locopuyo · · Score: 1

      I rock a 1024 bit key for remote access to an empty machine just to see how long they try.

    86. Re:Not like most linux users! by houstonbofh · · Score: 1

      For one, it makes logs easier to read...

    87. Re:Not like most linux users! by houstonbofh · · Score: 1

      Duh? In this case, since he is being port scanned by what is most likely Chinese script kiddies moving the port will stop probably 99% of them.

      So will a small handful of blackhole routes. So will fail2ban. So will using fail2ban to create your blackhole routes.

    88. Re:Not like most linux users! by houstonbofh · · Score: 1

      this allows me to easily set up a honeypot from time to time when I'm curious what the script kiddies/bots are really after).

      Right now it only seems to be phpmyadmin... So at least misspell the link...

    89. Re:Not like most linux users! by mikael_j · · Score: 3, Insightful

      Not to mention that if you do what some people do and move services like sshd to another port you may actually create a security problem.

      If you've got sshd running on any port > 1024 then an attacker who can gain regular unprivileged user access to the system and is able to crash your sshd can replace it with his own sshd. If it's running on port 22 (since you should never "steal" a port under 1024) then the attacker needs root access to accomplish the same trick.

      Besides, it's not particularly hard for an attacker to scan a system from multiple hosts, there's a finite number of ports for you to "hide" your services on and all it takes is a bit of patience to find your "hidden" services.

      --
      Greylisting is to SMTP as NAT is to IPv4
    90. Re:Not like most linux users! by drkstr1 · · Score: 3, Insightful

      Yea, no kidding. Relying on a port number to tell you what protocol is running on it is like relying on a file extension to tell you the file type.

      --
      Fanboy Status: Apache Flex, C#, Eclipse, KDE, Pirate Party, Ron Paul, Slackware, Windows 7
    91. Re:Not like most linux users! by drkstr1 · · Score: 1

      Yes, only criminal master minds can afford tools like nmap.

      --
      Fanboy Status: Apache Flex, C#, Eclipse, KDE, Pirate Party, Ron Paul, Slackware, Windows 7
    92. Re:Not like most linux users! by Jane+Q.+Public · · Score: 1

      "And it was my words, too. You basically were nitpicking some minor word choice to try to claim I was wrong in my statement."

      No, I was differentiating, not nitpicking.

      I did not feel that you emphasized enough that security for obscurity can indeed be effective, but only for noobs or casual snoopers.

      Just my opinion. We basically agree, I was just trying to clarify the point a bit. Not to nitpick. "Fixed that for you" is often considered to be humorous on Slashdot. It wasn't an insult or an attempt to actually disagree.

    93. Re:Not like most linux users! by Jane+Q.+Public · · Score: 1

      "Yes, only criminal master minds can afford tools like nmap."

      Or BackTrack 5. Oh, so terribly hard to acquire.

    94. Re:Not like most linux users! by TheLink · · Score: 1

      As long as you outrun 20,000 or more neighbours the bear never cares about you.

      If one day everyone puts ssh ports on random spots, then to outrun them you might use port knocking or similar (there are many other ways of having your firewall know/figure your new IP - looking it up on dyndns, receiving an email, or even seeing a "signed" packet (message includes your new IP, time and random salt) ).

      But meanwhile you don't need to since most of the bears out there have enough to chomp on. If one day a bear picks on you specifically, you know it might be serious (personal or something).

      --
    95. Re:Not like most linux users! by garaged · · Score: 1

      This method will slowdown stupid attacks, those that would failbecause of password policies, etc. It is trivial to detect ssh service over any port, so dont foolyourself thinking that you are safer being uncnfortable, you will be hacked in no time if a real cracker is interested in your info.

      --
      I'm positive, don't belive me look at my karma
    96. Re:Not like most linux users! by tehcyder · · Score: 2

      "t's a case of only having to outrun your neighbour and not the bear."

      Grizzlies alone can run up to an hour at 30MPH, no way in hell any human outrun a bear. Just needed to point that one out.

      Er, the point is that if the grizzly catches your neighbur, he will presumably stop and have a bit of quality snack time, by which time you have a head start, and can find shelter, a big gun or something.

      --
      To have a right to do a thing is not at all the same as to be right in doing it
    97. Re:Not like most linux users! by Larryish · · Score: 1

      root@server8:~#apt-get install fail2ban

    98. Re:Not like most linux users! by Raenex · · Score: 1

      "Fixed that for you" is often considered to be humorous on Slashdot.

      It's a dick expression that has become popular due to Slashdot's dick community.

    99. Re:Not like most linux users! by Zero__Kelvin · · Score: 2

      Sadly, people don't seem to get that you are serious. And you are absolutely correct, of course.

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    100. Re:Not like most linux users! by ArsenneLupin · · Score: 1

      It's a case of only having to outrun your neighbour and not the bear.

      Bad idea. Once the bear has caught up with your neighbor, its chase instinct takes over, and then it runs after you.

      The best course of action is not to run at all. (but to convince your neighbor to run and thus lure it away might be a good idea...).

    101. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Hint: fail2ban, and, grow a brain.

    102. Re:Not like most linux users! by overlordofmu · · Score: 1

      Are you for or against "fixed that for you"? At first blush, I want to guess that you don't like that phrase but, if that were so your response would be so hypocritical I wasn't sure.

      Would you please clarify?

    103. Re:Not like most linux users! by overlordofmu · · Score: 1

      Is it 1234?

    104. Re:Not like most linux users! by Raenex · · Score: 1

      It's not hypocritical to call dick behavior what it is. Blunt, maybe, but not hypocritical.

    105. Re:Not like most linux users! by Jane+Q.+Public · · Score: 1

      "It's a dick expression that has become popular due to Slashdot's dick community."

      In some cases (I am not claiming this was one of them) it can be pretty humorous. But of course in order to think so, you must first have a sense of humor.

    106. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      If I had points left. Just used the rest a few posts up.

      btw, FreeBSD jails > chroot

    107. Re:Not like most linux users! by overlordofmu · · Score: 1

      I think calling people "Slashdot's dick community" is rude and in doing so, you have undermined your own argument about rude behavior.

      I find the "fixed that for you" to be a humorous and desirable part of /. discussion and feel it would be a loss if no one ever used that format to respond to posts. It can be poignant and funny when done well. It can be rude, however I rarely sense intended malice or insult when it is used.

      I do not find calling people "dick" to be a humorous or desirable part of /. discussion. I most often sense malice and insult when "dick" is used.

    108. Re:Not like most linux users! by Raenex · · Score: 1

      I think calling people "Slashdot's dick community" is rude and in doing so, you have undermined your own argument about rude behavior.

      I disagree.

      I find the "fixed that for you" to be a humorous and desirable part of /. discussion and feel it would be a loss if no one ever used that format to respond to posts.

      There's nothing humorous about putting words into somebody's mouth and condescendingly telling them "fixed that for you".

      I do not find calling people "dick" to be a humorous or desirable part of /. discussion.

      It wasn't intended to be humorous.

      I most often sense malice and insult when "dick" is used.

      Yes, that was the intent. When somebody engaged in dick behavior then pointing out such behavior is dickish is necessarily going to be disagreeable to the person receiving the message.

    109. Re:Not like most linux users! by Raenex · · Score: 1

      Anything can be funny on occasion, given the right context. However, as a general rule "fixed that for you" is a dick expression embraced by a dick community.

    110. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      You are all cunts...seriously, it's like looking in the trash can in the women's room there's so much evidence of cunts here.

    111. Re:Not like most linux users! by lsatenstein · · Score: 1

      Most idiots just parrot the 'security through obscurity' thinking it's some compelling argument when it's really not. If the basis of your security is entirely reliant on the obscurity of your algorithms, etc. being private then it is bad. But using some level of secrecy as a first line of defense can be quite useful in preventing attacks.

      Even Bruce Schneier does not take the black-and-white stance that the Internet 'experts' do. He is actually quite pragmatic about acknowledging that there is a continuum of secrecy requirements based on the system at hand, but mentions that relying too much on secrecy makes the security of the system more fragile. These Internet 'experts' need to actual read what people like Bruce say rather than just repeating stupid sound bite pieces.

      I hero worship Bruce Schneier. I read both editions of his cryptography books. What I most admire is his succinctness. A man of few words.

      --
      Leslie Satenstein Montreal Quebec Canada
    112. Re:Not like most linux users! by Douglas+Goodall · · Score: 1

      Does that mean I should change my password to i2345 ?

    113. Re:Not like most linux users! by Douglas+Goodall · · Score: 1

      Microsoft has been depending on security through obscurity for decades, and we can see where that has gotten them. Their main problem with this is they have turnover in their staff. The most interesting aspect of Microsoft's approach is that all the security announcements are the same. Each one says remote execution, and affects every version of the software involved going back decades. You would think if they were paying attention, there would be some shift after a while. I guess they have a template... Affects all previous versions of Windows, and all previous versions of Office.

    114. Re:Not like most linux users! by Douglas+Goodall · · Score: 1

      Some degree of obscurity does help because when thieves see an expensive lock, they have to decide whether it means there is something expensive inside, or that it makes sense to just move on because someone down the street has an unlocked door. I do wonder when the logs show 3,590 attempts from a single IP, why they are trying so hard, when most knob twisters stop after 6 or 8 tries.

    115. Re:Not like most linux users! by Anonymous Coward · · Score: 0

      Caveat:

      The first 1024 ports are restricted to root only. What you're saying is correct as far as I can tell for any higher ports. But it's easier to gain user access than root, so those ports are more easily defended.

      While it's true that it's generally good security to hide your ports when it doesn't interfere with other security measures, assigning an arbitrary high port to a service DOES interfere with other security measures.

    116. Re:Not like most linux users! by Em+Adespoton · · Score: 1

      ? you think I'd have a link to something hosted on my personal system?

      AFAIK, that one IS only phpmyadmin....

  2. Pointless by Hentes · · Score: 5, Insightful

    The attackers are most likely using other infested machines.

    1. Re:Pointless by fearlezz · · Score: 2

      Indeed, most attackers are. But even then, you can report them to the IP block owner, so they can fix the problem.

      Unfortunately, most providers are part of the problem instead of part of the solution: they do nothing with abuse reports. At least the ones i've contacted.

      --
      .sig: No such file or directory
  3. From my understanding by chemicaldave · · Score: 5, Informative

    There's nothing anyone can legally do with that information. Weak attempts at breaking in and port scanning are just background noise.

    1. Re:From my understanding by trev.norris · · Score: 2, Interesting

      I emailed someone from project honeypot about this same thing. They said they would setup a service where people could submit unauthorized login attempts automatically. (right now my honeypot just emails the result of logwatch --service sshd to an account)

      It it useful information. I've used it to contact some providers (e.g. aws, linode, etc.) about the machines making unauthorized attempts. Usually it's from a server hosting a website that hasn't been updated in years.

    2. Re:From my understanding by Anonymous Coward · · Score: 0

      +1

      You gave me an interesting idea for a side project. I have enough resources to get a good suggested block list going.

      --wmbetts

      Posting as AC because I'm modding the discussion.

  4. The cyber police! by stevegee58 · · Score: 4, Funny

    Backtrace them and report them to the cyber police!

    1. Re:The cyber police! by GrumpySteen · · Score: 4, Funny

      To do that, he'd have to write a GUI in Visual Basic.

    2. Re:The cyber police! by GameboyRMH · · Score: 2

      The consequences will never be the same!

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    3. Re:The cyber police! by Bill+Dimm · · Score: 1

      You just talked me out of it.

    4. Re:The cyber police! by redbeardcanada · · Score: 2

      He should just use a Phoenix Firewall instead...

    5. Re:The cyber police! by zentigger · · Score: 1

      or he could just use the "hack /off" command at the DOS prompt.

      --

      the above is my personal opinion and does not necessarily reflect that of the little voices in my head

    6. Re:The cyber police! by Anonymous Coward · · Score: 0

      http://internetpd.com/

    7. Re:The cyber police! by Opportunist · · Score: 1

      Dude, I am so NOT going down that tubes!

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    8. Re:The cyber police! by Anonymous Coward · · Score: 0

      Right! The Internet Police knows how to handle the most severe breaches!

  5. Use key-based security by eudaemon · · Score: 4, Informative

    As long as you use key-only authentication you should be fine. I wouldn't leave password-only access open to the internet. Having said that, your best bet is to slowly stall connections in order to waste the other guy's resources. Any system with pf and probably ipf have allowances for that, along with logging and blocking the most abusive IPs altogether.

    1. Re:Use key-based security by Anonymous Coward · · Score: 0

      That policy would have backfired if you were running Debian/Ubuntu a little while back...

    2. Re:Use key-based security by skids · · Score: 1

      It's also dangerous in that any theft of your plaintext key from one of your clients could go quite unnoticed. So then you have to password protect your key, making it no more convenient, or you just accept risk equivalent to putting your password in a text file on a networked machine named HERE_ARE_MY_PASSWORDS.txt.

      Compared to just choosing a very good password, and changing it once in a while, I find that to be an inferior strategy.

    3. Re:Use key-based security by Anonymous Coward · · Score: 0

      It's also dangerous in that any theft of your plaintext key from one of your clients could go quite unnoticed.

      Don't leave your private keys unencrypted then? You have to go out of your way to set leave your keys unencrypted....

    4. Re:Use key-based security by Forever+Wondering · · Score: 1

      As long as you use key-only authentication you should be fine. I wouldn't leave password-only access open to the internet. Having said that, your best bet is to slowly stall connections in order to waste the other guy's resources. Any system with pf and probably ipf have allowances for that, along with logging and blocking the most abusive IPs altogether.

      I wrote some plugins to do just that. Modifying access.conf to allow only local logins via password. All internet access must be ssh-key authenticated (e.g. my home server knows the key of my laptop so I can login from Starbuck's). I log every bad attempt [time, IP, login/pw] and each bad attempt is given a random 10+ second delay. I modified sshd to present the cleartext password of each such attempt

      After so many months, I have a log of about 10,000 entries. I've got a DSL connection with a dynamic IP, with no website attached, so my home system is somewhat "low profile". Still, from the log:

      - Most try to get to root, even though login to that from the net is disabled by sshd by default on most systems.
      - Simple login/pw combos (e.g. thomas/thomas, root/123456)
      - Some oddball login/pw combos (e.g. root/0571749e2ac330a7455809c6b0e7af90--which an actual attempt from my log) that only make sense if they've cracked a PW database somewhere and are replaying it on every system they can.
      - Some combos are repeated [in order], months apart, by disparate IP's (e.g. they're sharing the cracking data)
      - As to the top offender countries [available from whois IP], China is, by far, the worst. One might say that's merely because it has the largest population, but China "outshines" India [which has a nearly identical population] by at least an order of magnitude.

      Even with all this, no attempt has ever even come vaguely close to an actual valid login/pw for my system [which would be denied even if they hit it]. And, I'm using dictionary words for my passwords on the home systems.

      For websites I log into, I have a different login for each one, and use the so called "strong" passwords [which are also different for each site].

      However, based on my log data, passwords don't really need to be "strong" (e.g. "#!345xt37hhh"), just not "weak" (e.g. "123456"). Because, if a PW database has been harvested and is being replayed, strong passwords are just as susceptible.

      --
      Like a good neighbor, fsck is there ...
  6. Report it to DShield.org by UnderAttack · · Score: 5, Informative

    "Random" attacks can be reported to DShield.org . They have a number of scripts to automatically submit firewall logs (including from Linux firewalls). See http://www.dshield.org/howto.html . Once set up, it just "runs" and DShield aggregates the data, uses it for research and reports worst offenders to ISPs and other contacts.

    --
    ---- join dshield.org Distributed Intrusion Detec
    1. Re:Report it to DShield.org by Anonymous Coward · · Score: 5, Funny

      Well, after looking at your post, your sig, and your usename, I conclude that you likely wept with joy when you saw this particular ask slashdot. Must feel good to finally hit that perfect slot of relevance.

    2. Re:Report it to DShield.org by Anonymous Coward · · Score: 0

      Yes i'm sure he's just reeling in the dough now. :eyeroll:

  7. Look them up... by RocketRabbit · · Score: 1

    I usually call the ISP or the person listed in the DNS info and talk to them directly. It seems to shock and / or surprise many ISPs into action.

    Of course this won't likely help if the attacker is from the Great Motherland of Scripted Attacks, the PRC.

    1. Re:Look them up... by slackware+3.6 · · Score: 1

      I've had more problems with Russians. At least more Asians speak better English than Russians.

    2. Re:Look them up... by Anonymous Coward · · Score: 2, Funny

      Great Motherland of Scripted Attacks, the PRC.

      Professional Rodeo Clowns? I know they're scary, but I never knew they were so evil. Or that they had a motherland, although it makes sense. They're clearly not of this world.

    3. Re:Look them up... by Whorhay · · Score: 1

      For whatever reason I haven't seen a port scan on one of my systems in a long time. But back when I did get them occasionally I'd track down the originating ISP and send their Administrator an email with the details of the incident. I usually would get an email back within a day or two saying they were looking into it.

    4. Re:Look them up... by Anonymous Coward · · Score: 0

      "You were afraid of Clowns as a child weren't you?"

    5. Re:Look them up... by Em+Adespoton · · Score: 1

      Most of my attacks have come from zombies in India and Korea. I'd have to break into those compromised computers to see where the next step up in the chain is... which would make me one of the bad guys. I'm also not about to phone their ISPs (useful for places on the same continent as me though, especially if they have small netblock reservations (small company).

    6. Re:Look them up... by 0racle · · Score: 1

      My firewall has explicit rules to block traffic from netblocks belonging to China, Korea, a lot of the former Soviet Union countries, Turkey and known Russian Business Network IP's.

      I don't get a lot of unwanted traffic.

      --
      "I use a Mac because I'm just better than you are."
    7. Re:Look them up... by X0563511 · · Score: 1

      IPDeny sounds right up your alley!

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  8. These days, the attackers are innocent by scorp1us · · Score: 4, Insightful

    I think (I have no actual numbers) most of those are compromised boxes running distributed attack scripts. It makes sense to run the C&C, and let your zombies to the work that way it doesn't get tracked back to you.

    That was the case I saw twice on two boxes I had - one fell to a BIND exploit, and rather than reboot, I investigated why DNS stopped working. I uncovered a IRC C&C (with over 60 clients) and went about informing people (by the IPs of the irc clients) about what had happened. Most rebooted and never noticed a thing. All were happy to hear I was letting them know what happened.

    Based on that you're more likely to report innocent people whose only crime is being unpatched.

    --
    Slashdot's rate-of-post filter: Preventing you from posting too many great ideas at once.
    1. Re:These days, the attackers are innocent by TheCarp · · Score: 1

      These days? I think this has been true for quite a while. I have found similar things. Hell, one of the first tasks in my entire career was to investigate a similar incident...

      We found that a professor, who was known to telnet in from international IPs while on break, had SOMEHOW had his password stolen (gee I wonder if it could have been because he used telnet even though we had ssh available? sigh...)

      Someone had installed an IRC proxy, and so I got the job of running packet sniffers and watching the IRC channel for the day to collect info. It quickly became evident what I was dealing with as one of the channel members was complaining about how the internet has been ever since dad switched ISPs :)

      Nothing ever came of it... but we collected logs....

      --
      "I opened my eyes, and everything went dark again"
    2. Re:These days, the attackers are innocent by Spy+Handler · · Score: 1

      I run a web forum. Our admin control panel is constantly being bombarded with attempted logins (none of them successful so far, knock on wood)

      Our logs show the attacker's IP plus the user account they tried to log in as. They are all valid forum administrator/moderator names. So the attacker isn't some random distributed script, somebody actually read the forum and gleaned our staff member names.

      The attackers' IPs don't match anything in our database, so it's most likely not a disgruntled user. A lot of it comes from Russia.

    3. Re:These days, the attackers are innocent by Anonymous Coward · · Score: 0

      I run a web forum. Our admin control panel is constantly being bombarded with attempted logins (none of them successful so far, knock on wood)

      Our logs show the attacker's IP plus the user account they tried to log in as. They are all valid forum administrator/moderator names. So the attacker isn't some random distributed script, somebody actually read the forum and gleaned our staff member names.

      The attackers' IPs don't match anything in our database, so it's most likely not a disgruntled user. A lot of it comes from Russia.

      Perhaps, but keep in mind that if you're using a standard package for your web forum and your posts are public, its pretty easy to derive what nicknames are the ones you should try.

  9. You can report them to DHS by Anonymous Coward · · Score: 3, Informative

    http://www.dhs.gov/how-do-i/report-cyber-incidents

    1. Re:You can report them to DHS by Anonymous Coward · · Score: 0

      of course then you will probably have to open your server up to DHS for "cyber-forensics" which means they get to copy your clients data and use it later for their own profiling needs (no thanks).

    2. Re:You can report them to DHS by localman57 · · Score: 1

      http://www.dhs.gov/how-do-i/report-cyber-incidents

      I wouldn't hold your breath for a response. Let's use a car analogy. Last year, my car got stolen. I filed a report with the police department. They put it in a database. Eventually, my car turned up in a parking lot missing a few parts with a high value to removal effort ratio. And they called me because the apartment manager called them. But they didn't look for the car. And they didn't look for whomever took it after it was recovered. Because they don't give a shit. Because they don't even have time to properly investigate rapes, robberies and non-fatal shootings. Same with your network attacks.

    3. Re:You can report them to DHS by Anonymous Coward · · Score: 0

      Yikes, tinfoil hat is a bit tight today isn't it?

  10. abuse@organizationname.com by Sam+Nitzberg · · Score: 3, Informative

    It's been years, but a few times I found the organization sending traffic and sent an email to abuse@
    the domain name and had positive results.

    You can look up the whois online registry information on where the traffic is coming from, and there can be additional contact information there.

    Regards,

    Sam

    1. Re:abuse@organizationname.com by Anonymous Coward · · Score: 0

      Isn't that email required for a domain? I thought that email and "postmaster" were required for any email system to automatically forward email to an administrator.

  11. How about your mom? by macraig · · Score: 0

    I heard she wears Army boots, so she can probably scare the crap outta the script kiddies.

  12. If you know where the breaking occured from by slackware+3.6 · · Score: 1

    Or you can figure out the ISP of the person attempting to break in. A phone call to the ISP's admin at 3AM their time with relevent details seems to be quite effective especially if it is a reoccuring problem resulting in repeat 3AM phonecalls to the opposite side of the globe.

  13. Slashdot news for heards, stuff that flatters by Anonymous Coward · · Score: 1

    Seriously this is an old question, and there is no answer. No one gives a shit about your logs. Chances are that more than 99% of those attempts are from some zombie PC and the user of that PC has no clue. You can spend countless hours finding it, but what would be the good, since there would just be a jillion-1 more attempts at port 22? I got a great idea, use some non-standard port for traffic that doesn't "require" a standard port. Other than that, update, patch and monitor are gunna be your key words.

    1. Re:Slashdot news for heards, stuff that flatters by GameboyRMH · · Score: 2

      I run some canned attacks on the offending IP if I'm bored (and not at work). Worth a shot.

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    2. Re:Slashdot news for heards, stuff that flatters by Anonymous Coward · · Score: 0

      I like using fail2ban to limit and temporarily deny offenders...usually shutting them down for just a few minutes will cause a lot of them to just move on. Also I use fail2sql to log everything to db and track the number of times one source has been denied over time. Set a flag on new hosts in the db and run a reverse script to collect information on the source....personally I just grab hostname, whois and nmap data using a cron'd script, then I publish this info to the web on the netdegenerates domain.

    3. Re:Slashdot news for heards, stuff that flatters by BaronElectricPhase · · Score: 1

      Just return "Fuck you" to every connection attempt ;)

  14. A thought by d0nguy · · Score: 2

    Have you considered running DenyHosts on your machine? That might help filter out some repeat offenders.

    1. Re:A thought by asticia · · Score: 1

      Yes, I used to use denyhosts, it's a great way of blocking unwanted login attempts. There are databases that people share and you get your hosts.deny updated from internet. You just have to type your own password correctly :-) Or use keys.

      --
      There is no light without darkness.
    2. Re:A thought by GameboyRMH · · Score: 2

      Yep easy and very effective if set up properly. A big mistake a lot of people make though is to allow a differing number of attempts for existing and nonexistent users. This makes it possible to brute-force valid usernames.

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
  15. Whois by Anonymous Coward · · Score: 0

    I trace these on one of my production machines. When someone makes an unauthorized attempt or fails a password check after a certain number of times, my machine automatically blocks their IP and does a whois on it. Sometimes this whois will provide you with an abuse email that you can use. Unfortunately, only a small amount of attempts have an abuse email associated with them, but I've had success getting responses from the ISPs in disabling the attacking user's account.

  16. Use Denyhosts by Anonymous Coward · · Score: 0

    It blocks IPs that fail authentication more than a set number of times, and can upload known violators to a global list, which can then be downloaded by other Denyhosts users. I use it and it's been great.

    1. Re:Use Denyhosts by lister+king+of+smeg · · Score: 1

      until you try to log in using a public wifi hotspot.

      --
      ---Saying gnome 3 is better than windows 8 not so much a compliment as it is damning with light praise.
  17. What is your goal? by mseeger · · Score: 2

    The answer depends on what you do hope to achieve by reporting.

    If you hope the people to stop:

    In case the origin is a company within you country, contacting them may you do some good. They will pull the plug on their malware infested machine. Attacker will use others.

    In all other cases the only chance to have any kind of effect is to report dramatic damages to the law enforcement. Other than that, nobody cares enough ;-). Even with dramatic damages, the chances for any effect are slim to none.

    IMHO: In 90+% of all cases the answer is /dev/null the economical best answer.

  18. Reporting to the FBI gets complicated, when . . . by PolygamousRanchKid+ · · Score: 5, Funny

    . . . the FBI are the ones trying to break into your system.

    --
    Schroedinger's Brexit: The UK is both in and out of the EU at the same time!
  19. Block abusive IPs by Anonymous Coward · · Score: 1

    Regarding SSH, this topic came up a few years ago. Ive used Fail2ban, a daemon that will tell the linux firewall to drop traffic from abusive IPs trying to brute force passwords. It was a good suggestion then and I think it's still good now. It worked for me, but since I went to a pfsense based router I've opted to use it's really good built-in VPN facilities instead of exposing port 22.

    It's also been mentioned that running ssh on a nonstandard port is not a bad idea. Technically not anymore secure, but it does seem to dodge 99.9% of the automated scanners looking for unsecured systems with weak passwords.

    Older slashdot post:
    http://ask.slashdot.org/story/10/03/06/2138221/coping-with-1-million-ssh-authentication-failures

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

    Pfsense
    http://www.pfsense.org/

  20. Generally, nowhere by damn_registrars · · Score: 2

    Most of the time - at least from my experience - the attacks are coming either from systems that are in foreign countries that don't give a shit about you and your system, or they are distributed attacks that would require you to contact dozens (or more) of ISPs.

    The one exception I make is if it comes from an American IP address. Most American ISPs do a pretty good job of tracking who is using what IP address and can do something about it. Generally, they won't do much - and they seldom tell you what they do - but they'll at least look at it. And of course if it is from a university in the US, they'll usually track it to a college freshman who either thinks he's clever or is running a compromised windows PC.

    But in general, your complaints will fall on deaf ears. Just keep checking your logs periodically to make sure nobody succeeds and that you are making the right responses to new methods. You could set up a tarpit if you like...

    --
    Damn_registrars has no butt-hole. Damn_registrars has no use for a butt-hole.
  21. Waste of time... by msauve · · Score: 4, Informative

    you're not going to make a dent. Most reports are simply ignored, and for every attacker you see, there are thousands more who simply haven't gotten to you yet.

    Make sure you have good passwords, know what ports are exposed, and run something like fail2ban.

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
  22. This is what I was going to post... by logicassasin · · Score: 3, Informative

    I run OpenVPN on one of my OpenBSD machines on a non-standard port, it's the only way to get in through my firewall (another OpenBSD machine). Once I've made my vpn connection, I can then ssh to the other machines on the network.

    To the question at hand, if you can identify the ip address that the breach originated from, plug it into Network Solutions' whois lookup and you can usually find the ISP the ip is connected to. They usually have an abuse email account listed in their whois info. If they don't have info, try plugging the ip into RIPE or APNIC's whois database and report accordingly.

    --
    Fifty watts per channel, baby cakes.
    1. Re:This is what I was going to post... by guyniraxn · · Score: 2

      I used to do this, email abuse at their isp, back when I had the time and desire to read through my firewall logs. I would often get responses thanking me for sending the relevant logs or at least informing me that they were looking in to it.

  23. /dev/null by yourdog · · Score: 5, Funny

    Most UNIX systems automatically subscribe to the Network Users List of Lamers. Just write up your complaint to a text file, then send the complaint to NULL, using the command 'cat $REPORT > /dev/null'

  24. Share your logs with the community by adriccom · · Score: 2

    Join and contribute ssh/firewall logs to DShield or another collaboration system so that others can benefit from the information you are collecting.

    http://dshield.org/howto.html

    If you want to report unwanted activity against your network your ISP may be able to help. Try opening a ticket with their Abuse team.

    --
    <script>alert("I never liked JavaScript, really; it just seemed a bad idea.");</script>
    1. Re:Share your logs with the community by Anonymous Coward · · Score: 0

      DShield doesn't seem to support the Comodo firewall.

  25. Report them to your black list.. by blackt0wer · · Score: 2

    Really, no government agency is going to give a red cent about some 14 year old running scripts against your machines unless you're a major contributor or hold government office.

    1. Re:Report them to your black list.. by Anonymous Coward · · Score: 0

      just tell them these ip's are trying to send you movie downloads :)

  26. Verification Required by Anonymous Coward · · Score: 0

    Before I can help, I am going to need the IP address of your modem to verify your identity. You can expedite this process by providing the username for the machine you are trying to access on your LAN. Remember, no Slashdot.org support agent will ever request your password.

  27. Use port 22 as a honeypot by Anonymous Coward · · Score: 1

    YOU are the only person to log in, correct? and YOU know that your ssh is set to listen on some other port. so. any packet that hits port 22 looking for a response, you block that IP for 24 hours. wheee!

    1. Re:Use port 22 as a honeypot by skids · · Score: 1

      Or at least a tarpit. Everyone should do their part by making the scripts work those few extra few seconds. At the very least it will make the coders writing them learn to do asyncronous event loops, so maybe they can go get a real job.

  28. IPv6 by Anonymous Coward · · Score: 1

    If you feel this is important enough you should immediately contact the president of the united states directly to tell him about your ordeal. His Email address is president@whitehouse.gov.

  29. Where to report script kiddies? by ibsteve2u · · Score: 2

    Where to report script kiddies...

    Their mothers. Duh.

    --
    Orwell: "In a Time of Universal Deceit, telling the Truth is a Revolutionary Act"
    1. Re:Where to report script kiddies? by Anonymous Coward · · Score: 0

      Mrs. Roberts ALWAYS blames her daughter!

  30. Absolutely no point. by Anonymous Coward · · Score: 0

    I get tons of these when I have SSH running on port 22. I'm quite certain no one can get in, as I accept only RSA key authentication, but the attempts sure as hell clutter up my logs.

    I have never even considered trying to report them. They all come from foreign countries and compromised PCs anyway, so I'm not sure how reporting anything to anyone could ever make a scrap of difference.

    It would be like reporting email spam... yeah - that totally works.

    1. Re:Absolutely no point. by shadowsurfr1 · · Score: 1

      An easy way to greatly reduce the number of attempts is some iptables rules. After 3 bad attempts in 60 seconds, it drops them. I went from thousands per week to 55 in the past two weeks.

  31. How to secure your system by hendersj · · Score: 1

    Use something like blockhosts to deny connections to addresses that have repeated unsuccessful attempts.

    Use public key/private key pairs for authentication and disable password authentication completely.

    Use a non-standard port for the ssh service.

    Who to report them to? Unless you're actually compromised and suffer harm, there really isn't anyone who is going to look into it; seriously, reporting every potential attacker results in nothing more than a very large scale game of whack-a-mole.

    --
    Insanity is a gradual process; don't rush it.
  32. Re:Reporting to the FBI gets complicated, when . . by Em+Adespoton · · Score: 1

    It becomes even more complicated when the IP connecting to you belongs to a honeynet hosted by some investigatory body.

  33. Re:Reporting to the FBI gets complicated, when . . by Anonymous Coward · · Score: 0

    Do, or do not...there is no "try."

  34. Try this by inode_buddha · · Score: 4, Informative

    Try psad. I've been running it for years, in addition to selinux and iptables. It auto-drops all kinds of connection attempts based on parameters you can set, but the defaults are very reasonable. Works for all connections, not just ssh. It can report to D-Shield.org and ISC (internet storm center), and you can script attack responses with your normal shell. *very* highly recommended.

    I test it from time to time with nmap and nope, it doesn't allow nmap to get anything.

    http://cipherdyne.org/psad/

    --
    C|N>K
  35. Report to... by kiwimate · · Score: 1

    ...Anonymous. Enjoy watching one group of puerile script kiddies attack another group of puerile script kiddies.

    Alternate answer #1 ...nowhere. If they get in, they just did you a favor by exposing your weaknesses.

    Or so goes the argument as to why Anonymous is/are heroes. Hey, what's good for banks is good for individuals, right?

    Alternate answer #2 ...nowhere. Who cares? All they're going to do is copy information off of your hard drive - it's not like it actually means anything, you still have your original data.

    Or so goes the argument for why piracy isn't wrong.

    1. Re:Report to... by geekoid · · Score: 1

      Close, but wrong

      " it's not like it actually means anything,"
      should be:

      It's not like you lost anything.
      More accurate, and true.

      Of course, this is about copying data. Using that data in an exploitative way is something else.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  36. Standard abuse reports work ok. by Psyko · · Score: 1

    I didn't read all the responses but from my dealing with the FBI cyber crimes division they won't even look at it unless there's $10k USD or more in loss/damages.

    What I do (when I'm bored :P ) is just take the logs, pull the source address, punch it through arin and see who owns the netblock, then file a abuse/fraud ticket through whoever owns the netblock (including providing the logs). That seems to work pretty well for us based companies. I was really impressed with the amazon cloud guys and how fast they shut down a compromised vm after I sent them the info. Regional/smaller ISP's are usually pretty good, larger ones it can be hit or miss.

    Dealing with offshore addresses is more problematic, due to inconsistent controls, communications barriers etc. For addresses like that if it's not a country I'm going to be travelling to or do business with I'll just acl the whole block (sometimes the whole country) at my perimeter.

    Aside from that, nonstandard ports, knocking, vpn are all good ways to deal with this kind of thing. I'm guessing you're at least not leaving all your personally critical data there, and that you do at least have some isolation.

    --
    01:36AM up 426 days, 2:46, 1 user, load average: 0.14, 0.11, 0.05
  37. Email to the netblock owner by router · · Score: 2

    Worked well when we used it. Email to the network owner, log excerpts, etc; they found machine and fixed it. One was in Italy at some university, they were really cool, emailed us back and everything. Didn't work all the time, but you would be amazed how well a nice note to the network folks works. They don't want to pollute the net; they are much like you in that way.

    andy

  38. Re:Reporting to the FBI gets complicated, when . . by babywhiz · · Score: 1

    I still have a computer sitting on the shelf labeled "Do not touch, property of FBI" from when I reported a compromised computer to them. That was in 2004. It's still sitting on the same shelf, just like it was the day I unplugged it.

  39. Short answer: Nowhere by Opportunist · · Score: 2

    Long answer: Even if you did report them to someone, no action whatsoever will come out of it. Face it, as long as people are not responsible for their traffic (unless, of course, said traffic constitutes a copyright infringement) nothing will happen.

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  40. Don't worry... by tnk1 · · Score: 1

    Attempted script kiddie attacks are automatically reported to the same place that failed sudo attempts are reported to.

  41. Use DenyHosts, report only if local to your ISP by Dr_Harm · · Score: 1

    I use DenyHosts to identify attackers and protect my system. Then, for any new blocked IP, I check to see if it's local to my service provider. Generally, I think the service providers will be much more reponsive to one of their customers attacking another, even if it's a compromised machine.

  42. I now only report the perisistent idiots by sjwest · · Score: 1

    Automate it i run failtoban which can be nicely configured, kiddies probing the websites for php_my_admin thing get mod_spamhaus checks who if reported get no site. Html form scanners get botscout checks and also a humorous email address in the html to send drugs deals to us which does not work. Occasionally we change that just for a laugh when we see it in use.

    We still report spam to spamcop.
    Yes i will cancel your air travel arrangements if you put the wrong address in the airline booking system. Airlines are very happy to oblige.

    That leaves just the determined idiots who well after that deserve a personal mention to their isp using a failtoban report or two the computer just happened to generate.

  43. I actually hack them back! by Anonymous Coward · · Score: 0

    My linux firewall automatically creates an entry in the /etc/hosts.deny file. Usually if I'm bored and have nothing to do I use my Backtrack vm to launch an attack back. I do not do this from my home ip. I take my laptop and launch and attack from a free wifi hotspot :)

  44. When I had SSH on port 22 and FTPD on port 21... by rjr162 · · Score: 1

    I also saw a lot of login attempts coming from China.

    At first I just setup fail2ban, which works great (can either ban the IP for a set time or forever). But after having to deal with growing log files, I decided to just use a non-standard port. That helps a ton.

    Why leave it at the default and hope no one finally gets in (and worry about reporting the attempts?) instead of taking more proactive actions such as changing the port number, using SSH keys if possible rather than login/password or at least something like fail2ban, etc.

    The thing is, if someone *did* get in, they may be good enough to cover their tracks and you may not notice

  45. WAVES by Anonymous Coward · · Score: 0

    https://www.uha1.com/14-mug.jpg

    hope you remember us.....

  46. arin.net is the right answer! by Anonymous Coward · · Score: 0

    https://www.arin.net/ is the right answer. (At least for the North American based IPs, but if they are foreign they will point you to the proper registry(APNIC for example).)

    First of all, I have all other netblocks assigned to other registries(APNIC, RIPE, LACNIC, etc) blocked in my firewall since none of our sales team will be found in those countries.

    When you do a search on arin for an IP(upper right), it will list the ISPs "Point of Contacts" and they are required to have at least 1. It is not always "abuse@". They also have phone numbers listed as well as contact name (which I find to be out of date usually, but the email is generally right). ISPs typically need/want log entries showing the intrusion attempt as well as your IP and the ports they were attempting to access.

    I have since automated the task, of reporting and have a process that: blocks that IP in the firewall, looks up their data in arin.net, sends me an email with logs and the proper email contacts for me to review and forward. If I see that it is an ISP that my sales guys shouldn't be using(a Mexican ISP) for instance, I then block that ISP at my leisure.

    If it is foreign, then I typically just block the ISP since I have little legal recourse anyway. If domestic, then I have a pre-worded followup email incase they have other users attempt soon after.

    If you host any communications service (IE Email, IM, chat) and their constant bombardment is hindering that service, their intrusion could potentially fall under part 1 of http://www.law.cornell.edu/uscode/text/18/2701
    where it reads "whoever intentionally accesses without authorization a facility through which an electronic communication service is provided -prevent[ing] authorized access to a wire or electronic communication".

    Just my long two cents. And IANAL but it sounds like a valid threat to include in an email to an ISP... And I use it all the time...

  47. Almost nobody cares by dropadrop · · Score: 4, Informative
    The FBI don't care. We've had cases where somebody has phished hundreds of accounts and we've had clear logs to show how they have been profiting from it financially, but can't manage to get them to do anything. A few years ago we did have a contact there who did something, but he was moved to some other agency...

    Not that other countries agencies are any better. We had big trouble with a guy in New Zealand disrupting services, phishing accounts etc. We managed to start an investigation (or so they said) by phone but it took several hours and help from the CERT team in Australia. After a month nothing had happened, and I was there on vacation. I spent a day on the phone trying to find somebody who knew about the case, but even with the reference number they could not do anything. CERT Australia tried for a few days, and finally gave up.

    We had a guy in the Netherlands who phished hundreds of accounts, and still nobody down there would pick the ball. Then he and a friend found a hole in a third party system and managed to suck out data for hundreds of (dutch) people. The web frontend was in Germany and the third party application in the US (A lot more US citizens data was also stolen). Dutch police said they won't do anything because the data was abroad. German police said they won't do anything because the guy is in the Netherlands. The FBI said they'll look into it, but never did anything despite us trying to get back to all of them countless times. We found both hackers identities and had the second guy on the phone, admitting everything and promising he'd testify... Still nobody was interested.

    You have to work in a big corporation to get the authorities to do anything. They don't care if somebody phishes thousands of accounts unless it's in the news or a corporation they recognize. It's almost as if they want all the script kiddies to be able to practice in peace until they really learn how to cover up their tracks and move to juicier targets if they won't take a case when it's handed to them on a platter with clear logs and a confession. It does work a lot better when the hacker is in the same country as you and you are working with a local law enforcement agency though. I also had good experiences with the Metropolitan Police in the UK.

    1. Re:Almost nobody cares by sproketboy · · Score: 1

      Mod up. Sheesh only on slashdot would a simple question require 50 pages of scrolling to find an answer....

  48. Don't leave port 22 open all the time... by Anonymous Coward · · Score: 0

    here's what you do...

    use a few sets of ports that you will equate with the numbers 0 through 9
    add a few ports that equate to dots
    add a few ports that equate to execute
    and a few that will equate to clear or reset

    Write up simple inetd style listener rules that when a *knock* is received on a port, you write a number into a file in append mode
    same for the dots (periods)
    if you send a clear or reset, wipe out the file
    when you send the execute, you cause your system to ssh out to your ip address with a back-channel opened to localhost on the machine you knocked on.
    the ssh would be key based, the userid able to create tunneled ports, the userid locked down to key only...

    so you figure out what your ip address is - look for a what's my ip address site to validate, script up your knock using the ports assigned for the numbers and dots required, then the execute knock.
    I normally configure two or three sets of ports for each number, and the inetd configs are set to not respond to the knock attempts in any way aside from writing to the trigger file.

    if the firewall allows scripting, you could use the trigger to write a temporary firewall rule allowing you to come in on 22 from that ip address, then after 30 seconds remove the rule.

    I wrote it up a long time ago and posted it somewhere online - might have been on the openssh mailer for anyone who wanted to use it.

    Still works great to this day - I've automated the knock config sequences using a random selection of the ports needed to form the address garnered via curl reading from a what's my ip address site.

    Probably overkill, but I like it.

  49. Re:Reporting to the FBI gets complicated, when . . by Anonymous Coward · · Score: 0

    Now if we could call up "Penelope" from Criminal Minds and get a smart alec response AND file a report. Sadly the FBI probably doesn't have those girls(or guys) manning the phones.

  50. Denyhosts by Anonymous Coward · · Score: 0

    Denyhosts is what you are looking for; it will even download a list of IP addresses spotted on other peoples computers if you want it to.

  51. The FBI is not interested. by subreality · · Score: 2

    They really don't care unless you can show significant damages. For $500, they will just ignore you. For $5000 in documented damages they'll take a report and file it somewhere never to be seen again. For $50k they'll actually keep your information around in case they can use you as a part of a larger case. For $500k they may take you seriously.

    Citation: my own experience calling the feds when cleaning up messes.

    1. Re:The FBI is not interested. by geekoid · · Score: 1

      What do you expect? There really isn't any other way to prioritize citizen reports.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    2. Re:The FBI is not interested. by subreality · · Score: 1

      I don't expect any different. I'm just noting that the feds aren't going to care at all about what the OP posted about.

  52. not always. by logicassasin · · Score: 1
    --
    Fifty watts per channel, baby cakes.
  53. I have an idea by slashmydots · · Score: 1

    Put like 1 sentence on your website that's anti-muslim and the FBI would be interested in anyone that even generates a 404 lol.

  54. Your Hairdresser's by Pf0tzenpfritz · · Score: 1

    Sorry, but the answer is ..."kind of". SANS have an incident reporting framework, but I don't think they care much -or at all- about trivial attacks like SSH bruteforcing. Nor should you do. Just set up public key authentification, turn off password-based logins and forget about it.

    --
    Oh, the beautiful gloss of greality!
  55. This is probably redundant but... by bmo · · Score: 2

    Who to complain to: complain to the upstream. You have the IP address. Do a nslookup and traceroute and write to abuse@foo.com. However, if it's just the standard "checking default passwords" deal, then it's a botnet and you shouldn't bother.

    Here's what you do in sshd.conf

    Take sshd off port 22 and put it on a high port above 1024. I use HF radio frequencies to remember.
    Port 3898 (or whatever)
    Turn off password authentication. You should be using keys.
    PasswordAuthentication no
    Use protocol 2
    Protocol 2
    Turn off root login.
    DenyUsers root
    PermitRootLogin no

    ??????
    Profit. You're done. Really.

    If you want full paranoia mode belt-and-braces so your pants don't fall down, install fail2ban, but if you have done the above, you don't really need it.

    The logs go silent and they have to do a full portscan to even find ssh. Brute force ssh bots are fire and forget. The bots move along to the next guy whose sshd is on 22.

    --
    BMO

  56. Routers will translate ports - Geez by Anonymous Coward · · Score: 1

    Port 22 is constantly attacked, but if you listen on port 45022 or pretty much any other port, except 22, nobody will bother. Don't change this on the server, let your router do it. Every router I've seen can, .... except some Netgears.

    The other thing is to use fail2ban to firewall any failed attempts after 3 tries. Further, only allow key-based logins and prevent remote root ssh access completely. These are pretty basic ideas.

    10 yrs using ssh? Seems that after 6 months, you'd learn about these things. You might want to check into the ~/.ssh/config file too.

    There's a wikibooks book on ssh worth skimming. https://en.wikibooks.org/wiki/Wikibooks:Collections/OpenSSH ssh is one of those simple things that goes very deep. We just need to learn a little more.

  57. 4chan by Anonymous Coward · · Score: 0

    Post the IP address of the would-be attackers on 4chan and enjoy the lulz.

  58. Do like some banks do by Anonymous Coward · · Score: 1

    Every time your firewall log has a line for a connection attempt, check your systems using external consultants with rates of $300 an hour and sue.

  59. Yep. Still funny. by Anonymous Coward · · Score: 0

    The consequences will never be the same!

    Yep. It's still funny. ... I wonder where he is today.

    1. Re:Yep. Still funny. by humanrev · · Score: 1

      Yep. It's still funny. ... I wonder where he is today.

      Dead.

      No, seriously. Google "jessi slaughter dad".

      --
      Most people on Slashdot are fucking idiots.
  60. If your system is reasonable secure by someones · · Score: 2

    you do not need to care about script kiddies and such nuisances...
    just ignore them - if they can get in, their actions will be logged, fix the broken service and you are done.
    if they can get root privs, you failed somewhere.

    Consider them like a free security/penetration check.

  61. Easy. This works. by Anonymous Coward · · Score: 0

    abuse@scriptkiddysisp.com

    be professional.

    be detailed.

    be willing to call a lawyer and have them contact the isp if needed.

    And if that all fails. goto their host. or their upstream provider.

    SOMEONE will care if you yell loud enough.

  62. You doknow by geekoid · · Score: 2

    that's the equivalent of asking where you report someone who ding dong ditched you house, right?

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  63. Kill them yourself by Anonymous Coward · · Score: 0

    Just hunt them down and kill them yourself. They grow up to create viruses and other crap they should die for. Be proactive!

  64. Reporting attack can be a useful security layer. by dweller_below · · Score: 2
    The security group at USU documents, blocks and reports attack. It is part of our security response. We feel it is a cost effective part of our security posture. We have been doing it for 5 years.

    We provide instructions to our users to help them setup and manage their SSH servers: https://it.wiki.usu.edu/ssh_description

    We detect, document, block and report SSH portscans and SSH password guessing. We also have several SSH honeypots setup to collect lists of attack credentials. We check the honeypots to see if a USU credential has been exposed. A while ago, the FBI came by and asked about 9 IP addresses used in a hostile government sponsored attack. We were able to document that they had been detected and blocked. We were also able to provide the credentials that the attackers used.

    When we first started reporting attack, the response was very poor. But now, about 1/3 of the abuse reports (to non-Chinese sources) result in confirmed, remote resolution. Now, almost all ISP's, CERTs, and large organizations are eager to receive a polite, accurate, and detailed abuse report. It is the easiest (and most common) way to learn that you have a compromised system.

    As you have noticed, the hardest part is determining the proper point of contact. Most of the time, we can find one by carefully searching the whois and DNS information.

    Our rational for documenting and reporting attack is given at: https://it.wiki.usu.edu/SingSingRational It includes:

    USU IT Security attempts to document all attacking IPs on Singsing. This accomplishes 3 primary goals:

    • * It creates memory of how USU is attacked. We need to know how we are attacked, so our defenses are anchored in reality.
    • * It blocks attacking IPs at the USU border. We can specify a duration that is appropriate to the occasion.
    • * It notifies the owner/ISP of the computer that they are attacking USU. Usually they are also innocent victims.

    Lately (March 2012), at least 1/3 of the abuse reports (to non-Chinese sources) appear to result in remote resolution.

    In addition, documenting/blocking/reporting has important secondary benefits:

    • * Once a week, summary reports go out to our peers across the state, and to the FBI.
    • * It keeps USU IT Security from developing the habit of ignoring attack.
    • * Blocking attackers gives us a great deal of satisfaction. (Normally, we can't get no.)
    • * It sends a message to attackers, that USU is not cheap, soft pickings.
    • * We have demonstrated a couple times that the number of attacks drop off sharply a couple weeks after we begin religiously reporting attacking IPs.

    Finally, we are convinced that reporting of compromise/attack is one of the few pathways that can lead to a more secure internet.

    • * Computer owners/admins must know about their compromise to make sound decisions.
    • * The current hacking environment is controlled by the economics of hacking. Reporting attack/compromise increases the risk/cost of hacking and decreases the reward.
    • * If we help others to know they have problems, maybe someday, somebody will have similar mercy on us.

    Miles

  65. Really man? Really? by Anonymous Coward · · Score: 0

    This happens on the internet...... get a hold of yourself. You want somewhere to report a failed login attempt?
    Don't be so uptight man.... no one needs an internet police.

  66. the only guys who care by Anonymous Coward · · Score: 0

    isc.sans.org

  67. I'm not bothered by break-in attempts by Trevin · · Score: 1

    I watch my daily security logs from time to time, but the only remote login attempts I see are my own. I can attribute this to several layers of security:

    • I'm using a dynamic IP address.
    • Access to my home network is gated through my router. Any incoming SSH connection is directed to a specific IP address on the inside, which is only configured when my computer happens to be running Linux.
    • ACL's on the router prohibit SSH connections from everywhere except specific source subnet's I've opened up, and some of those (like work) are only open at certain times during the day.
    • I'm subscribed to my Linux distributor's security updates, and apply them on a regular basis.

    I won't claim that it's perfect protection, but one of the best things you can do to secure a system is to shut out all access by default and then only open tiny pinholes for the specific connections you need.

  68. Use a nonstandard port by Theovon · · Score: 1

    I kept seeing my logs grow due to attempts on my port 22. So I just picked a nonstandard port, and voila, no more attacks.

  69. ports and deny access by l3v1 · · Score: 1

    I have currently 2 linux server out in the open, both behind the same router, in a nice cooled server room. One has its port 22 opened up, the other's ssh is reachable through some obscure port number. The first sometimes sees dozens of different ip addresses per day trying to get in, the other sees maybe one per month (or less). Also, I'm using denyhosts on both, denying all access for an ip for many weeks if they fail access in more than 3 trials. It's been working quite nicely for years now.

    --
    I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
  70. Re:Reporting to the FBI gets complicated, when . . by virgnarus · · Score: 1

    They'll arrest you on account of wiretapping.

  71. Nononono! Leave port 22 open, run fail2ban by wad4ever · · Score: 1

    Seriously, just install fail2ban, use decent passwords, and you'll be fine. Security by obscurity is a big fail.

    --
    --- wad
  72. Denyhosts by Anonymous Coward · · Score: 0

    I use this script on one production server we have that allows people to post webpages via sftp. http://denyhosts.sourceforge.net/ It scans the ssh log, if someone has gotten the password wrong 5 times (or even attempted to get in as root) they are banned for two weeks. Best of all, though, and more to what you were asking, it syncs these banned users with a database of banned users other folks have collected in the same way, making for some sort of registration of the idiots.