Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ MAL-2026-13775 — permit2

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Malicious code in permit2 (npm)

permit2 is a malicious npm package that squats the bare name of Uniswap's Permit2 token-approval system (whose legitimate npm distribution is the scoped @uniswap/permit2-sdk), advertising itself as a "smart contract development toolkit." The package contains no real functionality — the published tarball ships only a package.json and an install-time payload (index.js), which both preinstall and postinstall execute via node index.js, so it runs automatically on npm install.

The payload is a more aggressive variant of the infostealer used across the mssjeep843 DeFi-impersonation campaign and exfiltrates to the same webhook.site endpoint. It collects environment variables whose names match a broadened secret pattern (KEY|TOKEN|SECRET|PASS|PRIVATE|MNEMONIC|RPC|AWS|GITHUB|NPM|KUBE|VAULT|AUTH|PGP|GPG|SEED|WALLET|BEARER|API|INFURA|ALCHEMY|HELIUS|QUICKNODE|ANKR|PRIVATE_KEY) and, rather than merely listing credential directories, reads and exfiltrates the full contents (up to 4000 bytes each) of a wide set of credential and key files: ~/.aws/credentials and ~/.aws/config, SSH private keys (~/.ssh/id_rsa, ~/.ssh/id_ed25519) and ~/.ssh/config, ~/.kube/config, ~/.docker/config.json, ~/.netrc, ~/.pgpass, ~/.npmrc, ~/.pypirc, ~/.gitconfig, ~/.git-credentials, GCP application-default and legacy credentials, Solana/Anchor keypairs (id.json), NEAR credentials, the Sui keystore, up to three Foundry keystore files, and .env/.env.local/.env.production/.env.development/secrets.env from the current working directory. It also captures the hostname, username, cwd and platform. The JSON is POSTed over HTTPS to https://webhook.site/326b0891-2093-4800-a4c1-686ce3e07b09, with errors swallowed so the install never visibly fails. Any host that installed this package should treat SSH keys, cloud credentials, wallet keystores and .env secrets as compromised and rotate them.

Source: amazon-inspector

The npm package 'permit2' (a name-squat of Uniswap's Permit2) ships an index.js that is registered as both preinstall and postinstall in package.json. On install, index.js enumerates environment variables matching KEY/TOKEN/SECRET/PRIVATE/MNEMONIC/AWS/GITHUB/NPM and reads installer-owned credential files including ~/.aws/credentials, ~/.ssh/id_*, ~/.npmrc, ~/.kube, ~/.docker, ~/.netrc, ~/.gitconfig, gcloud/solana/sui/anchor credentials, foundry keystores, and local.env files. The collected data is POSTed via https.request to a hardcoded attacker endpoint at webhook.site (path /326b0891-2093-4800-a4c1-686ce3e07b09). The upload is deferred 60-240 seconds inside a detached child process (spawn with detached:true, stdio:'ignore') to outlive install/scanner windows, and the script early-exits if os.hostname()/user matches sandbox patterns (scan-, detonation, sandbox, ubuntu-fc-uvm) or if the npm registry points at a mirror. The package ships no functionality matching its self-description as a 'smart contract development toolkit'.

Affected software

MAL-2026-13775 is recorded against 1 package.

  • permit2

Timeline and source

Published on 11 August 2026 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

Indicators of compromise

URLs: https://webhook.site/326b0891-2093-4800-a4c1-686ce3e07b09

References

www.npmjs.com (Package)
www.npmjs.com (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-08-11
Updated 2026-08-20
Modified 2026-08-12
Fix URL N/A

Affected Packages

Software From version Fixed in
permit2 — —

Free Vulnerability Check

Is your site affected by MAL-2026-13775?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-13775 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesMalicious packagesMalicious packages 2026
✓