NetSight
criticalMalware report

GHSA-2qg7-5p3x-vr75

Malicious code in sextant-cli-darwin-arm64 (npm)

Impact

## Source: amazon-inspector (23978b08a7e3f8af97d2c8060e7fc3aca9a18d9f3435163a9d3ab97ac0b9d4d0) Package ships a darwin/arm64 Go binary that opens an outbound WebSocket to a hardcoded author-controlled relay at wss://relay.sextant.top and links a PTY library (github.com/creack/pty) with a WebSocket client (github.com/coder/websocket), implementing the network-driven pseudo-terminal remote-shell pattern that yields full-host code execution to the operator of that relay. The binary additionally binds listeners on 0.0.0.0:7280, 0.0.0.0:7281, and 0.0.0.0:9000 (a 'ws://%s:%s%s' format string is present), exposing the PTY/WebSocket surface to the local network rather than loopback. Embedded strings include a regex specifically matching Anthropic API keys ('sk-ant-[a-z0-9]+-[A-Za-z0-9_-]{40,}') and references to CLAUDE_CONFIG_DIR and ~/.claude paths, allowing extraction of the installer's Anthropic credentials, which are then reachable via the same relay channel. A separate POST to https://relay.sextant.top/install combined with a call to http://ip-api.com/json/?fields=status,message,country,countryCode,city,timezone,query reports installer geolocation and host identity to the author. The npm-facing metadata describes the package only as 'Sextant (sxt) binary for darwin/arm64', while the license field points to a GitHub repository named 'claude_control' — the shipped functionality (remote control of Claude Code / Gemini CLI sessions plus API-key exfiltration) is not disclosed in the package description or README. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/216f9e6905151b602373f4aef92b8138f3e7f9a6/osv/malicious/npm/sextant-cli-darwin-arm64/MAL-2026-11997.json))

Affected packages

EcosystemPackageAffectedFixed in
npmsextant-cli-darwin-arm64= 0.0.1-rc24none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc31none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc14none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc19none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc23none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc25none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc35none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc17none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc16none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc21none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc15none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc20none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc28none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc13none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc6none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc34none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc27none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc33none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc5none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc9none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc29none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc12none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc8none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc30none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc32none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc22none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc26none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc7none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc11none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc10none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc37none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc36none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc39none recorded
npmsextant-cli-darwin-arm64= 0.0.1-rc38none recorded

Weakness classification

References