Slashdot Mirror


Hardening Linux

r3lody writes "Hardening Linux, by James Turnbull, stands out as an important text that clearly lays out how to make your Linux boxes as secure as possible. Mr. Turnbull has done a noteworthy job in delineating many potential vulnerabilities, and how to mitigate them. Each chapter covers a particular area in depth, with carefully worded and easy-to-follow examples. In the cases where you need to install some other piece of software to provide extra security, Turnbull gives you the step-by-step details, removing the chance of misinterpretation. As you finish each chapter, you will want to apply your newfound knowledge to the machines at your disposal." Read on for r3lody's review. Hardening Linux author James Turnbull pages 584 publisher Apress rating 9/10 reviewer Ray Lodato (rlodato AT yahoo DOT com) ISBN 1590594444 summary In-depth explanations with step-by-step techniques for securing Linux and common applications.

Naturally, the strongest building will collapse if built on a weak foundation, so Turnbull starts by considering what you need to harden a stand-alone Linux host. He discusses what applications to install and how to secure the boot loader (both LILO and GRUB are covered). The init sequences and scripts are covered next, as well as the login screen. Information on securing users and groups using PAM (Pluggable Authentication Modules) comes next, followed by package management and kernel patching. Finally, Turnbull finishes up with how to keep informed on security issues in the future. All of that is contained in chapter 1, and there are ten more to go! Each chapter ends with a list of resources in the form of mailing lists, web sites, books, etc., so you can fill in any blanks Turnbull may have left in.

Current security postures dictate that every network-connected device needs to be secured from the inside out. Turnbull apparently believes the same thing, and covers the Netfilter firewall framework built into the Linux kernel. Once again providing the careful step-by-step procedures, he demonstrates how to use iptables to manipulate Netfilter chains for maximum protection. There are a number of kernel parameters to Netfilter that can be modified using the sysctl command. James describes the more important ones (such as conf/all/accept_redirects, icmp_echo_ignore_broadcasts, and all under the /proc/sys/net/ipv4 pseudo-directory), and how to keep the changes in place across reboots. He also discusses how to log firewall rules, and keep the code updated using Patch-O-Matic.

As each subsequent chapter unfolds, Turnbull carefully explains how to tighten remote administration, files and file systems, mail, ftp, and DNS/BIND. He gives additional information on how to log important information securely and efficiently monitor the data collected. In addition, tools for testing the security of your hosts are described very clearly, from the inside out and the outside in, along with explanations of how to detect penetrations and recover from them.

Writing about securing a computer system can be written on a few different levels, from the general suggestions which apply to just about any program, to the specific which apply to just one. Turnbull picked commonly used programs and provide step-by-step procedures for locking them down. For example, if you are hardening a mail server, you will find descriptions of Sendmail and Postfix, but not of Qmail or Courier. While this might limit the appeal of the book to just those using the more common programs, it allows a depth that would be otherwise unavailable.

The only quibble I have is that his book does not go far enough. While the chosen applications are covered in great depth, some applications are missing. There is no coverage for a web server, such as Apache, or a database server, such as MySQL. I can only hope that a future edition of the book includes chapters on these and other categories of programs.

Hardening Linux by James Turnbull belongs on the shelf of anyone who installs and maintains Linux servers. The information is easy to follow, and will help you configure your systems very securely. The additional insights into why the configurations are important is extremely valuable in its own right."

You can purchase Hardening Linux from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

137 comments

  1. important topic by external400kdiskette · · Score: 1

    It's important people learn more about vulnerabilities and how to mitigate them as it gives bad ammunition to the anti-linux crowd when high publicity things happen like spreadfirefox being hacked when generally and in this example proper patching would've prevented it from happening in the first place.

    1. Re:important topic by shmlco · · Score: 1
      Actually, in terms of amunition the book itself sounds bad enough.

      " He discusses what applications to install...secure the boot loader...init sequences and scripts...securing users and groups....kernel patching. ... All of that is contained in chapter 1, and there are ten more to go!"

      They make it sound like Windows, where all of these things need to be done first in order to lockdown the system.

      --
      Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
  2. Missed opportunity by Bingo+Foo · · Score: 0, Offtopic

    He should have titled it, "Liagra."

    --
    taken! (by Davidleeroth) Thanks Bingo Foo!
  3. I'm already working on the unofficial sequel! by kinkadius · · Score: 1, Funny

    "Reforming Linux"

    --
    www.omglolh4x.com
  4. At first I read... by Chickenofbristol55 · · Score: 2, Funny
    "Linux has a hard-on"

    Im glad that wasn't really what it said.

    --
    public class null extends java applet { System.out.print ("Tabula Rasa"); }
    1. Re:At first I read... by Anonymous Coward · · Score: 0

      Here's what they meant by "Hardening Linux"..

  5. Let me be the first to say... by amightywind · · Score: 1, Funny

    GNU/Linux is hard enough

    --
    an ill wind that blows no good
    1. Re:Let me be the first to say... by middlemen · · Score: 0

      GNU/Linux is hard enough

      Did you mean GNU/Linux is "Hurd" enough ?

    2. Re:Let me be the first to say... by olorinpc · · Score: 1

      from a windows user... yes... yes it is.

    3. Re:Let me be the first to say... by amightywind · · Score: 1

      For the record, I am a GNU/Linux zealot

      --
      an ill wind that blows no good
    4. Re:Let me be the first to say... by drinkypoo · · Score: 1

      Like you had to tell us that? Anyone who calls it GNU/Linux...

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  6. Good advice... by mrbobjoe · · Score: 1

    ...for when keeping your box in a safe, cut off from the outside world, isn't an option.

    1. Re:Good advice... by AKAImBatman · · Score: 2, Funny

      ...for when keeping your box in a safe, cut off from the outside world, isn't an option.

      Class C2 rating, Orange Book, IIRC. The same rating that Microsoft made such a big deal about Windows NT obtaining. So much for that bit of marketting. :-)

    2. Re:Good advice... by DumbparameciuM · · Score: 2, Informative

      "...for when keeping your box in a safe, cut off from the outside world, isn't an option..." Exactly. The most secure box in the world, irregardless of OS or Distro, is the one that hasn't yet, isn't currently, and never will be connected to the internet. But, unfortunatly, that isn't always a practical solution. I'll look out for this one.

      --
      "We are Samurai, the Keyboard...Cowboys"
    3. Re:Good advice... by theTerribleRobbo · · Score: 1

      > irregardless of...<snip>

      AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGH!

      You need to read a little bit of this chap's rantings.

  7. SELinux? by crush · · Score: 1

    Is there anything about SELinux in this? Also does it deal with creating jails?

    1. Re:SELinux? by 70Bang · · Score: 1



      What percentage of people who need to harden Linux (but haven't done so, perhaps those who remain logged in as root; see also: Windows XP users who are signed in with Administrator privilege; unsecured wireless routers at home) have even heard of SELinux? (let alone know where to get it?)

    2. Re:SELinux? by mpapet · · Score: 1

      You know, SELinux has some IP issues that I just became aware of this week. For many this is probably old news.

      It seems some aspects of SELinux are patented and the patent holder allows distribution, but once $$ or something that competes with their product is involved, there's a license fee.

      Anyway, beyond the IP issues, just because the kernel has SElinux enabled doesn't mean the applications on top of the kernel have SELinux functionality.

      I think it's reasonable to say that SELinux does not solve many security problems related to implementation and definitely doesn't magically fix security holes in applications.

      --
      http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
    3. Re:SELinux? by PaxTech · · Score: 1

      You know, SELinux has some IP issues that I just became aware of this week. For many this is probably old news. It seems some aspects of SELinux are patented and the patent holder allows distribution, but once $$ or something that competes with their product is involved, there's a license fee.

      Do you have a link for this SELinux patent issue? I've been developing SELinux policy for a while now and read the SELinux mailing lists daily and I've never heard such a thing. SELinux was originally developed by the NSA and is fully GPLed.

      Anyway, beyond the IP issues, just because the kernel has SElinux enabled doesn't mean the applications on top of the kernel have SELinux functionality.

      The applications running on top of the kernel don't need to have any SELinux functionality. As long as SELinux policy exists for those applications, the application will only be allowed to perform the actions allowed by policy, and nothing else. Whether the application is SELinux aware or not is a complete non-issue. Your reference to this makes me wonder how much you actually know about SELinux.

      I think it's reasonable to say that SELinux does not solve many security problems related to implementation and definitely doesn't magically fix security holes in applications.

      Of course, SELinux won't magically fix security holes, nothing will. SELinux can certainly mitigate the harmful effects of many holes in applications that have been confined by SELinux policy, however. It does a hacker no good to penetrate a hole and escalate the privilege to root if he's still stuck in your SELinux httpd_t domain which allows no access beyond reading web content.

      --
      All movements for social change begin as missions, evolve into businesses, and end up as rackets.
    4. Re:SELinux? by Spetiam · · Score: 2, Informative

      (let alone know where to get it [nsa.gov]?)

      Getting SELinux is easy. Some distributions (notably Fedora and CentOS) have it installed and enabled by default, and I suspect that anyone who has done any amount of research into "hardening" their system has heard of SELinux.

    5. Re:SELinux? by r3lody · · Score: 1

      SELinux is mentioned in a single paragraph on page 75. A link to the web site (http://www.nsa.gov/selinux/) is given, with a brief description likening it to grsecurity.

      chroot jails are discussed for the FTP server vsftpd, and for BIND. vsftpd has a couple of parameters (chroot_local_user=YES|NO, chroot_list_enable=YES|NO, chroot_list_file=<filename>) to make it easy to set up the jail. Chrooting BIND follows the more traditional format of creating the duplicate tree for the new root, and is explained in detail in Chapter 11: Hardening DNS and BIND.

    6. Re:SELinux? by HalfStarted · · Score: 2, Interesting

      That is pretty much on target. SELinux only provides really only provides MAC (Mandatory Access Control). This is a big first piece but isn't enough to completely secure a system, there are still other considerations, such as system auditing, needed to have a fully trusted system.

      For the most part SELinux provides binary compatibility for user space applications and ever since it was integrated into the 2.6 kernel provides binary compatibility with most modules... there are some modules that don't behave well with SELinux, some can be fixed with fine grained SELinux policies the rest need patches to their source to interact with the kernel correctly.

      Applications don't really have anything to do with SELinux really, what SELinux (or really, what any MAC system does) is compartmentalize the system so that if any given application is compromised the break is limited to that one application and can not be capitalized on to compromise the system at large. SELinux and all other MAC systems rely on correctness of the policy configuration to provide system level security. Extra steps are still needed to protect each independent app though to make sure it is hardened against break-in. While it is important that a cracker is not able to take control of your box you still want to keep him from crashing your application server or web pages and such.

      In addition to SELinux (NSA SELinux there are other MAC systems such as:
      GrSecurity and RSBAC (RSBAC seems to be down though).

      Other very interesting thing to look at are hardened tool chains (gcc with PIE, position independent execution and SSP, stack smashing protection) as well as PaX which is a kernel patch that provides extended security options such as ALSR (Address space layout randomization), non-executable memory. PaX provides some very strong kernel level features that harden all applications from attack. It does come at a slight cost though; some of the features have a minor performance hit, notably nx memory on x86 machines because they do not provide a true NX bit for pages, it has a fairly steep learning curve and some applications plain don't work with it... XOrg and Java VMs for example, because the way they are written they need executable pages for dynamic code generation. PaX security options can be set at a per file or per role (in a MAC system) level so it is still possible to run these apps, they just will not make use of the protection provided by PaX and will need to be tightened down in other ways. The really big gotcha with PaX is that elfloader doesn't support global offset tables or procedure linkage tables. These are required for ALSR in particular so to use PaX libraries need to be statically linked or loaded with dlopen... none of the current binary graphics card drivers for NVidia or ATI work with PaX so if you can't get 3D acceleration from DRI et al. you don't get 3D acceleration.

      --


      Have you thought for yourself today?
    7. Re:SELinux? by Anonymous Coward · · Score: 0

      PitBull LX is another Linux MAC system that has several other privilege and network security mechanisms that SELinux does not yet have. There is no MLS system for Linux that I am aware of however (although PitBull has MLS systems on Solaris and AIX). Their website is www.argus-systems.com

  8. So .. why doesn't Linux come setup with all this? by Anonymous Coward · · Score: 1, Insightful

    Surely a good way to harden Linux would be to apply as many of these 'hardenings' at install time, particularly for server installs?

    So why aren't they?

  9. Why harden? by Luke · · Score: 0, Flamebait

    When you can use an OS that starts out secure?

    1. Re:Why harden? by Anonymous Coward · · Score: 0

      That was a very stupid comment. Go away before you embarrass yourself further...

    2. Re:Why harden? by Anonymous Coward · · Score: 0

      OpenBSD is only secure out of the box because they turn off everything by deafult, it is your job to turn those things back on. Linux has more going for itself though, more hardware support, more commercial applications and software. I'll stick with the mainstream, thanks.

  10. Linux II: The Hardening by Orrin+Bloquy · · Score: 3, Funny

    No, come to think of it, that's sending the wrong kind of message.

    --
    "Made up/misattributed quote that makes me look smart. I am on /. and I must look smart."
  11. IDS by afra242 · · Score: 4, Interesting

    Does the book go into IDS tools such as Snort? I couldn't find any reference to this, but I can't imagine it to be left out of the book. Are there any well known tutorials/books out there on these tools?

    Btw, thanks to fellow Slashdot readers for recommending DenyHosts - superb tool to stop those brute force SSH attacks...

    1. Re:IDS by r3lody · · Score: 3, Informative

      Chapter 6 (Using Tools for Security Testing) goes into NMAP and Nessus in depth, then mentions a few additional tools at the end. dsniff, Ethereal, Ettercap, LIDS, Netcat, SARA, Snort, tcpdump, and Titan each have a one-paragraph writeup, with links to the websites for the tools.

    2. Re:IDS by Anonymous Coward · · Score: 0

      Along the lines of DenyHosts is tb-sshdfilter.

    3. Re:IDS by Anubis350 · · Score: 1

      heh, my solution was to move ssh to a non-standard port and completely disable password auth (which cause a couple of friends who had access to the box to get pissed at me until they got around to generating keys).

      --
      "goodbye and hello, as always" ~Prince Corwin, from Zelazny's Amber series
    4. Re:IDS by spinfire · · Score: 1

      I tried DenyHosts and found it disapointing. These days I use login_sentry which has been improved by a friend of mine. Check it out, cross platform too (/etc/hosts.deny).

    5. Re:IDS by Anonymous Coward · · Score: 0

      I did something similar. I moved sshd to a non-standard port and installed portsentry. If anyone tries a portscan to find sshd they get blocked in my firewall. :)

  12. Article infringes Amazon's new patent?! by amigabill · · Score: 1

    OK, how many Amazon patent infringement jokes about this article will we see today?

  13. The full text of the book by Anonymous Coward · · Score: 5, Funny

    ifconfig eth0 down

    There, I've save y'all $20

    1. Re:The full text of the book by schmu_20mol · · Score: 1

      don't forget the second edition: ifdown eth1

      --
      "Nae Kin! Nae Quin! Nae laird! Nae master! We willna be fooled again!"
    2. Re:The full text of the book by Canonymous+Howard · · Score: 3, Funny
      ifconfig eth0 down


      It just tried that and it didn'

    3. Re:The full text of the book by eneville · · Score: 1

      shutdown -h now

    4. Re:The full text of the book by lobsterGun · · Score: 1

      Coward!

      $>sync
      $>halt

    5. Re:The full text of the book by eneville · · Score: 1

      You can't do that as a normal user... unless you're using a non-standard shell.

    6. Re:The full text of the book by JohnBaleshiski · · Score: 1

      > ifconfig eth0 down
      > There, I've save y'all $20

      That only partially secures the box. If you have multiple IP addresses, you MUST stop all of them like so:

      ifconfig | grep Link | awk '{print $1}' | perl -e 'while() { $_ =~ s/[\n\r]//g; system("ifconfig ${_} down"); }'

      NOW your box is secure, from the net at least. :)

    7. Re:The full text of the book by boisepunk · · Score: 1

      you forgot the serial lines!

      --
      main(0)
  14. I'll stick with OpenBSD and Trusted Solaris. by CyricZ · · Score: 2, Insightful

    While I'm sure a properly secured Linux system does make a fantastic server, I find that I tend to stick with OpenBSD and Trusted Solaris for those systems that need to be impenetrable.

    Has anyone done a recent comparison/evaluation of a highly secured Linux system versus similar OpenBSD and Trusted Solaris systems?

    --
    Cyric Zndovzny at your service.
    1. Re:I'll stick with OpenBSD and Trusted Solaris. by Anonymous Coward · · Score: 0

      One would guess you prefer intruders entering via the backdoor?

    2. Re:I'll stick with OpenBSD and Trusted Solaris. by Anonymous Coward · · Score: 0

      One would guess you prefer intruders entering via the backdoor?

      I entered your Mom's backdoor last night!

    3. Re:I'll stick with OpenBSD and Trusted Solaris. by Anonymous Coward · · Score: 0

      I am your father.

    4. Re:I'll stick with OpenBSD and Trusted Solaris. by sgifford · · Score: 2, Interesting

      You know, the thing that's been keeping me on Linux lately is Debian's apt. I've gotten addicted to the ease of keeping Debian systems up-to-date, especially since I'm responsible for about a dozen systems in different locations and don't have much time to take care of them. I found that when I maintained Solaris systems, package management was a pain, and I procrastinated updating things because it was time-consuming and sometimes broke things. On OpenBSD, recompiling everything from ports seems time-consuming and error prone, especially with a large update (like X). Plus I like being able to use debsums to track checksums on everything I've installed, and have it tell me if any of my executables have changed; sort of a poor-man's tripwire.

      On the other hand, it's been a while since I took a look. Has package management gotten better on Solaris or OpenBSD, to the point where I can keep a system up-to-date with about 1 minute a week of my attention?

      I keep hoping somebody will package a Debian OpenBSD. That's something I'd use in a heartbeat, if it were well-maintained.

    5. Re:I'll stick with OpenBSD and Trusted Solaris. by CyricZ · · Score: 1

      pkgsrc supports several versions of OpenBSD and Solaris, in addition to numerous other systems. It does offer pre-compiled binaries for such systems.

      --
      Cyric Zndovzny at your service.
    6. Re:I'll stick with OpenBSD and Trusted Solaris. by arthas · · Score: 3, Insightful

      Package management (ports collection) has really been improved in OpenBSD 3.7 and 3.8. Here is one interview with an OpenBSD ports developer. It seems to me that OpenBSD developers actually recommend that users should install binary packages (from the interview: "Most people should only see the binary packages and pkg_add"). One quite nice thing about these OpenBSD ports tree compared to FreeBSD ports is that the OpenBSD ports tree is frozen so you actually get something like Debian stable style system where only maintenance updates are "backported" from ports-current to, say, ports-3.8 branch.

      OpenBSD ports/packages system unfortunately does not have automatic update like "apt-get upgrade". You have to know the package names and versions to upgrade them. pkg_add actually has -u switch but it only lists the package names. However a proper automatic update fuctionality is already in CURRENT. From the OpenBSD-CURRENT pkg_add(1) man page:

      -u Update the given pkgname(s), and anything it depends upon. With this option, if no pkgname is given, pkg_add will update all in- stalled packages. This relies on PKG_PATH to figure out the new package names.

      So this probably means that 3.9 (released in about 6 months) is going to have a real package upgrading system.

  15. Re:So .. why doesn't Linux come setup with all thi by Jerry+Coffin · · Score: 4, Funny
    Surely a good way to harden Linux would be to apply as many of these 'hardenings' at install time, particularly for server installs?

    So why aren't they?

    Because it's not OpenBSD?

    --
    The universe is a figment of its own imagination.

    --
    The universe is a figment of its own imagination.
  16. A similar book by ChaserPnk · · Score: 3, Informative

    I reviewed a similar book with the same title for Linux Journal a few months ago. If you're into security, you might find it interesting.

    --

    "A diplomat is a man who always remembers a woman's birthday but never remembers her age." -Robert Frost
  17. Hmmm... by rackhamh · · Score: 3, Insightful

    I hope this isn't taken as a troll. How can Linux users claim better security than Windows, then write books about how to make sure the OS really is secure?

    If we could get the average Joe Bob Windows user to read a book about security, I'm sure we'd see a lot fewer Windows security breaches, too.

    All of which just suggests to me that the difference is in the user base (that's a compliment), not the technology.

    1. Re:Hmmm... by halltk1983 · · Score: 2, Insightful

      Jane wrecked her kia rio and died.
      Jim wrecked his Hummer and died
      Therefore both vehicles are deathtraps.

      Never mind that the accidents may have happened completely differently. One is safer than the other. It all a matter of degree.

      --
      Watch for Penguins, they eat Apples and throw rocks at Windows.
    2. Re:Hmmm... by Jussi+K.+Kojootti · · Score: 1
      Why couldn't Linux users claim that (assuming they justify the claim somehow)? If Joe Bob Windows read computer security books, his system would probably be safer. Does this tell us anything about the comparable inherent security of Windows vs. Linux? No.

      You seem to think that knowledgeable user base somehow precludes or lowers the possibility of better inherent system security. In fact the opposite is probably true -- people who understand computer security are probably going to select more secure systems...

    3. Re:Hmmm... by space_man51 · · Score: 1

      I believe the book focuses on securing a Linux *server*, rather than a single-user machine. By server, I mean a machine with multiple accounts where not every user can be fully trusted (this includes web servers, where each request comes from an anonymous user). Security on a Windows server has also been the subject of countless books.

      Furthermore, there are many Windows sysadmins out there who are fooled into a false sense of security by the appearant ease of use of Windows. Because Linux forces you to attend to every detail, you have a much better understanding of how every component of the system works and interacts. Therefore, you can make more informed decisions about system security.

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    4. Re:Hmmm... by vadim_t · · Score: 1

      Linux is more secure than Windows, but that doesn't mean that you can't make it even more secure with some effort. The reason it's not already done is that some of the ways of adding more security make it less friendly.

      For example, in Windows as it is, the moment you let execute anything they want on your computer, you can assume it's been breached, since practically everybody runs everything as Administrator on Windows. Not so on Linux.

      Now, while giving somebody an user account on your Linux box doesn't let them to say, spy on you, or reformat your disk, it doesn't mean they can't find any way of annoying you. They could say, run a program that uses more memory than you have. So there are additional measures you can take to restrict the amount of memory they can use, for instance. This is one thing that can't be done automatically. For example, I know that on my specific computer no single program should ever need more than 128MB RAM, and that user bob shouldn't need more than 256MB total. You can't make this sort of restriction by default though, as there's no value that suitable for everybody.

      While the default settings are already very good, some people want to place even more restrictions to make sure that for example a computer used by 20 people makes it as hard as possible for one idiot to annoy everybody else.

    5. Re:Hmmm... by slashname3 · · Score: 1

      If we could get the average Joe Bob Windows user to read a book about security, I'm sure we'd see a lot fewer Windows security breaches, too.

      The problem is you have teach "Joe Bob Windows user" how to read first. :)

      Personally, I think a special campaign that sends out spam and phish attempts should be put into place. All those that respond will be identified and their computers confiscated, their cable and phone jacks removed from their house, and then they would be sterilized. We have to end this problem at the source, the individual user that apparently throws huge sums of money at the asshats that make the Internet a less secure and usable tool. Once the spammers stop making money off these idiots they will go away.

    6. Re:Hmmm... by legirons · · Score: 1

      "How can Linux users claim better security than Windows, then write books about how to make sure the OS really is secure?"

      One theory would be that *NIX has better security because the people who use it and develop it have spent the last 40 years having their systems attacked by an incredible variety of threats, so they've had no choice but to create systems which can be effectively secured.

      But that means that a lot is down to the operators as well as the software, which is why books are useful. A book on securing Linux is effectively passing-on information learned over the years, to people who are just starting. Kind'a like apprenticeships, but can teach more people at once.

      As to the Windows question, I don't think Windows has had the same kind of exposure to threats. For example, are there any Windows sytems which thousands of hackers have user-accounts on, like the old MIT CTS systems, or Sourceforge shell servers?

      Have there been any Windows installations where the same machine serves thousands of websites, yet still needs to run CAD software for 30 people and simulation software for 30 more people (typical university department) without anyone exceeding their CPU, memory, disk, network limits, or inconveniencing other users, or accidentally making the whole system crash?

      Without that level of testing, it would seem unlikely that Windows just happened to be capable of securing itself against those kinds of threats, regardless of how good the people using it are.

      Perhaps it's irrelevant because Windows isn't used in that way, but even looking at networked PCs, where was Windows when the *NIX admins were dealing with the first viruses, learning how to harden their systems against them, and improving the OS software? It was still DOS, and still assumed that there would be only one person using a computer, the owner and admin of that computer, who was physically sitting in front of it and completely trusted. Not all of those assumptions were valid, as the resulting viruses showed.

  18. securing networks by Paralizer · · Score: 3, Interesting

    I've been using Linux (gentoo) at home for a few years now, and I seem to be able to fix most problems I have with it that arise. In a few months it is likely I will be hired by my university to become one of two administrators for our Linux network (I'm a student as is the current administrator).

    I've never really dealt with security issues on my home machine as it's behind a firewall and really isn't a target anyone would be interested in, but if I take the position as an administrator at my school I'll be responsible for maintaining and keeping upward of 100 computers secure and running.

    For a beginner such as myself, and with my limited experience with Linux and Linux security, would this book be the best resource? Certainly by the review it seems sufficient, but I'm interested in what other people may recommend too.

    1. Re:securing networks by MyDixieWrecked · · Score: 3, Interesting

      I'm also a gentoo guy.

      I picked up O'Reilly's book "Building Secure Servers with Linux" and learned a lot.

      it pretty much explains how to set up iptables, the theory behind ssh and ways of better securing it (private/public/shared keys, etc), ways of securing apache, and a slew of other stuff. It's all about best practices.

      The only real problem I had with the book is that in some cases, the author is truly paranoid and goes seriously overboard with some techniques, and some of his ideas would never work on a gentoo system. One such thing is that he advises against having development tools (namely gcc) on the server, that way, even if someone manages to compromise the box, they won't have any tools to build/run their rootkit. He suggests using a separate NIC and connecting with a laptop to transfer the binaries to the server. although that will give you a serious piece of mind, it's overkill for many people.

      I'm considering picking up this book, though. I like to read about computer security, and I'm amazed at the ingenuity of hackers, from the white-hat to the black-hat. Computer security is quite facinating.

      --



      ...spike
      Ewwwwww, coconut...
    2. Re:securing networks by jcnnghm · · Score: 2, Interesting

      I originally got Hardening Linux out of the library, and liked it enough to buy it after I renewed it twice. I think it's a pretty good desktop reference and is quite informative. It's fairly easy to follow, straightforward, and just plain useful.

      I also purchased Hardening Apache, although I haven't had a chance to make use of it.

      --
      You don't make the poor richer by making the rich poorer. - Winston Churchill
    3. Re:securing networks by drinkypoo · · Score: 1

      Production servers should never ever ever have development tools on them. Even gentoo lets you create packages. You should do this. Of course this is in a perfect world... but seriously, why would you need a compiler on a webserver?

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    4. Re:securing networks by SharpNose · · Score: 1

      I know what you mean, as I've considered this too. One possible way I thought of to address this under Gentoo would be to make a mechanism that effectively takes the entire build system (including gcc and libraries) offline for normal use. Maybe put those and /usr/portage on a separate partition and make it unmountable?

    5. Re:securing networks by DavidTC · · Score: 3, Insightful
      Not having compilers is the STUPIDEST advice ever.

      Does the system have Perl?

      First you paste a Mime::Base64-running Perl program in, and then you launch it and paste in the Base64 code. Look, you can get binaries on the system from a shell window!

      This is what is known as 'security-through-inconvience'.

      --
      If corporations are people, aren't stockholders guilty of slavery?
    6. Re:securing networks by MyDixieWrecked · · Score: 1

      considering that the majority of attacks is by script kiddies, "security-through-inconvenience" is still security.

      I think the point of not having dev tools is not only to attempt to prevent someone from building their rootkit when they log in, but to also increase the amount of time it takes them to do any potential damage.

      I doubt that most attackers would be prepared with their Mime::Base64-running perl program right off the bat... unless of course, the attacker is a serious pro and their hacking my multi-billion dollar corporation.

      --



      ...spike
      Ewwwwww, coconut...
    7. Re:securing networks by WuphonsReach · · Score: 1

      The other book I've been using (in addition to "Building Secure Servers with Linux") is "Practical Unix & Internet Security" (also O'Reilly).

      I think I'll add this one to the stack as well.

      --
      Wolde you bothe eate your cake, and have your cake?
  19. Shameless by joeybagadonuts · · Score: 5, Informative
    1. Re:Shameless by msbsod · · Score: 1

      Another book with the same title (ISBN 0072254971) goes for $2.09 at eBay (item 4585793995). Wait a week or so and you get the book by M. Chandler for the same price at eBay or half.com (another eBay company). Bids for "Linux All-in-One Desk Reference For Dummies" starts at $1.73, again at eBay.

    2. Re:Shameless by Anonymous Coward · · Score: 0

      BN must be trying to pay off the bills on those shiny new servers. I wonder if they're secure?

  20. Part of a "series"? by DaveK08054 · · Score: 2, Informative
    The reviewer writes:
    There is no coverage for a web server, such as Apache

    It looks like the publisher already has a book out called "Hardening Apache".
    --
    Dave K. Mt. Laurel, NJ USA
  21. Avoid PHP. by CyricZ · · Score: 0, Flamebait

    One of the best things to do, like it or not, is avoid PHP. It has shown to be less than suitable when it comes to security. Indeed, the SpreadFirefox incidents you mention were due to faulty PHP-based systems.

    While it doesn't involve the security of Linux (or any other open-source OS) in any way, the security issues that plague PHP do end up making the entire community look bad. Thus I think the open source community as a whole should put more pressure on the PHP developers to introduce technology that will prevent ill-written scripts from executing.

    One doesn't want to have to hold the hands of experienced developers, but at the same time we can't let the unnecessary and misdirected damage to our reputations continue because of poorly written PHP scripts.

    The Linux and *BSD projects have gone out of their way to make sure that their system is secure, even in the face of inexperienced users. It's time for the PHP team to do the same.

    --
    Cyric Zndovzny at your service.
    1. Re:Avoid PHP. by BestNicksRTaken · · Score: 2, Insightful

      i'm not sure if it's actually php's fault, it seems that because it's such an easy and available language (on every web host by default) it attracts n00bs a bit too much - the kind of people who are graphics designers who fancy themselves as programmers or 'web developers'. then there's the books - i've seen way too many tutorials telling the user to do extract($_GET); and things like that, sql injection anyone? the whole addslashes() stuff is a bit confusing too - there are so many functions that do something very similar (plus php.ini options too). i personally haven't touched php in over a year (i mainly got tired of working with crap programmers and the slowness of the xml parser), but recently tried php5, doesn't seem to be any security features added - something like perl's taint mode would be nice.

      --
      #include <sig.h>
    2. Re:Avoid PHP. by CyricZ · · Score: 1

      PHP does very little to prevent an inexperienced developer from programming insecure software. Indeed, as you have found out, they're not doing anything to deal with the known problem of lousy scripts causing severe security problems.

      I blame PHP in that it could probably do more to prevent such security problems, but it does not.

      --
      Cyric Zndovzny at your service.
    3. Re:Avoid PHP. by bani · · Score: 1

      Do you blame GCC/VC++ as well? Most exploited software these days are C applications.

      Sure PHP could do better, but it's not unusual in this regard. It's just as mediocre as anything else. :P

    4. Re:Avoid PHP. by Anonymous Coward · · Score: 0

      How about you avoid crack also? Or is that too much to ask?

  22. Harden Linux? by darthnoodles · · Score: 2, Funny

    Just show it a female penguin dressed to kill.

  23. Sendmail? In a secure system by Animats · · Score: 3, Interesting
    As Google puts it,

    Results 1 - 10 of about 191,000 for 'sendmail "security hole"'
    Results 1 - 10 of about 1,910,000 for 'sendmail bug'.

    Any questions?

    1. Re:Sendmail? In a secure system by _PimpDaddy7_ · · Score: 1

      Umm, yah, soooo, don't use sendmail?

      *ducks* :)

    2. Re:Sendmail? In a secure system by Anonymous Coward · · Score: 0

      # rpm -qa | grep sendmail
      # not-installed-asshat.rpm

      Results 1 - 10 of about 10,200,000 for internet explorer security holes.
      Results 1 - 10 of about 1,310,000 for outlook express security holes.
      Results 1 - 10 of about 548,000 for windows smtp security hole.

    3. Re:Sendmail? In a secure system by Anonymous Coward · · Score: 0

      I get your point, but on the other hand:

      Google "animats security hole"
      Results 1-10 of about 549

      Google "animats bug"
      Results 1-10 of about 952

      and lastly,

      Google "sendmail plays the piano"
      Results 1-10 of about 14,000

    4. Re:Sendmail? In a secure system by daviddennis · · Score: 1

      Okay, I really wanted to learn about the Piano-playing MTA.

      Alas:

      Your search - "sendmail plays the piano" - did not match any documents.

      What was your point again?

      D

    5. Re:Sendmail? In a secure system by LordNite · · Score: 1

      Yes, in a secure system!

      Sendmail has as much place on a secure system as Postfix or Qmail. If either of those MTAs had been around as long as sendmail (22+ years) they would probably have as sordid a security history. The thing to remember is that those holes have been patched, some as much as ten years, or more, ago. No software is going to be bug or security hole free. (OpenBSD doesn't even have a pristine security history for all of its code audits.) Like any MTA software, sendmail can be configured to be secure, or it can be configured to be insecure. Just keep it up to date and configure it sanely.

      Also, for the record, just throwing out Google results is meaningless. Here are some more for you.
      Results 1 - 10 of about 48,100 for Postfix "security hole".
      Results 1 - 10 of about 1,910,000 for Postfix bug.

      Results 1 - 10 of about 44,400 for Qmail "security hole".
      Results 1 - 10 of about 1,660,000 for Qmail bug.

      Using your logic, Qmail and Postfix must really suck too.

      Instead of throwing out Google results as proof of sendmail's suckage, why not show a few examples (that are less than four years old, please) that show sendmail currently having glaring insecurity. I will be surprised if you come up with many. The fact is that sendmail has had problems in the past. No one will deny that. Those problems spring from it being basically the first SMTP server ever. However, its security history is just that, history. I am tired of people beating the dead horse of sendmail insecurity and using data from fifteen years, or dubious Google results, ago as proof. Give some real, current evidence please. Otherwise it will continue to stand to reason that sendmail has just as much place in a secure system today as Qmail.

      --
      If it looks like a duck, and quacks like a duck, it must be a duck.
    6. Re:Sendmail? In a secure system by 51mon · · Score: 2, Informative

      > Otherwise it will continue to stand to reason that sendmail has just as much place in a secure system today as Qmail.

      Compare the security history since both qmail and postfix were released, lets choose January 2003, against sendmail.

      CERT Vulnerability note search.

      Sendmail 6 vulnerabilities including 4 buffer overflow vulnerabilities, at least one risks a remote root exploit, one was IBM specific and just silly IBM. Many prior ignored.

      Postfix one DoS in 2003.

      Qmail no hits.

      Patching complex systems doesn't meaningfully reduce the number, or scope, of security holes in most cases, you need (re)engineering to do that, or at least rewriting problem areas from scratch. Software doesn't always age gracefully, as any programmer will tell you.

      Given the much more extensive feature set of Postfix to Qmail, hey Qmail maybe quite secure, but it doesn't do very much, I choose Postfix. Sure Sendmail is improving, but they would have to release a whole new architecture to attract the security conscious system admins.

      Indeed they have just announced a new sendmail with a security architecture that borrows heavily from the Postfix school of thought.

      Don't get me wrong I'm just dismantling out last two sendmail servers, and they have done an okay job, but they required a lot more love and attention than Postfix would have to keep them going. Qmail is even easier if you only want what qmail does, otherwise it is patchomatic time, and I don't trust the qmail patches to be as secure as Dans code.

    7. Re:Sendmail? In a secure system by Erik+Hollensbe · · Score: 1

      What, are you still using 8.11 or something?

      How about coming back to modern times?

    8. Re:Sendmail? In a secure system by Anonymous Coward · · Score: 0

      Its not that simple. Vulnerabilities is not a function of time. Postfix and especially qmail are written with security in mind. There are alot of different paradigms that go into making highly secure programs, I'll leave that up to a good code security class (I reccomend Professor Bernstein's array of courses at his university).

    9. Re:Sendmail? In a secure system by Anonymous Coward · · Score: 0

      I don't get it. Who is still defending that sendmail garbage? Why?

      qmail is secure, and has a $500 security guarantee. I have BSD machines that have been running it for *years* and haven't been rebooted or patched in any way. And of course, not hacked.

      What's the deal, you like sendmail's config file or something? Who cares, if you want secure, use qmail.. if you want flexible, use postfix. sendmail has outlived it's usefulness, let it die.

      When I need to set up mission-critical "appliance" type boxes, I always reach for djb's software. Hasn't failed me yet.

    10. Re:Sendmail? In a secure system by Rudolf · · Score: 1
      Linux? In a secure system

      As Google puts it,

      Results 1 - 10 of about 935,000 for 'linux "security hole"'
      Results 1 - 10 of about 46,300,000 for 'linux bug'


      Any questions?

  24. Re:Save (more than) FIFTEEN BUCKS! by 70Bang · · Score: 3, Informative



    How about prices which include shipping and are less than Amazon's cover price?

    (there are online bookstores other than Amazon and B&N)


  25. Hardening? by Anonymous Coward · · Score: 0

    I thought Linux was a secure system as is, why would you need hardening?

    1. Re:Hardening? by CyricZ · · Score: 1

      Most decent Linux distributions are rather secure by default. Often times that level of security is more that sufficient, while still offering a decent level of performance.

      But then there are times when you need to make sure that the system isn't just extremely difficult to crack. That's when you need to make sure the system is basically impenetrable. Of course, you'll probably degrade the performance somewhat, in addition to other tradeoffs.

      --
      Cyric Zndovzny at your service.
  26. There are tradeoffs. by CyricZ · · Score: 4, Insightful

    Like always, a higher degree of security often means that tradeoffs must be made. In many cases such tradeoffs reduce the ease of use of the system, or reduce the performance. Such tradeoffs aren't always suitable.

    Take OpenBSD, for instance. While it offers an extremely high level of security, it comes at a price. A system running OpenBSD usually does not perform as well as a system running FreeBSD or NetBSD, for instance. You may also have to use older versions of software, or not use certain software at all (ie. PHP).

    In many situations, performance is more of an issue that security. Most Linux distributions, especially those intended for use on servers, are fairly secure out of the box. So users end up getting a higher degree of performance, even if there security level isn't as high as possible. A good blend, one might say. However, if you do need the utmost level of security, you can always use something like SELinux or OpenBSD.

    --
    Cyric Zndovzny at your service.
    1. Re:There are tradeoffs. by Anonymous Coward · · Score: 0

      Can I really use SELinux or OpenBSD?

      An excellent high-level summary of the posts prior to your own. You are an asset to the community. 5 x Redundant = +5

    2. Re:There are tradeoffs. by Anonymous Coward · · Score: 0

      Like always excess of crack causes you to rant aimlessly.

  27. Securing Linux Production Systems by Anonymous Coward · · Score: 0

    This article is also good. Deals with PAM a lot.
    http://www.puschitz.com/SecuringLinux.shtml

  28. What about the audits? by CyricZ · · Score: 2, Informative

    It's not just about limiting the number of default services. The OpenBSD project has performed years of strenuous code audits. Those have identified, and thus resulted in the fixing, of many bugs.

    Then there's the whole emphasis on security in the first place. Code doesn't make its way into OpenBSD without being heavily scrutinized.

    OpenBSD is secure because they don't enable potentially dangerous services right off the bat, but also because their development process puts such a heavy emphasis on only including highly secure code.

    --
    Cyric Zndovzny at your service.
  29. general purpose computer security hardener by speculatrix · · Score: 1

    harden your computer using one of these kits:
    http://www.bondo-online.com/catalog_item.asp?itemN br=315
    it works with both Linux (TM) and Windows (TM).

    1. Re:general purpose computer security hardener by drinkypoo · · Score: 1

      That's not a kit. The kit comes with hardener, as well. That's just resin, which will never set up without the hardener (usually just a potent oxidizer.)

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  30. It's easy! by kuzb · · Score: 3, Funny

    #include <viagra.h>

    --
    BeauHD. Worst editor since kdawson.
    1. Re:It's easy! by fuzzhead · · Score: 0

      #ifndef VIAGRA_H

      #if ARCH_LINUX

           #include <cialis.h>     //  Viagra Substitute ( Same API )

      #elif ARCH_BSD

          #include <sildenafil.h> // Viagra Chemical Compound (Openly Documented, Blatently Stolen)

      #elif ARCH_MACOSX

           #include <cocoa.h>    // Cocoa Framework Gives Me A Stiffy
           #include <snappy.h>  // Obligatory

      #elif ARCH_WIN32

           #include <goatse.h> // You know it turns them on...

      #endif

      #endif

  31. Comparisons... by QuaintRealist · · Score: 1

    There was a review in December 04 in the Jem Report which seemed pretty fair. Of course, they are comparing somewhat out-of-date OS versions at this point, but it's still worth a look.

    I don't find enough difference in security for my purposes (running the server and maintaining desktops at our medical practice) between OpenBSD and Linux to make it worthwhile. The software we use is much more readily available for Linux, and we've had no security issues in the 2+ years we've run it. I can't see learning to administer another system (I'm not a programmer or real sysadmin, just pretending).

    Your needs might be different - and probably are!

    --
    Using plain ol' text since 1968
  32. Cheese by msbsod · · Score: 1

    Hardening Linux with concepts from the 60's is like hardening cheese with milk from the 60's.

  33. Re:Secure Computing Corporation by mpapet · · Score: 1

    Their "statement of assurance" makes it kind of scary to try and do a commercial selinux distro of your own.

    http://www.securecomputing.com/pdf/Statement_of_As surance.pdf

    --
    http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
  34. still not enough by ChipMonk · · Score: 1

    If the review is to be believed, where is the mention of a BIOS boot password? The system shoudn't even boot a floppy disk without approval from the owner. Physical access == root access? Then put a password on it.

    But even that isn't enough. What will truly stop people from accessing your data? Volume encryption? Ha! That may work to slow down a thief who has removed the hard disk. But when you mount that volume for normal use, everything inside it is decrypted for the duration of the mount, hence accessible to root.

    File information should be visible, only with explicit trust of a user's verified identity.

    1. Re:still not enough by drinkypoo · · Score: 1

      Physical access == root access? Then put a password on it.

      Yes, and buy a server that stores the BIOS password in NVRAM and not CMOS, so it can't simply be cleared by removing the battery...

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  35. Other Hardening Resources by dr.ka0s · · Score: 1
    For those interested, I put together a relatively comprehensive list of resources that deal with hardening linux at the kaos.theory blog.
    "Bearing in mind that there are probably several hundreds of websites and whitepapers that talk to this topic, I've tried my best to filter the wheat from the chaff, leaving only those resources that I believe are valuable and offer some unique insight, perspective or technique..."
    The full list is here.
  36. Because "better" != "perfect". by khasim · · Score: 4, Informative
    Just because Linux is better than Windows does not mean that Linux cannot be improved.
    If we could get the average Joe Bob Windows user to read a book about security, I'm sure we'd see a lot fewer Windows security breaches, too.
    Maybe, maybe not. There are lots of books on Windows security out there, also. And lots of people buy them. Microsoft even tried to make patching easy. Microsoft even provided a firewall with WinXP-sp2.
    All of which just suggests to me that the difference is in the user base (that's a compliment), not the technology.
    I don't see it like that.

    A good Windows admin can "secure" his system as well as a good Linux "admin". The difference is how much work and effort are required.

    I like Ubuntu. By default, Ubuntu installs with no open ports. So, securing Ubuntu against worm attacks takes no effort on a default installation.

    But securing Windows against worm attacks requires constantly reading the vulnerability disclosures. Or adding an additional layer that requires a different skill set.

    It's only when you get beyond the default installation that admin skills become important. The current problem is that there are so many older versions of Windows out there were sold with a very open default installation that are still vulnerable.
  37. SELinux et al by jd · · Score: 4, Interesting
    SELinux is in the kernel and one popular distribution at least (Fedora Core) has SELinux-enabled utilities and configuration files as standard, so anyone using that will be using it whether they know what it is or not.


    Having said that, there are some good arguments that GRSecurity and some of the other Linux-hardening patches offer better role-based security than SELinux, due to potential limitations of the Linux Security Modules infrastructure. Those seriously interested in hardening Linux would be very well-advised to look through what is available. Having said that, BEWARE FUD! There's lots of claims and counter-claims, and nothing seems to have earned more rigid, fundamentalist stances than computer security.


    There are checks for Common Criteria level 3 for Linux, but none for level 4 (which I believe RHEL is now certified to, or was it SuSE?) and there is a lot of contention as to whether these checks actually do anything useful. Are role-based memory locks and network locks actually useful? It would severely limit the security mechanisms you could use, so if you needed some other criteria as well, you might be stuck. POSIX ACLs or Trustees or do you need ACLs at all with role-based mechanisms?


    Then there's the password file. Shadow is limited in the number of hashing algorithms it'll support and it may be vulnerable to rainbow dictionary cracks. The mainstream implementation does not support any unbroken hashing algorithms, which may pose other problems - though that is hard to prove. PAM is notoriously fragile, raising questions as to whether it can be considered safe or whether it should be redone. It is also unclear, especially if you use role-based computing, that the full username list should be exposed to all users. It may be more correct for the password and shadow files (if used) to be virtual, where the entries "present" depend on the user viewing the file. But that would add complexity (a BIG no-no in security) and latency.


    Not all security options even exist for Linux, though it is unclear why. No Orange Book B-class patches exist for Linux, to the best of my knowledge, the best I've ever seen are just partial implementations. Very little encryption hardware is supported - far more specs have been published than have been coded to, and far more chips exist than specs. I won't even get into the limited security of e-mail clients and servers. How long have PGP and GnuPG been around??? X.400 may not be popular, but it is good on the security angle - so how many clients or servers exist for Linux???


    All in all, this is an area the GOOD security guy will be doing a LOT of research in, no matter how much they know. And then, because nobody is an expert in everything and even fewer are experts in security, the REALLY GOOD security guy will not limit themselves to what they can know or understand. The REALLY REALLY GOOD security guys won't even limit themselves to what others can know or understand*.


    *Ok, that's worded more for effect than accuracy. The accurate version would be that they are interested in solutions that make unauthorized access within the expected lifetime of the data and/or system highly unlikely at best - or, in the few cases you can do this, actually impossible. (You cannot break a one-time pad without the key, for example.) This is usually done by looking for "really hard problems" and hoping nobody comes up with a really easy solution. (A "really hard problem" is one that either cannot be solved in a determinate timeframe - such as NP-complete problems - or that cannot be solved, on average, in the timeframe you care about - which accounts for 99% of all popular strategies used in encryption.)

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:SELinux et al by bani · · Score: 1

      The goals of grsecurity (mostly PAX) and SELinux are completely different.

      SELinux is mainly a sandbox to restrict the damage a compromised application can inflict on a system.

      grsecurity aims to prevent the compromise from happening in the first place.

    2. Re:SELinux et al by Anonymous Coward · · Score: 0

      SLES 9 achieve CAPP/EAL4+ early this year. RHEL 4 is currently undergoing evaluation at CAPP/EAL4+. As for Orange Book B class - in Common Criteria parlance, this is called LSPP -> Labelled Security Protection Profile and IBM announced that they are sponsoring an LSPP/EAL4+ evaluation of RHEL5 with TCS as a partner. HP and Intel also announced a partnership to sponsor an LSPP evaluation. Red Hat has an open mailing list that discusses the ongoing development work for the LSPP functionality.

    3. Re:SELinux et al by Anonymous Coward · · Score: 0

      In future, when you are doing your research, you may wish to follow the progress of Trustifier, a Linux security sub-system for the enterprise, that will probably become available next year.

  38. Re:Secure Computing Corporation by PaxTech · · Score: 1

    Yeah I did some googling after I posted, and the patent issue is pretty old. This LWN article is interesting on the subject, and apparently if the commenter ejhuff is correct the first two patents are already expired and the final patent expires in June 2006. It hasn't scared Red Hat away from implementing SELinux.

    Either way, it hasn't stopped my employer from implementing SELinux in our product, either. Blatant plug: download our LiveCD if you'd like to check out our SELinux implementation.

    --
    All movements for social change begin as missions, evolve into businesses, and end up as rackets.
  39. Protecting against seizure of the hardware by Anonymous Coward · · Score: 1, Interesting

    Does the book cover how to protect your box from LE? Particularly if you are willing to suffer data loss, rather than have the data fall into the wrong hands?

  40. The only secure computer is... by Anonymous Coward · · Score: 0

    1: Disconnect box from internet
    2: ...
    3: Profit!

  41. Re:Clarifications by mpapet · · Score: 1

    SELinux was originally developed by the NSA and is fully GPLed
    More specifically, the NSA paid Secure Computing Corp to develop something for them that turned into SELinux.

    The corporation currently has 20 patents related to security in the patent db. They only mention three in their "assurance." What about the other 17?

    The code is GPL, and it appears they won't drag you into court for a GPL'd hobby distro today, but what happens when you sell service on top? Do they knock on your door asking for a little protection money? What happens tomorrow?

    And then this gem from the "Assurance":
    However, Secure Computing does not extend the Assurance
    to software that merely interoperates with SELinux, or is merely included with a
    distribution of SELinux.

    It's GPL heaven to have it in the kernel, but as soon as an application interacts with our IP, all "assurance" bets are off is how I read it.
    So, let's say I make a nice firewall script, they can drag me into court and claim my script is an application that's interacting with their IP or I pay protection money and stay out of court.

    I'm no expert, so help me if I'm reading this wrong.

    --
    http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
  42. Re:Clarifications by PaxTech · · Score: 1

    Yeah, I'm not an expert on patent law either, but I'm sure Red Hat *did* have experts investigate this issue and it didn't stop them from adding SELinux to RHEL.

    --
    All movements for social change begin as missions, evolve into businesses, and end up as rackets.
  43. I thought I'd write "Hardening Windows"... by Anonymous Coward · · Score: 0

    ...but it would be less than one page long:

    "Mix up some concrete, pour half the concrete into a bucket, put the Windows CD package (unopened) into the bucket, pour the remaining conrete into the bucket, and let the concrete harden overnight. Your Windows is now hardened." :-)

  44. Re:Save (more than) FIFTEEN BUCKS! by Anonymous Coward · · Score: 0

    there are online bookstores other than Amazon and B&N

    Yes, but Spammy McTroll doesn't get his $0.02 Amazon affiliate reward when you buy the book elsewhere.

  45. Just run bastille by jwd-oh · · Score: 1

    I don't need a 584 page book to tell me how to harden linux. Just run bastille: http://www.bastille-linux.org/

  46. Hardened Linux? by Anonymous Coward · · Score: 0

    They said hard. Huh huh huh huh

  47. Re:OUTGOING by FragHARD · · Score: 1

    nice pic ;-) isn't half what I thought it'd be though ;(

    --
    FragHARD or don't frag at all
  48. Re:Save (more than) FIFTEEN BUCKS! by Armour+Hotdog · · Score: 1

    It's been my experience that Bookpool almost always has the best prices for technical books (AddAll confirms this is the case for this one). Plus, they offer free shipping on orders over $40.

  49. how to lock down linux ... by keester · · Score: 0, Troll

    Delete it and install OpenBSD.

    --
    Take it easy? I'll take it anyway I can get it . . .
  50. Deline-what? Huh? by Anonymous Coward · · Score: 0

    "delineating many potential vulnerabilities, and how to mitigate them"

    Could you please translate that for non-native English speakers?

  51. We're Still Barking Up Wrong Tree With Security!! by Halvy · · Score: 0

    Security with computers is similar to the cat and mouse game that law enforcement and the good guys play all the time.

    One side gets ahead of the game, for awhile, and then visa versa.

    Law enforcement will tell us, as we already know, that for them to be effective, they NEED the support of the community.

    This book seems to have some good points that can be used by all.

    However the fact remains, NOONE can protect their systems from attack, whether it is from a kid, or the government.

    Therefore I am working on a theory for a detection and recovery system that will compete with the current insane race to 'protect' from the 'unprotectible'.

    The theory is actually quite simple.

    We are the good guys and 'should' have the most at stake AND motivation in keeping our systems 'up & running' properly.

    The bad guys usually (or should not) DON'T have a greater motivation to get into, or ruin our data.

    Therein lies the crux of the matter to solve this problem of security and the anxiety that it brings to so many.

    I propose that by shifting the emphasis to 'detection' (ids, etc) and recovery (raid, etc), that a minimal of problems can be had.

    This in lieu of the current 'thought' and preaching concerning how is best to 'harden' our systems, buy constantly worrying about patches and firefalls.

    I'm sure many will say this is insane because by shifting the work involved by the administrator from 'fighting' the bad guys by constantly patching and tweaking, he will allow more 'intrusions'.

    And this is so, but when coupled with a system(s) that quickly identifies any intrusions, and an 'immediate' responce (ie. recovery of backup data), there will be less ambition for the bad guy to continualy attempt to corrupt a system which is brought back on line almost immediately after any attacks by him.

    I'm sure many are saying "what about companies private data and businesses that handles alot of cash like banks"?

    Well there should be more of a motivation for the banks or corporations than for the average person or other businesses that are not involved with cash per say-- then my theory still holds that whoever has the larger motivation, will be able to detect and correct any anomlies with their systems data.

    In other words, if a bank can detect a theft 'immediately' then they can (should) take action 'immmediatly' (ie. 'recoop', or undo any transactions BEFORE' the attacking party has made the theft complete).

    On the other hand, if the so-called bad guy, who thinks that banks or corporations are evil, they may have the stronger motivation to 'protect' their transactions, therebye putting the banks and corportations in a situation where they are at a well deserved 'loss'.

    In summary, I believe this race is a classic 'good vs evil' one, and I am betting on the acomplishments of the 'good works', as oppossed to trying to stop the 'bad works' from occuring in the first place.

    --
    The InterNet is a terrible thing to waste. Arrest Bill Gates and shut down Microsoft immediately.

    --
    I will gladly loose all of life's battles.. in order to win the war..
  52. 3 easy steps to hardening linux by Geekboy(Wizard) · · Score: 1, Funny

    1) Install OpenBSD
    2) Drink Beer
    3) Drink more Beer.

  53. Re:OUTGOING by Anonymous Coward · · Score: 0

    I guess I missed out on this one, just looks like a bunch of random numbers :\

  54. Secure your Linux box... by rcs1000 · · Score: 1

    There is a very efficient way to secure your Linux box from the average script kiddy. It's simple and only takes about 5 seconds.

    chmod 500 /usr/bin/wget

    Congratulations: you've stopped practically every script kiddy. (Every exploit I've ever seen has used wget to pull down a "root kit". So deny wget to every user but root. If you want to be clever, you can allow sudo use of wget, but don't feel obliged.)

    Of course, this isn't real security. But if I'm running poorly debugged PHP apps on my webserver (you know who you are), then it's a must if I'm to stop my machine getting comprimised.

    Oh yes: and learn how chroot works. It'll save you a great many headaches :-)

    Cheers,

    Robert

    --
    --- My dad's political betting
  55. Re:OUTGOING by Deekin_Scalesinger · · Score: 1

    You took a different pill, clearly...

    --
    "As the intrepid kobold companion continues his journey, he begins to wonder... if priests raises dead, why anybody die?
  56. Bastille Linux by whitroth · · Score: 1

    I can't believe no one's mentioned what I believe is a popular and good piece of software: Bastille Linux. http://www.bastille-linux.org/>

          mark "use it, no compromises in five years"

  57. Re:So .. why doesn't Linux come setup with all thi by buchanmilne · · Score: 1

    Which is why we do our hardening during install, via the mechanisms provided by the distribution (ie %post section in kickstart files for RedHat).

    Thing is ... there is always a toss-up between security and convenience. The hardenings we apply for production servers wouldn't make a very useable workstation, and default installations have to consider both.

    Thus, distributions which allow for flexible yet easy to manage policies may be better. Although not commonly considered a server-grade distribution, Mandriva actually has a good framework for managing this, msec. Choose msec level 5 during installation (aka "Paranoid") will result in quite a hardened installation. Try it, but remember to add users to the wheel, xgrp, ctools, ntools groups or you will find it quite unuseable ...

  58. root logins by tGGnota · · Score: 1

    How much of a problem is it to allow root logins?