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

# @keruyun/agent-cli@1.5.4 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 service receives host and agent-context metadata; a large opaque executable is installed for later use.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Data Exfiltration
- **Selected version:** 1.5.4
- **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.

Installing the package silently exfiltrates installation and agent-context identifiers. It also replaces the CLI executable with a remotely downloaded opaque payload.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 98.0%
- **Started:** 2026-09-07T21:04:02.218Z
- **Finished:** 2026-09-07T21:05:06.051Z
- **Download time:** 758 ms
- **Static scan time:** 375 ms
- **AI review time:** 62699 ms
- **Total time:** 63833 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:** Installing the package silently exfiltrates installation and agent-context identifiers. It also replaces the CLI executable with a remotely downloaded opaque payload.

- **Trigger:** npm installation activates postinstall.

- **Impact:** A remote service receives host and agent-context metadata; a large opaque executable is installed for later use.

- **Evidence paths:** package.json, install.cjs, binaries.json

- **Review source:** ai\_review

- **Reviewed:** 2026-09-07T21:05:06.051Z

### AI review details

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

- **Mechanism:** Postinstall telemetry plus verified remote binary staging.

- **Attack narrative:** On npm installation, the package runs install.cjs. It derives a user identifier from AGENT\_WORK\_ROOT, reads REWIND\_SESSION\_ID, collects the host name and npm metadata, and POSTs them to a remote log endpoint while suppressing errors. The same hook downloads a platform-specific compressed payload from a CDN, decompresses it, and replaces bin/kry-cli.exe. Although hashes are pinned, the executable content is not auditable in the package and the telemetry is automatic.

- **Rationale:** This is concrete unconsented install-time data exfiltration combined with remote opaque executable staging. Hash validation limits transit tampering but does not make the automatic collection or remote payload benign.

- **Files touched:** bin/kry-cli.exe

- **Network endpoints:** https://s.koubei.com/dcCBzyTxt7kxC4icSymEsjwJJWKczrj6.br, https://tnnm-alsc-saas-merchant-spider-fy21.cn-wulanchabu.log.aliyuncs.com/logstores/kry-cli/track?APIVersion=0.6.0

### Review decision

- **Verdict:** Malicious

- **Confidence:** 98.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** An automatic postinstall runs without a user command., Postinstall collects the host name, an agent-work-root-derived user ID, and a session ID., It silently sends those identifiers and npm environment metadata to a remote logging endpoint., Postinstall downloads, decompresses, and replaces the executable command target with opaque remote bytes., The binary manifest specifies a remotely hosted compressed executable for darwin-arm64.

- **Evidence against:** The downloaded compressed and decompressed data are checked against pinned SHA-256 values., The installer writes only its own bin/kry-cli.exe path.

## Affected versions and remediation

This report applies to @keruyun/agent-cli@1.5.4.

- Avoid installing @keruyun/agent-cli@1.5.4. 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. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@keruyun/agent-cli@1.5.4/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node install.cjs
```

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

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

Public source snippet (untrusted):

```json
scripts.postinstall = node install.cjs
```

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

Package declares npm scripts.

### 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: Install Named Payload File
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** install.cjs
- **Public source:** [View source](<https://unpkg.com/@keruyun/agent-cli@1.5.4/install.cjs>)

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

Public source snippet (untrusted):

```javascript
L28: *
L29: * 首装曾是唯一一段完全没有观测的路径：下面那 8 条返回路径以前只写 stderr，而 npm 通常把
L30: * postinstall 的 stderr 折叠掉 —— 于是「有多少人装不上、卡在下载还是校验、哪个平台最惨」
...
L50: const zlib = require('zlib');
L51: const { execFileSync } = require('child_process');
L52: 
L53: const BIN_DIR = path.join(__dirname, 'bin');
L54: const TARGET = path.join(BIN_DIR, 'kry-cli.exe');
...
L65: function log(msg) {
L66: process.stdout.write(`${LOG_PREFIX} ${msg}\n`);
L67: }
...
L73: try {
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 10. Medium: Ships Native Binary
- **Category:** Artifact Inventory
- **Confidence:** 75.0%
- **Path:** bin/kry-cli.exe
- **Public source:** [View source](<https://unpkg.com/@keruyun/agent-cli@1.5.4/bin/kry-cli.exe>)

Package ships native binary artifacts.

Public source snippet (untrusted):

```text
path = bin/kry-cli.exe
kind = native_binary
sizeBytes = 1356
magicHex = [redacted]
```

### 11. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** bin/log.py
- **Public source:** [View source](<https://unpkg.com/@keruyun/agent-cli@1.5.4/bin/log.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = bin/log.py
kind = build_helper
sizeBytes = 10484
magicHex = [redacted]
```

### 12. 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.

### 13. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** bin/sdk.mjs\#virtual:string-array:round1
- **Public source:** [View source](<https://unpkg.com/@keruyun/agent-cli@1.5.4/bin/sdk.mjs%23virtual%3Astring-array%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
```

### 14. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** install.cjs
- **Public source:** [View source](<https://unpkg.com/@keruyun/agent-cli@1.5.4/install.cjs>)

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 = @keruyun/agent-cli@1.4.15
matchedPath = install.cjs
matchedIdentity = npm:QGtlcnV5dW4vYWdlbnQtY2xp:1.4.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

## 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:** @keruyun/agent-cli
- **Ecosystem:** npm
- **Version:** 1.5.4
- **License:** MIT
- **Version published:** 2026-09-07T06:44:03.292Z
- **Package first seen:** 2026-08-06T09:58:10.644Z
- **Package last seen:** 2026-10-08T09:13:02.571Z
- **Known versions:** 17
- **Latest version:** 1.5.9
- **Appeal under review:** No
- **Description:** 客如云 CLI 工具
- **Author:** 玄宫
- **Runtime engines:** node: \>=18
- **Artifact files:** 7
- **Artifact unpacked size:** 72,557 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@keruyun/agent-cli/v/1.5.4>)
- [Repository](<http://gitlab.alibaba-inc.com/alsc-kry-open/krycli.git>)
