Skip to content

0x0allenace/velociraptor-incident-response-mimikatz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Velociraptor Incident Response Use Cases

This walkthrough demonstrates how to use Velociraptor for incident response during a Mimikatz infection.

📌 Scenario

An alert was triggered for Mimikatz on the wrk-price VM.
Your tasks are to:

  1. Quarantine the infected machine.
  2. Retrieve the malware for analysis.
  3. Search across the network for other instances of Mimikatz.

Scenario

🛑 Step 1: Respond to the Alert

You receive the following alert from Wazuh:

wazuh-mimikatz-alert

Quarantine the host wrk-price in Velociraptor:

  • Navigate to the Client tab.
  • Select the Quarantine button.

velociraptor-quarantine-button

A popup will appear. Add a reason for quarantining and confirm.

velociraptor-quarantine-popup

Once quarantined, the client icon updates to reflect its status:

velociraptor-client-quarantined

📂 Step 2: Collect the Malware Sample

Using VFS, navigate to the Downloads folder where Mimikatz was reported.

velociraptor-vfs-downloads

Collect mimikatz.exe to your Velociraptor server (note: Velociraptor server is Linux; Mimikatz runs only on Windows).

velociraptor-collect-mimikatz

When collection is complete, download the file:

velociraptor-download-sample

Verify in the Downloads directory that Mimikatz was retrieved.

velociraptor-sample-retrieved

🔍 Step 3: Hash & Verify

Get the SHA256 hash of the file:

sha256sum mimikatz.exe

Hash

Result: Confirmed as Mimikatz.

VirusTotal Mimikatz Detection

🌐 Step 4: Hunt Across the Network

Since the alert is a true positive, check for the presence of the file across other systems.

  1. Create a new hunt.

New Haunt

  1. Assign a tag and description, ensuring it runs across all clients.

  2. Select the artifact: Windows.Search.FileFinder.

New Tag

  1. Configure search parameters:
    • Provide the path where the file was found on wrk-price.

    • Use double wildcards ** for recursive search.

Velociraptor Hunt Configuration

  • Leave default settings for Specify Resources and continue to Review.

Specify Resources

  • Launch the hunt and start execution.

Velociraptor Hunt Launch

  • After a few seconds, the hunt completes across two clients (note: wrk-price is still quarantined).

Velociraptor Hunt Results

📊 Step 5: Review Hunt Results

Open the Notebook tab for quick results review.

The results confirm:

  • Mimikatz was also detected on wrk-colby.

Velociraptor Notebook Review

✅ Next Steps

  • Quarantine wrk-colby.
  • Clean the system.
  • Analyze logs from both wrk-colby and wrk-price for persistence, lateral movement, and exfiltration attempts.

About

A hands-on DFIR investigation using Velociraptor to contain a Mimikatz infection, collect forensic artifacts, and perform network-wide threat hunting.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors