O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Windows Forensics and Incident Recovery

Book Description

Praise for Windows Forensics and Incident Recovery

"Windows Forensics and Incident Recovery doesn't just discuss forensics, it also includes tools for analysis and shows readers how to use them. I look forward to putting these tools through their paces, and I recommend Carvey's book as a terrific addition to the security professional's bookshelf."
—Warren G. Kruse II, Partner

Computer Forensic Services, LLC

"This book is a good reference for the tools needed to prepare for, respond to, and confirm a Windows-based computer incident."
—Brian Carrier
Digital forensics researcher

"This book provides a unique 'command-line centric' view of Microsoft and non-Microsoft tools that can be very helpful to folks responsible for security and system administration on the Windows platform."
—Vishwas Lele, principal architect
Applied Information Sciences, Inc.

"Harlan Carvey's book serves as a great resource for investigators and systems administrators looking to peek under the hoods of their Windows systems."
—Jason Chan, security consultant

"Regardless of what you know already, you are guaranteed to learn something new about Windows incident response from this book."
—Brian Behler, computer forensics and intrusion analyst/engineer

"Harlan Carvey's vast security and forensics experience shows through in all facets of this work. Many books have attempted to be the prescriptive guide to forensics on the Windows platform. This book not only attempts it, but it succeeds—with guidance to spare."
—Rick Kingslan, Microsoft MVP
West Corporation

"This book is the first to bring together into a single volume the topics of malicious code, incident response, and forensics on the Windows platform. Mr. Carvey's work should serve as a valuable reference for any Windows system administrator or security professional."
—Jennifer Kolde, information security consultant, author, and instructor

"Harlan Carvey's book is a one-of-a-kind approach to do-it-yourself Windows forensics. With detailed and illustrative examples coupled with Harlan's renowned Perl scripts, this book certainly is a great find."
—Mark Burnett, security consultant and author

  • The first book to focus on forensics and incident recovery in a Windows environment

  • Teaches through case studies and real world-examples

  • Companion CD contains unique tools developed by the author.

  • Covers Windows Server 2003, Windows 2000, Windows NT, and Windows XP

  • If you're responsible for protecting Windows systems, firewalls and anti-virus aren't enough. You also need to master incident response, recovery, and auditing. Leading Windows security expert and instructor Harlan Carvey offers a start-to-finish guide to the subject: everything administrators must know to recognize and respond to virtually any attack.

    Drawing on his widely acclaimed course, Carvey uses real-world examples to cover every significant incident response, recovery, and forensics technique. He delivers a complete incident response toolset that combines today's best open source and freeware tools, his own exclusive software and scripts, and step-by-step instructions for using them. This book's tools and techniques apply to every current and professional version of Windows: NT, 2000, XP, and Windows Server 2003. Coverage includes:

  • Developing a practical methodology for responding to potential attacks

  • Preparing your systems to prevent and detect incidents

  • Recognizing the signatures of an attack—in time to act

  • Uncovering attacks that evade detection by Event Viewer, Task Manager, and other Windows GUI tools

  • Using the Forensic Server Project to automate data collection during live investigations

  • Analyzing live forensics data in order to determine what occurred


    CD-ROM contains incident response and forensics toolkit code developed by the author, sample network packet captures, as well as data collected from compromised systems using the Forensic Server Project. You can also access Carvey's website at http://www.windows-ir.com for code samples, updates, and errata.


    I'd like to start by thanking Larry Leibrock and Jay Heiser for getting me started down this road. Several years ago, I had developed a 2-day, hands-on incident response course for Windows 2000, and Larry provided me with my initial opportunity to teach it at the University of Texas in Austin. This book began its life as the presentation for the incident response course. I had done a technical review of Jay and Warren Kruse's computer forensics book, and Jay provided my name to his former editor as someone who may be interested in writing a book on the subject of Windows security.

    Karen Gettman offered me the opportunity to write this book, and I decided to take it. I'd had articles published, but I'd never written a book. Karen and her assistant, Elizabeth Zdunich, kept me on track throughout this process.

    I'd like to thank several of the reviewers as well. Of all of the reviewers who've been involved in this process, I'd like to recognize Jennifer Kolde, Mike Lyman, and Jason Chan for their efforts and input. The reviews from these three individuals provided valuable constructive criticism regarding the content and structure of the book. I can't say that I followed all the advice they provided, but I did read and consider everything they said thoroughly. With their help and insight, I didn't feel as if I were working on this book alone. Thanks, guys, for your time and effort. And Jen, thanks for indulging me all those time I'd email you with thoughts about your comments. Those exchanges gave me even more insight into to the content of the book, as well as the subject of incident response on Windows systems, in general.

    Finally, and most importantly, I'd like to thank Terri Dougherty. I've written a book, and yet I can't seem to find the words to express my gratitude for your support throughout this process. Thank you. I owe you a debt that I will be repaying for a long time.

    © Copyright Pearson Education. All rights reserved.

    Table of Contents

    1. Copyright
    2. Praise for Windows Forensics and Incident Recovery
    3. About the Author
    4. Preface
    5. Introduction
      1. Definitions
      2. Intended Audience
      3. Book Layout
      4. Defining the Issue
      5. Purpose
      6. Real Incidents
      7. Where To Go For More Information
      8. Conclusion
    6. How Incidents Occur
      1. Definitions
      2. Purpose
      3. Incidents
      4. Lowest Common Denominator
      5. Attacks Are Easy
      6. Summary
    7. Data Hiding
      1. File Attributes
      2. The Hidden Attribute
      3. File Signatures
      4. File Times
      5. File Segmentation
      6. File Binding
      7. NTFS Alternate Data Streams
      8. Hiding Data in the Registry
      9. Office Documents
      10. OLE Structured Storage
      11. Steganography
      12. Summary
    8. Incident Preparation
      1. Perimeter Devices
      2. Host Configuration
      3. Group Policies
      4. Getting Under the Hood
      5. Patch Management
      6. Anti-Virus
      7. Monitoring
      8. Summary
    9. Incident Response Tools
      1. Definitions
      2. Tools for Collecting Volatile Information
      3. Tools for Collecting Non-Volatile Information
      4. Tools for Analyzing Files
      5. Summary
    10. Developing a Methodology
      1. Introduction
      2. Prologue
      3. First Dream
      4. Second Dream
      5. Third Dream
      6. Fourth Dream
      7. Fifth Dream
      8. Summary
    11. Knowing What to Look For
      1. Investigation Overview
      2. Infection Vectors
      3. Malware Footprints and Persistence
      4. Rootkits
      5. Detecting Rootkits
      6. Summary
    12. Using the Forensic Server Project
      1. The Forensic Server Project
      2. Collecting Data Using FSP
      3. Correlating and Analyzing Data Using FSP
      4. Future Directions of the Forensic Server Project
      5. Summary
    13. Scanners and Sniffers
      1. Port Scanners
      2. Network Sniffers
      3. Summary
    14. Installing Perl on Windows
      1. Installing Perl and Perl Modules
      2. Perl Editors
      3. Running Perl Scripts
      4. Setting Up Perl for Use with this Book
      5. Summary
    15. Web Sites
      1. Searching
      2. Sites for Information about Windows
      3. Anti-Virus Sites
      4. Program Sites
      5. Security Information Sites
      6. Perl Programming and Code Sites
      7. General Reading
    16. Answers to Chapter 9 Questions
      1. FTP Traffic Capture
      2. Netcat Traffic Capture
      3. Null Session Traffic Capture
      4. IIS Traffic Capture
      5. Nmap Traffic Capture
    17. CD-ROM Contents
      1. What's on the CD
    18. Article
      1. CD-ROM Warranty
    19. Index