Pentest Tales #001: You Spent How Much on Security?
During an internal penetration test, the tester used an SMB relay attack to capture and relay NTLMv2 hashes, gaining unauthorised access to multiple machines. Weak and reused local administrator passwords allowed the tester to compromise many systems and eventually a domain controller.
tcm-sec.com
Published on tcm-sec.com
by Heath Adams | Oct 29, 2020 | Penetration Testing
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the root cause was that SMB signing was disabled on workstations, allowing NTLM relay, combined with weak and reused local administrator passwords across many systems.
Impact
The tester gained administrative access to many machines and eventually a domain controller, demonstrating that an attacker could compromise the entire network.
What the attacker needed
Internal network access; SMB signing disabled on target; relayed user is admin on target
The fix
The report recommends enabling SMB signing, disabling LLMNR, enforcing least privilege, account tiering, and not reusing passwords.
How it was found
- Set up an SMB relay attack to run in the background.
- Perform LLMNR poisoning to capture a user's NTLMv2 hash.
- Relay the captured hash to another machine where SMB signing is disabled and the user is an admin.
- Gain a shell on the target machine and dump SAM hashes.
- Crack the hash to reveal the password 'Power10' and use pass-the-hash to access many machines.
- Use the compromised access to eventually obtain a hash that works on the domain controller.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a story about a security test inside a hospital's network. The tester tricked the network into letting them log in as an administrator without knowing the password, because the same weak password was used on many computers. This let them take control of many machines and eventually the main server.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.