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)

Extracting audio and video metadata

Recipe Difficulty: Easy

Python Version: 2.7 or 3.5

Operating System: Any

Audio and video files are common file formats that make use of embedded metadata. This information, for example, is used by your preferred media player to show the artist, album, and track name information of the content you import. Though the majority of this information is standard and focused on providing information to the listener, we sometimes find important details in this area of the file. We begin our exploration of embedded metadata with the extraction of the common attributes from audio and video files.

Getting started

This recipe requires the installation of the third-party library mutagen. All other libraries...