
Lateral Motion: How Attackers Move Inside a Network and How to Stop Them
Lateral motion is the phase of a cyberattack in which an intruder who has already gained a foothold inside a network moves from one system to another, looking for valuable data, higher privileges, and the best position from which to cause damage. The initial breach is only the beginning. In most serious incidents, the real harm happens during lateral motion, as the attacker quietly spreads through servers, workstations, and cloud resources while defenders remain unaware.
Also known as lateral movement, this technique is a standard stage in the cyber kill chain and in the MITRE ATT&CK framework. Ransomware gangs, state-sponsored groups, and insider threats all rely on it. Understanding how lateral motion works, how to detect it, and how to stop it is one of the most valuable skills in modern network defense, because the organizations that detect movement early are the ones that contain breaches before they become disasters.
What Is Lateral Motion?
Lateral motion is the process by which an attacker navigates through a network after the initial compromise, using stolen credentials, legitimate administrative tools, and unpatched vulnerabilities to access additional systems. The attacker is not breaking in from the outside at this point; they are already inside, moving sideways between machines that trust each other.
Imagine a burglar who enters a house through an unlocked window. Lateral motion is what happens next: the burglar moves from room to room, opens drawers, finds the key to the safe, and unlocks the back door for accomplices. In a network, the rooms are servers and workstations, the drawers are shared folders and databases, and the keys are the credentials stored or cached on each system. Each step gives the attacker more access and more options.
Lateral motion is dangerous because it uses the network’s own trust against it. Employees, administrators, and systems routinely connect to each other for legitimate work, so an attacker moving between systems can look like normal activity. That is why detection is difficult and why prevention has to be built into the network’s design rather than added as an afterthought.
How Lateral Motion Works, Step by Step
A typical lateral motion sequence follows a pattern that security teams can learn to recognize. It begins with initial access, usually through phishing, a compromised password, or an unpatched internet-facing service. Once inside, the attacker establishes a foothold, often by installing a remote access tool or a web shell on the first compromised machine.
Next comes reconnaissance. The attacker maps the network, identifies domain controllers, file servers, and backup systems, and looks for accounts with administrative privileges. Tools that administrators use for legitimate management, such as network scanners and remote desktop clients, are frequently repurposed for this discovery phase.
Credential theft follows. The attacker harvests passwords and authentication tokens from the compromised machine’s memory, from browser stores, and from configuration files. A single domain administrator credential can open the entire network. With credentials in hand, the attacker moves to new systems using legitimate protocols such as Remote Desktop Protocol, Server Message Block, Windows Management Instrumentation, and Secure Shell.
Finally, the attacker establishes persistence on the newly accessed systems, escalates privileges where possible, and works toward the ultimate objective, which may be data theft, ransomware deployment, or sabotage. The whole sequence can take hours or months, depending on the attacker’s patience and the defender’s visibility.
Common Lateral Motion Techniques
Attackers have a well-stocked toolkit for moving through networks. These are the techniques defenders encounter most often.
Pass-the-Hash and Pass-the-Ticket
Windows networks store password hashes and Kerberos tickets on machines to authenticate users. Attackers who extract these can present them to other systems and authenticate as the victim without ever knowing the actual password. This is why credential hygiene, including the use of privileged access workstations and credential guard features, matters so much.
Remote Desktop Protocol Abuse
RDP is a legitimate administration tool and a favorite lateral motion channel. Attackers use stolen credentials to open RDP sessions to servers and workstations, giving them full graphical control of the target machine. Exposed RDP services and weak passwords make this attack far too easy, which is why RDP should never be exposed directly to the internet.
PsExec, WMI, and Other Admin Tools
Tools such as PsExec and Windows Management Instrumentation let administrators run commands and software on remote machines. Attackers use the same tools to execute malware and move files between systems. Because these tools are legitimate, their use does not automatically trigger alerts, which is exactly why attackers favor them. This practice of using built-in tools instead of custom malware is called living off the land.
Exploiting Trust Relationships
Networks are full of trust relationships: servers that trust each other, domains that trust other domains, and cloud services that trust on-premises identity providers. Attackers map these relationships and follow them to the most privileged systems. A compromise in a low-value segment can lead to a high-value target if the trust between them is too broad.
Exploiting Unpatched Vulnerabilities
When a vulnerability exists in a service running on an internal server, an attacker can exploit it to gain access without any credentials at all. This is why patching internal systems is as important as patching internet-facing ones. The work of finding and fixing these weaknesses is central to the defensive role described in our guide to what a blue team is and what it does.
Real-World Examples of Lateral Motion
The NotPetya attack of 2017 is one of the clearest examples of lateral motion at scale. After an initial infection through a compromised software update, the malware spread through corporate networks using stolen credentials, the PsExec tool, and the EternalBlue vulnerability. Within hours, it had encrypted systems across multinational companies, causing billions of dollars in damage. The speed of that spread was possible because the networks it hit were flat, with few barriers between systems.
Ransomware incidents follow a similar pattern today. Modern ransomware groups rarely encrypt the first machine they compromise. Instead, they spend days or weeks moving laterally, identifying backups, disabling security tools, and reaching domain controllers before triggering encryption across the whole organization at once. The ransom demand is the final step of a long campaign of lateral motion, not the first step of an attack.
How to Detect Lateral Motion
Detecting lateral motion requires watching for the subtle signs that legitimate tools are being used in illegitimate ways. Unusual login patterns are a strong indicator: an account logging in at odd hours, from an unusual location, or to systems it has never accessed before. Multiple failed login attempts followed by a success may indicate credential guessing followed by lateral motion.
Network monitoring can reveal connections between systems that do not normally communicate, large data transfers between internal hosts, and the use of administrative tools from workstations that should not have them. Endpoint detection tools can flag the execution of tools such as PsExec or credential-dumping utilities. Security teams should also watch for the creation of new scheduled tasks, services, and remote access sessions, which attackers use to maintain persistence.
Threat intelligence helps defenders recognize the specific techniques and tools that active attacker groups use, which is the work of the analysts described in our guide to what a threat intelligence analyst does. Combining that intelligence with network and endpoint telemetry gives defenders the best chance of catching lateral motion early.
How to Prevent and Stop Lateral Motion
Prevention starts with network segmentation. Divide the network into zones and control traffic between them, so that a compromise in one zone cannot freely reach another. Critical systems, such as domain controllers and backup servers, should sit in their own tightly controlled segments. A firewall between segments, such as the devices described in our guide to what a network firewall is, can enforce these boundaries.
Apply the principle of least privilege everywhere. Users and services should have only the access they need, and administrative privileges should be limited, time-bound, and protected by multi-factor authentication. Remove standing administrative access where possible, and require approval for privileged sessions. Protect credentials by disabling the storage of reusable hashes where feasible, using privileged access workstations for administrative tasks, and rotating service account passwords regularly.
Patching is essential. Unpatched internal systems are stepping stones for attackers, so vulnerability management must cover the whole network, not just the perimeter. Endpoint protection, including credential theft protections and behavior-based detection, should be deployed on every system. Finally, monitor continuously. Centralized logging of authentication events, process execution, and network connections gives defenders the raw material to detect lateral motion, and a tested incident response plan ensures that a detection turns into containment quickly.
Lateral Motion and Zero Trust
Zero trust architecture is designed to defeat lateral motion. Its central principle is that no user, device, or connection is trusted by default, even inside the network. Every access request is verified, every connection is encrypted, and access is granted only to the specific resource requested. In a zero trust environment, compromising one machine does not automatically grant access to others, because each hop requires fresh verification.
Organizations do not need to rebuild everything at once to benefit from zero trust thinking. Starting with multi-factor authentication for all remote and privileged access, micro-segmentation of the most critical systems, and continuous monitoring of lateral connections will already make an attacker’s job dramatically harder.
Frequently Asked Questions About Lateral Motion
What is lateral motion in cybersecurity?
Lateral motion is the movement of an attacker from one system to another inside a compromised network, using stolen credentials, legitimate administrative tools, and vulnerabilities to reach valuable systems and data.
What is the difference between lateral motion and lateral movement?
They are the same concept. Lateral movement is the more common term in frameworks such as MITRE ATT&CK, while lateral motion is used by some vendors and researchers. Both describe an attacker spreading sideways through a network after the initial breach.
How long does lateral motion take?
It varies widely. Automated malware can move across a flat network in minutes, while a patient human attacker may spend weeks or months moving carefully to avoid detection before acting on the final objective.
What tools do attackers use for lateral motion?
Attackers commonly use stolen credentials with Remote Desktop Protocol, PsExec, Windows Management Instrumentation, Secure Shell, and exploitation of unpatched vulnerabilities. They prefer legitimate tools because they blend in with normal administrative activity.
Can a firewall stop lateral motion?
A firewall helps when it is placed between network segments, controlling which systems can talk to each other. A single perimeter firewall cannot stop lateral motion once an attacker is inside, which is why internal segmentation and monitoring are also necessary.
Conclusion
Lateral motion is where breaches turn into disasters. The initial intrusion is often a minor event; the damage comes from the attacker’s freedom to roam the network afterward. Organizations that segment their networks, protect their credentials, enforce least privilege, and monitor for unusual internal connections can detect lateral motion early and stop it before it reaches their most valuable systems. In modern defense, keeping attackers out is only half the job. The other half is making sure that if they get in, they cannot move.


