Uh-oh, it looks like your Internet Explorer is out of date.

For a better shopping experience, please upgrade now.

Windows Forensics and Incident Recovery
  • Alternative view 1 of Windows Forensics and Incident Recovery
  • Alternative view 2 of Windows Forensics and Incident Recovery

Windows Forensics and Incident Recovery

4.0 4
by Harlan Carvey

ISBN-10: 0321200985

ISBN-13: 9780321200983

Pub. Date: 07/21/2004

Publisher: Addison-Wesley

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


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.

Product Details

Publication date:
Addison-Wesley Microsoft Technology Series
Product dimensions:
7.00(w) x 9.10(h) x 1.10(d)

Table of Contents


1. Introduction.


Intended Audience.

Book Layout.

Defining the Issue.

The Pervasiveness and Complexity of Windows Systems.

The Pervasiveness of High-Speed Connections.

The Pervasiveness of Easy-to-Use Tools.


Real Incidents.

Where To Go For More Information.


2. How Incidents Occur.




Local vs. Remote.

Manual vs. Automatic.

Lowest Common Denominator.

Attacks Are Easy.


3. Data Hiding.

File Attributes.

The Hidden Attribute.

File Signatures.

File Times.

File Segmentation.

File Binding.

NTFS Alternate Data Streams.

Hiding Data in the Registry.

Office Documents.

OLE Structured Storage.



4. Incident Preparation.

Perimeter Devices.

Host Configuration.

NTFS File System.

Configuring the System with the SCM.

Group Policies.

Getting Under the Hood.

User Rights.

Restricting Services.


Audit Settings and the Event Log.

Windows File Protection.

WFP and ADSs.

Patch Management.




5. Incident Response Tools.


Tools for Collecting Volatile Information.

Logged On User(s).

Process Information.

Process Memory.

Network Information and Connections.

Clipboard Contents.

Command History.

Services and Drivers.

Group Policy Information.

Tools for Collecting Non-Volatile Information.

Collecting Files.

Contents for the Recycle Bin.

Registry Key Contents and Information.

Scheduled Tasks.

User Information.

Dumping the Event Logs.

Tools for Analyzing Files.

Executable files.

Process Memory Dumps.

Microsoft Word Documents.

PDF Documents.


6. Developing a Methodology.



First Dream.

Second Dream.

Third Dream.

Fourth Dream.

Fifth Dream.


7. Knowing What to Look For.

Investigation Overview.

Infection Vectors.

Malware Footprints and Persistence.

Files and Directories.

Registry Keys.


Open Ports.



AFX Windows Rootkit 2003.

Detecting Rootkits.

Preventing Rootkit Installations.


8. Using the Forensic Server Project.

The Forensic Server Project.

Collecting Data Using FSP.

Launching the Forensic Server.

Running the First Responder Utility.

File Client Component.

Correlating and Analyzing Data Using FSP.

Infected Windows 2003 System.

A Rootkit on a Windows 2000 System.

A Compromised Windows 2000 System.

Future Directions of the Forensic Server Project.


9. Scanners and Sniffers.

Port Scanners.




Network Sniffers.







Appendix A. Installing Perl on Windows.

Installing Perl and Perl Modules.

Perl Editors.

Running Perl Scripts.

Setting Up Perl for Use with this Book.











Appendix B. Web Sites.


Sites for Information about Windows.

Anti-Virus Sites.

Program Sites.

Security Information Sites.

Perl Programming and Code Sites.

General Reading.

Appendix C. Answers to Chapter 9 Questions.

FTP Traffic Capture.

Netcat Traffic Capture.

Null Session Traffic Capture.

IIS Traffic Capture.

Nmap Traffic Capture.

Appendix D. CD Contents.


Customer Reviews

Average Review:

Post to your social network


Most Helpful Customer Reviews

See all customer reviews

Windows Forensics and Incident Recovery 4 out of 5 based on 0 ratings. 4 reviews.
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Guest More than 1 year ago
I would strongly recommend this book to anyone that is looking at Windows incident response or Windows monitoring. This is the first computer book that I have read cover to cover in well over 5 years and I have bought a lot of computer books. From the beginning until the end you are bombarded with information that is useful and relevant to today¿s Windows management. Not only are you told about different tools but are shown how they are used and what benefit they have, not only in incident response but also in daily monitoring. This book provides so much information it is hard to figure where I wanted to start with building my own incident response toolkit. You are given quite a few options on how to do an analysis and what tools you can use. Carvey leaves it up to you to determine what options you want to use for each analysis. Carvey is like a good parent giving their child all the information they will need in life and letting them apply it how they see fit. The scripts that are provided with the book are excellent and provide you with a strong base to build your own incident response toolkit. The Forensic Server Project which the author wrote is covered in Chapter 8 and provides an excellent framework that can be tweaked to use your own preferences and scripts of your choosing. The ease and use of using this framework to collect incident information will make the first responders job that much easier considering the first responder will probably be under stress when doing this analysis. The instructions for installing it will very clear and easy to follow and I had it up and testing in a couple of minutes.
Guest More than 1 year ago
Perhaps an overdue book! Inasmuch as satisfying an unmet need goes. Carvey writes this book as a counterpart to those about defending a linux/unix system or network against attacks. He points out that Microsoft Windows sysadmins often suffer from several disadvantages compared to the other counterparts. There are fewer open source tools for network diagnostics. In part because the Microsoft operating systems are closed, it is harder, though not impossible, to write such tools. Plus, a sysadmin tends to be more dependent on the UI tools that come with the operating system. That is, if the UI tools show nothing anomalous, then the sysadmin thinks everything is hunky dory. But those tools can be fooled by smart attacks. Mind you, similar could also be said of some unix sysadmins, who restrict themselves to a UI. Carvey wrote this book to remedy these deficiencies. He goes into clear explanations of malware and how, for example, an attacker has various ways to hide a foreign file. A distinctive part of the book is the chapter on developing a methodology. He walks through several case studies of a sysadmin and his network, and how anomalies arise and can be tracked down. Written in an informal, novelistic style. Very readable and educational. Any sysadmin can easily relate to the flow of events and the logic and decisions the 'hero' makes. The chapter is the equivalent of the problem sets at the ends of chapters in other books. You do these to assimilate the chapters. But when discussing network security, it is hard to have that format of questions. Instead, Carvey presents each case study as a logical puzzle. To actually apply what he's covered in the preceding chapters.