LWA-2026-13559 confirmed malware

agent-bypass@2.30.7

Malicious code in agent-bypass (npm)

T1552.001 · Credentials In FilesT1555 · Credentials from Password Stores

Analysis

This package ships a credential-harvesting toolkit whose scripts can be run directly from the installed CLI. scripts/keystrike.py drives Shodan and FOFA to enumerate exposed hosts, then fetches well-known secret paths from every host it finds — /.env, /.env.local, /.env.production, /.hermes/.env, /.hermes/auth.json, /.openclaw/openclaw.json, /.claude/.credentials.json, /.codex/auth.json, /.opencode/auth.json, /.ssh/id_rsa, /.ssh/id_ed25519, /.npmrc, /.mcp.json, /config.yaml — saves the bodies to JSONL, and runs regex extraction over them to pull Cloudflare-style 40-character API tokens and other provider keys before validating them in bulk against the providers' billing endpoints. scripts/origin_trace.py resolves candidate origin IPs via public DNS-over-HTTPS providers (1[.]1[.]1[.]1/dns-query, dns.google, 223[.]5[.]5[.]5) and certificate-transparency / passive-DNS services (crt.sh, api[.]certspotter[.]com, otx[.]alienvault[.]com, api[.]hackertarget[.]com, jldc[.]me, rapiddns[.]io), then connects to each candidate IP with TLS certificate verification disabled and Host/SNI set to the target domain to fingerprint the backend. scripts/env_chain.py parses a .env file and emits ready-to-run reuse commands carrying the harvested AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY, Redis and SSH private keys. bin/grok-memory.js reads the local Grok Bot session token — the macOS keychain entry "Grok Bot Safe Storage" plus ~/Library/Application Support/Grok Bot/sand-secrets.json, or the Windows Chromium v10 blob decrypted through DPAPI — and POSTs it in an authorization header to hxxps://api2[.]cursor[.]sh to act inside the user's bot account. bin/install.js copies the skill tree into ~/.pi, ~/.config/opencode, ~/.claude/skills, ~/.grok/skills and ~/.dsh, rewrites the agents' AGENTS.md with prompt-override ("破甲") instructions that disable their safety behaviour, and can inject a preset into a DeepSeek Harness cordis.patch.yml profile. The package declares no install lifecycle hook, so installation alone runs none of this; the behaviour is reached by invoking the agent-bypass CLI or its scripts.

analyzed by
Leitwacht
first seen
Nov 2, 2026, 05:22 PM
analyzed
Nov 2, 2026, 05:24 PM
weekly installs
3,312

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.