Files
capa-rules/nursery/migrate-process-to-active-window-station.yml
Willi BallenthinandMike Hunhoff c1d20764ad use "span of calls" scope (#973)
* use sequence scope instead of thread scope for "static: function" rules

* use sequence scope instead of thread scope for "static: basic block" rules

* make runtime linking rules more concise

* doc: describe sequence scope

* rename "sequence" scope to "span of calls" scope

* Update anti-analysis/anti-av/check-for-sandbox-and-av-modules.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update anti-analysis/anti-vm/vm-detection/check-for-windows-sandbox-via-device.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update collection/get-geographical-location.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update collection/file-managers/gather-classicftp-information.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update collection/database/wmi/reference-wmi-statements.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update collection/database/sql/reference-sql-statements.yml

Co-authored-by: Mike Hunhoff <[email protected]>

---------

Co-authored-by: Mike Hunhoff <[email protected]>
2025-01-29 10:27:13 +01:00

27 lines
1014 B
YAML

rule:
meta:
name: migrate process to active window station
namespace: host-interaction/gui/window-station
authors:
- [email protected]
description: set process to the active window station so it can receive GUI events. commonly seen in keyloggers.
scopes:
static: function
dynamic: span of calls
references:
- https://www.installsetupconfig.com/win32programming/windowstationsdesktops13_1.html
- https://brianbondy.com/blog/100/understanding-windows-at-a-deeper-level-sessions-window-stations-and-desktops
- https://cboard.cprogramming.com/windows-programming/144588-[win7]-setwindowshookex-windows-service-setthreaddesktop.html
features:
- and:
- api: OpenWindowStation
- or:
- string: "winsta0"
- string: "WinSta0"
- api: SetProcessWindowStation
- api: OpenInputDesktop
- api: SetThreadDesktop
- optional:
- string: "Default"
description: default desktop name