Module 14 · Advanced Penetration Testing · Lesson 41 of 75
Credentials, pivoting and lateral movement
Online and offline password attacks, reusing credentials, tunnelling through a compromised host to reach hidden networks, moving between machines, and how red teams and defenders think about command and control.
In this lesson · about 40 minutes
- Choose between online and offline password attacks responsibly
- Explain pivoting with SSH tunnels and SOCKS proxies
- Describe lateral movement and how defenders detect it
Password attacks
- Online (against a live login): Hydra, NetExec, Burp Intruder. Slow, noisy, and can lock out real users. Use only when the RoE allows, with tiny lists and test accounts, and watch lockout thresholds.
- Offline (against stolen hashes): Hashcat and John the Ripper, at billions of guesses per second for fast hashes. Common inputs:
/etc/shadow, NTLM hashes, Kerberos tickets (Module 21), Wi-Fi handshakes, JWT secrets. - Credential reuse: the password from a config file often works for SSH, the database, and an admin's other accounts. Testers try found credentials across in-scope systems; this is one of the most common real-world paths.
Pivoting and tunnelling
A compromised host on two networks becomes a bridge to the hidden one.
- SSH local forward:
ssh -L 8080:10.20.0.15:80 user@jumphostmakes the internal web server appear on yourlocalhost:8080. - Dynamic forward (SOCKS proxy):
ssh -D 1080 user@jumphost, then send tools through it withproxychains. - Chisel and Ligolo-ng do the same over HTTP or their own tunnels when SSH is not available.
Lateral movement
Using valid credentials or hashes to run commands on other machines: SSH, RDP, WinRM (Evil-WinRM), PsExec-style service creation, WMI, scheduled tasks. In Windows networks this joins up with Active Directory attacks in Module 21.
Command and control (C2)
Red teams use C2 frameworks (such as Sliver, Mythic, Havoc or commercial ones) to manage implants on compromised hosts. Implants beacon to a server on a schedule, often over HTTPS, to pick up tasks. Defenders look for exactly that: regular connections, rare domains, unusual parent-child processes and memory-only code (Modules 10, 15 and 18).
What defenders do about it
| Attacker step | Detection or prevention |
|---|---|
| Password guessing | MFA, lockout, alerts on many failures from one source or one password across many accounts |
| Credential reuse | Unique passwords, LAPS, privileged access workstations, tiered admin accounts |
| Pivoting | Segmentation; alerts on SSH from servers that never use it; egress filtering |
| Lateral movement | Alerts on new services (7045), remote logons (4624 type 3/10) at odd times, admin shares |
| C2 | Beacon detection, DNS and proxy logs, EDR telemetry, blocking newly registered domains |
Whiteboard · watch and try
An attack path, start to finish
Press Play. Watch how small issues chain into a full compromise, and where one fix breaks the chain.
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Check your understanding0 of 3 correct
Quiz score: 0 of 3
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.