Typosquatting Malware Analysis
A typosquatted domain served a page that ran an mshta command launching an encoded PowerShell stager, which downloaded and decoded further layers to reach shellcode identified by security vendors as a CobaltStrike backdoor. An attacker could use this chain to install a remote-access backdoor on a visitor's Windows machine.
Have you ever fat-fingered an address in the URL bar? If yes, keep reading because some hackers are hoping you do exactly that…
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 malicious page abused the Windows mshta binary to launch an encoded PowerShell command that downloaded and executed further payloads without the user's knowledge.
What the attacker needed
Victim mistypes a URL; Windows host; user runs the page's script
How it was found
- Visit the typosquatted domain in a browser.
- The page runs an mshta command that starts an encoded PowerShell script.
- The script downloads a string from a remote host and runs it with Invoke-Expression.
- The downloaded content is base64-decoded and gzip-decompressed into another PowerShell script.
- That script decodes and byte-shifts a payload into a binary file.
- The binary is shellcode identified by vendors as a CobaltStrike backdoor.
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.
A typosquatted site is a copy of a popular site at a slightly misspelled address, so a mistyped URL lands there. This page quietly ran a Windows tool that started a script, which fetched more hidden scripts and finally a small program that security companies recognised as a backdoor giving an attacker remote control of the computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.