These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
Toptal repo-visibility flip and wiper
July 2025 · Contained
With old credentials that Toptal traced to the LastPass breaches, someone made 73 of Toptal's GitHub repositories public and published ten Picasso and Xene npm versions whose install scripts sent the installer's GitHub CLI token away and then tried to wipe the machine.
Full summary
On 20 July 2025 73 repositories in Toptal's GitHub organization became public within five minutes, and within the same hour malicious versions of ten packages from its Picasso design system and Xene appeared on npm. Each version's package.json ran gh auth token in an install script, posted the token to a webhook.site address, and then ran rm -rf on / with sudo, or a recursive delete on Windows. Socket found it, counted about 5,000 downloads and could not say how the attacker got in or how the GitHub changes and the npm releases were connected. Toptal deprecated the versions by 23 July. In a statement in early August it said the two packages were compromised for a few hours through credentials traced back to the LastPass breaches, that the downloads were mostly security scanners, and that 17 IP addresses reached the webhook. It has not said whose credentials they were or whether they were a GitHub password, a token or an npm login.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
Toptal later said the attacker got in with credentials it traced back to the LastPass breaches, years before. It has not said whose they were or what they opened. Whatever they were, they were enough to change repository visibility across the organization and to publish under the @toptal and @xene npm scopes. Socket's own analysis did not find the way in, and listed phishing, an insider and leaked developer credentials as possibilities.
What breaks this step
- Enforce MFA for every member (prefer hardware/FIDO2 keys over SMS or app codes)
- Migrate to SAML SSO / Enterprise Managed Users for centralized identity control
- Keep OAuth app access restrictions on and require security/IT approval for new apps
- Enforce an IP allow list for Git and web UI access from trusted ranges
On 20 July 2025 73 repositories in the toptal organization were made public within a five-minute window, private projects among them. Changing visibility in bulk like that takes organization owner rights or admin on every repository. Toptal said the private packages exposed this way had no users outside the company.
On 20 July npm recorded ten new versions: @toptal/picasso-tailwind 3.1.0, picasso-charts 59.1.4, picasso-shared 15.1.0, picasso-provider 5.1.1, picasso-select 4.2.2, picasso-quote 2.1.7, picasso-forms 73.3.2, picasso-utils 3.2.0, picasso-typography 4.1.4 and @xene/core 0.4.1. BleepingComputer wrote that the attacker changed Picasso's source on GitHub in the days after the visibility change; npm's own publish dates put the releases on the same day.
What breaks this step
- Adopt artifact attestations for build provenance on published binaries/images
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Publish packages with trusted publishing (OIDC) instead of long-lived registry tokens
- Put production secrets in environments with required reviewers
- Write and rehearse a credential-rotation runbook before you need it
A preinstall script ran gh auth token and posted the result with curl to webhook.site/fb5b4647-aff8-418c-99e7-ec830cc2024b, giving the attacker the installer's GitHub access. The scripts then ran sudo rm -rf --no-preserve-root / on Linux and macOS and rm /s /q on Windows. Socket puts the Unix wipe in preinstall and the Windows one in postinstall; BleepingComputer describes the wipe as the postinstall step.
What breaks this step
- Third-party Actions pinned to a full commit SHA instead of a mutable tag or branch
- Restrict which Actions can run to GitHub-verified creators or an internal allow-list
- Review new dependencies in PRs and hold new package versions for a few days before they're allowed in (a cooldown).
- Disable install scripts where you can (npm ignore-scripts).
Toptal deprecated the versions and went back to the last good ones by 23 July, without warning users at first. Socket counted about 5,000 downloads on 20 July. Toptal said the packages averaged close to zero downloads a week, that most of those downloads were automated scanners, that the webhook's logs showed 17 unique IP addresses, and that nobody was known to be affected.
Frameworks
Contained. First seen July 2025. Mapping by ghtier, not yet reviewed. Threat landscape