Add windows.lateralmove plugin - lateral movement detection#1986
Open
cybernerdphil wants to merge 1 commit into
Open
Add windows.lateralmove plugin - lateral movement detection#1986cybernerdphil wants to merge 1 commit into
cybernerdphil wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new plugin
windows.lateralmovethat detects lateral movementindicators in Windows memory images across three detection modules.
Detection modules
Module 1 — Suspicious parent-child process relationships
Flags known lateral movement execution chains including:
Parent-child combos are hardcoded by default but can be overridden
via a user-supplied JSON config file (--lateralmove.config-file).
Module 2 — Suspicious network connections
Flags processes with connections on lateral movement ports:
Module 3 — Token and session anomalies
Flags session ID mismatches where:
This avoids the normal session 0 → session 1/2 pattern seen with
svchost, services, smss and other legitimate Windows components.
Real-world validation
Tested against a Windows memory image (ADF-1_memdump.mem).
Plugin correctly identified tor.exe (PID 5440) spawned by firefox.exe
(PID 7040) with zero false positives after session bridge filtering.
Output columns
PID | PPID | Process | Parent | CmdLine | Technique | MITRE
API compatibility
Verified against Volatility 2.27.0:
Tests
40 unit tests covering all three detection modules, session bridge
logic, config loading, and edge cases.
Run with:
python -m unittest volatility3.plugins.windows.test_lateralmove -v
Usage
Custom config format:
{
"winword