---
canonical: "https://firewall.lpm.dev/npm/@adep/cli"
markdown: "https://firewall.lpm.dev/npm/@adep/cli/v/0.1.17.md"
package: "@adep/cli"
report_status: "published"
title: "@adep/cli@0.1.17 npm security report"
verdict: "suspicious"
version: "0.1.17"
---

# @adep/cli@0.1.17 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
**Flagged — allowed with a warning** — Allowed by default policy, but 14 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Credential Exfiltration
- **Selected version:** 0.1.17
- **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: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

Running adep login without --server sends the password to the package default host https://adep.jajabjbj.top. Later export, storage, and hosting downloads attach the stored session cookie to whatever absolute URL that platform returns.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 74.0%
- **Started:** 2026-09-23T10:19:10.455Z
- **Finished:** 2026-09-23T10:21:21.713Z
- **Download time:** 501 ms
- **Static scan time:** 1750 ms
- **AI review time:** 129007 ms
- **Total time:** 131258 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:** Running adep login without --server sends the password to the package default host https://adep.jajabjbj.top. Later export, storage, and hosting downloads attach the stored session cookie to whatever absolute URL that platform returns.

- **Trigger:** User runs adep login, then an export, storage download, or hosting pull command.

- **Impact:** A platform-returned cross-host download URL receives the session cookie. The password goes to the default host unless the user sets --server or ADEP\_SERVER.

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

- **Review source:** ai\_review

- **Reviewed:** 2026-09-23T10:21:21.713Z

### AI review details

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

- **Mechanism:** The login body is posted to the resolved server. createClient.download then copies the session cookie onto fetch for any URL that starts with http.

- **Rationale:** The CLI authenticates to its own platform by design, but download attaches the session cookie to an unchecked absolute URL returned by that platform. That is conditional credential exposure on user-invoked commands, with no install-time or hidden exfiltration chain.

- **Files touched:** ~/.adep/credentials

- **Network endpoints:** https://adep.jajabjbj.top, https://registry.npmjs.org/

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 74.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** resolveServer falls back to https://adep.jajabjbj.top when ADEP\_SERVER is unset, and adep login posts the email and password there., createClient.download sends the saved session cookie to any absolute http(s) URL with no host check., Export, storage download, and hosting pull pass platform-returned URLs into that cookie-bearing download helper., There is no preinstall, install, or postinstall hook; login and downloads run only after an explicit CLI command.

- **Evidence against:** API calls other than download use the server saved at login time., Credentials are written under the user adep home directory with mode 0600., The npm registry URL is only a connectivity HEAD probe., MCP commands publish cloud functions on the logged-in platform and do not write local agent config.

## Affected versions and remediation

This report applies to @adep/cli@0.1.17.

- Review the evidence and your use of @adep/cli@0.1.17 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

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

Package declares npm scripts.

### 2. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@adep/cli@0.1.17/dist/index.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L42: if (mode !== 384) {
L43: const { chmod } = await import("node:fs/promises");
L44: await chmod(file, 384);
```

### 3. Medium: Unsafe Vm Context
- **Category:** Source
- **Confidence:** 68.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@adep/cli@0.1.17/dist/index.js>)

Package source executes code through a VM context API.

Public source snippet (untrusted):

```javascript
L12: // packages/cli/src/config.ts
L13: function resolvePaths(env = process.env) {
L14: const home = env["ADEP_HOME"] ?? `${env["HOME"] ?? ""}/.adep`;
...
L17: function resolveServer(env = process.env) {
L18: return (env["ADEP_SERVER"] ?? "https://adep.jajabjbj.top").replace(/\/+$/, "");
L19: }
...
L49: const raw = await readFile(paths.credentialsFile, "utf8");
L50: const parsed = JSON.parse(raw);
L51: if (typeof parsed["server"] !== "string" || typeof parsed["email"] !== "string" || typeof parsed["encodedToken"] !== "string") {
...
L171: headers: { "content-type": "application/json" },
L172: body: JSON.stringify({ email: input.email, password: input.password })
L173: });
```

### 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/@adep/cli@0.1.17/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:
await handle.writeFile(JSON.stringify(credentials, null, 2));
import { createInterface } from "node:readline/promises";
const base = `${config.baseUrl}/api/v1/projects/${encodeURIComponent(projectId)}/files/${encodeURIComponent(path)}`;
import { mkdir as mkdir5, readFile as readFile4, readdir as readdir3, rm as rm2, stat as stat5, unlink, writeFile as writeFile4 } from "node:fs/promises";
await writeFile4(metaPath(projectId, path), JSON.stringify(payload), "utf8");
await writeFile4(dest, data);
baseUrl: options.baseUrl ?? "http://127.0.0.1:8787"
import { mkdir as mkdir6, readFile as readFile5, writeFile as writeFile5 } f
```

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

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

Public source snippet (untrusted):

```javascript
L12: // packages/cli/src/config.ts
L13: function resolvePaths(env = process.env) {
L14: const home = env["ADEP_HOME"] ?? `${env["HOME"] ?? ""}/.adep`;
...
L17: function resolveServer(env = process.env) {
L18: return (env["ADEP_SERVER"] ?? "https://adep.jajabjbj.top").replace(/\/+$/, "");
L19: }
...
L49: const raw = await readFile(paths.credentialsFile, "utf8");
L50: const parsed = JSON.parse(raw);
L51: if (typeof parsed["server"] !== "string" || typeof parsed["email"] !== "string" || typeof parsed["encodedToken"] !== "string") {
...
L171: headers: { "content-type": "application/json" },
L172: body: JSON.stringify({ email: input.email, password: input.password })
L173: });
```

### 9. High: Obfuscated Payload Loader
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@adep/cli@0.1.17/dist/index.js>)

Source contains an obfuscated payload loader that reconstructs and executes hidden code.

Public source snippet (untrusted):

```javascript
L12: // packages/cli/src/config.ts
L13: function resolvePaths(env = process.env) {
L14: const home = env["ADEP_HOME"] ?? `${env["HOME"] ?? ""}/.adep`;
...
L17: function resolveServer(env = process.env) {
L18: return (env["ADEP_SERVER"] ?? "https://adep.jajabjbj.top").replace(/\/+$/, "");
L19: }
...
L49: const raw = await readFile(paths.credentialsFile, "utf8");
L50: const parsed = JSON.parse(raw);
L51: if (typeof parsed["server"] !== "string" || typeof parsed["email"] !== "string" || typeof parsed["encodedToken"] !== "string") {
...
L171: headers: { "content-type": "application/json" },
L172: body: JSON.stringify({ email: input.email, password: input.password })
L173: });
```

### 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. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 95.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 13. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 14. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/worker-entry.js
- **Public source:** [View source](<https://unpkg.com/@adep/cli@0.1.17/dist/worker-entry.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @adep/cli@0.1.12
matchedPath = dist/worker-entry.js
matchedIdentity = npm:QGFkZXAvY2xp:0.1.12
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

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

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

### Published dependency entries
- @adep/cf-compat 0.1.1 (Dependency)
- @adep/crypto 0.1.0 (Dependency)
- @adep/runtime 0.2.7 (Dependency)
- @adep/vite-plugin 0.1.7 (Dependency)
- commander 14.0.2 (Dependency)
- esbuild 0.25.12 (Dependency)

## Package metadata
- **Package:** @adep/cli
- **Ecosystem:** npm
- **Version:** 0.1.17
- **Version published:** 2026-09-17T13:07:52.567Z
- **Package first seen:** 2026-09-05T01:09:54.939Z
- **Package last seen:** 2026-10-01T08:33:34.379Z
- **Known versions:** 20
- **Latest version:** 0.2.2
- **Appeal under review:** No
- **Description:** \`adep\` 命令行工具包位：登录 / 初始化 / 本地调试 / 部署 / 数据库维护 / 云存储 / 静态托管 / 微前端组件（widget），实现见任务单 CLI-001 ~ CLI-003 与 FE-002；子路径 \`@adep/cli/vite\` 提供云函数 vite 插件（CLI-014）
- **Maintainers:** adep
- **Artifact files:** 5
- **Artifact unpacked size:** 823,745 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@adep/cli/v/0.1.17>)
