Pivoting and Lateral Movement

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/71

flashcard set

Earn XP

Description and Tags

Pivoting and Lateral Movement

72 Terms

1
New cards
What is pivoting?

Using a compromised system to reach otherwise inaccessible targets.

2
New cards
What is lateral movement?

Exploiting additional systems through established network pivot points.

3
New cards
Why does an attacker pivot after initial compromise?

To reach new hosts, privileges, or data resources.

4
New cards
What is a pivot point?

A compromised system used as an intermediary to access other systems.

5
New cards
What does C2 stand for?

Command and control.

6
New cards
Which Metasploit payload supports built-in pivoting features?

Meterpreter.

7
New cards
What can generate an independent Meterpreter payload?

MsfVenom.

8
New cards
Which Meterpreter command forwards a local port to a remote host and port?

portfwd add.

9
New cards
What does Meterpreter portfwd -l specify?

Local listening port on the attacker system.

10
New cards
What does Meterpreter portfwd -r specify?

Remote destination IP address.

11
New cards
What does Meterpreter portfwd -p specify?

Remote destination TCP port.

12
New cards
What does portfwd add -l 8000 -r 10.10.10.100 -p 80 accomplish?

Forwards local TCP port 8000 through the pivot to 10.10.10.100:80.

13
New cards
Where does a Meterpreter portfwd listener run in the course example?

On the attacking system.

14
New cards
What is the purpose of the auxiliary/server/socks4a module?

Provide a SOCKS proxy through a pivot.

15
New cards
From which internal IP does proxy traffic appear to originate in the example?

The compromised pivot host, 10.10.10.11.

16
New cards
What does Meterpreter background do?

Returns to the Metasploit console while retaining the session.

17
New cards
What does Meterpreter session 1 signify?

The first established Meterpreter session.

18
New cards
What is the purpose of the Metasploit route command?

Send traffic for a destination network through a chosen session.

19
New cards
What does route add 10.10.10.0/24 1 accomplish?

Routes Metasploit traffic to that network through Meterpreter session 1.

20
New cards
Which Metasploit setting selects a remote target host?

RHOST or RHOSTS, depending on the module.

21
New cards
Why does Metasploit route enable further internal exploitation?

Modules can send traffic through an existing Meterpreter connection.

22
New cards
What happens to the session identifier when a new Meterpreter session opens?

It increments to a new session number.

23
New cards
What does /32 mean in a Metasploit target route?

A route for one specific IPv4 address.

24
New cards
What does route add 10.10.20.150/32 1 do?

Sends traffic for that single host through session 1.

25
New cards
What does route del 10.10.20.150/32 1 do?

Removes that host route through session 1.

26
New cards
What does route add 10.10.20.150/32 2 do?

Routes traffic for that host through session 2.

27
New cards
Why did the first database-server pivot fail in the example?

A firewall blocked access from the first compromised host.

28
New cards
Why did the second database-server pivot succeed?

The firewall permitted access from the second compromised host.

29
New cards
What can an attacker learn by testing alternate pivot routes?

Which internal paths are permitted through firewalls.

30
New cards
What does Meterpreter run arp_scanner -r 10.10.10.0/24 do?

Discovers hosts on the specified local subnet using ARP.

31
New cards
Does Meterpreter have a built-in TCP port scanner?

No; Metasploit provides separate port-scanning modules.

32
New cards
Which Metasploit module performs TCP port scanning?

auxiliary/scanner/portscan/tcp.

33
New cards
Which command selects a Metasploit module?

use.

34
New cards
What does set RHOSTS do in the port-scanning example?

Specifies target hosts to scan.

35
New cards
What does set PORTS do in the port-scanning example?

Specifies TCP ports to check.

36
New cards
Which command executes the Metasploit port-scanning module?

run.

37
New cards
Why might an attacker scan through a Meterpreter pivot instead of directly?

Internal systems may be unreachable from the external attacker.

38
New cards
Which other Metasploit scanning interfaces are mentioned?

nmap and db_nmap.

39
New cards
What does LOL mean in the SSH pivoting section?

Living off the land: reusing built-in system capabilities.

40
New cards
What does SSH -L provide?

Local TCP port forwarding through an SSH connection.

41
New cards
What does SSH -L 8000:10.10.10.100:80 mean?

Listen locally on 8000 and forward to 10.10.10.100 port 80.

42
New cards
In SSH -L forwarding, where is the listener in the example?

On the attacking system.

43
New cards
What does SSH -D provide?

Dynamic port forwarding through a SOCKS proxy.

44
New cards
What does ssh -D 3128 establish?

A local SOCKS proxy listening on port 3128.

45
New cards
How does a SOCKS proxy differ from an HTTP proxy?

SOCKS can tunnel multiple protocols; HTTP proxies are HTTP-focused.

46
New cards
What software can use an SSH SOCKS proxy?

SOCKS proxy-aware client applications.

47
New cards
Can SSH -L appear more than once in one command?

Yes, for multiple local port forwards.

48
New cards
Which built-in Windows command provides TCP port forwarding?

netsh interface portproxy.

49
New cards
What privileges does netsh portproxy configuration require?

Administrator privileges.

50
New cards
Where does the netsh portproxy listener run in the example?

On the compromised Windows host.

51
New cards
What does listenaddress identify in netsh portproxy?

The local interface address to listen on.

52
New cards
What does listenport identify in netsh portproxy?

The local incoming TCP port.

53
New cards
What does connectaddress identify in netsh portproxy?

The destination IP address for forwarded traffic.

54
New cards
What does connectport identify in netsh portproxy?

The destination TCP port for forwarded traffic.

55
New cards
What does netsh interface portproxy add v4tov4 configure?

An IPv4-to-IPv4 TCP forwarding rule.

56
New cards
What does listenaddress=0.0.0.0 mean in the netsh example?

Listen on all local IPv4 interfaces.

57
New cards
Which command verifies the netsh listener on port 4444?

netstat -nato | findstr :4444

58
New cards
Which output state confirms a listening netsh proxy port?

LISTENING.

59
New cards
What is a major difference between netsh forwarding and Meterpreter portfwd?

netsh listens on the victim; the shown portfwd listens on the attacker.

60
New cards
What tool can show outbound TCP connections during Windows investigation?

Get-NetTCPConnection or Sysinternals TCPView.

61
New cards
Why can an internal netsh forwarder complicate incident response?

The destination may see another victim IP rather than the external attacker.

62
New cards
What does Metasploit LHOST represent in the reverse-pivot example?

The intermediary address the reverse payload connects to.

63
New cards
What do ReverseListenerBindAddress and ReverseListenerBindPort control?

The actual interface and port used by the Metasploit listener.

64
New cards
Which MITRE ATT&CK technique is associated with netsh port forwarding?

T1090: Proxy.

65
New cards
What is another Linux/UNIX approach to port forwarding mentioned?

Netcat together with named pipes.

66
New cards
What new attacks can internal network access enable?

Machine-in-the-middle or local password-harvesting attacks.

67
New cards
What is the defensive significance of a pivot point?

It identifies a compromised intermediary that must be investigated.

68
New cards
Which incident-response activity should expand to pivot hosts?

Scoping the compromise.

69
New cards
What is the goal of tracing a chain of forwarded connections?

Identify the true source and all compromised intermediary systems.

70
New cards
Are pivoted Metasploit scans necessarily faster than Nmap or Masscan?

No. The book notes they are generally less fast or capable.

71
New cards
Which built-in tools can aid lateral movement after a compromise?

PowerShell, smbclient, and Netcat.

72
New cards
What is the Book 5 Lab 5.2 title?

Pivot Exploitation.