agent-bypass@2.30.2
Malicious code in agent-bypass (npm)
Analysis
agent-bypass ships a working credential-harvesting toolkit alongside its advertised "agent skills" pack. scripts/keystrike.py searches for victim hosts through the FOFA (hxxps://fofa[.]info/api/v1/search/all) and Shodan (hxxps://api[.]shodan[.]io) APIs, then requests a fixed list of credential paths from every hit: /.env, /.env.local, /.env.production, /.env.backup, /.hermes/.env, /.hermes/auth.json, /.claude/.credentials.json, /.codex/auth.json, /.opencode/auth.json, /.ssh/id_rsa, /.ssh/id_ed25519, /.npmrc, /.mcp.json, openclaw.json and config.json. TLS certificate verification is disabled for those fetches (check_hostname = False, verify_mode = CERT_NONE), responses are regex-scanned for DeepSeek/OpenAI/Anthropic API keys (sk-, sk-proj-, sk-ant-), and the "check" subcommand validates recovered DeepSeek keys against the provider's balance endpoint and appends them to a local jsonl file. scripts/env_chain.py parses .env content into AWS access/secret key pairs, database URLs with passwords, and SMTP/SSH credentials, then assembles verification commands such as "aws sts get-caller-identity". bin/grok-memory.js decrypts another application's stored login material — the macOS keychain item "Grok Bot Safe Storage" (account "Grok Bot Key") read via `security find-generic-password`, or the DPAPI-protected sand-secrets.json on Windows — recovering cursor-access-token and cursor-machine-id and replaying them to hxxps://api2[.]cursor[.]sh. scripts/origin_trace.py resolves CDN-fronted hosts over DNS-over-HTTPS (hxxps://1[.]1[.]1[.]1/dns-query) and enumerates subdomains through crt.sh, certspotter, otx, hackertarget, anubis and rapiddns. The bundled documentation lists wallet.json, wallet.dat, .ethereum, private.key, mnemonic, api_keys.json, TelegramDesktop and .session files as additional harvesting targets.
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 04:36 PM
- analyzed
- Nov 2, 2026, 04:37 PM
- weekly installs
- 3,312
Related advisories
- agent-bypass@2.30.7 same package
- agent-bypass@2.29.3 same package
- agent-bypass@2.29.2 same package
- agent-bypass@2.29.1 same package
- wormgpt-cli@1.0.1
- pocbitbarrontest@1.0.0
- amlekzo@1.0.0
- orderly-plugin-liquidity-heatmap@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.