kevmap

TechniquesT1674 › AN1569

AN1569 Analytic 1569

macOS · attack.mitre.org · ATT&CK Enterprise v19.2

<p>Detects abnormal HID device enumeration via I/O Registry (ioreg -p IOUSB) and keystroke injection targeting AppleScript, osascript, or PowerShell equivalents. Defender correlates new USB device connections with rapid script execution.</p>
Detects
T1674 Input Injection
Part of
DET0568 Detection Strategy for Input Injection

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
macos:unifiedlogNew IOUSB keyboard/HID device enumerated with suspicious attributesDC0042 Drive Creation
macos:unifiedlogosascript, AppleScript, or Python execution triggered immediately after HID connectionDC0029 Script Execution

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
AllowedAppleScriptsWhitelist of AppleScripts expected in the environment, to minimize false positives.
TimeWindowTimeframe between HID injection and script execution considered suspicious.