spacecode@2.16.77
SpaceCode - launch cloud dev environments with AI coding agents
AI Security Review
scanned 1d ago · by lpm-firewall-aiThe default REPL path accepts an Anthropic credential and forwards it to the package's profile backend as authentication. This is an unintended cross-service credential disclosure, so the package should be blocked.
Decision evidence
public snapshot- The manifest exposes dist/index.js as the CLI, whose default invocation starts the local REPL.
- The REPL accepts ANTHROPIC_API_KEY as an API credential before trying the saved SpaceCode token.
- The REPL uses that credential for profile requests to https://backend.spacecode.app by default.
- Profile preparation passes the resolved key to the backend client, which sends it as a bearer token to the profile API.
- SPACECODE_PROFILE=off suppresses profile preparation, and environment settings can override the backend URL; neither is an affirmative recipient-specific consent gate on the default path.
Source & flagged code
12 flagged · loading sourceManifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/index.jsFindings
Affected versions and remediation
This report applies to spacecode@2.16.77.
See all versions of spacecode for other recorded verdicts.
- Avoid installing spacecode@2.16.77. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.