kevmap

TechniquesT1563.001 › AN0711

AN0711 Analytic 0711

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

<p>Unusual access to SSH agent sockets in /tmp/ or /private/tmp, process access to another user’s $SSH_AUTH_SOCK, and lateral SSH activity without corresponding login events. Defender view: correlation of socket access with anomalous network flows to internal systems.</p>
Detects
T1563.001 SSH Hijacking
Part of
DET0256 Detection Strategy for SSH Session Hijacking

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:unifiedlogProcess opening SSH_AUTH_SOCK or /tmp/ssh-* socket not owned by same UIDDC0034 Process Metadata
macos:unifiedlogExecution of ssh or sftp without corresponding login eventDC0032 Process Creation
macos:unifiedlogSession reuse without new auth eventDC0067 Logon Session Creation

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
SocketPathScopeLimit detection to monitored SSH agent socket directories.
BaselineUsersEstablish normal SSH agent ownership and expected usage for tuning.