Suspicious Workstation Locking via Rundll32
Detects a suspicious call to the user32.dll function that locks the user workstation
Detection logic
selection_call_img
- Image|endswith: \rundll32.exe
- OriginalFileName: RUNDLL32.EXEselection_call_parent
ParentImage|endswith: \cmd.exeselection_call_cli
CommandLine|contains: user32.dll,selection_function
CommandLine|contains: LockWorkStationCondition
all of selection_*Raw YAML
title: Suspicious Workstation Locking via Rundll32
id: 3b5b0213-0460-4e3f-8937-3abf98ff7dcc
status: test
description: Detects a suspicious call to the user32.dll function that locks the user workstation
references:
- https://app.any.run/tasks/2aef9c63-f944-4763-b3ef-81eee209d128/
author: frack113
date: 2022-06-04
modified: 2023-02-09
tags:
- attack.stealth
logsource:
category: process_creation
product: windows
detection:
selection_call_img:
- Image|endswith: '\rundll32.exe'
- OriginalFileName: 'RUNDLL32.EXE'
selection_call_parent:
ParentImage|endswith: '\cmd.exe'
selection_call_cli:
CommandLine|contains: 'user32.dll,'
selection_function:
CommandLine|contains: 'LockWorkStation'
condition: all of selection_*
falsepositives:
- Scripts or links on the user desktop used to lock the workstation instead of Windows+L or the menu option
level: mediumFalse positives
- Scripts or links on the user desktop used to lock the workstation instead of Windows+L or the menu option
References
Similar rules
Abuse of Service Permissions to Hide Services Via Set-Service
highwindows · Same logsource category (process_creation)
Abusing Print Executable
mediumwindows · Same logsource category (process_creation)
AddinUtil.EXE Execution From Uncommon Directory
mediumwindows · Same logsource category (process_creation)
AgentExecutor PowerShell Execution
mediumwindows · Same logsource category (process_creation)