Slashdot Mirror


The Enemy Within: Firewalls and Backdoors

hrbrmstr writes "SecurityFocus is running an article on firewalls and backdoors on their InFocus site. They provide info on firewall types, backdoor classifications, some examples of real backdoors and tips on mitigating their use on your network." Some good topics explained for the beginner, and it's a nice refresher for the veteran admin as well.

63 of 225 comments (clear)

  1. Good info by rekkanoryo · · Score: 4, Insightful
    I had a basic idea of a lot of stuff here an some knowledge of some things, too. This was a nice crash-course.

    Kinda makes me wonder, though, how often articles like this spawn ideas in the minds of the "wrong people," leading to attacks or attempts to attack. Anyone else ever wonder that?

    1. Re:Good info by irc.goatse.cx+troll · · Score: 5, Insightful

      Security through obscurity does work though, so long as its not the only layer.
      An example would be lets say you're making your own home made cluster remote administrative tool for admining all of your servers from one console. What would be more secure:
      A: Greeting the user upon connection with a description of the service, full protocol docs, source code, etc.
      B: Sitting, waiting 5 seconds for the first command before dropping the connection. If client sends one wrong byte, instantly drop the connection and firewall their ip so that they cant get a single packet through.

      Obscurity isnt security in itself, however it does make a nice addition to an already secure setup.

      And if you think full disclosure means instant security, take a look at that opensource database thats had a serious bug in it for 8 years that was only found recently. I can't think of the name off hand, I believe it started with 'Inno'. Even though "thousands of eyes scoured the source code" it still didnt get noticed for eight years-- that is, noticed by anyone that went public with it.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    2. Re:Good info by jreilly · · Score: 2, Informative

      Umm...innodb hasn't always been Open Source...the backdoor was discovered after the source was opened...

      --

      Freedom's just another word for nothing left to lose
  2. The rule by Faust7 · · Score: 3, Insightful

    Can your multiple-lines of defense truly protect your network from modern methods of intrusion?

    Only if "modern" meant "known." Everything else is fair game.

    1. Re:The rule by lavalyn · · Score: 2, Interesting

      Only if "modern" meant "known."

      Assuming you have a default ALLOW policy. I'd find it hard to attack an MSSQL server behind a firewall that autodrops all traffic to 1433/1434(udp). (Why I'd want an MSSQL server is another matter.)

      It still doesn't stop attacks against kernel-level packet handling but it'll take down most unknown service-level attacks.

      --
      Doing the Right Thing should not be preempted by making a buck.
    2. Re:The rule by realdpk · · Score: 2, Insightful

      I'm going to assume that you allow access to 1433/1434 from at least *some* hosts.

      So, you just have to hack those hosts, and then you're in.

      Fireawlls are not the answer, really.. they mask problems. Firewalls should be the very last step in your security initiative.

      Of course, I'll get replies to this about how this is just how it is done - well, too bad - it's not the best way to go and if you don't know it, you should. :)

    3. Re:The rule by Artifex · · Score: 4, Interesting
      Fireawlls are not the answer, really.. they mask problems. Firewalls should be the very last step in your security initiative.


      Yes and no. If you rely solely on firewalls, yes, because firewalls just contain damage and prevent it spreading. You definitely still have to take care of the weak security on the affected machine(s). However, if you think of security as an ongoing effort (i.e. no "last step"), you'll see that monitoring your firewall may give you much quicker notification of abnormal activity.

      Personally, I much prefer to be warned by port scans, etc., than to rely solely on hardening for protection from attacks. It's like having a fence around your house, with a gate in front, and having a burglar standing outside, rattling the front gate, yelling "hey, I'm about to try to break into your house!" He might get over the fence or through the gate, but you'd be awfully stupid, if you knew some burglers did that, not to at least have the wall and the gate.

      Carrying the metaphor a little too far, of course, it's a heck of a lot easier to track the guy down and "remove the threat," if you know he's going to try something, and where he is, before he does tries it.
      --
      Get off my launchpad!
  3. layers by smettler · · Score: 4, Informative

    I wonder which layer model (iso, dod, other?) they took. Looks like iso/osi to me and if that's the case

    >Packet filters [1]
    > * Operates at Layer 3
    > * Also known as Port-based firewalls
    > * Each packet is compared to against a list of rules (source/destination address, source/destination port, protocol)

    based on tcp/udp port numbers? that would be layer 4, right? Imho Layer 3 applies to ip-address only.

    >Application-level gateways [2]
    >
    > * Operates at Layer 5
    > * Application-specific
    > * Example: Web (http) proxy

    I thought the application layer is layer 7?

    someone?

    cheers
    Sascha

    1. Re:layers by rekkanoryo · · Score: 3, Insightful

      You're right. OSI Layer 3 does not deal with port numbers. The Application Layer is the OSI model's Layer 7. Looks like someone forgot his/her coffee when writing the article, like I did reading it.

    2. Re:layers by Anonymous Coward · · Score: 2, Informative

      under tcp/ip stack there are 5 layers

      port numbers are still layer 4 but application drops down to five

      see.

  4. Eep! by Faust7 · · Score: 2, Funny

    telnet some.insecure.host.org 1234

    Crap, how'd they find m--I mean, that poor sucker.

    1. Re:Eep! by AndroidCat · · Score: 2, Funny

      You mean some.insecure.host.org at 216.74.108.110? I hope that it's like example.com, and meant to be used like this. (Hmm, FTP server running there. :^)

      --
      One line blog. I hear that they're called Twitters now.
    2. Re:Eep! by deadsaijinx* · · Score: 4, Funny

      no, it's at 127.0.0.1 ... it's super easy to break in, I've done it before, and the poor sap didn't even realize it. muhahahaha, i am such a l33t h4x0r

      --
      YOU SUCK BALLS!
  5. Stateful Packet Inspection recommended by steveha · · Score: 5, Interesting
    The article is worth reading, but there was one comment that made me go "Huh?!?"

    Stateful, multi-layer inspection firewalls
    [...]
    High level of cost, security and complexity

    Pretty much all of Netgear's home routers have stateful packet inspection features. Some of them are quite inexpensive (how about US$80 for a model that even includes a print server!).

    The great thing about stateful packet inspection is that you don't have to configure it. If you want to play some new game that does multiplayer play on the Internet through some wacky port, it will just work, and meanwhile if some random guy blasts packets at that port or any other they will bounce off. If you didn't ask for a packet, it gets turned away.

    (If you ever serve as tech support for a friend or family member, be sure they buy a firewall/router with stateful packet inspection!)

    Of course, that cuts both ways: any back-doors in your network will just work, also. Don't figure that just having a cool firewall/router with stateful packet inspection is a guarantee that you are secure. But it's a nice start, and it's what I recommend to anyone who has an always-on Internet connection.

    steveha
    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
    1. Re:Stateful Packet Inspection recommended by brett42 · · Score: 3, Informative

      I spent two years in a highschool cisco class, and in the 2 months before we started playing quake, I learned about network models. Basically, network operations can be divided into multiple layers, with each performing different functions. The layout of these devices seems to be based on one of these models, though I don't remember which. The stateful packet inspection you refer to would probably be part of the first device mentioned in the article, packet filters, which just operate on the network layer, not the other two.

      Of course, somewhat intellegent packet filtering at the router beats the hell out of those "home firewall" programs that make pop ups every time you run a new program.

    2. Re:Stateful Packet Inspection recommended by AlCoHoLiC · · Score: 5, Informative

      Allowing ALL ougoing and RELATED incoming traffic is hardly secure setup. Every fscking worm/backdoor is allowed to call home, replicate itself or even participate in DDOS network. I also doubt that netgear cares about actual packet payload (layers 4-7). I guess that they're using dynamic packet filter.

    3. Re:Stateful Packet Inspection recommended by vrt3 · · Score: 2, Interesting
      I think you missed
      • Layer 3 filtering
      • Layer 4 validation
      • Layer 5 inspection
      I'm pretty sure the Netgear routers you talk about only handle layer 3, like linux' netfilter/iptables does. The expensive part is handling layers 4 and 5.
      --
      This sig under construction. Please check back later.
    4. Re:Stateful Packet Inspection recommended by baka_boy · · Score: 3, Interesting

      This is a Windows problem only as long as Windows rules to corporate and desktop market; if there were, say, 30% market share of Linux machines out there to worry about, there would be much closer to 30% of a share of virii, worms, backdoors, etc. for that market. So long as Linux, FreeBSD, et. al. are fairly unusual systems to find inside the firewall, they will be (somewhat) less commonly-targeted systems for network attacks.

      It's an unpleasant side-effect of the "security does not come through obscurity" argument: since truly strong security is more or less impossible for fully-networked commodity workstations, the more popular an operating system or protocol server implementation is, the more likely it is to be hacked, cracked, and just generally abused.

      I've seen this even within the microcosm of Linux servers; the one time I tried to put a relatively well-firewalled (but not, unfortunately, religiously-patched) Red Hat server out on the net, it was hit with a rootkit within a week. Once that was replaced with an OpenBSD system ru awanning the same services, (albiet with a somewhat more recent version of OpenSSH) I was free to check back no more than once every few days to make sure that everything was in order.

      (Note: before anyone flames me for my sloppy sysadmin practices, please be aware of two facts: one, at the time, I was already working 40+ hours a week as a lowly coder, and was solely responsible for the design, development, deployment, and maintenance of the dynamic product support website whose server got cracked, and two, I've more than learned my lesson, and now know how to firewall, audit, and harden a system well enough to be back to the point of worrying about application, rather than network or OS-level, security. And, I no longer put anything running Red Hat anywhere near an open port and public IP address, unless I'm ready to wipe and reinstall at a moment's notice.)

    5. Re:Stateful Packet Inspection recommended by Hobbex · · Score: 2, Insightful


      This is a ridiculous argument. Any worm worth two cents is just going to communicate out using port 80, and if the author is really clever it will do it by opening http pages using Internet Explorer so the traffic doesn't look different, and not even local application level firewalls or authenticated proxies can stop it.

      Blocking outgoing traffic does nothing for security, and tons to block legitimate applications and the true power of the Internet (as opposed to the Web).

    6. Re:Stateful Packet Inspection recommended by nmg196 · · Score: 2, Informative
      The great thing about stateful packet inspection is that you don't have to configure it. If you want to play some new game that does multiplayer play on the Internet through some wacky port, it will just work


      You're very confused. This behaviour is absolutely nothing to do with stateful packet inspection. *ALL* routers will behave like this if you enable routing of all outbound traffic - even really cheap and simple NAT firewalls (not really even a firewall). Allowing all outbound traffic means that any trojans you get though e-mail/floppy/open HTTP port etc etc mean that the trojans can phone home and start sending out personal information or attacking other systems. Hardly secure...

      The particular Netgear firewall you mentionned (FM114P/FR114P) is one I've used at home. It's probably the least stable and most annoying piece of hardware I've ever used. If you read the forums on dslreports.com you'll see that most users are plagued with problems ranging from random lock ups (mine needs rebooting every couple of days) to it's inability to handle long URLs (causes lock ups) and it's susceptability to the common ping of death attack, which means anyone on the internet can lock up your router with a simple ping command. I've had most of these problems myself, and if you combine them with the poor performance (especially if WEP is enabled) and power supply problems, you end up with a pretty poor product where the only redeeming factor is it's price. I think Netgear have resolved a few of these issues with the latest firmware, but they should have got it to this stage BEFORE releasing it, not a year or two afterwards! Why it takes 12 minutes to copy a 100mb file across the network - when both machines are in line of sight with the router and have full signal strength is beyond me! That's only 135k/sec which is almost exactly 1Mbit - and it's supposed to be an 11Mbit network - not exactly fast!

      Nick...
    7. Re:Stateful Packet Inspection recommended by steveha · · Score: 2, Informative

      You're very confused. This behaviour is absolutely nothing to do with stateful packet inspection. *ALL* routers will behave like this if you enable routing of all outbound traffic

      The last time I looked at a cheap firewall/router that did not have stateful packet inspection, I seem to recall that it had most ports closed. That if you wanted to run some wacky program on some wacky port (your new game, for instance) that you would have to fire up the web browser, go to the admin form, and open the port. And then that port would be open. All the time.

      So, I'm confused. Am I wrong about how the non-stateful firewall works?

      Allowing all outbound traffic means that any trojans you get though e-mail/floppy/open HTTP port etc etc mean that the trojans can phone home

      Dude, check my comment about "Of course, that cuts both ways". I know they can phone home. (But I think most trojans phone home through the HTTP port, so most firewalls will let them do it.)

      The particular Netgear firewall you mentionned (FM114P/FR114P) is [...] probably the least stable and most annoying piece of hardware I've ever used.

      I'm sorry to hear that. I've had good luck with my Netgear. In fact I haven't had any trouble with any Netgear stuff I have bought (and I can't say the same about Linksys).

      I haven't tested that particular model, however.

      steveha

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    8. Re:Stateful Packet Inspection recommended by MeNeXT · · Score: 4, Insightful
      I have moderator points and I'm about to post go figure...


      This has nothing to do with thechnology but more to do with attitude, policy and productivity.



      You see in most trades/proffessions you need to learn how a tool works before you are eveluated on the tool. After that you need to apply the tool to the trade, which means you need to understand the workings of the trade. This takes years.


      Now, with computers, we have business that are trying to fit the trade to their tools. When that does not work and they encounter problems, they hire someone who knows one tool. They then try to force the tool into the business.


      This will never work! You cannot make a general tool to fit every need and at the same time make this tool easy to use. A good example that I can bring up is for MS Word users. Placing graphics in word does not make word a publishing software. All it has done is waste your time and the other person who is to open the document. Word is made for typing letters when we use it for other things it becomes complex. IT DOES A POOR JOB and it costs you more time and money than buiying the right tool or asking someone who is in the trade.



      Now before buying any software you need to identify what your needs are. Do you need to access files from home? Better yet why are you taking work home? How manyhours do you propose to work? If you wish to spend more time with your familly then mabye you should look at sleeping less because sitting in front of your computer is NOT familly time. In most cases this an ego issue (Look I can PISS farther than you!) an not a technologie issue.


      If Linux can only STOP trying to be Windows then the virus issue will stay with Windows. We have seen on the server side that Linux has not followed in the Windows steps.


      One last question why do you first start talking about the desktop and then give a server example?

      --
      DRM? No thanks, I'll just get it somewhere else...
  6. Re:heh, 3Com by Anonymous Coward · · Score: 5, Funny

    I remember the time when we found out that the 3Com switch / router / whatever (i can't remember so clearly now, it's been such a traumatic shock that i am still trying to forget and having mild success), and we were basically like "WHAT?!?!" and then all passed out.


    I remember this time I was all drunk and busy trolling slashdot and I got to this article that was related to what I do for a living, only it was related in the most remedial of fashions and I was like "right on, I can troll this motherfucker like it ain't nobody's business, fo shizzle mah nizzle, and I may even get mod points cuz of the bullshit I'm about to spew."

    Anyway, I was reading this mofo and I came across some whack job herion addict post that said some stupid shit and I read it and reread it and reread it, and was like "well, I'd troll this sumbith, but the wanker can't even write coherently". So I read it again and was basically like "WHAT?!?!" and then I was all passed out.

  7. Re:Just remembered by Anonymous Coward · · Score: 5, Funny

    You know you're on slashdot when sex position posts get modded Informative.

  8. I like by pair-a-noyd · · Score: 5, Interesting

    Smoothwall GPL 2.0 Beta 4 (mallard)
    http://smoothwall.org/beta/

    I put three nics in a Pentium 90 that I found on a trash heap. One nic goes to my RR cable modem, one nic goes to my switch and one nic is for my son's Playstation 2.
    I can control every aspect of the firewall from any pc on the green nic. The firewall pc doesn't even have a keyboard or monitor.

    I can VPN through it with ease and I have port forwarding from an oddball port number to port 21 for a private FTP so that RR won't find it.

    It's really easy to use and so far I've had no problems.
    Of course ALL the machine inside of it are Linux boxes and all of them are using iptables (w/shorewall) so everything is really secure..

    For a super easy, very cheap and very fast firewall try floppyfirewall at http://zelow.no/floppyfw

    No worries here...

    1. Re:I like by Osty · · Score: 3, Interesting

      I put three nics in a Pentium 90 that I found on a trash heap. One nic goes to my RR cable modem, one nic goes to my switch and one nic is for my son's Playstation 2.

      What was your reasoning behind adding a NIC specifically for the PS2? It should work fine just connecting to your switch, and assuming you have DHCP running for your internal network it won't even require any setup for the PS2. Plus, you can get an XBox as well and plug that into the switch, and have both running at the same time.


      I'm sure you had a reason for that layout, I just can't figure out what it could be. Enlighten me?

    2. Re:I like by pair-a-noyd · · Score: 2, Insightful

      Of course the power draw is more.
      But the firewall is MUCH better.

      Besides, you can add one or more DMZ nics in a PC.
      And if you find a serious problem with your firewall, you just fix it. You can even totally change the software out and get very, very precise tunning of your iptables. I think they call it granular control..

      No can do with a $50 bestbuy firewall/router... A $50 router is kind of like a having a Chihuahua guarding your home.

    3. Re:I like by pair-a-noyd · · Score: 4, Informative

      Several of the games did not like the firewall. There was *some* connectivity but not total cooperation between the PS2 and the firewall.

      Several of the games want huge chunks of ports opened up. Uh uh. Not gonna do that. So I added the third nic as a DMZ (smoothwall calls it "Orange Zone") so that the PS2 has unhindered access to the web.

      There are three nics,
      red=nic to modem (dhcp)
      orange= nic to PS2 - 192.168.2.1
      green=nic to my lan - 192.168.1.1

      The red zone is the nic that goes to the cable modem, it gets it's IP from RR's DHCP.

      The orange zone nic is hard coded to 192.168.2.1 (by me) and the PS2 is 192.168.2.2 There are no port restrictions on it, it's raw and naked on the net, as it wants to be..
      Since it's a PS2 it doesn't matter.

      Smoothwall provides DHCP for the green zone so whatever I plug in to it works. Nice. People bring me PC's all the time to work on.

      Another nice thing smoothwall does is take care of dynamic DNS for me, I have a freebee domain from dyndns.org so I can FTP to a private box on my lan from remote sites (while working) and I have accounts setup for my friends so they can ftp in too.

      I hard coded one of my boxes to a specific IP then port forward from port XXXX to port 21 at my internal IP of 192.168.1.205. Only my friends and I know it's there and can access it. Very handy.

      Veyr often I get somewhere and remember that I forgot something important! Bada bing! I can connect up to the house and get it... Smoothwall is VERY handy for my needs. I have no complaints about it...

    4. Re:I like by zcat_NZ · · Score: 2, Informative

      I hard coded one of my boxes to a specific IP then port forward from port XXXX to port 21 at my internal IP of 192.168.1.205. Only my friends and I know it's there and can access it. Very handy.


      Nice, but I strongly suggest you use SSH instead, particularly since you're on a cable connection.

      You can download a windows client called putty. It's a small, standalone .exe so you can easily grab it when you need it, and drop it in the trash when you're finished.

      --
      455fe10422ca29c4933f95052b792ab2
    5. Re:I like by pair-a-noyd · · Score: 2, Interesting

      "So I'm also really curious as to why he chose this arrangement... if it's not the third reason, I hope he shares his reason with us, because undoubtedly I could learn from it."

      The PS2 did not like being behind a firewall. The game people say to open up huge blocks of ports to allow unsolicited incoming traffic. I don't like that concept.

      If I open up 1000 ports (ports 6,000 to 7,000) plus a handful of other ports, and the PS2 is on the same zone as my other machines, well you get the picture.

      I *THINK* that what was happening was that the PS2 would send data out through certain ports and when the other players would respond on those same ports, all was well. But I think the PS2 was LISTENING on other ports for incoming but unsolicited traffic. That traffic came in and hit the firewall, IP tables saw it as unsolicited and stopped it.

      I could rewrite the IPtables if I were smart enough but I'm rather new to Linux, I've been a Linux user less than a year.
      The EASY thing to do was to add a third nic that is just naked. It's unfiltered so all traffic that it needs gets through. So far it's worked well.

      I *DID* try opening a few holes in the firewall at first when he was plugged into the switch with the rest of the house but I just did not like that option. I ran a seperate wire from his PS2 to the third nic.

      His block of 192.168.2.xxx can NOT communicate with my block of 192.168.1.xxx nor can mine see his unless I open a pinhole in the orange, which would be pointless...

      I decided to use DHCP on my side and the 192.168.1.xxx scheme since it is the most common one in use, making it extremely handy when other people bring other pc's and devices over for repair or fun.

      On my son's side, the 192.168.2.xxx side I hardcoded the IP's because there is no DHCP served to the orange zone.. (Smoothwall people call the DMZ the orange zone)

    6. Re:I like by Osty · · Score: 2, Informative

      I've never used Smoothwall, instead doing all of that by hand (setting up a firewall, DHCP; haven't bothered with dyndns though, since I used to have static IPs and now that I don't I haven't found a need to connect to my home PCs yet). The way I would've setup your topology would have been to set a given IP to the PS2's mac rather than just getting a random IP, and then setup appropriate firewall rules for that IP. The rest of the internal network would have its own separate rules.


      Then again, I didn't want to add more NICs than was reasonably necessary (as another poster pointed out, you could've done all of this with a single NIC, but two NICs is the sweet spot IMHO). Maybe Smoothwall makes it more difficult to do this (can't assign specific IPs by MAC, perhaps? or can't assign specific rules to a given IP?) and so the third NIC route was the easiest method, or maybe you just wanted to play around. I don't know. Whatever works.


      And just for kicks, my own setup looks something like this:

      • Cable modem goes into a switch.
      • My main linux box connects to the switch and does firewalling (custom iptables script) and NAT (custom iptables script) among other stuff (DHCP with IPs assigned by MAC and no dynamic IPs for unrecognized MACs, fetchmail and internal exim server with spamassassin through procmail, local cvs, ssh and sftp, etc).
      • The second NIC in the linux box connects to another switch for my internal wired/wireless network.
      • I have another linux box and my main XP desktop on the wired portion of the internal network, and my laptop on the wireless portion.
      • And finally, the reason for the initial switch between the cable modem and the linux box is for my XBox.

      Like you, I didn't want to have to putz around with opening ports for a gaming console, but I took a slightly different approach. I pay Comcast another couple $ per month for a second dynamic IP, and have the XBox directly online (no NAT or firewall to get in the way).
    7. Re:I like by Artifex · · Score: 2, Informative

      There! Now I feel better that the truth is out...


      Well, I have a confession to make, then, also, just so you don't feel bad:

      Remember what I said about the PPPOE and ICS and a star config with one NIC on the gateway, and all that?

      I actually ran that for a while when I was living with my parents, before moving out. It was dog-slow when they'd be on their box though, sometimes, because ICS isn't exactly very efficient, and bouncing it in and out across the same segment didn't help. Plus, they couldn't turn off their box, or I'd be screwed. Not to mention that I had to get a third-party PPPOE adapter to get it working, because the stupid spyware-laden CD that the ISP wanted us to use wouldn't work with ICS anyway. I moved out (got a promotion, moved out of state) before I put in a real router, but I bought a router and another switch before even getting DSL at my new place. Then when I moved back in (got laid off) I gave them the router and changed the layout of the network.

      I wrote all that in case anyone out there is thinking of doing something similar. It's doable, but you're much better off either making a gateway or buying a cheap one (which also uses less power, is silent, isn't as likely to have parts fail, and has firmware pre-loaded) unless you're absolutely without funds. Did I mention that ZoneAlarm wouldn't work with ICS back then, either? :)

      --
      Get off my launchpad!
    8. Re:I like by Spacelord · · Score: 2, Insightful

      One problem: Putty will put keys in the registry

      First of all, I don't see the problem about putting the *public* key of an ssh server in the registry ... it is called a "public" key for a reason.

      Secondly, you can easily clean up everything putty has put in the registry by using the -cleanup switch. (e.g. putty -cleanup)

  9. shit! by lingqi · · Score: 3, Informative
    ack; so much trauma i can't even finish a train of thought these days.

    look what certain backdoors can do to you.

    --

    My life in the land of the rising sun.

  10. how come... by deadsaijinx* · · Score: 2, Funny

    articles about network security always remind me of a poorly written tech based porno?

    --
    YOU SUCK BALLS!
  11. SecurityFocus says no MacOS EVER exploited once! by Anonymous Coward · · Score: 3, Interesting

    Firewalls have NEVER been required to prevent remote exploitation on a Mac.

    I find it both sad and amusing that people try to publish studies about this topic without first addressing the fact that there are more secure platforms for webserving.

    It is a concrete fact that that no MacOS based webserver has ever been hacked into in the history of the internet.

    The MacOS running WebStar and other webservers as has never been exploited or defaced, and are are unbreakable based on ample historical evidence.

    In fact in the entire SecurityFocus (BugTraq) database history there has never been a Mac exploited over the internet remotely. Scan it yourself.

    For years, except, for the last week, the army has always used MacOS and has never had a breakin on a Mac. Unlike their other MS defacements.

    http://uptime.netcraft.com/up/graph?site=www.arm y. mil

    That is why the US Army gave up on MS IIS and got a Mac for a web server.

    I am not talking about FreeBSD derived MacOS X (which already had a more than a 30 explo its and potential exploits in BugTraq) I am talking about current Mac OS 9.x and earlier which are highly sophisticated abstract-OS models.

    Why is is hack proof? These reasons :

    1> No command shell. No shell means no way to hook or intercept the flow of control with many various shell oriented tricks found in Unix or NT. Apple uses an object model for procces to process communication that is heavily typed and "pipe-less"

    2> No Root user. All mac developers know their code is always running at root. Not hing is higher (except undocumented microkernel stufff where you pass Gary Davidians birthday into certain registers and make a special call). By always being root there is no false sense of security, and programming is done carefully.

    3> Pascal strings. ANSI C Strings are the number one way people exploit Linux and Wintel boxes. The mac avoids C strings historically in most of all of its OS. In fact even its roms originally used Pascal strings. As you know pascal strings are faster than C (because they have the length delimiter in the front and do not have to endlessly hunt for NULL), but the side effect is less buffer exploits. Individual 3rd party products may use C stings and bind to ANSI libraries, but many do not. In case you are not aware of what a "pascal string" is, it usually has no null byte terminator.

    4> Macs running Webstar have ability to only run CGI placed in correct directory location and correctly file "typed" (not mere file name extension). File types on Macs are not easily settable by users, expecially remotely. Apache as you know has had many problems in earlier years preventing wayward execution.

    5> Macs never run code ever merely based on how a file is named. ".exe" suffixes mean nothing! For example the file type is 4 characters of user-invisible attributes, along with many other invisible attributes, but these 4 bytes cannot be set by most tool oriented utilities that work with data files. For example file copy utilities preserve launchable file-types, but JPEG MPEG HTML TXT etc oriented tools are physically incapable by designof creating an executable file. The file type is not set to executable for hte hackers needs. In fact its even more secure than that. A mac cannot run a program unless it has TWO files. The second file is an invisible file associated with the data fork file and is called a resource fork. EVERY mac program has a resource fork file containing launch information. It needs to be present. Typically JPEG, HTML, MPEG, TXT, ZIP, C, etc are merely data files and lack resource fork files, and even if the y had them they would lack launch information. but the best part is that mac web programs and server tools do not create files with resource forks usually. TOTAL security.

    4> Stack return address positioned in s afer location than some intel OSes. Buffer exploits take advantage of loser programmers lack of string leng

  12. Re:SecurityFocus says no MacOS EVER exploited once by pair-a-noyd · · Score: 2, Funny

    "It is a concrete fact that that no MacOS based webserver has ever been hacked into in the history of the internet."

    That's because there is a grand total of 1 (ONE) MacOS based webserver(s) on the internet.

  13. Re:Just remembered by SomeGuyFromCA · · Score: 3, Funny

    Actually, the most common sexual style is ::drumroll:: doggie style.

    That's where the man sits up and begs and the woman rolls over and goes to sleep.

    --
    if the answer isn't violence, neither is your silence / freedom of expression doesn't make it alright
  14. Re:heh, 3Com by Anonymous Coward · · Score: 2, Funny

    there really should be a special mod category for trolls that are worth reading.

  15. Routers by Zarxos · · Score: 5, Interesting

    Personally I don't see any use for software firewalls for the majority of home users. I have a Linksys router and it completely shields both of my computers from outside access unless I use port forwarding. This is much easier to configure and use than a software firewall, and if there is ever a port you need to open for whatever reason, just use port forwarding and it's done in 30 seconds.

    1. Re:Routers by thynk · · Score: 3, Insightful

      sonally I don't see any use for software firewalls for the majority of home users.

      Kind of funny that this comes up right as I'm thinking that my hardware/router based firewall isnt' enough and that I need to back it up with a linux software firewall.

      IIRC on the home routers, any program requesting a port to talk out of can recieve a request back on it. SO... your WORM opens up port n, sends the info, get's it's commands to try on your system, then sends off the next command it's done/how and waits for it's marching orders.

      --

      Good judgment comes from experience, and a lot of that comes from bad judgment.
    2. Re:Routers by raga · · Score: 2, Insightful
      SO... your WORM opens up port n, sends the info, get's it's commands to try on your system, then sends off the next command it's done/how and waits for it's marching orders.


      To do this, the worm would already have to be on your disk. If your system is already infected, then all bets are off....

      If Jane Q Public has a router that requires port-forwarding for external connections, and she takes other reasonable precautions to prevent an initial infection (re. downloads, email attachments etc.), she will be ok from 99.9% of the s'kiddies out there. Good luck with the remaining .1%!

      cheers- raga

  16. arf! by Artifex · · Score: 3, Funny
    Actually, the most common sexual style is ::drumroll:: doggie style.

    That's where the man sits up and begs and the woman rolls over and goes to sleep.


    If only I could do that self-licking thing, like they do afterwards. Why do they even bother with the middle?
    --
    Get off my launchpad!
  17. SSH Tunnels by rf0 · · Score: 4, Informative

    One thing which is handy for backdoor is SSH tunneling. A nice exaple can be found here Just replace port 110 with anything else and off you go

    Rus

    1. Re:SSH Tunnels by Rob+Riggs · · Score: 3, Interesting
      A more generic solution for getting around egress filtering is an SSH-based VPN.

      For even more pertinacious network environments, one can use httptunnel or the more advanced desproxy

      --
      the growth in cynicism and rebellion has not been without cause
  18. Re:SecurityFocus says no MacOS EVER exploited once by Feztaa · · Score: 2, Insightful

    Why is is hack proof?

    Right. It's secure because they removed all the things that make a computer worth using. No command shell? How do you do remote administration? Bleh, i could go on, but I don't care.

    its quite amusing that there are over 200 or 300 known vulnerabilities in RedHat over the years

    I think you mean "200 or 300 fixed vulnerabilities". That's just how it goes, I guess. They find a problem, it is disclosed, and fixed. End of story. Unlike other OS's that try to hide all their problems instead of fixing them and being honest about it. Whatever.

    --- too bad the linux community is so stubborn that they refuse to understand that the Mac has always been the most secure OS for servers.

    Too stubborn, or too poor? I'd buy a Mac if I could, but I'm not a billionaire. Commodity PC hardware + Linux = cheap access to fun technology.

  19. Most secure solution isnt simple, but its the best by Zeddicus_Z · · Score: 4, Informative

    1) Use both inbound and OUTBOUND ACL lists on routers, firewalls and other access control devices. Go with the highest level of restriction you can get away with, and log everyhing to a central point.

    2) For services you must offer to internal users (www access etc), use good proxies and authenticate every connection.

    3) Ensure all services/software products are up to date with security patches. This INCLUDES user workstations.

    4) Keep track of security-related sites and lists, such as bugtraq, packetstorm etc.

    5) IDS' inside your perimeter to detect anything you're missing. After all, no-one (and by extention, no-one's ACLs) is perfect.

    6) Ensure you pay close attention to any remote-access you offer. Modem banks, VPN endpoints etc. Preferably these should also be access-controlled via ACL's of some sort.

    7) Ensure you configure your software properly. Seems stupid, I know. But a perfectly secure (from a bugs point of view) mail server is suddenly a problem if you've forgotten to disable mail relay.

    8) Ensure you have the right topology. There's no point in spending hundreds of man hours securing services, auditing router ACLs etc etc if theres fifteen different ingress/egress points to your network. The less, err, gresses you have, the more you can concentrate your efforts and thus use your time effectively.

    Caveats: I may have missed one or two points in the above summary of practice, but hey - it's a friday arvo and I want to get my work finished so im not here late.

    Also note that while the above list sounds relatively easy to implement, IT ISN'T. Be prepared for a lot of work if you want to do it right.

    --
    Janie took my gun...
  20. Re:Most secure solution isnt simple, but its the b by retto · · Score: 2, Insightful

    Of course, a network's weakest point is often the people who use it. Firewalls and security patches do not mean a lot if a user gives information out to anyone who calls their extension and acts like a manager from another department. Hardware is only part of the solution.

  21. You just described DOS. by Burning1 · · Score: 3, Funny

    ...and based on what you've written, I'm willing to bet you've never run a network larger than the one in your home.

  22. Re:SecurityFocus says no MacOS EVER exploited once by drsmithy · · Score: 2, Informative
    [...] too bad the linux community is so stubborn that they refuse to understand that the Mac has always been the most secure OS for servers.

    Well, I'm not "the linux community", but I'd like to see your MacOS 9 box serve up files for twenty thousand students and staff with decent performance and mantain an uptime greater than single digits.

  23. Default deny by MadFarmAnimalz · · Score: 2, Interesting

    They avoid immediate detection by well-configured firewalls, network & host IDS.

    Hmm, well, not necessarily. I am thinking this is why there is such a thing as a default-deny firewall ruleset policy.

    For example, you have a dns server and http server up and running on the standard ports, and anything else gets binned.

    I'd say that's a fine example of 20-year-old technology (firewalls) catching a backdoor.

    --
    Blearf. Blearf, I say.
  24. Something like Zonealarm for linux? by jopet · · Score: 2, Interesting

    I wonder if there is some simple software for linux that alerts me every time a program tries to connect to the internet (outbound) and that allows me to allow or deny those connections. It should also detect new versions of the program using MD5 key or similar. Does such a program exist?

    1. Re:Something like Zonealarm for linux? by c0dd3r5 · · Score: 2, Interesting

      It just so happens... as of about three days ago, my associates and I have been working on just such a program. It basically hooks into net/socket.c and, on receiving a socket request, blocks the requesting application until a userland daemon authorises it. The daemon automatically grants / denies requests to applications in its control list, and denies requests from unknown applications. We're about to starting working on the client which, when running, will receive information about the unknown app. and ask the user if said app. ought to be allowed to use the internet.
      Obviously at the minute it's still heavily alpha. The kernel patch works, and applications can be made to block or allowed to run. I don't know if this has been done before, but work is continuing apace (cause it's still interesting and we haven't hit a brick wall yet). I hope to have gotten something resembling a client working by this evening, but since we're pretty much messing around at this stage it'll probably be a couple of weeks before any files are available for download.
      As for authentification, MD5 summing was one of our thoughts, but it would be a little heavy to sum the application every time it requested a socket, so at the moment we're just basing it on inode / dev_no which, although not impossible to fake, seems like a good starting point.
      I'd be interested to know what people thought about this; whether any such applications already exist and what features it ought to incorperate. If it turns out people are interested, I'll try making the patches and source files available, but I can't recommend installing it into a kernel which you're actually trying to use - suggest UML or similar virtual machine.

  25. The whole article describes: by Alex+Belits · · Score: 4, Insightful

    1. What firewall software pretends to do (as opposed to what it actually accomplishes).

    2. How to become a perfect target of DoS attack through paranoia (imitation of any intrusion-like activity will make the supposed origin unable to access you).

    3. How to defend yourself when you have already lost, and are for all practical purposes as good as dead.

    --
    Contrary to the popular belief, there indeed is no God.
  26. Everyone seems to be missing the point by scottme · · Score: 5, Insightful
    I am not enough of a security geek to fault this article on any technical detail, but surely the main message is that no matter what technical measures you take, any dumb user can totally subvert all your efforts by inadvertantly, unwittingly, or even maliciously running code on a personal system inside the secured network that opens a tunnel to the outside. Hence the title of the article.

    The concluding sentences contain the main learning point, as I see it: you need a way to identify all connections down to the source (user).
    And you need to make sure that all those dumb users know you're watching them and that you will hold them accountable for breaches of security that they initiate.

    Or is all that so obvious that no-one has felt the need to point it out?

  27. Firewall Systems Considered Harmful by Alioth · · Score: 2, Insightful

    I would write a long rant about firewalls and people thinking, "Oh, it's OK, we have a firewall" and not dealing with internal security, but this article does it adequately:

    Firewall Systems Considered Harmful

  28. Transparent firewalls by nmg196 · · Score: 2, Interesting

    While it's on topic, I've always wondered how many people use transparent firewalls. I work for a small web development company in the UK and as such we have about 30 IP which host a few public facing webservers as well as our mail and stuff. We decided to use a transparent firewall (ie, one that lets us keep our 30 real IP addresses on the machines which are public facing - rather than 192.x or 10.x addresses) so that if there were any problems with it, we could just remove it (physically) and everything would still work. No network reconfiguration required.

    But it seems that it's quite uncommon for firewalls to even support this feature and even less common for people to actually use it in this mode. Is there a reason that more firewalls don't support this functionality, or are there good reasons not to configure your network like this?

    A major problem we would have if we used something like a Cisco PIX is that we wouldn't be able to see the websites we are hosting. The domain would map to a normal internet facing address, yet we can't see those addresses from the LAN (they don't seem to apply the port mapping to connections that have come from the LAN - so we'd need to look at them on their internal IP or something).

    How many people actually use transparent firewalls? Or how do you get round the problems above if you're a web hosting company and you don't have a transparent firewall? Do any decent firewalls (apart from Sonicwalls) actually support this?

    Nick...

    1. Re:Transparent firewalls by Zeddicus_Z · · Score: 4, Informative

      I suspect you haven't actually tried to implement a PIX yet. The Cisco PIX (at least, the low-end 506 we have) *does* support what you're talking about - although what you're talking about isn't really a transparent (also known as *bridged*) firewall.

      Setup the PIX. Use static maps for the IP addresses, so your webservers etc are behind the pix but using the public IP's. When an internal machine tries to connect to the IP address of your website (say 210.20.38.129), the request is forwarded to your default router (border router usually, unless you're on a larger network). The router gets the request, goes "hey, im responsible for that IP. It should go *HERE*" and fowards it back to the webserver *through* the PIX. At no point does the PIX attempt to map the IP address of 210.20.38.129 to the MAC addy of your webserver for the internal connection. Only after the connection has bounced off the border router does the PIX go "hey, incoming *external* request for 210.20.28.129. I've got a static route for that. I'll send it to $webserver". And your connection works.

      Now, if you use a domain name for the request (as most people do when using a web browser), your internal requests will first bounce off your internal DNS. And that's where the problem is. Your internal DNS is configured to point www.myinternalwebserver.com to 192.168.0.129 (or whatever the machine's internal interface is) instead of the public IP address. If it was pointed at the public address, your machine would get said address returned to it after doing the DNS lookup and follow the steps in the paragraph above. Namely, the req bounces off the border router.

      As a side note, transparent firewalls are synonyms for bridged firewalls. I.e. it's impossible to actually gain network connectivity to the firewall because for all intents and purposes, it's setup to act as an intercept on a peice of cat5, not as two interfaces seperating two network segments. Think of it as tapping a Cat5 cable and trying to ping the tap itself. Not going to happen, as neither the bridged firewall system (or the tap, per example) have interfaces with an IP address.

      There's a guide floating around the net on how to implement bridged/transparent firewalls using OpenBSD if you're interested. It can be found at http://ezine.daemonnews.org/200207/transpfobsd.htm l

      --
      Janie took my gun...
    2. Re:Transparent firewalls by feepcreature · · Score: 2, Informative
      All firewalls I know of can behave "transparently" as you have described it - basically like a normal router, but also filtering undesired traffic.

      There is no requirement for a Checkpoint/1 or Cisco PIX firewall, for example, to use private addresses on the inside, and translate them into public addresses on the way out. It's just a question of how you configure the system.

      On the one hand, you could have your public addresses "on the inside of the firewall", with one address being the firewall's "inside" interface and the default route out to the internet for your servers - allowing for the network and broadcast addresss, that leaves 29 usable addresses for systems inside your firewall. You would probably use a private address for the outside interface, but you'd sort that out with your ISP. No address translation required. Like your sonicwall, perhaps?

      On the other hand, you could configure your public addresses as a pool on the firewall, and have it translate them into private addresses on the way in (and public addresses on the way out). And you could have a 1:1 or a 1:Many mapping. But you don't HAVE TO do any of this.

      On the third hand, you could split the 32 addresses, use Network Address Translation for some of them, and route the rest transparently through the firewall.

      In any of these cases, you can also apply whatever rules you want to each of the addresses.

      Or am I misunderstanding your question?

      --
      Paul "Say no to feeping creaturism"
    3. Re:Transparent firewalls by Zeddicus_Z · · Score: 2, Informative

      Bridged firewalls support VPNs, in that they'll pass VPN traffic. however, as they have no IP addresses, you can make them endpoints for the VPN tunnel. What you'd have to do is setup a 2nd host inside the bridged firewall, and use that. Keep in mind however that anyone who can authenticate to your VPN is treated as an internal user. So, if you have business parter type companies connecting, its best to keep a close eye on VPN traffic coming OUT of your VPN endpoint and into your internal network.

      --
      Janie took my gun...
  29. hmm, that's FUD by DrSkwid · · Score: 2, Insightful

    1. how do you know?
    2. your computer != all non windows setups
    3. 10 Months is not a long time
    4. Robert Morris

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  30. Bits go in. Bits go out. That's what networks do. by aphor · · Score: 3, Interesting

    The real problem here is that these Security Focus people are still trying to design a harder eggshell. Any "barrier" must allow some traffic through, or it will break the network. You cannot install a barrier that understands how to distinguish between good and bad traffic. It is not a closed problem. It is an open-ended problem. It isn't about computers or technology. Its about people and subversion. The answer is too difficult for most people: trust is arbitrary and inherenly flawed, but it is absolutely necessary for human interaction. The technology just fools us into thinking we can control things like a vending machine. The problem seems to be transparent because we can see lots of stuff on the inside of technological subversion, but at the bottom is void: trust is arbitrary and error prone.

    The real answer is that we must do what we are already doing, willingly, instead of reluctantly as we do now: accept subversion as a part of the system. We must understand that we created the space-time in which the subversion is manifest. It must be percieved as the limits of our power. Once that is understood, it is also understood how to coexist with limited power. This is the fundamental social problem: being with others. Consider that the subverion is another feeling person expressing their limited power outside the scope of our limited power. Take compassion on that person if they do not know the suffering they cause will come back to them. Do what you can, each as individuals, to absorb the effects of those bad effects so that they do not become causes of other bad effects.

    Recurse your awareness; avoid recursing your (or others') mistakes. Security does not exist. Only fools really believe in it.

    --
    --- Nothing clever here: move along now...
  31. big deal by DrSkwid · · Score: 2, Insightful

    because if you'd actually learned anything in the same 20 years that I've been working in IT it is that there is no "magic platform" that's invulnerable to sloppy coding be it windows, linux, AIX, plan9, OpenBSD or whatever.

    Go read Security Focus and count the number of "Design Errors"

    Here's one from today's front page :

    Linux Kernel Privileged Process Hijacking Vulnerability **

    > I have 7 PC's here at home, all of them are Linux.

    Your cock waving has no effect I'm afraid.

    > It's not FUD, it's FACT.. I know it from experiance.

    If I can restate your premise :

    -----
    "Every fscking worm/backdoor is allowed to call home"
    Simple. Don't use Windows.. That's a Windows problem.
    -----

    It's not even factual let alone borne of experiance [sic].

    It's about a firewall rule. And it sounds like a simple NAT. It doesn't even have anything to do with Operating Systems

    >I quit using Windows in August of 2002 and have not had a single worm, virus, trojan, backdoor, hack, sneeze, fart, or burp since..

    I've been using Windows since 1987 and have never suffered from any of those things.

    > I didn't just fall off of the turnip truck...

    Nope, sounds like you stayed right on the top of the pile

    ** A vulnerability has been discovered in the Linux kernel which can be exploited using the ptrace() system call. By attaching to an incorrectly configured root process, during a specific time window, it may be possible for an attacker to gain superuser privileges.

    The problem occurs due to the kernel failing to restrict trace permissions on specific root spawned processes.

    This vulnerability affects both the 2.2 and 2.4 Linux kernel trees.

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter