Windows rundll32 Locks Workstation via user32.dll LockWorkStation

Flags cmd-launched rundll32.exe calling user32.dll LockWorkStation to lock the user workstation.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
frack113 (SigmaHQ), DRL 1.1
Published
2022-06-04
Updated
2026-07-30

What it detects

This rule identifies process executions where rundll32.exe is launched from cmd.exe to call user32.dll with the LockWorkStation function. Locking a workstation can be used to disrupt a user session or conceal attacker activity, making this behavior notable when it occurs unexpectedly. The detection relies on Windows process creation telemetry including Image/OriginalFileName, parent process path, and command-line arguments containing user32.dll and LockWorkStation.

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.