Skip to content
Misconfiguration Write-up Intermediate

[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.

RE:HACK Follow

Published on blog.rehack.xyz

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.

RE:HACK (@rehackxyz), on blog.rehack.xyz

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

  1. Obtain low-access domain user credentials via SQL injection on a public asset.
  2. Fake-sign a Meterpreter executable to bypass initial blocking by the endpoint protection.
  3. Execute the Meterpreter executable; the endpoint protection delays deletion by 3-4 seconds.
  4. Use Meterpreter's post/windows/manage/migrate module to migrate the session before deletion.
  5. Use BloodHound to find a path to domain admin via users with domain admin access.
  6. 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.

More by RE:HACK

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.