Lateral Movement · ATT&CK v20
T1021.004 Remote Services: SSH
A Lateral Movement technique. Moving from one system or account to the next.
- T1021.004Technique ID
- Lateral MovementTactic
- 5Places taught
What the attacker does
The attacker uses SSH with stolen passwords or keys to move between Linux and Unix servers, or to network devices.
How it shows up in the logs
- auth.log or the journal: "Accepted password" or "Accepted publickey" from an internal host that does not usually connect.
- A key fingerprint (SHA256:) that has not been seen for that user before.
- Commands run in the session: auditd execve records, shell history.
Questions to ask in triage
- Which key or password was used, and where was it taken from?
- Is the source host compromised?
- What did the session change (authorized_keys, cron, services)?
Read T1021.004 on attack.mitre.org
A sub-technique of T1021.
Where you meet it in CyberSim
Detection rules in the shift
Alerts tagged with this technique, the way Sentinel tags an analytics rule.
- SSH login to Linux server
In the L3 war room
- With the stolen key the attacker logged in to the database server over SSH as deploy.
In the theory
In the cases
Part of the answer in 2 investigations, in these learning paths:
Which case is not said here: finding it is the case.
More Lateral Movement techniques
- T1021.001 Remote Services: Remote Desktop Protocol
- T1021.002 Remote Services: SMB/Windows Admin Shares
- T1534 Internal Spearphishing
- T1550.001 Use Alternate Authentication Material: Application Access Token
- T1550.004 Use Alternate Authentication Material: Web Session Cookie
Source: MITRE ATT&CK T1021.004, tactic TA0008.