MITRE ATT&CK / Techniques / T1674

Input Injection

ID
T1674
Tactics
TA0002 Execution
Platforms
Windows, macOS, Linux
Data sources
Drive Creation, Process Creation, Command Execution, Script Execution
Source
attack.mitre.org
MITRE last modified
16 Apr 2025

Adversaries may simulate keystrokes on a victim’s computer by various means to perform any type of action on behalf of the user, such as launching the command interpreter using keyboard shortcuts, typing an inline script to be executed, or interacting directly with a GUI-based application. These actions can be preprogrammed into adversary tooling or executed through physical devices such as Human Interface Devices (HIDs).

For example, adversaries have used tooling that monitors the Windows message loop to detect when a user visits bank-specific URLs. If detected, the tool then simulates keystrokes to open the developer console or select the address bar, pastes malicious JavaScript from the clipboard, and executes it - enabling manipulation of content within the browser, such as replacing bank account numbers during transactions.[2][3]

Adversaries have also used malicious USB devices to emulate keystrokes that launch PowerShell, leading to the download and execution of malware from adversary-controlled servers.[4]

Detection

Mitigations (2)

M1034 Limit Hardware Installation

Limit the use of USB devices and removable media within a network.

M1038 Execution Prevention

Denylist scripting and use application control where appropriate. For example, PowerShell Constrained Language mode can be used to restrict access to sensitive or otherwise dangerous language elements such as those used to execute arbitrary Windows APIs or files (e.g., Add-Type).[1]

Groups (1)

References

  1. Microsoft PowerShell CLM
  2. BleepingComputer BackSwap
  3. welivesecurity BackSwap
  4. BleepingComputer USB