Skip to content
RCE Write-up Intermediate

From Vercel Typosquatting To An Obfuscated Macos Malware Loader

A typosquatted domain mimicking a legitimate site tricked users into copying and pasting a malicious command into their terminal, which led to an obfuscated AppleScript loader that fetched and executed remote payloads. The attacker could profile victims, hijack the clipboard, and run arbitrary code on macOS systems.

Ashish Bogati Follow

Published on infosecwriteups.com

It started like any other workday. One of our designers was looking up a UI reference on the popular ux-dictionary.vercel.app.

Ashish Bogati, on infosecwriteups.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 attackers registered a lookalike domain and used social engineering to convince users to manually execute a malicious command, bypassing browser security warnings.

Impact

The attacker could execute arbitrary code on the victim's macOS system, with the potential to deliver further malware or steal data, though the report does not specify the final payload's capabilities.

What the attacker needed

Victim makes a typo in the domain; victim follows instructions to paste and run command; macOS system

How it was found

  1. The user visits a typosquatted domain (verce.app instead of vercel.app).
  2. The site redirects through a traffic broker to a fake verification page.
  3. The page fingerprints the browser and copies a malicious command to the clipboard.
  4. The user is instructed to open Terminal, paste the command, and press Enter.
  5. The command downloads and runs a shell script that delivers an obfuscated AppleScript loader.
  6. The loader contacts command-and-control servers and executes a remote payload via osascript.

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 report describes a fake website that looks almost like a real one because its address is misspelled by one letter. The site tells visitors to copy a command and paste it into their computer's terminal, which secretly downloads and runs malicious software. The attacker uses tricks like checking the visitor's browser details and hiding code to avoid detection.

What is RCE?

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

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.