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

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

Authoring guide

Patterns shared across the 20 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (26 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
CommandLine4contains 3, wildcard 1*osascript*display*dialog*authenticate*, *osascript*display*dialog*passphrase*, *osascript*display*dialog*password*, -e, -encodedcommand
EventID4eq 44688, 1, 7
EventType4eq 3, in 1exec, creation, rename
host.os.type4eq 4
Image3ends_with 3, contains 1, eq 1, starts_with 1/osascript, \appdata\local\microsoft\onedrive\, \appdata\local\microsoft\teams\, \onelaunch.exe, \opera_autoupdate.exe
ScriptBlockText3contains 1, in 1, match 1get-keystrokes, [windows.input.keyboard]::iskeydown([system.windows.input.key]::, callnexthookex, get-procaddress user32.dll getasynckeystate, get-procaddress user32.dll getforegroundwindow
Type3eq 3
process_name3eq 3osascript, pbpaste, sshd, strace
ImageLoaded2ends_with 2\\credui.dll, \\wincredui.dll, \credui.dll, \wincredui.dll
OriginalFileName2eq 2credui.dll, wincredui.dll
event.type2eq 2start, end
name2contains 1, eq 1/etc/pam.d/password-auth, /etc/pam.d/system-auth, keyboard_event_taps
Company1contains 1misc314
ControlName_s1eq 1AzureSecureScoreMFARegistrationV2
EfectiveCommand1regex_match 1regexEmpire

Top indicator values (97 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
EventTypeeq
exec
3171
EventIDeq
4688
2313
OriginalFileNameeq
credui.dll
22
OriginalFileNameeq
wincredui.dll
22
event.typeeq
start
2606
CommandLinecontains
-e
13
CommandLinecontains
-encodedcommand
13
CommandLinecontains
admin
14
CommandLinecontains
administrator
12
CommandLinecontains
answer
1
CommandLinecontains
authenticate
1
CommandLinecontains
authentication
1
CommandLinecontains
credentials
12
CommandLinecontains
dialog
1
CommandLinecontains
display
1
CommandLinecontains
mouse lock_
1
CommandLinecontains
pass
12
CommandLinecontains
password
14
CommandLinecontains
unlock
1
CommandLinewildcard
*osascript*display*dialog*authenticate*
1
CommandLinewildcard
*osascript*display*dialog*passphrase*
1
CommandLinewildcard
*osascript*display*dialog*password*
1
CommandLinewildcard
*pass*display*dialog*
1
Companycontains
misc314
1
ControlName_seq
AzureSecureScoreMFARegistrationV2
1
EfectiveCommandregex_match
regexEmpire
1
EventDatacontains
-encodedcommand
1
EventDatacontains
powershell.exe
1
EventDatacontains
powershell_ise.exe
1
EventDatacontains
pwsh.exe
1

Exclusions (101 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
CommandLinecontains
-e with timeout of 3600 seconds
1
CommandLinecontains
encryption key escrow
1
EventDatacontains
gc_service.exe
1
EventDatacontains
gc_worker.exe
1
Imagecontains
\appdata\local\microsoft\onedrive\
1
Imagecontains
\appdata\local\microsoft\teams\
1
Imageends_with
\opera_autoupdate.exe
1
Imageends_with
\procexp.exe
1
Imageends_with
\procexp64.exe
1
Imageends_with
\teams.exe
1
Imageeq
c:\windows\explorer.exe
1
Imageeq
c:\windows\immersivecontrolpanel\systemsettings.exe
1
Imageeq
c:\windows\regedit.exe
1
Imagein
./usr/bin/podman
1
Imagein
./usr/lib/snapd/snap-update-ns
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 8 rules

Elastic 5 rules

Splunk 4 rules

Kusto 2 rules

Panther 1 rule