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 36 rules share fields, values, and exclusions.

Fields filtered most (46 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
process_basename10eq 8, in 3osascript, powershell.exe, Sqlps.exe, bash, cscript.exe
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.*
CommandLine8contains 5, wildcard 2, in 1*authentication*, *osascript*display*dialog*authenticate*, *osascript*display*dialog*passphrase*, *osascript*display*dialog*password*, *2fa*
process.Ext.api.parameters.hook_type8eq 8WH_KEYBOARD_LL
process.thread.Ext.call_stack_final_user_module.name6eq 2, wildcard 2, is_not_null 1, starts_with 1, Unbacked, Unknown, dinput*.dll, event0.dll.name
event.type5eq 5start, end
process.code_signature.exists5eq 5false
EventID4eq 44688, 1, 7
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
process.thread.Ext.call_stack_summary4starts_with 2, match 1, wildcard 1?*, *win32u.dll|user32.dll|Unbacked|*, *win32u.dll|user32.dll|Unknown|*, *|dinput?.dll|*, *|python*.dll*

Top indicator values (238 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
7547
EventTypeeq
start
4388
event.typeeq
start
51036
process.code_signature.existseq
false
5118
Imageis_not_null
4155
process.Ext.api.parameters.hook_moduleeq
null
44
process.Ext.api.parameters.usageeq
KEYBOARD
44
process.code_signature.trustedeq
false
4114
ParentImagewildcard
/dev/shm/*
312
ParentImagewildcard
/home/*/*
313
ParentImagewildcard
/run/user/*
311
ParentImagewildcard
/tmp/*
313
ParentImagewildcard
/var/run/user/*
311
ParentImagewildcard
/var/tmp/*
313
process.Ext.api.parameters.flagscontains
*INPUTSINK*
33
process.thread.Ext.call_stack_final_user_module.hash.sha256is_not_null
330
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
ImageLoadedends_with
*\credui.dll
23
ImageLoadedends_with
*\wincredui.dll
22
OriginalFileNameeq
credui.dll
22
OriginalFileNameeq
wincredui.dll
22

Exclusions (303 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
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
process.Ext.effective_parent.executablewildcard
/Library/Application Support/Mosyle/MosyleMDM.app/Contents/MacOS/MosyleMDM
2

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 8 rules

Elastic 20 rules

Splunk 5 rules

Kusto 2 rules

Panther 1 rule