Book Image

Hands-On Network Forensics

By : Nipun Jaswal
2 (2)
Book Image

Hands-On Network Forensics

2 (2)
By: Nipun Jaswal

Overview of this book

Network forensics is a subset of digital forensics that deals with network attacks and their investigation. In the era of network attacks and malware threat, it’s now more important than ever to have skills to investigate network attacks and vulnerabilities. Hands-On Network Forensics starts with the core concepts within network forensics, including coding, networking, forensics tools, and methodologies for forensic investigations. You’ll then explore the tools used for network forensics, followed by understanding how to apply those tools to a PCAP file and write the accompanying report. In addition to this, you will understand how statistical flow analysis, network enumeration, tunneling and encryption, and malware detection can be used to investigate your network. Towards the end of this book, you will discover how network correlation works and how to bring all the information from different types of network devices together. By the end of this book, you will have gained hands-on experience of performing forensics analysis tasks.
Table of Contents (16 chapters)
Free Chapter
1
Section 1: Obtaining the Evidence
4
Section 2: The Key Concepts
8
Section 3: Conducting Network Forensics

Analyzing Empire C2

Empire is a pure PowerShell post-exploitation agent and provide features similar to a Metasploit Meterpreter Similar to the Indicators of Compromise (IOC) observed in Metasploit, the Empire C2 have varying  IOCs. Let's analyze the empire_shell.pcap file and load it up in Wireshark to view the properties of pcap:

The capture file contains traffic analysis for over three-and-a half hours. Let's look at the traffic conversations:

We can see a clear pattern here, which denotes beaconing, as we can see that the number of packets is quite static, having the value 5 for most of the 2,649 conversations. The systems infected with Empire tend to generate a ton of HTTP requests. Let's filter some of the HTTP requests using HTTP contains GET filter and see what's under the hood:

The attackers can easily modify the preceding...