Join our Newsletter — 33% off our NHI Course
Home› Guides› D3-IDA Input Device Analysis: What It Detects, Which…
Guide SOC & Detection Engineering

D3-IDA Input Device Analysis: What It Detects, Which ATT&CK Techniques It Counters and How to Verify It

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 12 November 2026 11 min read
On this page

A keyboard is trusted the moment it is plugged in, which is why a malicious USB device that types commands, or a person at a keyboard who is not the logged-on user, can act with the full rights of the session. MITRE D3FEND names the countermeasure Input Device Analysis (D3-IDA) and defines it as "Operating system level mechanisms to prevent abusive input device exploitation." It is a Detect technique under Operating System Monitoring, and its digital artefact is the Input Device: keyboards, mice, scanners, cameras, microphones. This card explains what D3FEND says the analysis covers, which ATT&CK techniques it relates to, how defenders implement it with OS device controls and behavioural analytics, how to verify it, and where it falls short. It is written for endpoint security and detection teams; the policy side of USB control is covered in the Removable Media and USB Control Guide.

Key takeaways

  • It compares input with a baseline. D3FEND lists the amount of input, the duration of a single input, the time between inputs and the input values as things to analyse, with context such as the user, time, source device and its properties, and other attached hardware.
  • Machine-speed typing is the classic signal. D3FEND's own example is a device sending many keystrokes with almost identical delays, which does not match human cadence, so the device is disabled.
  • The ATT&CK links are inferred and narrow. D3FEND relates D3-IDA to Keylogging (T1056.001), Video Capture (T1125) and Audio Capture (T1123) through sub-artefacts of Input Device (keyboard, video and audio input devices).
  • Most of the practical value is in device control. OS policies that allow or block devices by class, ID or interface (Windows device installation restrictions, USBGuard on Linux) plus logging of new devices (Windows event 6416) are where most estates start.
  • Mimicry is the stated weakness. D3FEND warns that attackers given examples of legitimate input could imitate them, so timing analytics alone are not enough.

D3-IDA at a glance

AttributeValue
D3FEND IDD3-IDA (d3f:InputDeviceAnalysis)
TacticDetect
Parent techniqueOperating System Monitoring (D3-OSM)
Digital artefactInput Device (D3FEND relation: analyzes); sub-artefacts include keyboard, video and audio input devices
Analytics named by D3FENDAmount of input, duration of a single input, durations between inputs, value of input
Context named by D3FENDLogged-on user and their physical location, date and time, processing system, source device and its manufacturer, configuration and first use, local or remote source, other attached hardware
Actions named by D3FENDDisable the source device, send an alert, lock the session and require re-authentication, lock the account (D3-AL Account Locking)
D3FEND referencesShepherd, "Continuous authentication by analysis of keyboard typing characteristics" (Bradford University, 1995); Biometric Solutions, "Keystroke Dynamics"
Main limitationInput patterns can be mimicked; device identifiers can be spoofed

How it works

D3FEND's knowledge base article describes two strands that share the Input Device artefact.

  • Behavioural analysis of input: timing and volume of keystrokes and other input compared with a baseline for the user or for human input in general. D3FEND's examples: a device typing with near-constant inter-key delay is disabled; typing of the session user's own name becomes abnormally slow and the session is locked to the password prompt; keystrokes arrive from a second device after the first has been idle for a long time; physical input appears in a session while the same user sent input from another country within the past hour.
  • Device context and hardening: D3FEND notes that related hardening filters certain commands or disables OS functionality, and that context includes the device's manufacturer, keyboard layout and whether it is in first use. One D3FEND example is a new external device through which network traffic is suddenly routed, which is disabled and investigated.

The two cited references are about keystroke dynamics: identifying or confirming a person from the rhythm of their typing. D3FEND's summary of the Biometric Solutions article names the raw measurements as dwell time (how long a key is held) and flight time (time between keys). Keystroke dynamics as continuous authentication is a behavioural biometric, covered in the Biometrics Guide and, for fraud use in web sessions, the Transaction Monitoring and Behavioural Biometrics Guide.

ATT&CK techniques D3FEND relates to D3-IDA

Relationship type: inferred only. D3FEND lists no direct ATT&CK mapping for D3-IDA. Each row is inferred because the ATT&CK technique accesses a sub-artefact of Input Device (D3FEND 1.6.0, checked November 2026). D3FEND labels these relations "inferred, experimental". Each ID was checked against ATT&CK v20.

ATT&CK IDTechniqueD3FEND relation (inferred via sub-artefact)What input device analysis can contribute
T1056.001Keyloggingaccesses Keyboard Input DeviceDetection of hardware keyloggers or unexpected keyboard-class devices inline with a real keyboard, through new-device events and device identity
T1125Video Captureaccesses Video Input Device, Digital CameraAlerting on camera access by unexpected processes or on new camera devices
T1123Audio Captureaccesses Audio Input DeviceAlerting on microphone access by unexpected processes or on new audio devices

D3FEND does not relate D3-IDA to T1200 Hardware Additions, but the keystroke injection devices D3FEND's timing example describes are a form of hardware addition. That link is NHI Mgmt Group's reading, not a D3FEND mapping; see MITRE ATT&CK T1200 Hardware Additions, MITRE ATT&CK T1056 Input Capture and the USB Drop Attacks Guide.

Where it is implemented

Implementation classWhat it providesSignal or controlFits when
Windows PnP auditingA record each time the system recognises a new external deviceSecurity event 6416 (Audit PNP Activity subcategory), with Device ID, Class Name, Class ID, Vendor IDs and Compatible IDsYou need a baseline of which devices appear where, at no extra cost
Windows device installation restrictionsAllow or prevent installation by device ID, instance ID or setup class, with optional layered evaluation and retroactive applicationGroup Policy under System > Device Installation > Device Installation RestrictionsKiosks, engineering workstations and other fixed-purpose machines
Linux USBGuardRule-based allow, block or reject of USB devices by ID, hash, serial, port and interface classRules such as rejecting a device that presents both mass storage (class 08) and HID (class 03) interfacesLinux servers and workstations where USB use is predictable
Endpoint device control in EDR or DLP suitesCentral policy for device classes and allow lists, with device events in telemetryVendor device control eventsLarge estates that already run an endpoint agent
Keystroke timing and behavioural analyticsDetection of machine-speed or out-of-pattern input, sometimes continuous authenticationAgent alerts, session lockHigh-value workstations, or web applications using behavioural biometrics
OS privacy controls for camera and microphonePer-application consent and logging of device accessOS privacy settings and access recordsDetecting unexpected capture by software

Port-level blocking is a separate D3FEND technique, IO Port Restriction (D3-IOPR), which filters the same Input Device artefact. See D3-IOPR IO Port Restriction. Product names and settings vary; examples here are classes, not recommendations.

Implementation steps

  1. Turn on new-device logging. Enable Audit PNP Activity on Windows and forward event 6416; on Linux, run USBGuard with its audit output or collect kernel device logs. Microsoft's monitoring guidance is to report 6416 events where the Subject Security ID is not SYSTEM (S-1-5-18).
  2. Build a device baseline. For two to four weeks (an example period), record which device classes and IDs appear on which device groups. Most estates find a short list of keyboards, mice, headsets and docks per model.
  3. Write detections on the baseline. Alert on a second keyboard-class device appearing on a host that already has one, on HID devices that also present storage or network interfaces, and on keyboard devices on servers that should have none.
  4. Restrict where use is predictable. On fixed-purpose machines, allow only the listed device IDs. Test with "Also apply to matching devices that are already installed" off first; Microsoft warns retroactive blocking of critical classes such as disk drives or network adapters can make a machine unusable.
  5. Add behavioural analytics where justified. For administrator workstations or other high-value seats, evaluate input timing detection and decide on the response (alert only, or lock the session).
  6. Define the response. A suspected injection device means physical access: lock the session, disable the device, collect the device ID from the event, and check physical access logs for the location.
  7. Roll back safely. Keep a break-glass path (a known-allowed keyboard ID, or an administrator procedure to remove the policy) before enforcing any allow list, so a locked-out machine can be recovered.

How to verify it works

  • Device insertion test: plug an approved test keyboard and an approved composite test device into a sample of hosts each quarter; confirm event 6416 or the USBGuard event arrives and the composite-device rule fires or blocks.
  • Policy state check: confirm the device installation restriction policy is applied on target groups (Resultant Set of Policy or MDM reports), and that USBGuard is running with the intended rule set.
  • Timing test: where behavioural analytics are deployed, run an authorised keystroke injection test device in a lab and confirm the alert or lock.
  • False positive review: monthly, review alerts for new keyboards, docks and KVM switches and update the baseline rather than muting the rule.
MetricExample target (NHI Mgmt Group suggestion, not a standard)Why it matters
Managed endpoints forwarding new-device eventsMatches managed device countNo logging means no detection
Fixed-purpose machines with a device allow listRising towards allPrevention where use is predictable
Quarterly insertion tests that raised the expected alert100%Proves the path from device to SOC
Composite HID plus storage or network device alerts investigated100%Strongest single indicator of an injection device
Benign new-device alerts per 1,000 endpoints per monthFalling after baselineShows the baseline is maintained

Limits, bypasses and failure patterns

  • Mimicked input: D3FEND notes that attackers with examples of legitimate input could mimic it. Injection tools that add random delays defeat simple timing rules.
  • Spoofed identifiers: USB vendor and product IDs are reported by the device itself, so an allow list by ID alone can be satisfied by a device that claims to be an approved keyboard. Port and interface rules reduce but do not remove this.
  • Logging without baselines: 6416 events are collected but nobody knows what normal looks like, so nothing is ever flagged.
  • Blocking the only keyboard: an allow list deployed retroactively without a break-glass path leaves machines unusable and the policy is withdrawn entirely.
  • Ignoring remote input: D3FEND's context includes whether input comes from a local or remote system. Remote sessions bypass physical device controls and need session analytics instead; see D3-RTSD Remote Terminal Session Detection.
  • Treating it as complete hardware security: device analysis sees what the OS sees. Inline hardware keyloggers that do not enumerate as a separate device are a physical security problem.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev 5SC-41 Port and I/O Device AccessDisabling or removing I/O devices and ports
NIST SP 800-53 Rev 5SI-4 System MonitoringMonitoring new-device and input anomalies
NIST SP 800-53 Rev 5AC-11 Device LockThe session lock action D3FEND names
NIST SP 800-53 Rev 5MP-7 Media UseRestricting removable media that may arrive with HID functions
NIST CSF 2.0DE.CM-09, DE.AE-02Monitoring computing hardware; analysing adverse events
MITRE D3FENDD3-OSM, D3-IDA, D3-IOPR, D3-ALParent, technique, sibling hardening and the account locking action

Practitioner checklist

  • Enable Audit PNP Activity and forward event 6416, or the Linux equivalent, from all managed endpoints.
  • Baseline device classes and IDs per device group before writing rules.
  • Alert on second keyboards, HID devices with storage or network interfaces, and keyboards on servers.
  • Apply device allow lists on fixed-purpose machines, with a tested break-glass path.
  • Do not rely on vendor and product IDs alone; add port and interface rules where possible.
  • Decide the response to suspected injection devices: lock, disable, investigate physical access.
  • Test with approved devices every quarter and record the result.
  • Use behavioural timing analytics only where the seat justifies the tuning effort.

Standards and references

Related NHI Mgmt Group resources: Removable Media and USB Control Guide · USB Drop Attacks Guide · D3-AL Account Locking · MITRE D3FEND Guide

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 12 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org