agent-bypass@2.30.3
Malicious code in agent-bypass (npm)
Analysis
agent-bypass ships an offensive-security toolkit plus an installer that rewrites the instruction files of AI coding agents, and bundles scripts that harvest credentials. bin/install.js copies a ~131 KB SKILL.md and generated AGENTS.md persona files into six harness skill directories (~/.pi/agent/skills/agent-bypass, ~/.config/opencode/skills/agent-bypass, the DeepSeek Harness agents directory, ~/.claude/skills/agent-bypass, ~/.grok/skills/agent-bypass and the OpenMinis skills directory); the injected text includes an "Authorization Protocol" telling the agent to execute operator goals without repeated questioning. scripts/keystrike.py probes 20 credential paths on operator-named hosts (/.env, /.env.local, /.env.production, /.hermes/.env, /.claude/.credentials.json, /.codex/auth.json, /.opencode/auth.json, /.ssh/id_rsa, /.ssh/id_ed25519, /.npmrc, /.mcp.json), regex-matches DeepSeek/OpenAI/Anthropic/GLM/Moonshot API keys and validates recovered keys against hxxps://api[.]deepseek[.]com/user/balance. scripts/webprobe.py and scripts/mutate.py disable TLS certificate validation (check_hostname = False, verify_mode = CERT_NONE) when AB_INSECURE=1. scripts/origin_trace.py and scripts/doh_resolve.sh resolve names over DNS-over-HTTPS via hxxps://1[.]1[.]1[.]1/dns-query, hxxps://dns[.]google/resolve and hxxps://223[.]5[.]5[.]5/resolve to bypass TUN/fake-IP interception, and enumerate subdomains from crt.sh, api[.]certspotter[.]com, otx[.]alienvault[.]com, api[.]hackertarget[.]com, jldc[.]me and rapiddns[.]io. bin/grok-memory.js shells out to "security find-generic-password -s 'Grok Bot Safe Storage'" on macOS or PowerShell DPAPI on Windows to decrypt the local Grok Bot credential store, then replays the recovered session token to hxxps://api2[.]cursor[.]sh. The toolkit contains no dedicated C2 endpoint of its own; its credential-access targets are the hosts the operator names.
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 04:54 PM
- analyzed
- Nov 2, 2026, 04:56 PM
- weekly installs
- 3,312
hxxps://github[.]com/1837620622/agent-bypass Request takedown / dispute →Related advisories
- agent-bypass@2.30.7 same package
- agent-bypass@2.30.2 same package
- agent-bypass@2.29.3 same package
- agent-bypass@2.29.2 same package
- character-ai-sdk@1.0.1
- litecore-lib-ltc@1.9.7
- litecore-lib-ltc@1.9.6
- litecore-lib-ltc@1.9.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.