Network Defense and Countermeasures: Principles and Practices Second Edition
Total Page:16
File Type:pdf, Size:1020Kb
Network Defense and Countermeasures: Principles and Practices Second Edition Chuck Easttom 800 East 96th Street, Indianapolis, Indiana 46240 USA Network Defense and Countermeasures: Practices and Associate Publisher Principles, Second Edition Dave Dusthimer Copyright © 2014 by Pearson Education, Inc. Acquisitions Editor Betsy Brown All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, Managing Editor without written permission from the publisher. No patent liability is assumed with respect Sandra Schroeder to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or Project Editor omissions. Nor is any liability assumed for damages resulting from the use of the information Seth Kerney contained herein. Copy Editor ISBN-13: 978-0-7897-5094-5 Paula Lowell ISBN-10: 0-7897-5094-5 Library of Congress Control Number: 2013948636 Indexer Heather McNeil Printed in the United States of America Proofreader First printing October 2013 Jess DeGabriele Trademarks Technical Editor Ronald Gonzales All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Pearson IT Certification cannot attest to the accuracy of this Publishing Coordinator information. Use of a term in this book should not be regarded as affecting the validity of any Vanessa Evans trademark or service mark. Interior Designer Warning and Disclaimer Gary Adair Every effort has been made to make this book as complete and as accurate as possible, but no Cover Designer warranty or fitness is implied. The information provided is on an “as is” basis. The authors Mark Shirar and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from Compositor the use of the CD or programs accompanying it. Studio Galou, LLC Bulk Sales Pearson IT Certification offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales. For more information, please contact U.S. Corporate and Government Sales 1-800-382-3419 [email protected] For sales outside of the U.S., please contact International Sales [email protected] Contents at a Glance Preface .......................................................... xi Chapter 1: Introduction to Network Security ........................... 2 Chapter 2: Types of Attacks ........................................ 38 Chapter 3: Fundamentals of Firewalls ................................ 72 Chapter 4: Firewall Practical Applications ............................. 96 Chapter 5: Intrusion Detection Systems ............................. 122 Chapter 6: Encryption Fundamentals ............................... 142 Chapter 7: Virtual Private Networks ................................. 170 Chapter 8: Operating System Hardening ............................ 192 Chapter 9: Defending Against Virus Attacks .......................... 228 Chapter 10: Defending against Trojan Horses, Spyware, and Adware ..... 258 Chapter 11: Security Policies ...................................... 280 Chapter 12: Assessing System Security ............................. 302 Chapter 13: Security Standards .................................... 338 Chapter 14: Physical Security and Disaster Recovery .................. 366 Chapter 15: Techniques Used by Attackers .......................... 376 Chapter 16: Introduction to Forensics ............................... 396 Chapter 17: Cyber Terrorism ...................................... 414 Appendix A: References .......................................... 440 Glossary ....................................................... 444 Index .......................................................... 454 iii Table of Contents Preface .......................................................... xi Chapter 1: Introduction to Network Security 2 Introduction ....................................................... 2 The Basics of a Network ............................................ 3 Basic Network Utilities .............................................. 7 The OSI Model ................................................... 11 What Does This Mean for Security? .................................. 11 Assessing Likely Threats to the Network ............................. 12 Classifications of Threats ........................................... 15 Likely Attacks .................................................... 19 Threat Assessment ................................................ 21 Understanding Security Terminology ................................ 22 Choosing a Network Security Approach .............................. 26 Network Security and the Law ...................................... 27 Using Security Resources .......................................... 29 Test Your Skills .............................................. 30 Chapter 2: Types of Attacks 38 Introduction ...................................................... 38 Understanding Denial of Service Attacks .............................. 39 Defending Against Buffer Overflow Attacks ............................ 55 Defending Against IP Spoofing ...................................... 57 Defending Against Session Hacking .................................. 58 Blocking Virus and Trojan Horse Attacks .............................. 59 Test Your Skills .............................................. 66 Chapter 3: Fundamentals of Firewalls 72 Introduction ...................................................... 72 iv Table of Contents What Is a Firewall? ................................................ 73 Implementing Firewalls ............................................ 80 Selecting and Using a Firewall ...................................... 86 Using Proxy Servers ............................................... 87 Test Your Skills .............................................. 89 Chapter 4: Firewall Practical Applications 96 Introduction ...................................................... 96 Using Single Machine Firewalls ...................................... 97 Windows 7 ...................................................... 98 User Account Control .............................................. 99 Linux Firewalls ................................................... 99 Using Small Office/Home Office Firewalls ............................ 107 Using Medium-Sized Network Firewalls .............................. 110 Using Enterprise Firewalls ......................................... 112 Test Your Skills ............................................. 115 Chapter 5: Intrusion-Detection Systems 122 Introduction ..................................................... 122 Understanding IDS Concepts ...................................... 123 Understanding and Implementing IDS Systems ....................... 126 Understanding and Implementing Honey Pots ........................ 130 Test Your Skills ............................................. 136 Chapter 6: Encryption Fundamentals 142 Introduction ..................................................... 142 The History of Encryption ......................................... 142 Learning About Modern Encryption Methods ......................... 148 Identifying Good Encryption ....................................... 154 Understanding Digital Signatures and Certificates ..................... 155 Understanding and Using Decryption ............................... 158 Table of Contents v Cracking Passwords ............................................. 158 Steganography .................................................. 159 Steganalysis .................................................... 161 Exploring the Future of Encryption .................................. 161 Test Your Skills ............................................. 163 Chapter 7: Virtual Private Networks 170 Introduction ..................................................... 170 Basic VPN Technology ........................................... 171 Using VPN Protocols for VPN Encryption ............................ 172 IPSec .......................................................... 178 SSL ........................................................... 180 Implementing VPN Solutions ....................................... 180 Test Your Skills ............................................. 186 Chapter 8: Operating System Hardening 192 Introduction ..................................................... 192 Configuring Windows Properly ..................................... 193 Configuring Linux Properly ........................................ 214 Patching the Operating System .................................... 216 Configuring Browsers ............................................ 216 Test Your Skills ............................................. 222 Chapter 9: Defending Against Virus Attacks 228 Introduction ..................................................... 228 Understanding Virus Attacks ....................................... 229 Virus Scanners .................................................. 236 Antivirus Policies and Procedures .................................. 248 Additional Methods for Defending Your System ....................... 249 What to Do If Your System Is Infected by a Virus ...................... 249 Test Your Skills ............................................