Book Image

Python Digital Forensics Cookbook

By : Chapin Bryce, Preston Miller
Book Image

Python Digital Forensics Cookbook

By: Chapin Bryce, Preston Miller

Overview of this book

Technology plays an increasingly large role in our daily lives and shows no sign of stopping. Now, more than ever, it is paramount that an investigator develops programming expertise to deal with increasingly large datasets. By leveraging the Python recipes explored throughout this book, we make the complex simple, quickly extracting relevant information from large datasets. You will explore, develop, and deploy Python code and libraries to provide meaningful results that can be immediately applied to your investigations. Throughout the Python Digital Forensics Cookbook, recipes include topics such as working with forensic evidence containers, parsing mobile and desktop operating system artifacts, extracting embedded metadata from documents and executables, and identifying indicators of compromise. You will also learn to integrate scripts with Application Program Interfaces (APIs) such as VirusTotal and PassiveTotal, and tools such as Axiom, Cellebrite, and EnCase. By the end of the book, you will have a sound understanding of Python and how you can use it to process artifacts in your investigations.
Table of Contents (11 chapters)

Introduction

The Sleuth Kit, and its Python bindings pytsk3, is perhaps the most well-known Python forensic library. This library offers rich support for accessing and manipulating filesystems. And with the help of supporting libraries, such as pyewf, they can be used to work with common forensic containers such as EnCase's popular E01 format. Without these libraries (and many others), we would be inherently more limited by what can be accomplished with Python in forensics. Due to its lofty goal as an all-in-one filesystem analysis tool, pytsk3 is perhaps the most complicated library we will work with in this book.

For this reason, we have dedicated a number of recipes exploring the fundamentals of this library. Up to this point, recipes have been mainly focused on loose file support. That convention ends here. We will routinely use this library going forward to interact...