Input Capture T1056

Tactics: Collection, Credential Access

Adversaries may use methods of capturing user input to obtain credentials or collect information. During normal system usage, users often provide credentials to various different locations, such as login pages/portals or system dialog boxes. Input capture mechanisms may be transparent to the user (e.g. Credential API Hooking) or rely on deceiving the user into providing input into what they believe to be a genuine service (e.g. Web Portal Capture).

Events covered

10 catalog events are tagged with this technique by at least one rule.

Authoring guide

These 35 rules share fields, values, and exclusions.

Fields filtered most (51 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
EventType12eq 11, in 1exec, start, creation, rename
process.Ext.api.name11eq 11SetWindowsHookEx, GetAsyncKeyState, RegisterRawInputDevices, getasynckeystate
Image9is_not_null 4, ends_with 3, starts_with 2, contains 1, eq 1, wildcard 1/osascript, ?:\programdata\*, ?:\users\*\appdata\local\temp\7z*\, ?:\users\*\appdata\local\temp\bnz.*, ?:\windows\
process_name9eq 7, in 3osascript, powershell.exe, bash, cscript.exe, csh
process.Ext.api.parameters.hook_type8eq 8WH_KEYBOARD_LL
CommandLine7contains 5, wildcard 2*osascript*display*dialog*authenticate*, *osascript*display*dialog*passphrase*, *osascript*display*dialog*password*, -e, -encodedcommand
process.thread.Ext.call_stack_final_user_module.name6eq 2, wildcard 2, is_not_null 1, starts_with 1Unknown, dinput*.dll, event0.dll.name, libffi*.dll, lua?.?.dll
event.type5eq 5start, end
process.code_signature.exists5eq 5false
EventID4eq 44688, 1, 7
host.os.type4eq 4
process.Ext.api.parameters.hook_module4eq 4null
process.Ext.api.parameters.usage4eq 4KEYBOARD
process.Ext.relative_file_creation_time4le 4500, 300, 900
process.code_signature.trusted4eq 4false

Top indicator values (224 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
process.Ext.api.nameeq
SetWindowsHookEx
88
process.Ext.api.nameeq
GetAsyncKeyState
44
process.Ext.api.nameeq
RegisterRawInputDevices
44
process.Ext.api.parameters.hook_typeeq
WH_KEYBOARD_LL
88
EventTypeeq
exec
7576
EventTypeeq
start
4391
event.typeeq
start
51078
process.code_signature.existseq
false
5119
process.Ext.api.parameters.hook_moduleeq
null
44
process.Ext.api.parameters.usageeq
KEYBOARD
44
process.code_signature.trustedeq
false
4115
ParentImagewildcard
/dev/shm/*
317
ParentImagewildcard
/home/*/*
318
ParentImagewildcard
/run/user/*
316
ParentImagewildcard
/tmp/*
319
ParentImagewildcard
/var/run/user/*
316
ParentImagewildcard
/var/tmp/*
319
ParentImagewildcard
/root/*
24
process.Ext.api.parameters.flagscontains
INPUTSINK
33
CommandLinecontains
authentication
22
CommandLinecontains
password
26
CommandLinewildcard
*osascript*display*dialog*authenticate*
22
CommandLinewildcard
*osascript*display*dialog*passphrase*
22
CommandLinewildcard
*osascript*display*dialog*password*
22
CommandLinewildcard
*pass*display*dialog*
22
EventIDeq
4688
2317
OriginalFileNameeq
credui.dll
22
OriginalFileNameeq
wincredui.dll
22
Signaturein
AutoIt Consulting Ltd
22
process.Ext.api.metadata.background_callcountge
400
22

Exclusions (300 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
Imagewildcard
?:\program files (x86)\*.exe
4
Imagewildcard
?:\program files\*.exe
4
process.code_signature.trustedeq
true
3
user.ideq
s-1-5-18
3
CommandLinecontains
-e with timeout of 3600 seconds
2
CommandLinecontains
encryption key escrow
2
Imageeq
?:\windows\system32\rundll32.exe
2
ParentCommandLinestarts_with
sudo
2
ParentImageeq
/bin/bash
2
ParentImageeq
/usr/bin/sudo
2
SignatureStatuseq
trusted
2
process.Ext.effective_parent.executablewildcard
/Applications/Karabiner-Elements.app/Contents/MacOS/Karabiner-Elements
2
process.Ext.effective_parent.executablewildcard
/Applications/NinjaRMMAgent/programfiles/ninjarmm-macagent
2
process.Ext.effective_parent.executablewildcard
/Library/Application...
2
process.Ext.effective_parent.executablewildcard
/Library/Application...
2

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 8 rules

Elastic 20 rules

Splunk 4 rules

Kusto 2 rules

Panther 1 rule