---
canonical: "https://firewall.lpm.dev/npm/@kryd/cli"
markdown: "https://firewall.lpm.dev/npm/@kryd/cli/report.md"
package: "@kryd/cli"
report_status: "published"
title: "@kryd/cli@0.20.1 npm security report"
verdict: "malicious"
version: "0.20.1"
---

# @kryd/cli@0.20.1 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Blocked & quarantined** — A service listening on the local endpoint can receive the user's Kryd token.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Credential Exfiltration
- **Selected version:** 0.20.1
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The manifest makes the affected runtime code the package's executable entrypoint. Source confirms a browser-login path that can send the newly issued service credential to the package-selected loopback default without recipient-specific consent.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 97.0%
- **Started:** 2026-10-22T16:32:08.309Z
- **Finished:** 2026-10-22T16:33:14.332Z
- **Download time:** 1279 ms
- **Static scan time:** 2102 ms
- **AI review time:** 62641 ms
- **Total time:** 66023 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Browser login can send a newly issued Kryd token to a loopback API endpoint. The CLI uses that endpoint when the login callback omits an API URL and no override is configured.

- **Trigger:** A user runs browser login and the callback supplies a token without an API URL, with no API URL override configured.

- **Impact:** A service listening on the local endpoint can receive the user's Kryd token.

- **Evidence paths:** package.json, dist/index.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-22T16:33:14.332Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The CLI stores the token with the loopback URL and sends it as a Bearer credential to that URL's account lookup endpoint.

- **Attack narrative:** The published command defaults its API destination to a local HTTP endpoint. In the browser login flow, the returned API URL is optional; when absent, the CLI saves the issued token with that default and uses it for an authenticated account lookup. This exposes the token to any service listening on that local endpoint.

- **Rationale:** The manifest makes the affected runtime code the package's executable entrypoint. Source confirms a browser-login path that can send the newly issued service credential to the package-selected loopback default without recipient-specific consent.

- **Files touched:** ~/.kryd/config.json

- **Network endpoints:** http://localhost:3000, https://app.kryd.eu

### Review decision

- **Verdict:** Malicious

- **Confidence:** 97.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** package.json exposes dist/index.js as the kryd command., When no API URL is provided by a flag, environment variable, or saved configuration, the CLI selects http://localhost:3000., Browser login receives a token and treats the returned API URL as optional., Login saves the token using the returned API URL or the fallback URL, then sends it through account setup using that same URL., The account lookup sends the token as a Bearer authorization value to the selected URL's /me endpoint.

## Affected versions and remediation

This report applies to @kryd/cli@0.20.1.

- Avoid installing @kryd/cli@0.20.1. 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.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@kryd/cli@0.20.1/dist/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L16837: // src/browser-login.ts
L16838: import { spawn } from "node:child_process";
L16839: import { randomUUID } from "node:crypto";
```

### 3. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 4. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 5. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 6. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 7. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@kryd/cli@0.20.1/dist/index.js>)

Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.

Public source snippet (untrusted):

```javascript
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/index.js:
writeFileSync as writeFileSync3
writeFileSync
writeFileSync(path, JSON.stringify(config2, null, 2) + "\n", { mode: 384 });
return { authorization: `Bearer ${token}`, ...accountHeader(token), ...cliVersionHeader() };
writeFileSync(path, JSON.stringify(link, null, 2) + "\n");
writeFileSync(path, contents, { mode: 384 });
import { existsSync as existsSync2, readFileSync as readFileSync2, realpathSync, writeFileSync as writeFileSync2 } from "node:fs";
- **AI:** an EU-hosted, OpenAI-compatible gateway with several models \u2014 \`kryd ai add\`; list the current models with \`kryd ai models\`. Don't add provider API keys.
```

### 8. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@kryd/cli@0.20.1/dist/index.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L16829: await revokeDeployToken(resolveApiUrl(opts.apiUrl), token, id);
L16830: process.stdout.write(`Revoked ${id}. Anything still using it now gets 401.
L16831: `);
...
L16837: // src/browser-login.ts
L16838: import { spawn } from "node:child_process";
L16839: import { randomUUID } from "node:crypto";
L16840: import { createServer } from "node:http";
L16841: var page = (title, body) => `<!doctype html><html><head><meta charset="utf-8"><title>Kryd CLI</title></head><body style="font-family:system-ui,-apple-system,sans-serif;text-align:c...
```

### 9. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@kryd/cli@0.20.1/dist/index.js>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/index.js
L16829: await revokeDeployToken(resolveApiUrl(opts.apiUrl), token, id);
L16830: process.stdout.write(`Revoked ${id}. Anything still using it now gets 401.
L16831: `);
...
L16837: // src/browser-login.ts
L16838: import { spawn } from "node:child_process";
L16839: import { randomUUID } from "node:crypto";
L16840: import { createServer } from "node:http";
L16841: var page = (title, body) => `<!doctype html><html><head><meta charset="utf-8"><title>Kryd CLI</title></head><body style="font-family:system-ui,-apple-system,sans-serif;text-align:c...
```

### 10. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 11. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 12. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 97.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@kryd/cli@0.20.1/package.json>)

package.json exposes dist/index.js as the kryd command.

Public source snippet (untrusted):

```json
"bin": {
    "kryd": "dist/index.js"
  },
  "files": [
    "dist",
    "README.md",
    "LICENSE"
  ],
  "engines": {
    "node": ">=22"
  },
  "publishConfig": {
    "access": "pu
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 1
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 9
- **Published dependency-graph edges:** 1

### Published dependency entries
- commander ^12.1.0 (Dependency)

## Package metadata
- **Package:** @kryd/cli
- **Ecosystem:** npm
- **Version:** 0.20.1
- **License:** Apache-2.0
- **Version published:** 2026-10-22T16:30:21.365Z
- **Package first seen:** 2026-08-09T21:07:04.219Z
- **Package last seen:** 2026-10-22T19:33:40.319Z
- **Known versions:** 19
- **Latest version:** 0.21.0
- **Appeal under review:** No
- **Description:** Kryd CLI — git push → live on the European cloud for your AI: SSL, managed Postgres & object storage, and an EU-hosted AI gateway. Your code and model calls stay in the EU. Beta: sign up at https://kryd.eu/beta
- **Author:** Kryd \<boris@beep24.nl\>
- **Keywords:** kryd, deploy, eu-sovereign, paas, cli, react, vite, nextjs, ai-gateway
- **Runtime engines:** node: \>=22
- **Artifact files:** 4
- **Artifact unpacked size:** 824,404 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@kryd/cli>)
- [Homepage](<https://kryd.eu/>)
