# Social-engineered installer dropper on macOS

User-pasted curl|zsh or fake installer lures that drop staged stealers harvesting keychain, browser and wallet secrets

_Area: Mobile app security. Seen in 3 disclosed reports; latest 2026-08-06. Updated 2026-11-18._

## How it works

The app is not exploited; the user is. A lure on a trusted surface (a paid ad, a public SaaS share page, a Discord DM, a fake CAPTCHA) convinces the user to run an installer or paste a `curl|zsh` one-liner. That command fetches a server-side loader which fingerprints the host, drops an architecture-matched payload, strips quarantine, and persists. The broken assumption is that code the user chose to run is trustworthy and that macOS TCC/keychain boundaries will hold. They do not: the chain escalates from user execution to Full Disk Access, keychain unlock, browser Safe Storage decryption, and in-place trojanisation of wallet apps [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)[E2](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-elastic-catches-dprk-passing-out-kandykorn.md)[E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md).

## Where it shows up

- `curl ... | zsh`/`bash` in shell history, or a pasted command from a web page (ClickFix) [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)[E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md)
- Loader re-pull hooks in `~/.zshrc` or LaunchAgents that re-fetch on login [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)
- `osascript` prompts for credentials or privilege elevation [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)[E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md)
- Temp artifacts: `/tmp/osalogging.zip`, `NSCreateObjectFileImageFromMemory-*`, hidden executables in `/Users/Shared` [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)[E2](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-elastic-catches-dprk-passing-out-kandykorn.md)
- Renames of `/Applications/*/Contents/MacOS/*` to dotfiles (persistence) [E2](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-elastic-catches-dprk-passing-out-kandykorn.md)
- Binaries dropped under `~/Library/Caches/com.apple.*` and registered via `launchctl` BTM [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md)
- `uname -m` fingerprinting to serve arch-matched Mach-O [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md)

## How to review

For any app that stores secrets locally, the invariant is: secrets must be unreadable without a user gesture that the app itself verifies, and no downloaded code may run with the app's or user's ambient authority. Check that keychain items use access controls bound to the app, that browser Safe Storage / wallet seed material is not decryptable by a process that merely inherited the user session, and that installers verify signatures rather than trusting a fetched script. Treat "user ran it" as untrusted input, not consent.

## How finders spotted it

- Huntress reconstructed a deleted chain from host telemetry (`curl|zsh`, `~/.zshrc` re-pull, `osascript`, `/tmp/osalogging.zip`), then replayed the loader request with a spoofed macOS User-Agent and static api-key to pull each stage [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)
- Elastic noticed an atypical reflective in-memory Mach-O load on macOS and traced back through the Python lure [E2](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-elastic-catches-dprk-passing-out-kandykorn.md)
- A retrospective hunt found stealer components months after infection; the analyst traced loader, payload hosting and C2 to a hosting ASN [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md)
- Habit: distinguish paid malvertising from organic lure by checking browser history for ad-click hops (`aclk`/`gclid`) [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)

## Variants seen

- Paid ad → SaaS share page → `curl|zsh` loader, six stages [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)
- Discord-delivered fake "arbitrage bot" Python importing a second module that drops staged loaders [E2](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-elastic-catches-dprk-passing-out-kandykorn.md)
- ClickFix fake CAPTCHA → pasted shell command → arch-matched Go stealer [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md)

## Impact and severity

All three end in full secret compromise: keychain, browser credentials, wallet seeds, plus a persistent interactive RAT [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md)[E2](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-elastic-catches-dprk-passing-out-kandykorn.md)[E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md). Severity is critical because the chain crosses TCC and keychain boundaries and reaches wallet funds; partial-drain logic (`DRAIN_PCT`) shows deliberate evasion to prolong theft [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md). Impact scales with what the endpoint holds, not with any single app bug.

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **Discord** (version not stated): Elastic catches DPRK passing out KANDYKORN. Report: https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-elastic-catches-dprk-passing-out-kandykorn.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-macsync-stealer-rat-reverse-engineering.md
- E2: https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-elastic-catches-dprk-passing-out-kandykorn.md
- E3: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-mac-crypto-draining-malware.md
