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

# xyt-agentos@1.1.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
**Blocked & quarantined** — Changes user startup configuration and establishes recurring execution of the package client.

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

Installation mutates interactive shell profiles and attempts to install an always-on service guard. The bundled watchdog restarts the client when it stops.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 96.0%
- **Started:** 2026-08-23T08:30:24.890Z
- **Finished:** 2026-08-23T08:31:23.579Z
- **Download time:** 502 ms
- **Static scan time:** 3449 ms
- **AI review time:** 54738 ms
- **Total time:** 58689 ms

## Security analysis

### Published attack-surface review

- **Summary:** Installation mutates interactive shell profiles and attempts to install an always-on service guard. The bundled watchdog restarts the client when it stops.

- **Trigger:** npm postinstall, especially global installation where xyt-client is available

- **Impact:** Changes user startup configuration and establishes recurring execution of the package client.

- **Evidence paths:** package.json, scripts/postinstall.mjs, scripts/agentos-watchdog.sh

- **Review source:** ai\_review

- **Reviewed:** 2026-08-23T08:31:23.579Z

### AI review details

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

- **Mechanism:** unconsented shell-profile modification and service persistence

- **Attack narrative:** The package executes a postinstall hook that appends its PATH entry to shell startup files. When the global binary is present, it silently runs its service-install command and states that it configures launchd or cron. Its supplied watchdog then restarts the client when its log or PID check indicates it is absent, creating unconsented persistence from installation.

- **Rationale:** Source inspection confirms install-time mutation of user shell configuration and automatic persistence, not merely static hints. This is concrete unconsented behavior with system-wide startup impact.

- **Files touched:** scripts/postinstall.mjs, scripts/agentos-watchdog.sh, .zshrc, .bash\_profile, .profile, .xyt-agent/logs/xyt-client.log, .xyt-agent/xyt-client.pid

### Review decision

- **Verdict:** Malicious

- **Confidence:** 96.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** postinstall runs automatically on npm installation., It appends a PATH export to user shell profiles without a user command., It invokes \`xyt-client service install\` during installation., The install path reports launchd/cron process-guard setup., Bundled watchdog restarts \`xyt-client\` when it is absent.

- **Evidence against:** No concrete external network endpoint was confirmed from inspected unobfuscated source., The persistence targets the package's own \`xyt-client\` process.

## Public findings

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

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

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

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

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

Public source snippet (untrusted):

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

### 3. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

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

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

Package declares npm scripts.

### 5. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/socket-server.js
- **Public source:** [View source](<https://unpkg.com/xyt-agentos@1.1.7/dist/socket-server.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: const _0x5bb523=_0x42a1;(function(_0x79b27d,_0x1aa556){const _0x5d58c4={_0x4e461b:0x94b,_0x114ea5:0x76f,_0x4e7457:0x3ed},_0x2b0d24=_0x42a1,_0xbcf135=_0x79b27d();while(!![]){try{con...
```

### 6. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 7. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/socket-server.js
- **Public source:** [View source](<https://unpkg.com/xyt-agentos@1.1.7/dist/socket-server.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: const _0x5bb523=_0x42a1;(function(_0x79b27d,_0x1aa556){const _0x5d58c4={_0x4e461b:0x94b,_0x114ea5:0x76f,_0x4e7457:0x3ed},_0x2b0d24=_0x42a1,_0xbcf135=_0x79b27d();while(!![]){try{con...
```

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

Package source references network APIs.

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

Package source references environment variables.

### 10. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** scripts/postinstall.mjs
- **Public source:** [View source](<https://unpkg.com/xyt-agentos@1.1.7/scripts/postinstall.mjs>)

Source writes installer persistence such as shell profile or service configuration.

Public source snippet (untrusted):

```javascript
L4: */
L5: import { execSync } from 'child_process'
L6: import { appendFileSync, existsSync, readFileSync } from 'fs'
...
L17: } catch {
L18: return join(homedir(), '.npm-global', 'bin')
L19: }
...
L25: const profiles = [
L26: join(homedir(), '.zshrc'),
L27: join(homedir(), '.bash_profile'),
...
L56: stdio: 'pipe',
L57: env: { ...process.env, PATH: `${binDir}:${process.env.PATH || ''}` },
L58: })
```

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

Package source references filesystem APIs.

### 12. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/socket-server.js
- **Public source:** [View source](<https://unpkg.com/xyt-agentos@1.1.7/dist/socket-server.js>)

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

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: const _0x5bb523=_0x42a1;(function(_0x79b27d,_0x1aa556){const _0x5d58c4={_0x4e461b:0x94b,_0x114ea5:0x76f,_0x4e7457:0x3ed},_0x2b0d24=_0x42a1,_0xbcf135=_0x79b27d();while(!![]){try{con...
```

### 13. High: Obfuscated Payload Loader
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** dist/socket-server.js
- **Public source:** [View source](<https://unpkg.com/xyt-agentos@1.1.7/dist/socket-server.js>)

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

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: const _0x5bb523=_0x42a1;(function(_0x79b27d,_0x1aa556){const _0x5d58c4={_0x4e461b:0x94b,_0x114ea5:0x76f,_0x4e7457:0x3ed},_0x2b0d24=_0x42a1,_0xbcf135=_0x79b27d();while(!![]){try{con...
```

### 14. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** scripts/postinstall.mjs
- **Public source:** [View source](<https://unpkg.com/xyt-agentos@1.1.7/scripts/postinstall.mjs>)

A manifest entrypoint or package-local install chain reaches persistence behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: scripts.postinstall -> scripts/postinstall.mjs
L4: */
L5: import { execSync } from 'child_process'
L6: import { appendFileSync, existsSync, readFileSync } from 'fs'
...
L17: } catch {
L18: return join(homedir(), '.npm-global', 'bin')
L19: }
...
L25: const profiles = [
L26: join(homedir(), '.zshrc'),
L27: join(homedir(), '.bash_profile'),
...
L56: stdio: 'pipe',
L57: env: { ...process.env, PATH: `${binDir}:${process.env.PATH || ''}` },
L58: })
```

### 15. High: Obfuscated
- **Category:** Supply Chain
- **Confidence:** 100.0%

Package source appears deliberately obfuscated.

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

Package source contains high-entropy string patterns.

### 17. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** scripts/agentos-watchdog.sh
- **Public source:** [View source](<https://unpkg.com/xyt-agentos@1.1.7/scripts/agentos-watchdog.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = scripts/agentos-watchdog.sh
kind = build_helper
sizeBytes = 2366
magicHex = [redacted]
```

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

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

Package manifest does not declare a clear license.

### 20. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/xyt-agentos@1.1.7/dist/cli.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = xyt-agentos@1.1.6
matchedIdentity = npm:eHl0LWFnZW50b3M:1.1.6
similarity = 0.400
summary = stored previous version shares package body but lacks this dangerous source file
```

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

### Published dependency entries
- @agentclientprotocol/sdk ^0.21.0 (Dependency)
- @langchain/core ^1.1.0 (Dependency)
- @langchain/langgraph ^1.2.8 (Dependency)
- @langchain/langgraph-checkpoint-sqlite ^1.0.0 (Dependency)
- @langchain/mcp-adapters ^1.1.3 (Dependency)
- @langchain/openai ^1.5.5 (Dependency)
- @langchain/tavily ^1.2.0 (Dependency)
- adm-zip ^0.5.17 (Dependency)
- archiver ^5.3.2 (Dependency)
- axios ^1.6.0 (Dependency)
- best-effort-json-parser ^1.2.1 (Dependency)
- better-sqlite3 ^12.0.0 (Dependency)
- chalk ^5.0.0 (Dependency)
- commander ^12.0.0 (Dependency)
- deepagents ^1.10.2 (Dependency)
- deepagents-acp ^0.1.10 (Dependency)
- diff ^5.2.0 (Dependency)
- dotenv ^16.4.0 (Dependency)
- form-data ^4.0.0 (Dependency)
- formdata-node ^6.0.3 (Dependency)
- ink ^4.0.0 (Dependency)
- ink-text-input ^5.0.0 (Dependency)
- langchain ^1.3.5 (Dependency)
- marked ^5.0.1 (Dependency)
- react ^18.0.0 (Dependency)
- readline-sync ^1.4.10 (Dependency)
- systeminformation ^5.21.0 (Dependency)
- turndown ^7.2.4 (Dependency)
- unzipper ^0.12.5 (Dependency)
- ws ^8.14.0 (Dependency)
- yaml ^2.3.0 (Dependency)
- zod ^4.3.6 (Dependency)

## Package metadata
- **Package:** xyt-agentos
- **Ecosystem:** npm
- **Version:** 1.1.7
- **Version published:** 2026-08-23T08:18:35.602Z
- **Package first seen:** 2026-08-06T16:39:34.284Z
- **Package last seen:** 2026-08-23T08:31:23.579Z
- **Known versions:** 7
- **Latest version:** 1.1.7
- **Appeal under review:** No
- **Description:** XYT AgentOS — Workent 龙虾桌面 Agent 客户端（xyt-client）
- **Runtime engines:** node: \>=18.0.0
- **Artifact files:** 6
- **Artifact unpacked size:** 3,616,450 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/xyt-agentos/v/1.1.7>)
