Skip to content

Malicious Nx versions used AI coding tools to hunt for secrets

On 26 August 2025 malicious Nx versions ran developers’ own AI coding tools with safety checks skipped. They posted 2,349 credentials from 1,079 systems to public GitHub repositories.2

2,349 credentials taken, then 10,767 private repositories made public, exposing 82,901 more secrets.2

Get 30 minutes free every day, forever.3SOC 2 Type II499.9% uptime SLA on Pro4
Nx "s1ngularity"August 2025Asks first

11 of 50

Stopped Limited: the payment went out through the bank’s own system This case: Nx "s1ngularity". The gate asks first.

What happened

Malicious Nx versions ran developers’ AI tools to find secrets.

  1. 26 August 2025. Malicious versions of the Nx build tool ran on developers’ machines.

  2. The hunt. They ran the developers’ AI coding tools with safety checks skipped, then posted 2,349 credentials to public repositories.

  3. Two days later. Attackers used stolen GitHub tokens to make 10,767 private repositories public, exposing 82,901 more secrets.2

How the gate handles it

With the sealed gate, the move to public would have had to wait for approval.

On SealedBox machines no real token would have sat on disk, and making a repo public would have waited for a person. Press Play to watch the same call.5

Make a private repo public from a SealedBox machineSample6
  1. requestPATCH /repos/acme/api {"private": false}Asks first428

Asks firstRefused if no GitHub rule is set; with github.repo, making a repo public waits.

How easy

A dev team could make every private-to-public switch wait for approval in three steps.

Sample
Seal a keygithub
GitHub token
Paste your GitHub token
The machine never holds the real token.
GitHub rulesgithub
Reads and branch pushes
Pushes to main
Making a repo public
Applies to every machine in Engineering.
Where approvals goAsk first
Slack
Microsoft Teams
Telegram
Email
A person approves or denies each call that asks first.

Approvals and signed records come with Pro, Gate only and Custom. On Free, a rule that asks first refuses instead.7

In code

Or in four lines of code.

The same three steps, from the terminal.

Sample
What each line does
1Seal the keysealedbox keys sealThe agent gets sbk_live_8Wt4…k6.
2Set the rulessealedbox rules addGoing public waits; main is refused.
3Connect approvalssealedbox approvals connectAsk-first calls go to #eng-leads.
Try it

Put the gate in front of your agent today.

Run three practice calls in five minutes, then check their records on your own computer. Test mode, on every plan.

Start free$ sealedbox try5-minute practice run9
Scope

What the gate doesn’t change, and three failures like this one.

Related cases
Answers11

Questions about this case and the gate.

Still have a question?Book a callAll questions
Does the gate stop a malicious package from running?

No, it governs what leaves the machine, not what runs on it. On a SealedBox machine, the package finds no real token, only a SealedBox key with no secret in it.

Who approves a repo going public?

On Pro, Gate only and Custom, a person approves it in Slack, Microsoft Teams, Telegram or email. On Free, the call is refused instead.

Which GitHub rules are on from the start?

Pushes to main are refused by default. Loosening any rule takes the owner’s passkey.

What if no GitHub rule is set at all?

Then the call is refused. The gate fails closed, so a call that matches no rule does not go through.