Files
capa-rules/collection/keylog/log-keystrokes.yml
T
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

30 lines
752 B
YAML

rule:
meta:
name: log keystrokes
namespace: collection/keylog
authors:
- [email protected]
scopes:
static: function
dynamic: span of calls
att&ck:
- Collection::Input Capture::Keylogging [T1056.001]
examples:
- C91887D861D9BD4A5872249B641BC9F9:0x4015FD
features:
- or:
- and:
- api: SetWindowsHookEx
- api: GetKeyState
- and:
- api: RegisterHotKey
- api: user32.keybd_event
- api: UnregisterHotKey
- and:
- api: CallNextHookEx
- api: user32.GetKeyNameText
- api: user32.GetAsyncKeyState
- api: user32.GetForgroundWindow
- api: user32.AttachThreadInput
- api: user32.MapVirtualKey