Removal guide Trojans

PamStealer Mac Malware Exposed: Fake Clipboard App Steals Your Passwords

By Lapain Epuran10 min read

A clipboard manager should be forgettable software. It sits quietly, recalls copied text, and saves a few seconds without demanding unusual trust.

Advertisements

PamStealer exploits that expectation on macOS. The fake installation feels almost plausible, until a small instruction gives hidden code permission to build something entirely different.

Fake macOS clipboard utility download page offering a malicious disk image

Overview

PamStealer impersonates the legitimate Maccy utility

PamStealer is a two-stage macOS information stealer documented after researchers found a malicious download site impersonating Maccy, a legitimate open-source clipboard manager.

Advertisements

The fraudulent site used a lookalike address and supplied a disk image containing Maccy.scpt. That filename describes an AppleScript document, not a normal application bundle.

Advertisements

Double-clicking the script opens it in Script Editor. The visible instructions tell the visitor to press Command and R, or use the Run button.

That action does not install a harmless clipboard tool. It executes the concealed first-stage logic inside the document and begins downloading the actual stealer.

The first stage hides its real purpose inside instructions

The script displays branded setup text near the top. Its functional code sits much farther down, separated by enough empty space to escape an ordinary glance.

Some lure text uses characters from different alphabets that resemble Latin letters. To a person, the name looks correct, while simple text matching becomes harder.

The downloader uses JavaScript for Automation and native Objective-C interfaces rather than relying entirely on obvious Terminal commands. Script Editor performs the network request.

Advertisements

Because Script Editor can legitimately access networks, that single event is not conclusive. Its combination with hidden staging and an unfamiliar download is far more meaningful.

Advertisements

The Rust payload steals data and captures a valid password

After staging, a Rust-based Mach-O program collects browser information, clipboard contents, selected files, and credentials. It also creates a route for persistence after login.

The malware displays a native-looking authorization dialog. It asks for the Mac login password and validates the entry locally through Pluggable Authentication Modules.

A rejected password can prompt again, helping the attacker obtain a real credential instead of an accidental typo. The prompt resembles an ordinary system request.

The stolen material is encrypted and sent to command-and-control infrastructure. A successful infection can expose accounts long after the fake clipboard download closes.

Advertisements
  • The malicious page imitates a real clipboard utility.
  • The download contains a compiled .scpt document.
  • Victims are instructed to run it through Script Editor.
  • A second-stage Rust binary is downloaded and hidden.
  • A native-looking prompt collects the macOS login password.
  • Browser, clipboard, file, and account data may be exfiltrated.

The genuine Maccy project is not the threat. Criminals copied its identity and created a separate distribution route to make the payload appear familiar.

Advertisements

This distinction matters when reporting the incident. Removing the authentic application does not necessarily remove a malicious script, hidden bundle, or unrelated persistence item.

The decisive questions are where the file came from, what its extension was, what instructions appeared, and whether the password prompt followed script execution.

Suspicious clipboard utility setup script displayed inside a macOS script editor
Advertisements

How the PamStealer Attack Works

A person looking for a clipboard manager encounters a polished site using the expected product name, description, screenshots, and a prominent macOS download button.

Lookalike domains are effective because the visual difference can be one added word or character. Search advertisements and copied pages further reduce suspicion.

The legitimate project’s reputation becomes part of the lure. Positive reviews for the real software cannot validate a different domain or a differently packaged file.

A visitor may arrive with a specific task and leave quickly. That narrow attention favors a page that offers one obvious download without revealing its publisher.

Advertisements

Step 2: A disk image delivers an AppleScript document

The downloaded disk image contains Maccy.scpt. A .scpt file is executable script content when run through Script Editor, even if it looks like setup documentation.

Advertisements

Normal Mac applications typically arrive as application bundles that users drag into Applications, or as signed installer packages with clear publisher information.

A script pretending to be the application itself deserves immediate suspicion. Its icon and visible title do not limit the commands stored deeper inside the document.

Preserve the disk image and record its hash if an incident responder needs evidence. Do not reopen the file merely to confirm what it displayed.

Step 3: The victim is told to press Command and R

Script Editor opens the file and presents friendly instructions. The promised setup begins only after the user deliberately runs the script.

Advertisements

This technique turns a macOS development tool into the launcher. The operating system sees Script Editor performing actions that the user explicitly requested.

The quarantine attribute may remain present, yet the script can still execute through this route. The social instruction supplies the action the attacker needs.

Whenever downloaded instructions ask you to run code, use Terminal, disable Gatekeeper, or bypass a warning, stop and locate the official installation documentation independently.

Advertisements

Step 4: Native frameworks retrieve and stage the payload

The first stage uses JXA and Objective-C APIs to fetch the second component. Avoiding simple command-line download strings can make the chain less obvious.

It creates a convincing application bundle under the user’s Library Application Support directory. Observed variants impersonated system names such as Finder or Software Update.

Advertisements

The script copies a genuine-looking icon, writes configuration files, changes executable permissions, and applies an ad-hoc signature before launching the bundle without a visible window.

An ad-hoc signature is not the same as a trusted Developer ID signature. It does not identify an accountable software publisher or establish independent notarization.

Step 5: The second stage establishes persistence

PamStealer can add the disguised component to login items. That allows it to return after the user signs out, restarts, or believes the initial installer has finished.

A marker file may appear near the staged bundle. Cache records can also remain because Script Editor handled the network request used to retrieve the payload.

Advertisements

Names such as Finder Core Helper can feel too important to remove. Attackers choose system-like labels precisely because users hesitate to question them.

Advertisements

Deleting the original disk image does not remove a copy already placed in Application Support. Persistence and the second-stage binary require separate investigation.

Step 6: A native-looking dialog requests the login password

The stealer presents an authorization-style box saying the supposed clipboard application wants to make changes. The current account name may already appear inside it.

The entered password is checked through PAM on the local Mac. Correct validation gives the malware a usable credential rather than an unverified text string.

This prompt is especially dangerous because legitimate macOS tasks also request authentication. Context matters: a clipboard utility should not need a login password during script-based setup.

Cancel unexpected prompts and inspect the requesting process. Do not keep trying passwords because a copied application name appears above a secure-looking field.

Step 7: Sensitive information is collected and transmitted

The payload can read clipboard contents, collect browser information, search selected files, and package system details. Clipboard history may contain passwords, recovery codes, or wallet addresses.

Captured data is encrypted before transmission. Network encryption protects the criminal’s collection from casual inspection; it does not make the transfer legitimate.

The Mac can look normal while collection continues. No ransom note, desktop takeover, or obvious application window is required for the theft to succeed.

Account recovery should assume that recent clipboard contents and credentials used on the Mac may be exposed, even when no unauthorized login has appeared yet.

Advertisements

Domain, Script, Password Prompt, and Persistence Checks

Verify the download route, not just the application name

Locate the project’s genuine website through its established repository or trusted publisher records. Compare the complete domain with the address that supplied the disk image.

Review browser history and downloads without revisiting a suspected malicious page. Record redirects, advertisement labels, file timestamps, and the referring search query.

A copied logo or familiar utility description proves nothing about ownership. Domain spelling, signing identity, release history, and official distribution links carry more weight.

Block the fraudulent address through organizational filtering when appropriate. AdGuard may reduce future exposure to known deceptive domains and malicious search advertising.

Advertisements

Examine what the disk image actually contains

Check the file extension before opening anything. Finder can display a friendly name while the underlying item remains a script rather than an application.

Advertisements

Do not execute the script again for testing. Security teams can examine hashes, quarantine metadata, mounted-image records, and contents using an isolated analysis process.

Look for the original .dmg and .scpt files in Downloads, recent items, browser history, and security logs. Their presence helps establish the initial timeline.

If the expected software has an official checksum or signed release, compare against that material. A mismatch confirms that the downloaded object is not the known release.

Treat the password prompt as credential exposure

If a password was entered after running the script, change it from a trusted device or a clean recovery environment. Do not type the replacement on the suspect Mac.

Advertisements

Review Apple account sessions, email access, password manager activity, browser synchronization, cloud storage, financial accounts, and any service sharing that credential.

Unique passwords limit spread. Reused passwords require immediate replacement everywhere, beginning with email, password managers, cloud administration, banking, and identity services.

Enable multifactor authentication and regenerate recovery codes. Remove unknown trusted devices, application passwords, login tokens, and account recovery details.

Advertisements

Inspect login items and hidden application folders

Review Login Items and Allow in Background entries for unfamiliar helpers. A system-like name does not establish that Apple installed the component.

Check user Library Application Support locations, launch agents, temporary files, Script Editor caches, and recently created bundles around the original execution time.

Use a reputable macOS security scanner and review every detection carefully. Malwarebytes can identify known malicious components, but a business Mac may need professional forensic examination.

A clean reinstall is appropriate when administrator credentials were captured, persistence remains uncertain, or the Mac handles valuable wallets, corporate access, or sensitive client information.

Review recent privacy permissions for Full Disk Access, Accessibility, Automation, and screen recording. Unexpected grants can reveal capabilities beyond the original clipboard story.

Check configuration profiles and device management enrollment on personally owned Macs. An unknown profile can preserve control even after a visible helper is removed.

Inspect browser extensions and saved-download permissions. A malicious campaign may leave a second route through synchronization or a newly authorized browser component.

Advertisements

For managed fleets, search telemetry for Script Editor network requests followed by new bundles under user Library paths. The event sequence is more useful than names alone.

Preserve the quarantine metadata from the downloaded disk image. It can connect the file with the browser and source address used during acquisition.

After rebuilding, avoid restoring entire application-support folders from backup. Recover personal documents selectively so hidden persistence is not copied into the clean installation.

macOS login items review showing an unfamiliar background helper after malware infection
Advertisements

What to Do if PamStealer Infected Your Mac

  1. Disconnect the Mac. Disable network connections and stop using the computer for email, banking, wallet access, or password changes.
  2. Secure the login credential. From a clean device, change the macOS account password and every account that reused the same secret.
  3. Protect the primary email. Replace its password, end other sessions, inspect forwarding rules, update recovery options, and enable multifactor authentication.
  4. Review synchronized accounts. Check browser sync, cloud storage, messaging, password managers, developer services, and financial accounts for unfamiliar activity.
  5. Remove unknown trusted access. Revoke devices, application passwords, OAuth grants, tokens, backup codes, and sessions that you cannot verify.
  6. Scan and investigate macOS. Run Malwarebytes, review login items and launch agents, then obtain specialist help if hidden persistence remains possible. Install AdGuard to filter deceptive advertising during future browsing.
  7. Protect copied secrets. Replace passwords, recovery codes, wallet addresses, or private information recently placed on the clipboard when practical.
  8. Move wallet assets safely. If wallet secrets appeared on the Mac, create fresh credentials in a clean environment and transfer remaining assets.
  9. Preserve the infection trail. Keep the domain, disk image name, script, hashes, timestamps, screenshots, prompts, detections, and account alerts.
  10. Erase and reinstall when needed. Rebuild macOS if confidence cannot be restored, then recover only verified documents rather than unknown applications or scripts.
Advertisements

Is Your Mac Infected? Run a Free Malware Scan

Slow performance, constant pop-ups, or strange behavior? These are classic signs of a malware infection. The fastest way to find out is to scan your Mac with Malwarebytes Free β€” one of the most trusted malware removal tools available.

The free version detects and removes the most common threats, including:

  • Adware β€” the cause of those annoying pop-ups
  • Browser hijackers β€” unwanted redirects and changed homepages
  • Trojans and spyware β€” hidden programs stealing your data
  • Potentially unwanted programs (PUPs) β€” software you never asked for

πŸ‘‰ Follow the steps below to download Malwarebytes for Mac, scan your Mac, and remove any threats it finds. The scan usually takes 5 to 20 minutes.

Run a Malware Scan with Malwarebytes for Mac

Malwarebytes for Mac is a free on-demand scanner that removes the malware other security software tends to miss β€” adware, browser hijackers, and unwanted programs included. Cleaning an infected Mac with Malwarebytes has always been completely free, and it’s our go-to recommendation. Follow the steps below to scan and clean your Mac in just a few minutes.

  1. Download Malwarebytes for Mac

    Click the button below to download the latest version of Malwarebytes for Mac.

    Malwarebytes Free for MacScans and removes malware at no cost
    Download MalwarebytesOfficial installer for macOS. Your download starts right away.Want real-time protection? See Malwarebytes Premium
  2. Open the Malwarebytes setup file

    When the download finishes, open your Downloads folder and double-click the setup file to begin the installation.

    Double-click on setup file to install Malwarebytes
  3. Follow the On-Screen Prompts to Install Malwarebytes

    The Malwarebytes for Mac Installer will guide you through a few quick screens. Click “Continue” and keep following the prompts until the installation completes.

    Click Continue to install Malwarebytes for Mac
    Click again on Continue to install Malwarebytes for Mac
    Click Install to install Malwarebytes on Mac

    When the installation is complete, Malwarebytes opens to the Welcome to Malwarebytes screen. Click “Get started“.

  4. Select “Personal Computer” or “Work Computer”

    Malwarebytes will ask what type of computer you’re installing it on. Click either Personal Computer or Work Computer, whichever applies.
    Select Personal Computer or Work Computer mac

  5. Start the Scan

    Click the “Scan” button. Malwarebytes will automatically update its detection database and begin checking your Mac for malware.
    Click on Scan button to start a system scan Mac

  6. Wait for the Scan to Finish

    Malwarebytes will scan your Mac for adware, browser hijackers, and other malicious programs. This can take a few minutes, so feel free to do something else β€” just check back occasionally to see the progress.
    Wait for Malwarebytes for Mac to scan for malware

  7. Quarantine the Detected Threats

    When the scan is done, you’ll see a list of everything Malwarebytes found. Click the “Quarantine” button to remove all the threats at once.
    Review the malicious programs and click on Quarantine to remove malware

  8. Restart Your Mac

    Malwarebytes will now remove all the malicious files it found. Some threats can only be fully removed after a reboot β€” if Malwarebytes asks you to restart, allow it. Once you’re logged back in, your Mac is clean.
    Malwarebytes For Mac requesting to restart computer

That’s it β€” your Mac is now free of adware, rogue browser extensions, and other potentially harmful software.

Keep your Mac protectedStop the next infection before it starts
If your Mac got infected, its built-in protection may not be enough on its own. Malwarebytes Premium for Mac adds real-time protection that blocks malware and adware before they can infect your Mac.See Malwarebytes Premium

If you are still experiencing problems while trying to remove a malicious program from your computer, please ask for help in our Mac Malware Removal Help & Support forum.

Stay Protected: Block Ads and Malicious Sites

Now that your device is clean, keep it that way. Most infections start with a malicious ad or a fake download button β€” so blocking them at the source is your best defense.

We recommend AdGuard, which blocks malicious ads, phishing pages, and dangerous redirects before they can reach you.

πŸ‘‰ Download AdGuard and browse safely

Frequently Asked Questions

Is the real Maccy clipboard manager malware?

No. The documented campaign impersonated the legitimate project through a fraudulent distribution site. The malicious disk image and script came from the imitation route.

Why does PamStealer use Script Editor?

Script Editor gives downloaded code a familiar macOS interface. The user runs the concealed logic by following the displayed Command and R instruction.

Can PamStealer know whether my password is correct?

Researchers observed local validation through PAM. That mechanism can distinguish a valid Mac login password from a typing mistake before the credential is stolen.

Will deleting Maccy.scpt remove the infection?

No. Once executed, the script may have downloaded and staged a separate binary, application bundle, marker file, and login persistence entry elsewhere.

Does Malwarebytes restore stolen passwords?

No. It can help detect malicious files, while credential recovery requires password changes, session revocation, multifactor authentication, and monitoring from a clean device.

Should I reset the Mac immediately?

Preserve evidence first when the Mac belongs to an organization or stores valuable data. Then follow professional guidance or perform a clean, verified reinstall.

The Bottom Line

PamStealer disguises a script-driven infection as a simple clipboard utility. Its staged payload can capture a valid login password, browser data, files, and clipboard contents.

If the script ran, isolate the Mac and recover accounts elsewhere. Remove persistence thoroughly, and rebuild the system whenever its integrity cannot be confidently demonstrated.

Advertisements

Make your next click a safer one.

Spotting a scam is a good start. These tools can add protection when you browse, open messages, or download software.

Affiliate links We may earn a commission if you buy through these links, at no extra cost to you. How we’re funded

MalwarebytesSCAM & MALWARE PROTECTION

Scam awareness. Malware protection.

Malwarebytes combines device protection with tools for checking suspicious messages and links, so you have more information before you act.

  • Scam Guard for suspicious messages
  • Real-time malware protection with Premium
Explore MalwarebytesExplore features on the official website
AdGuardAD & TRACKER BLOCKING

Less clutter. More control.

AdGuard filters intrusive ads and trackers, helping reduce unwanted interruptions and giving you more control over your browsing.

  • Blocks intrusive ads and pop-ups
  • Filters trackers while you browse
Explore AdGuardExplore features on the official website

Features vary by device and plan. These tools add protection; they do not guarantee that a website or offer is trustworthy.

Join the discussion

0 comments

Share your experience or ask a question about this article.

Discussion

Start the conversation

Have a question or something useful to share? Add the first comment.

Report a comment

Reports are private and reviewed by a moderator.

Written by

Lapain Epuran

Hello! I'm Lapain Epuran, your go-to source for detailed and honest product reviews. From tech gadgets to miracle cures, I provide insights to help you make informed choices. Join me as we discover what's truly worth your time and money.

3,685 articlesWriting since 2024
More from Lapain β†’

MalwareTips community Β· since 2009

Stuck on a step? 75,000+ members can help you for free.

Post your question on the forum and our volunteer malware removal experts will walk you through it, step by step.

75K+members
999K+forum messages
100K+forum topics
17+years online

Previous

REVSTEALER Malware Exposed: How Fake Game Cheats Steal Windows Accounts

Next

Getgrohe.shop EXPOSED – Real Store or Scam? Investigation

Share