spacecode@2.16.75
SpaceCode - launch cloud dev environments with AI coding agents
AI Security Review
scanned 1d ago · by lpm-firewall-aiThe active REPL path forwards an Anthropic API key to the package-selected SpaceCode gateway by default. This is concrete credential disclosure, so the package should be blocked.
Decision evidence
public snapshot- The CLI starts the bundled REPL, where ordinary prompted turns use the resolved API key.
- The key resolver accepts ANTHROPIC_API_KEY as an API key.
- The REPL defaults its model endpoint to https://api.spacecode.app; API_PROXY_URL can override that destination.
- The active request uses the configured endpoint and resolved key for a POST to its messages route.
- The POST sends the key in the x-api-key header.
- The endpoint can be changed through API_PROXY_URL, but the default destination is selected by the package.
Source & flagged code
11 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.75.
See all versions of spacecode for other recorded verdicts.
- Avoid installing spacecode@2.16.75. 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.