SSH Key File Access Followed by Outbound SSH Connections to New Hosts
Detects a process reading SSH private key files (.ssh/id_rsa, id_ed25519, authorized_keys) followed by outbound SSH connections to previously unseen internal hosts. Autonomous AI agents harvest SSH credentials from compromised hosts and immediately reuse them for lateral movement — the time between key discovery and first use is measured in seconds. ARTEX worker agents performing credential harvesting scan predictable paths (/home/*/.ssh/, /root/.ssh/, C:\Users\*\.ssh\) and feed discovered keys directly into the exploration graph. The planner then dispatches workers to authenticate to every host in the asset graph using the harvested keys. The compressed window between file read and SSH connection is the differentiator. Requires Sysmon Event ID 1 (process creation) and Event ID 3 (network connection) with process-level correlation. BQL (Bloo Query Language): stream=ep-process where action='PROCESS_ADDED' and (lower(commandline) like '%.ssh/id_rsa%' or lower(commandline) like '%.ssh/id_ed25519%' or lower(commandline) like '%authorized_keys%' or lower(commandline) like '%.ssh\\id_rsa%') | groupby system, user
Sigma
