Skip to main content

Detecting SAM Hive Dumping

Learn the value of SAM dumping and see how to detect it using logs and artifacts.

Task 1: Introduction

Task 2: SAM From Adversarial Perspective

Task 3: Detecting SAM Dumping With Logs

Task 4: Detecting SAM Dumping With Artifacts

Task 5: Protection Against SAM Dumping

Task 6: Conclusion

Back to all walkthroughs
Room Icon

Detecting SAM Hive Dumping

Max room.

Learn the value of SAM dumping and see how to detect it using logs and artifacts.

medium

60 min

72

User profile photo.
User profile photo.
User profile photo.

To access material, start machines and answer questions login.

The Security Account Manager (SAM) is the local credential store on every Windows host. In this room we will explore how adversaries steal it, why, and how you catch them in the logs and forensic artifacts.

Learning Objectives

  • Recall what the SAM stores and how attackers steal it
  • Detect SAM dumping in and default event logs
  • Confirm SAM dumping from artifacts when logging was not configured
  • Harden a host so a stolen SAM hive gives an attacker as little as possible

Prerequisites

Lab Access

Before moving forward, start the lab by clicking the Start Machine button below. The opens in split view and takes about two minutes to fully load. You also need either DefenseBox or your own -connected machine to practice the commands from Task 2 and dig deeper into the topic.

For a smooth experience, we highly recommend using the target VM and DefenseBox over OpenVPN. The credentials for DefenseBox are DFIRUser:Secure!, and the credentials for the target VM are shown below.

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting both your DefenseBox and Lab Machines, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Defender machine
Status:Off
Lab machine
Status:Off

Credentials

Alternatively, you can access the VM from your own VPN-connected machine with the credentials below:

Username
 
Administrator
 
Password
 
Secure!
 
IP address
 
MACHINE_IP
 
Connection via
 
RDP
Answer the questions below

Let's go!