Nessus, Snort, & Ethereal Power Tools
Total Page:16
File Type:pdf, Size:1020Kb
332_NSE_FM.qxd 7/14/05 1:51 PM Page i Register for Free Membership to [email protected] Over the last few years, Syngress has published many best-selling and critically acclaimed books, including Tom Shinder’s Configuring ISA Server 2004, Brian Caswell and Jay Beale’s Snort 2.1 Intrusion Detection, and Angela Orebaugh and Gilbert Ramirez’s Ethereal Packet Sniffing. One of the reasons for the success of these books has been our unique [email protected] program. Through this site, we’ve been able to provide readers a real time extension to the printed book. As a registered owner of this book, you will qualify for free access to our members-only [email protected] program. Once you have registered, you will enjoy several benefits, including: ■ Four downloadable e-booklets on topics related to the book. Each booklet is approximately 20-30 pages in Adobe PDF format. They have been selected by our editors from other best-selling Syngress books as providing topic coverage that is directly related to the coverage in this book. ■ A comprehensive FAQ page that consolidates all of the key points of this book into an easy-to-search web page, pro- viding you with the concise, easy-to-access data you need to perform your job. ■ A “From the Author” Forum that allows the authors of this book to post timely updates links to related sites, or addi- tional topic coverage that may have been requested by readers. Just visit us at www.syngress.com/solutions and follow the simple registration process. You will need to have this book with you when you register. Thank you for giving us the opportunity to serve your needs. And be sure to let us know if there is anything else we can do to make your job easier. 332_NSE_FM.qxd 7/14/05 1:51 PM Page iii Jay Beale’s Open Source Security Series Nessus, Snort, Power & Ethereal Tools Customizing Open Source Security Applications Neil Archibald Gilbert Ramirez Noam Rathaus Josh Burke Technical Editor Brian Caswell Technical Editor Renaud Deraison Technical Editor 332_NSE_FM.qxd 7/14/05 1:51 PM Page iv Syngress Publishing, Inc., the author(s), and any person or firm involved in the writing, editing, or produc- tion (collectively “Makers”) of this book (“the Work”) do not guarantee or warrant the results to be obtained from the Work. There is no guarantee of any kind, expressed or implied, regarding the Work or its contents.The Work is sold AS IS and WITHOUT WARRANTY.You may have other legal rights, which vary from state to state. In no event will Makers be liable to you for damages, including any loss of profits, lost savings, or other incidental or consequential damages arising out from the Work or its contents. Because some states do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you. You should always use reasonable care, including backup and other appropriate precautions, when working with computers, networks, data, and files. Syngress Media®, Syngress®,“Career Advancement Through Skill Enhancement®,”“Ask the Author UPDATE®,” and “Hack Proofing®,” are registered trademarks of Syngress Publishing, Inc.“Syngress:The Definition of a Serious Security Library”™,“Mission Critical™,” and “The Only Way to Stop a Hacker is to Think Like One™” are trademarks of Syngress Publishing, Inc. Brands and product names mentioned in this book are trademarks or service marks of their respective companies. KEY SERIAL NUMBER 001 HJIRTCV764 002 PO9873D5FG 003 829KM8NJH2 004 JKKL765FFF 005 CVPLQ6WQ23 006 VBP965T5T5 007 HJJJ863WD3E 008 2987GVTWMK 009 629MP5SDJT 010 IMWQ295T6T PUBLISHED BY Syngress Publishing, Inc. 800 Hingham Street Rockland, MA 02370 Nessus, Snort, & Ethereal Power Tools: Customizing Open Source Security Applications Copyright © 2005 by Syngress Publishing, Inc.All rights reserved. Printed in the United States of America. Except as permitted under the Copyright Act of 1976, no part of this publication may be repro- duced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication. Printed in the United States of America 1 2 3 4 5 6 7 8 9 0 ISBN: 1-59749-020-2 Publisher:Andrew Williams Page Layout and Art: Patricia Lupien Acquisitions Editor: Gary Byrne Copy Editors:Amy Thomson and Judy Eby Technical Editors: Josh Burke, Brian Caswell, Indexer: Richard Carlson Renaud Deraison, and Mike Rash Cover Designer: Michael Kavish Distributed by O’Reilly Media, Inc. in the United States and Canada. For information on rights and translations, contact Matt Pedersen, Director of Sales and Rights, at Syngress Publishing; email [email protected] or fax to 781-681-3585. 332_NSE_FM.qxd 7/14/05 1:51 PM Page v Acknowledgments Syngress would like to acknowledge the following people for their kindness and support in making this book possible. Syngress books are now distributed in the United States and Canada by O’Reilly Media, Inc.The enthusiasm and work ethic at O’Reilly are incredible, and we would like to thank everyone there for their time and efforts to bring Syngress books to market:Tim O’Reilly, Laura Baldwin, Mark Brokering, Mike Leonard, Donna Selenko, Bonnie Sheehan, Cindy Davis, Grant Kikkert, Opol Matsutaro, Steve Hazelwood, Mark Wilson, Rick Brown, Leslie Becker, Jill Lothrop,Tim Hinton, Kyle Hart, Sara Winge, C. J. Rayhill, Peter Pardo, Leslie Crandell, Regina Aggio, Pascal Honscher, Preston Paull, Susan Thompson, Bruce Stewart, Laura Schmier, Sue Willing, Mark Jacobsen, Betsy Waliszewski, Dawn Mann, Kathryn Barrett, John Chodacki, Rob Bullington, and Aileen Berg. The incredibly hardworking team at Elsevier Science, including Jonathan Bunkell, Ian Seager, Duncan Enright, David Burton, Rosanna Ramacciotti, Robert Fairbrother, Miguel Sanchez, Klaus Beran, Emma Wyatt, Chris Hossack, Krista Leppiko, Marcel Koppes, Judy Chappell, Radek Janousek, and Chris Reinders for making certain that our vision remains worldwide in scope. David Buckland, Marie Chieng, Lucy Chong, Leslie Lim,Audrey Gan, Pang Ai Hua, Joseph Chan, and Siti Zuraidah Ahmad of STP Distributors for the enthusiasm with which they receive our books. David Scott, Tricia Wilden, Marilla Burgess, Annette Scott, Andrew Swaffer, Stephen O’Donoghue, Bec Lowe, Mark Langley,and Anyo Geddes of Woodslane for distributing our books throughout Australia, New Zealand, Papua New Guinea, Fiji,Tonga,Solomon Islands, and the Cook Islands. v 332_NSE_FM.qxd 7/14/05 1:51 PM Page vi 332_NSE_FM.qxd 7/14/05 1:51 PM Page vii Contributing Authors Neil Archibald is a security professional from Sydney,Australia. He has a strong interest in programming and security research. Neil is employed by Suresec LTD (http://www.suresec.org) as a Senior Security Researcher. He has previously coauthored Aggressive Network Self-Defense, (Syngress, ISBN: 1-931836-70-5). Thanks to Jayne; Feline Menace; Pull The Plug; Johnny Long, for setting me up with the opportunity to write; James Martelletti, for writing the GTK interface shown in Chapter 9; and, finally, my boss at Suresec, Swaraj, for providing me with the time I needed to get this done. Neil wrote Chapters 7–10 on Snort. Ami Chayun is a chief programmer at Beyond Security. Other than satisfying his real craving for code, he contributes articles and security newsletters to SecuriTeam.com,the independent security portal.Ami has written hundreds of articles covering various tech- nical developments related to security.Ami also occasionally speaks at industry conferences. Since a good programmer is a lazy programmer,Ami is in con- stant search for automatic ways to do the hard work for him. During his work in Beyond Security, he has developed an auto- mated vulnerability scanner, but he claims his next invention will be an underwater DVD player so that he can finally watch his favorite anime while Scuba diving. Ami started his academic computer studies at age 15, when he was bored in high school and searching for the real meaning of life. He should be finishing his studies “any day now,” but impartial observers claim that he’ll be saying that to his grandchildren. Ami wrote Chapter 6 on Nessus. vii 332_NSE_FM.qxd 7/14/05 1:51 PM Page viii Gilbert Ramirez was the first contributor to Ethereal after it was announced to the public and is known for his regular updates to the product. He has contributed protocol dissectors as well as core logic to Ethereal. He is a Technical Leader at Cisco Systems,where he works on tools and builds systems. Gilbert is a family man, a lin- guist, a want-to-be chef, and a student of tae kwon do. Gilbert wrote Chapters 11–13 on Ethereal. Noam Rathaus is the cofounder and CTO of Beyond Security, a company specializing in the development of enterprise-wide secu- rity assessment technologies, vulnerability assessment-based SOCs (security operation centers), and related products. Noam coauthored Nessus Network Auditing (Syngress, ISBN: 1-931836-08-6). He holds an Electrical Engineering degree from Ben Gurion University and has been checking the security of computer systems since the age of 13. Noam is also the editor-in-chief of SecuriTeam.com,one of the largest vulnerability databases and security portals on the Internet. He has contributed to several security-related open source projects, including an active role in the Nessus security scanner project. He has written more than 150 security tests to the open source tool’s vulnerability database and also developed the first Nessus client for the Windows operating system. Noam is apparently on the hit list of several software giants after being responsible for uncovering secu- rity holes in products by vendors such as Microsoft, Macromedia, Trend Micro, and Palm.This keeps him on the run using his Nacra Catamaran, capable of speeds exceeding 14 knots for a quick get- away.