Summary
The postinstall hook scripts/check-env.js harvests dozens of credential stores (.npmrc, .ssh/, AWS, GCP, Azure, kubeconfig, docker, vault, crypto wallets, Chrome passwords) and exfiltrates them to telemetry.api-monitor.com and an ICP canister. It then uses harvested npm tokens to infect other publishable packages with itself (registry worm), and PyPI tokens to inject .pth backdoors (cross-ecosystem worm).
Intent
Claims to be an embedded PostgreSQL server; actually a credential harvester and npm/PyPI registry worm that exfiltrates environment secrets, SSH keys, cloud credentials, browser passwords, and crypto wallet files, and propagates itself to other packages the user can publish to.
credential_access credential_harvest network_egress download_execute registry_abuse crypto_wallet browser_theft code_execution persistence
Credential harvesting from 40+ file paths and environment critical scripts/check-env.js:110-427
harvest() reads .npmrc, .ssh/id_*, .git-credentials, .netrc, AWS ~/.aws/credentials, GCP application_default_credentials.json, Azure accessTokens.json, kubeconfig, docker config.json, vault-token, solana id.json, ethereum/Bitcoin wallet files, MetaMask/Phantom browser extension data, Chrome Login Data (with decryptChromePassword()), .bash_history, .zsh_history, .env files, and /proc/*/environ on Linux.
Exfiltration to telemetry.api-monitor.com and ICP canister critical scripts/check-env.js:466-597
exfil() POSTs harvested data encrypted (AES-256-CBC + RSA-4096-OAEP) to https://telemetry.api-monitor.com/v1/telemetry and cjn37-uyaaa-aaaac-qgnva-cai.raw.icp0.io.
npm registry worm - infects other packages the user can publish critical scripts/check-env.js:744-857
infectPackage() downloads the latest tarball of each publishable package, injects itself as postinstall hook (scripts/env-compat.js), strips interfering scripts, removes itself from .npmignore, and publishes a new version with the harvested npm token.
PyPI cross-ecosystem worm - .pth file injection critical scripts/check-env.js:890-1034
infectPypiPackage() publishes a PyPI package containing a .pth file that runs on every Python invocation, exfiltrating credentials to the same telemetry host (TeamPCP/LiteLLM technique).
Chrome password decryption high scripts/check-env.js:29-61
decryptChromePassword() attempts to decrypt Chrome v10/v11 encrypted passwords using hardcoded key 'peanuts' with salt 'saltysalt' (common Linux fallback).
Crypto wallet file theft high scripts/check-env.js:232-350
Reads and base64-encodes MetaMask (Chrome/Brave/Firefox), Phantom, Exodus, Atomic wallet files, Solana id.json, ethereum keystore/, and .bitcoin/wallet.dat.
NPM token theft and validation high scripts/check-env.js:599-652
findNpmTokens() extracts _authToken from .npmrc; findNpmToken() validates against registry.npmjs.org/-/whoami.
Prompt-injection / conceal-from-user instructions in .genie files medium .genie/code/agents/git.md:60, .genie/code/agents/daily-standup.md:505, .genie/code/agents/install.md:425, .genie/spells/prompt.md, and 30+ others
Multiple .genie/code/agents/*.md and .genie/spells/*.md files contain instructions asking agents to hide actions from users, impersonate system messages, or bypass approval prompts.