Slashdot Mirror


Network Security Hacks

Anton Chuvakin writes "When I first got this little book called Network Security Hacks, I was unimpressed by its idea: a seemingly random collection of network security tips combined under the same cover. However, when I started reading, more and more often I exclaimed "Ah, that's how it is done!" as well as found better ways of doing what I was doing." Read on for the rest of Chuvakin's review. Network Security Hacks author Andrew Lockhart pages 312 publisher O'Reilly rating 8 reviewer Anton Chuvakin ISBN 0596006438 summary Surprisingly good; packs a lot of network security knowledge into a small book.

The book is structured around many security subjects. These are: UNIX, Windows, Network Security, Logging (covering collecting, summarizing and analyzing log files), Monitoring, (covering system and network monitoring and collecting various statistics), Tunnels (covering various kind of VPNs and encrypted communication), Intrusion Detection, and Recovery and Response (short section covering very basic forensics).

Each section has a dozen or more tips, each taking from a page to several pages. For example, looking for SUID and SGID files takes just half a page, while installing and configuring Snort NIDS takes several pages. As a result, the style is understandably terse and to-the point.

The book ended up being one cool collection of tips, ranging from mundane ('how to configure iptables on Linux') to fairly esoteric ('how to use MySQL as an authenticating backend for an FTP server'). If you've always wanted to use 'grsecurity' or 'systrace,' but thought they were too complicated - grab the book and give it a shot. If you want to set up a fancy encrypted tunnel between two networks, it covers that too. Admittedly, a lot of advice given in the book can be found on Google, but it is nice to find it in one place. Network Security Hacks covers selected topics in host security, SSH and VPNs, IDS, monitoring and even touches upon forensics. I also liked its multi-platform coverage, with a slight but unmistakable UNIX/Linux bias.

Overall, Network Security Hacks is a great book, provided you don't try to find in it something it isn't; it is a neat collection of simple network security tips. I somewhat disliked that many tips don't go beyond 'how to install a tool' and so stop short of discussing how to use it best. Another gripe: I'd rather some of the tips skipped the obvious (such as "./configure; make; make install") and focused on little known and cool ways to use technology for security. Network Security Hacks will be useful for people involved with system and network management, those starting up in the security field, as well as for more advanced professionals (as a way to check their knowledge and skills). Also, it helps folks to jump straight to effective ways of doing things in the areas where their skills are less developed.

For example, I knew it was possible to use SSH to create a makeshift VPN, but this books is the first I've seen with a really good description of doing so. Similarly, I found some neat MySQL hardening tips in the book. Overall, there is a lot in the book for most people who are somehow involved in computer security, particularly if they're also running UNIX or Linux.

Anton Chuvakin, Ph.D., GCIA, GCIH is a Senior Security Analyst with a major security information management company, author of Security Warrior (and contributor to Know Your Enemy II), and maintainer of security portal info-secure.org You can purchase Network Security Hacks from bn.com. Slashdot welcomes readers' book reviews. To see your own review here, carefully read the book review guidelines, then visit the submission page.

12 of 107 comments (clear)

  1. Happy Day! by Anonymous Coward · · Score: 5, Funny

    I've been beating myself over the head trying to find a gift for my Script Kiddie nephew! Thank you Andrew Lockhart!

  2. Hmmm by Neil+Blender · · Score: 5, Funny

    "Network security hacks" - sounds like some setups I know of.

  3. Good book by xOleanderx · · Score: 5, Interesting

    Its a very good reference book. If anyones looking for a good beginners book thats similar tho this one then check out Steal This Computer Book 3: What They Won't Tell You About the Internet

  4. Google by Roland+Piquepaille · · Score: 5, Insightful

    Admittedly, a lot of advice given in the book can be found on Google, but it is nice to find it in one place.

    Well duh...

    Google knows everything, therefore includes any book, just like sea water contains sugar (and almost any known chemical compound) but it's so diluted it would make a lousy sweetener. Therefore, books are good, whether or not Google contains the information in the book.

    1. Re:Google by Neil+Blender · · Score: 5, Insightful

      Google knows everything huh? How about all of the Potential pages built dynamically as the rusult of DB queries?

      Google groups knows damn near everything. I have been using it since it was Deja News and I have to say, I have learned more from it than the next top ten resources at my disposal combined. Type in the most specific keywords and 'Re' (this gives you reponses to questions) and you will get answers fast. Google groups is god.

    2. Re:Google by BigDave81 · · Score: 5, Funny

      Yes, but does google know what i'm thinking right now??

    3. Re:Google by Anonymous Coward · · Score: 5, Funny

      Yes, but does google know what i'm thinking right now??

      yes

    4. Re:Google by Nasarius · · Score: 5, Funny
      Google groups is god.

      Agreed. It's a wonderful supplement to MSDN when Microsoft neglects to tell you how to actually use their own APIs.

      --
      LOAD "SIG",8,1
  5. "Ah, that's how it is done!" by blue_adept · · Score: 5, Funny

    why can't I shake the image of Wyle. E. Coyote reading his Acme book of Hacking just before trying something he's about to reget...

    --

    "Is this just useless, or is it expensive as well?"
  6. Re:First tip: Secure mountpoints by PacoTaco · · Score: 5, Informative
    You can prevent users from creating code in /home if you want

    Not quite. You can still run stuff as an argument, like:

    perl /home/pacotaco/something.pl

  7. BOFH hack -- restricted shell by atomic-penguin · · Score: 5, Interesting

    bash-2.05b$ bash -r

    bash: SHELL: readonly variable

    bash: PATH: readonly variable

    bash-2.05b$ ls

    bash: ls: No such file or directory

    bash-2.05b$

    Now users cannot run anything that is not symlinked to their home directory.

    --
    /^([Ss]ame [Bb]at (time, |channel.)){2}$/
  8. snort setup by AmishSlayer · · Score: 5, Interesting

    I've just finished a setup with snort, apf, logsurfer and a custom program to create a live repsone firewall.

    snort will detect the offensive network traffic and put it into the alert log file. Logsurfer will then trigger and email me with a notice, it will run a program I wrote to blacklist the attacking IP (my program checks to make sure the IP is not already banned and makes sure the IP is not my own so I do not get locked out). Finally, my program updates the firewall to block the bastard.

    The only hole I see in this setup is a DoS by attacking with different spoofed "from IPs" until the firewall rules are too big, or too many legit servers are banned.