MITRE ATT&CK / Techniques / T1056.002

Input Capture: GUI Input Capture

ID
T1056.002
Tactics
TA0006 Credential Access, TA0009 Collection
Sub-technique of
T1056 Input Capture
Platforms
Linux, macOS, Windows
Data sources
Process Creation, Command Execution, Script Execution
Source
attack.mitre.org
MITRE last modified
12 May 2026

Adversaries may mimic common operating system GUI components to prompt users for credentials with a seemingly legitimate prompt. When programs are executed that need additional privileges than are present in the current user context, it is common for the operating system to prompt the user for proper credentials to authorize the elevated privileges for the task (ex: Bypass User Account Control).

Adversaries may mimic this functionality to prompt users for credentials with a seemingly legitimate prompt for a number of reasons that mimic normal usage, such as a fake installer requiring additional access or a fake malware removal suite.[1] This type of prompt can be used to collect credentials via various languages such as AppleScript[2][3][4] and PowerShell.[2][5][4] On Linux systems adversaries may launch dialog boxes prompting users for credentials from malicious shell scripts or the command line (i.e. Unix Shell).[4]

Adversaries may also mimic common software authentication requests, such as those from browsers or email clients. This may also be paired with user activity monitoring (i.e., Browser Information Discovery and/or Application Window Discovery) to spoof prompts when users are naturally accessing sensitive sites/data.

Detection

Mitigations (1)

M1017 User Training

Use user training as a way to bring awareness and raise suspicion for potentially malicious events and dialog boxes (ex: Office documents prompting for credentials).

Groups (3)

Software (14)

References

  1. OSX Malware Exploits MacKeeper
  2. LogRhythm Do You Trust Oct 2014
  3. OSX Keydnap malware
  4. Spoofing credential dialogs
  5. Enigma Phishing for Credentials Jan 2015