Techniques › T1674 › 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 source | Channel | Data component |
|---|---|---|
| macos:unifiedlog | New IOUSB keyboard/HID device enumerated with suspicious attributes | DC0042 Drive Creation |
| macos:unifiedlog | osascript, AppleScript, or Python execution triggered immediately after HID connection | DC0029 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.
| Field | Description |
|---|---|
AllowedAppleScripts | Whitelist of AppleScripts expected in the environment, to minimize false positives. |
TimeWindow | Timeframe between HID injection and script execution considered suspicious. |