Agent-Facilitated Lateral Movement
Description
Adversary Behavior: An adversary leverages the LLM coding agent's access to developer credentials, SSH keys, API tokens, cloud session tokens, and multi-repository tooling to move laterally to other systems and environments.
AI/IDE Mechanism: The agent's legitimate need to interact with version control systems, CI/CD pipelines, cloud platforms, and remote development environments provides natural access to cross-system authentication mechanisms. Multi-repository IDE features and MCP tool servers that bridge multiple services further expand the accessible attack surface.
Execution Path: Through prompt injection, the agent is directed to clone additional repositories, establish SSH connections to remote servers, authenticate to cloud services using cached credentials, deploy code to staging or production environments, or interact with internal APIs and services accessible from the developer's workstation.
Security Impact: The adversary achieves cross-system movement using the developer's existing authenticated sessions and cached credentials. Lateral movement operations are conducted through the agent's legitimate tooling interfaces, providing natural cover and making detection difficult through conventional network monitoring.
Platforms
Detection
Monitor agent-initiated SSH, RDP, and cloud API connections to systems beyond the current project scope. Flag agent attempts to access credential stores, SSH key directories, or cloud configuration files. Implement network segmentation that restricts agent-initiated outbound connections to pre-approved destinations. Track agent interactions with version control systems for operations targeting repositories outside the active project workspace.
Detecting Data Components (1)
Mitigations (3)
Data Sources
References
STIX Metadata
| type | attack-pattern |
| id | attack-pattern--ae5232f8-f7d7-42dc-9003-87567f2d1fa4 |
| spec_version | 2.1 |
| created | 2026-02-23T00:00:00.000Z |
| modified | 2026-02-23T00:00:00.000Z |
| created_by_ref | identity--f5b5ec62-ffbd-4afd-9ee5-7c648406e189 |
| x_mitre_is_subtechnique | False |
| x_mitre_version | 0.1 |
| x_mitre_status | mapped |