PHP2Shell is spreading fast. Get a FREE PHP2Shell Vulnerability Check!

Lateral movement

Definition

Lateral movement is how an attacker moves from the first compromised system to other systems inside a network, using stolen credentials, remote access tools and internal weaknesses to reach valuable data or control.

What lateral movement is

Lateral movement is what an attacker does after getting into a network: moving from the first compromised system to other systems, collecting credentials and access along the way, until they reach what they came for.

The first foothold is rarely the target. A phishing email might give an attacker one laptop, but the valuable data sits on file servers, databases or cloud accounts elsewhere. Lateral movement is how they get there, and it is often the stage where a small incident turns into a serious breach.

How lateral movement works

Most lateral movement follows a repeating cycle:

  1. Reconnaissance: the attacker looks around from the compromised system, mapping users, groups, servers, shares and trust relationships.
  2. Credential access: they collect passwords, hashes, tokens or session tickets stored on that system or in memory.
  3. Movement: they use those credentials, or a vulnerability, to log in to another system.
  4. Repeat: from the new system they gather more credentials and move again, often gaining higher privileges each time.

Because attackers often use valid accounts and normal admin tools, this activity can look like everyday IT work.

Common lateral movement techniques

  • Stolen and reused credentials: passwords found in scripts, files or browsers, or reused across accounts and systems
  • Pass-the-hash and pass-the-ticket: using captured password hashes or Kerberos tickets to log in without knowing the actual password
  • Remote services: RDP, SSH, SMB, WinRM and remote management tools that let an account run commands on other machines
  • Shared local admin passwords: the same local administrator password on many machines, so one compromise opens them all
  • Exploiting internal vulnerabilities: unpatched systems inside the network that are not reachable from the internet but are reachable once inside
  • Active Directory weaknesses: overly broad group memberships, delegation settings and service accounts with weak passwords
  • Cloud and identity pivoting: using tokens, access keys or roles to move between cloud resources, or from on-premises systems into the cloud

The MITRE ATT&CK framework lists lateral movement as its own tactic, with these and other techniques described in detail.

Lateral movement vs privilege escalation

The two often happen together but are not the same:

Lateral movementPrivilege escalation
DirectionSideways, to other systemsUpwards, to higher rights
GoalReach more systems and dataGain admin or system level control
ExampleUsing a stolen password to log in to a file serverTurning a normal user account into a local admin

In a real attack, each step of lateral movement often brings a new chance to escalate privileges, and each escalation opens new places to move to. Together they form the attack path from the first foothold to the target.

Why lateral movement is so damaging

  • It turns one compromise into many. A single infected laptop can lead to the whole network.
  • It is hard to spot. Valid accounts and built-in admin tools blend in with normal activity.
  • It buys time. The longer an attacker moves around unnoticed, the more they can find, copy or encrypt.
  • It is how ransomware spreads. Most large ransomware incidents rely on lateral movement to reach as many systems as possible before encrypting them.

How to detect lateral movement

  • Unusual logins: accounts signing in to systems they never use, at odd hours or from unexpected hosts
  • One account logging in to many machines in a short time
  • Remote admin tools and remote execution used outside normal IT patterns
  • Authentication anomalies such as signs of pass-the-hash or unusual Kerberos ticket requests
  • New services, scheduled tasks or accounts created on servers

Endpoint detection, centralised logging and identity monitoring make these signals visible, but they only help if someone is watching them.

How to prevent lateral movement

  1. Segment the network so workstations cannot reach servers and management interfaces they do not need.
  2. Use unique local admin passwords on every machine, for example with a password management tool such as LAPS.
  3. Apply least privilege: remove unnecessary admin rights and review group memberships regularly.
  4. Protect privileged accounts with multi-factor authentication, separate admin accounts and restricted admin workstations.
  5. Remove stored credentials from scripts, shares and configuration files.
  6. Patch internal systems, not just those facing the internet.
  7. Test it: run a penetration test from an internal starting point to see how far an attacker could actually get.

How Plainsea helps

Plainsea tests what happens after the first foothold. Within the scope you set, AI agents try to move between systems the way a real attacker would: reusing credentials, abusing permissions and exploiting internal weaknesses. Every step is confirmed and shown as part of the attack path, so your team can see exactly where an attacker could go next and fix the step that stops the spread, then re-test it on demand.

Lateral movement FAQ

What is lateral movement in cyber security?

Lateral movement is how an attacker moves from the first compromised system to other systems in the same network, collecting credentials and access until they reach valuable data or control.

What is an example of lateral movement?

An attacker phishes one employee, finds a saved admin password on that laptop, uses it to log in to a file server, and from there reaches a database server. Each hop from one system to the next is lateral movement.

What is the difference between lateral movement and privilege escalation?

Lateral movement goes sideways, from one system to another. Privilege escalation goes upwards, from a normal account to higher rights such as local or domain admin. Attackers usually combine both.

How can you stop lateral movement?

Segment the network, use unique local admin passwords, remove unnecessary admin rights, protect privileged accounts with MFA, clear stored credentials and monitor for unusual logins. Then test from inside the network to confirm it works.

How do penetration tests check for lateral movement?

An internal or assumed-breach penetration test starts from a foothold inside the network and tries to move to other systems with the techniques attackers use. It shows how far an attacker could get and which weaknesses make it possible.

Next step

See Plainsea on your own environment

Book a walkthrough with our team and see continuous, AI-driven pentesting in action.

Book a demo