GHSA-7x22-xp2x-5r35
Malicious code in sextant-cli-darwin-amd64 (npm)
Impact
## Source: amazon-inspector (4da71f2071285bfe8543d8aa7437f2b82111d95797f78ece2cf7498d02ff9cc1) The package's sole shipped artifact bin/sxt is a Go binary that opens a WebSocket/WebRTC channel to hardcoded C2 endpoints wss://relay.sextant.top and https://relay.sextant.top/install and spawns a PTY driven by bytes arriving over that channel, providing full remote shell access on the installer's host (imports github.com/creack/pty, github.com/coder/websocket, github.com/pion/webrtc/v4). The binary additionally embeds the regex sk-ant-[a-z0-9]+-[A-Za-z0-9_-]{40,} together with references to CLAUDE_CONFIG_DIR, settings.local, api.anthropic.com/v1/models, and claude.ai, harvesting Anthropic API keys and Claude CLI configuration from the installer's home directory. Host reconnaissance is performed via http://ip-api.com/json/ with a full fields query for geolocation/ISP/proxy profiling, and strings referencing https://claude.ai/install.sh and https://registry.npmjs.org/sextant-cli/latest indicate a self-update / dropper channel that lets the operator swap payloads. package.json declares the license as SEE LICENSE IN https://github.com/ddos798/claude_control, self-identifying the tooling. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4dc8ff99f1553455023a993f31b15b5fa31309d4/osv/malicious/npm/sextant-cli-darwin-amd64/MAL-2026-12028.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc34 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc31 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc10 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc16 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc11 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc12 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc26 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc6 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc24 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc22 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc14 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc23 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc19 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc35 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc18 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc20 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc27 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc21 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc25 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc13 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc28 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc7 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc29 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc30 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc17 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc8 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc33 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc9 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc32 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc5 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc15 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc36 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc37 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc39 | none recorded |
| npm | sextant-cli-darwin-amd64 | = 0.0.1-rc38 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-7x22-xp2x-5r35
- https://github.com/ossf/malicious-packages/blob/4dc8ff99f1553455023a993f31b15b5fa31309d4/osv/malicious/npm/sextant-cli-darwin-amd64/MAL-2026-12028.json
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc34
- https://github.com/ossf/malicious-packages/blob/216f9e6905151b602373f4aef92b8138f3e7f9a6/osv/malicious/npm/sextant-cli-darwin-amd64/MAL-2026-12028.json
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc10
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc11
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc12
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc13
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc14
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc15
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc16
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc17
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc18
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc19
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc20
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc21
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc22
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc23
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc24
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc25
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc26
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc27
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc28
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc29
- https://www.npmjs.com/package/sextant-cli-darwin-amd64/v/0.0.1-rc30