Lateral Movement & privilege Escalation
Lateral Movement
Moves one compromised system to another system inside a network.
Attacker do this to:
Find valuable data
Reach domain controller
Access admin accounts
Deploy ransomware across the network
Typical attack path-
Phishing
User's laptop compromise
Lateral movement
Domain controller
full network controll
Important terms:
Inbound- Inbound refers to the data, request, traffic enter your device or private network from an external source (like the internet).
Outbound- Outbound data refers to the data or traffic that leaves your device or network to go out to an external destination.
Why attacker perform lateral movement:
Because the first compromise system rarely has valuable data.
e.g. Attacker compromises: employee laptop
but target is: File server, Domain Controller(DC), Database server.
- So attacker moves across the network.
Common lateral movement techniques
1. Pass the hash(PTH)-
Attacker steals password hash from memory, instead of cracking password. They reuse the hash directly.
e.g. mimikatz, CrackMapExec etc tools.
SOC indicators:
NTLM authentication anomalies
logins without password usage
2. Pass the ticket(Kerberos attack)-
Attacker steals kerberos authentication ticket, then use them to access another machines.
SOC indicators:
Suspecious kerberos ticket usage
Unusual TGT activity
3. Remote Desktop Protocol(RDP)-
Attacker uses stolen credentials to connects via port 3389.
SOC indicators:
Internal RDP connections
Unusual login locations
Login outside working hours
4. SMB/Windows admin shares-
Attacker copies tools across machines using \target\C$
common tools:
PsExec
Impacket
CrackMapExec
SOC indicators:
Suspecious file transfer
Admin share access
Service creation events
5. Windows Managment instrumentation(WMI)-
Allow remote command execution.
e,g, wmic/node:target process call create "malware.exe"
Highly suspecious : admin's cmd used to remotely execute a programm named "malware.exe" on another computer.
Real SOC scenario:
Alert sequence:
Suspecious login to user laptop
Mimikatz executed
Admin's credential dumping
Attacker login to file server
Ransomware Deployed
Privilege Escalation
It simply means gaining higher privileges.
e.g. user account ---> admin account or high privilege account
Steps:
Pre-engagement
Passive reconnaissance
Active reconnaissance
Service Enumeration
Access exploited
Privilege escalation
Types of privilege escalation
1. Vertical privilege Escalation-
user --> normal admin/IT help desk --> domain admin/Linux admin (root)
2. Horizontal Privilege Escalation-
user(employee) --> another user(HR, means same account type with different privilege level).
Common Privilege Escalation Techniques
1. Exploiting software vulnerability-
e.g. Outdated windows kernel, Vulnerable drivers.
Attacker runs exploit ---> become admin
2. Credential Dumping-
Tools like Mimikatz, LSASS memory dumping.
Extract admin password
SOC indicators:
LSASS process access
Credential dumping alerts
3. Misconfigured permissions-
e.g. Service runs as SYSTEM but executable is writable
Attacker replace file ---> gains admin access
4. Token Impersonates admin-
Windown acess token stolen from high-privilege processes, Attacker impersonates admin.
5. Scheduled task abuse-
Attacker modifies scheduled task running as admin.
SOC indicators of privilege escalation:
Sudden admin rights assignment
New admin account creation
Service creation evenets
Suspecious LSASS access
Privilege escalation exploits
Important windows event ID
4672 - Special privilege assigned
4688 - Process creation
4720 - User account created
4732 - User added to admin group
Attack chain (real ransomware attack)
Phishing email
User laptop compromise
Credential dumping
Privilege escalation
Lateral movement
Domain Controller Access
Ransomware Deployement
