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

# @sciagent/cli@1.3.73 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 remote server or globally installed dependency can supply code that executes with the installing user's privileges.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Install Hook Abuse
- **Selected version:** 1.3.73
- **Selected version is latest:** Yes
- **Analysis source:** AI Security Review (lpm-firewall-ai)

Installing the package automatically fetches opaque executable payloads and changes global user state. Running the CLI launches the downloaded SciAgent binary.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 96.0%
- **Started:** 2026-09-01T02:09:41.406Z
- **Finished:** 2026-09-01T02:10:35.437Z
- **Download time:** 515 ms
- **Static scan time:** 526 ms
- **AI review time:** 52990 ms
- **Total time:** 54031 ms

## Security analysis

### Published attack-surface review

- **Summary:** Installing the package automatically fetches opaque executable payloads and changes global user state. Running the CLI launches the downloaded SciAgent binary.

- **Trigger:** npm installation triggers postinstall; invoking sciagent launches the downloaded payload.

- **Impact:** A remote server or globally installed dependency can supply code that executes with the installing user's privileges.

- **Evidence paths:** package.json, scripts/postinstall.js, bin/sciagent.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-01T02:10:35.437Z

### AI review details

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

- **Mechanism:** Lifecycle download, global package installation, and execution of remote binaries.

- **Attack narrative:** The postinstall hook runs without a separate user command, downloads an executable to the user's SciAgent directory, and installs a separate global npm package. The downloaded payload is accepted based on size rather than a cryptographic integrity check. The command wrapper subsequently starts that downloaded binary and includes remote update logic, creating a supply-chain path from installation to execution outside the reviewed package.

- **Rationale:** This package uses an automatic lifecycle hook to install external code globally and stage opaque remote executables for later execution without integrity verification. That is concrete install-hook abuse, even though the visible JavaScript does not harvest credentials.

- **Files touched:** $HOME/.sciagent/bin/sciagent, $HOME/.sciagent/bin/codebuddy-headless, global npm installation of @tencent-ai/codebuddy-code

- **Network endpoints:** jihulab.com, px1-jcy.matpool.com:26597

### Review decision

- **Verdict:** Malicious

- **Confidence:** 96.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** The package runs a postinstall script automatically., Postinstall installs an unrelated global npm package without a version pin., Postinstall downloads large executable payloads into the user's SciAgent directory and marks them executable, with only a size check., The CLI later launches the downloaded binary and also supports background remote updates.

- **Evidence against:** No source code reads credential files or sends harvested environment data., The visible logic is a CLI bootstrapper rather than obfuscated data-stealing code.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

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

Package declares npm scripts.

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/sciagent.js
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/bin/sciagent.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L19: 
L20: const { spawn, execSync } = require('child_process');
L21: const path = require('path');
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** scripts/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/scripts/postinstall.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L685: if (process.platform === 'win32') {
L686: // Windows: 使用 PowerShell Copy-Item
L687: // 脚本必须以 UTF-8 BOM 写入（PowerShell 5.1 无 BOM 按 ANSI/GBK 解码，
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/sciagent.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/bin/sciagent.js%23virtual%3Anormalized%3Around1>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```text
L121: if (process.platform === "win32") {
L122: // Windows: 使用 PowerShell
L123: // 注意：脚本必须以 UTF-8 BOM 写入——PowerShell 5.1 对无 BOM 的
...
L126: const logFile = path.join(installDir, "update-apply.log");
L127: const esc = (s) => String(s).replace(/"/g, \"""\");\r\n        const scriptContent = [\r\n          `$ErrorActionPreference = "Stop"`,\r\n          `$log = "${esc(logFile)}"`,\r\n ...
L128: // 脚本必须以 UTF-8 BOM 写入（PowerShell 5.1 无 BOM 按 ANSI/GBK
```

### 10. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** scripts/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/scripts/postinstall.js>)

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

Public source snippet (untrusted):

```javascript
L8: 
L9: const { execSync } = require('child_process');
L10: const path = require('path');
L11: const fs = require('fs');
L12: const https = require('https');
L13: const http = require('http');
...
L41: // 自建服务器配置（备用源）
L42: const SELF_HOSTED_URL = process.env.RELEASE_SERVER_URL || 'https://px1-jcy.matpool.com:26597?token=b3xgnhe2Sk';
L43: 
...
L87: function getCodebuddyBinDir() {
L88: const platform = process.platform;
L89: if (platform === 'win32') {
```

### 11. High: Install Named Payload File
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** scripts/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/scripts/postinstall.js>)

Install-named source file stages remote content through filesystem writes and execution.

Public source snippet (untrusted):

```javascript
L8: 
L9: const { execSync } = require('child_process');
L10: const path = require('path');
L11: const fs = require('fs');
L12: const https = require('https');
L13: const http = require('http');
...
L41: // 自建服务器配置（备用源）
L42: const SELF_HOSTED_URL = process.env.RELEASE_SERVER_URL || 'https://px1-jcy.matpool.com:26597?token=b3xgnhe2Sk';
L43: 
...
L87: function getCodebuddyBinDir() {
L88: const platform = process.platform;
L89: if (platform === 'win32') {
```

### 12. High: Runtime Package Install
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** scripts/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/scripts/postinstall.js>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```javascript
L555: try {
L556: execSync('npm install -g @tencent-ai/codebuddy-code', {
L557: stdio: 'inherit',
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

### 16. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** bin/sciagent.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/bin/sciagent.js%23virtual%3Anormalized%3Around1>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 1
```

### 17. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** scripts/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/scripts/postinstall.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 = @sciagent/cli@1.3.72
matchedPath = scripts/postinstall.js
matchedIdentity = npm:QHNjaWFnZW50L2NsaQ:1.3.72
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 18. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/sciagent.js
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/bin/sciagent.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 = @sciagent/cli@1.3.72
matchedPath = bin/sciagent.js
matchedIdentity = npm:QHNjaWFnZW50L2NsaQ:1.3.72
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 19. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** scripts/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@sciagent/cli@1.3.73/scripts/postinstall.js>)

Source fingerprint signature matches a known malicious package signature; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = malicious_source_fingerprint_signature
signature = 32653d96ab5ea419
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = @sciagent/cli@1.3.72
matchedPath = scripts/postinstall.js
matchedIdentity = npm:QHNjaWFnZW50L2NsaQ:1.3.72
similarity = 1.000
shingleOverlap = 3
summary = package final verdict is malicious
```

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

## Package metadata
- **Package:** @sciagent/cli
- **Ecosystem:** npm
- **Version:** 1.3.73
- **License:** MIT
- **Version published:** 2026-09-01T02:05:49.449Z
- **Package first seen:** 2026-07-06T02:40:03.049Z
- **Package last seen:** 2026-09-01T02:10:35.437Z
- **Known versions:** 67
- **Latest version:** 1.3.73
- **Appeal under review:** No
- **Description:** SciAgent CLI - AI Research Assistant
- **Author:** SciAgent Team
- **Keywords:** ai, research, agent, cli, codebuddy
- **Runtime engines:** node: \>=16
- **Supported OS:** linux, darwin, win32
- **Supported CPU:** x64, arm64
- **Artifact files:** 4
- **Artifact unpacked size:** 94,565 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@sciagent/cli/v/1.3.73>)
- [Repository](<https://gitee.com/garva/research-agent.git>)
