[RE:SCRUTINY] Delay Then Migrate Your Meterpreter
During an internal penetration test, the endpoint protection product delayed deleting a Meterpreter executable by 3-4 seconds after execution, allowing the attacker to migrate the session before deletion. This enabled the attacker to escalate privileges and eventually compromise a domain administrator account.
Last few months, our team were engaged to perform penetration testing against a medium size organisation. Their objective is to determine how far a threat actor could do if remote access has been compromised.
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
Impact
The attackers could maintain a stable Meterpreter session and escalate privileges to domain administrator, compromising the entire domain.
What the attacker needed
Low-access domain user credentials; ability to execute files on a host; endpoint protection product with default settings
The fix
The endpoint protection product should be configured to remove the delay and enforce stricter rules, rather than using default settings.
How it was found
- Obtain low-access domain user credentials via SQL injection on a public asset.
- Fake-sign a Meterpreter executable to bypass initial blocking by the endpoint protection.
- Execute the Meterpreter executable; the endpoint protection delays deletion by 3-4 seconds.
- Use Meterpreter's post/windows/manage/migrate module to migrate the session before deletion.
- Use BloodHound to find a path to domain admin via users with domain admin access.
- Compromise user-E, spray credentials, dump hashes, and obtain a domain administrator hash.
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 penetration test where the testers found that a security product took a few seconds to delete a malicious file after it ran. They used that short window to move their control session to another process, which kept them from being kicked out. That let them continue attacking and eventually take over the whole network.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.