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

# cursor-switch@1.0.7 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 12 findings 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:** 1.0.7
- **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.

The package contains a concrete, user-triggered credential-forwarding capability to an unrestricted configured endpoint. It has no automatic install lifecycle hook, so the risk warrants a warning rather than a publication block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 94.0%
- **Started:** 2026-09-29T02:56:37.874Z
- **Finished:** 2026-09-29T02:57:46.302Z
- **Download time:** 509 ms
- **Static scan time:** 514 ms
- **AI review time:** 67404 ms
- **Total time:** 68428 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:** The explicit pure-login feature forwards account credentials to a configurable remote service. No install-time attack was identified.

- **Trigger:** The user runs the pure-login CLI option or command and enters account details.

- **Impact:** Credentials may be exposed to the default third-party service or an operator-configured endpoint.

- **Evidence paths:** dist/cli.js, dist/core/config-store.js, dist/core/pure-login-service.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-29T02:57:46.302Z

### AI review details

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

- **Mechanism:** The CLI invokes the remote-login service, which posts email and password fields to the configured API base.

- **Rationale:** The package contains a concrete, user-triggered credential-forwarding capability to an unrestricted configured endpoint. It has no automatic install lifecycle hook, so the risk warrants a warning rather than a publication block.

- **Files touched:** dist/cli.js, dist/core/config-store.js, dist/core/pure-login-service.js

- **Network endpoints:** https://getdoubao.com

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 94.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for warning:** The package exposes a user-invoked pure-login mode., The service accepts its API base from environment or saved configuration, with a third-party default., The pure-login request sends an email address, email password, Cursor password, and raw account data to that API., The package metadata has no preinstall, install, or postinstall hook.

- **Evidence against:** The credential-forwarding flow is activated through an explicit CLI option rather than during installation.

## Affected versions and remediation

This report applies to cursor-switch@1.0.7.

- Review the evidence and your use of cursor-switch@1.0.7 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: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

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

Package declares npm scripts.

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 6. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/core/update-checker.js
- **Public source:** [View source](<https://unpkg.com/cursor-switch@1.0.7/dist/core/update-checker.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L11: import { fileURLToPath } from 'node:url';
L12: import { spawn } from 'node:child_process';
L13: import chalk from 'chalk';
...
L17: const currentDir = path.dirname(fileURLToPath(import.meta.url));
L18: const pkgPath = path.resolve(currentDir, '..', '..', 'package.json');
L19: if (fs.existsSync(pkgPath)) {
L20: const data = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
L21: if (data?.version)
...
L142: const registries = [
L143: `https://registry.npmjs.org/${PACKAGE_NAME}/latest`,
L144: `https://registry.npmmirror.com/${PACKAGE_NAME}/latest`,
...
L168: detectPackageManager(useMirror = false) {
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 9. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 90.0%

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

### 10. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/cursor-switch@1.0.7/dist/cli.js>)

The package exposes a user-invoked pure-login mode.

Public source snippet (untrusted):

```javascript
// 4. add
    program
        .command('add [token]')
        .description('添加 Cursor 账号 (支持直接粘贴 user_xxx::eyJ... / eyJ...、纯净代登或浏览器登录)')
        .option('-p, --pure', '使用海外 S 级纯净住宅 IP 自动代登
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/cursor-switch@1.0.7/dist/cli.js>)

The package exposes a user-invoked pure-login mode.

Public source snippet (untrusted):

```javascript
if (options?.pure) {
            const pureService = new PureLoginService();
            await pureService.runInteractiveFlow(store, storage, sqlite, paths.executablePath);
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 94.0%
- **Path:** dist/core/config-store.js
- **Public source:** [View source](<https://unpkg.com/cursor-switch@1.0.7/dist/core/config-store.js>)

The service accepts its API base from environment or saved configuration, with a third-party default.

Public source snippet (untrusted):

```javascript
getSeatApiBase() {
        const cfg = this.load();
        const envVal = process.env.VITE_SEAT_API_BASE || process.env.CSWITCH_SEAT_API;
        return (envVal || cfg.seat_ap
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepublishOnly
- **Dependencies:** 7
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 2
- **Published dependency-graph edges:** 7

### Published dependency entries
- @inquirer/core ^10.3.2 (Dependency)
- @inquirer/prompts ^7.2.1 (Dependency)
- boxen ^8.0.1 (Dependency)
- chalk ^5.4.1 (Dependency)
- cli-table3 ^0.6.5 (Dependency)
- commander ^13.1.0 (Dependency)
- open ^10.1.0 (Dependency)

## Package metadata
- **Package:** cursor-switch
- **Ecosystem:** npm
- **Version:** 1.0.7
- **License:** MIT
- **Version published:** 2026-09-25T04:08:47.328Z
- **Package first seen:** 2026-09-29T02:57:46.302Z
- **Package last seen:** 2026-11-21T13:58:45.302Z
- **Known versions:** 2
- **Latest version:** 1.0.8
- **Appeal under review:** No
- **Description:** 极速、安全、纯本地运行的 Cursor IDE 多账号管理与防封虚拟机器指纹切换纯命令行工具
- **Author:** aozai
- **Maintainers:** ziaochina
- **Keywords:** cursor, cursor-ai, cursor-ide, cursor-switch, account-manager, machine-id, cli, local-first, pure-cli
- **Runtime engines:** node: \>=18.0.0
- **Artifact files:** 65
- **Artifact unpacked size:** 480,194 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/cursor-switch/v/1.0.7>)
