Skip to content
RCE Write-up Intermediate

37 Sysmon Events One Complete Dll Hijacking Attack Heres What Happened

A non-admin user executed a DLL sideloading attack by placing malicious DLLs with legitimate Windows names in a user-writable temporary directory, which a downloaded executable then loaded. The attacker achieved code execution without admin rights and used timestomping and a short-lived process to evade detection.

Manish Rawat Follow

Published on systemweakness.com

In my previous article, I explained how DLL hijacking works in theory. Now I have proof.

Manish Rawat, on systemweakness.com

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 application searched for DLLs in a user-writable directory (such as %TEMP%) before the system directory, allowing a malicious DLL with a legitimate name to be loaded.

What the attacker needed

Non-admin user account; ability to write to %TEMP% and Downloads; user runs a downloaded executable

How it was found

  1. A downloaded executable launches from the user's Downloads folder.
  2. Malicious DLLs with legitimate Windows names are created in a user-writable temporary directory.
  3. Sysmon identifies the DLLs as executable.
  4. The parent process loads the malicious DLLs from the temporary directory.
  5. The attacker modifies file timestamps to erase the forensic timeline.
  6. The process exits immediately, leaving no persistence.

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.

DLL hijacking is when a program looks for a helper file (a DLL) in a folder the attacker can write to, instead of the safe system folder. The attacker puts a malicious DLL with a trusted name there, so the program loads it and runs the attacker's code. Here, a downloaded program loaded bad DLLs from a temporary folder, letting a normal user run code without admin rights.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Manish Rawat

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.