spacecode@2.16.26
SpaceCode - launch cloud dev environments with AI coding agents
AI Security Review
scanned 2d ago · by lpm-firewall-aiThe default local REPL forwards ANTHROPIC_API_KEY to the package-selected api.spacecode.app gateway in ordinary model requests, without a recipient-specific consent gate. This is concrete credential disclosure, so the package should be blocked.
Decision evidence
public snapshot- The package exposes a CLI whose default interactive mode starts the bundled local REPL.
- The REPL reads ANTHROPIC_API_KEY from the environment and uses the resolved value for active prompts.
- The REPL defaults its API endpoint to api.spacecode.app; it does not bind the Anthropic credential to Anthropic’s service.
- The REPL sends POST requests to that endpoint with the credential in the x-api-key header and conversation data in the request body.
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.26.
See all versions of spacecode for other recorded verdicts.
- Avoid installing spacecode@2.16.26. 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.