---
canonical: "https://firewall.lpm.dev/npm/@saltpub/xiaojiu-agent-bridge/v/0.1.1"
markdown: "https://firewall.lpm.dev/npm/@saltpub/xiaojiu-agent-bridge/v/0.1.1.md"
package: "@saltpub/xiaojiu-agent-bridge"
report_status: "published"
title: "@saltpub/xiaojiu-agent-bridge@0.1.1 npm security report"
verdict: "suspicious"
version: "0.1.1"
---

# @saltpub/xiaojiu-agent-bridge@0.1.1 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 as AI-agent capability risk** — Allowed by default with warning: agent-facing configuration or capability changes need review before use.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only AI-agent capability risk
- **Public report status:** Published
- **Threat category:** AI-agent capability abuse
- **Selected version:** 0.1.1
- **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.

No covert install-time behavior, unrelated endpoint, or concrete credential theft was found. The explicit remote-to-local agent execution and persistence capability is dangerous enough to warn, but the inspected code does not establish malicious intent.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 88.0%
- **Started:** 2026-09-15T13:09:42.877Z
- **Finished:** 2026-09-15T13:11:03.533Z
- **Download time:** 757 ms
- **Static scan time:** 2363 ms
- **AI review time:** 77535 ms
- **Total time:** 80656 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:** After explicit configuration and start, the package exposes a Xiaojiu webhook bridge that invokes a local coding agent. It can persist as a user-level daemon.

- **Trigger:** A user configures the bridge and runs its run or start command; an authorized Xiaojiu message then arrives.

- **Impact:** Authorized chat users can cause the configured local coding agent to act in its configured workspace and permissions context.

- **Evidence paths:** dist/cli.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-15T13:11:03.533Z

### AI review details

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

- **Mechanism:** Webhook-to-local coding-agent execution with optional daemon persistence.

- **Rationale:** No covert install-time behavior, unrelated endpoint, or concrete credential theft was found. The explicit remote-to-local agent execution and persistence capability is dangerous enough to warn, but the inspected code does not establish malicious intent.

- **Files touched:** bin/xiaojiu-agent-bridge.mjs, dist/cli.js

- **Network endpoints:** https://messenger-api.4399om.com

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 88.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** Webhook messages are passed to a local coding-agent executor., The explicit start command installs and starts an OS-managed daemon with automatic restart., The bridge sends configured app credentials to the Xiaojiu API to obtain a token.

- **Evidence against:** The package has no preinstall, install, or postinstall hook., Daemon setup is reached only through an explicit CLI start command., Message intake applies owner, user, and chat access checks before queuing work., Observed network hosts are the named Xiaojiu API and npm registry; no unrelated exfiltration endpoint was found.

## Affected versions and remediation

This report applies to @saltpub/xiaojiu-agent-bridge@0.1.1.

- Review the evidence and your use of @saltpub/xiaojiu-agent-bridge@0.1.1 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. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@saltpub/xiaojiu-agent-bridge@0.1.1/dist/cli.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L24: import crossSpawn from "cross-spawn";
L25: import { execFile } from "child_process";
L26: function spawnProcess(command, args = [], options = {}) {
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@saltpub/xiaojiu-agent-bridge@0.1.1/dist/cli.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L2488: 'Set sh = CreateObject("WScript.Shell")',
L2489: `sh.Run "cmd.exe /c ""${quoted}""", 0, True`,
L2490: ""
```

### 5. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@saltpub/xiaojiu-agent-bridge@0.1.1/dist/cli.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L805: try {
L806: const imported = await import(normalizeModuleSpecifier(mod));
L807: const factory = imported.default ?? imported.createAdapter;
```

### 6. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@saltpub/xiaojiu-agent-bridge@0.1.1/dist/cli.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L3: import { join } from "path";
L4: if (!process.env.XIAOJIU_BRIDGE_HOME && process.env.npm[redacted] === "cli") {
L5: const localHome = join(process.cwd(), ".xiaojiu");
L6: if (existsSync(join(localHome, "config.json"))) {
...
L17: import { fileURLToPath } from "url";
L18: var packageJsonPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "package.json");
L19: var manifest = JSON.parse(readFileSync(packageJsonPath, "utf8"));
L20: var packageName = manifest.name;
...
L24: import crossSpawn from "cross-spawn";
L25: import { execFile } from "child_process";
L26: function spawnProcess(command, args = [], options = {}) {
...
L87: let settled = false;
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 10. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@saltpub/xiaojiu-agent-bridge@0.1.1/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L3: import { join } from "path";
L4: if (!process.env.XIAOJIU_BRIDGE_HOME && process.env.npm[redacted] === "cli") {
L5: const localHome = join(process.cwd(), ".xiaojiu");
L6: if (existsSync(join(localHome, "config.json"))) {
...
L17: import { fileURLToPath } from "url";
L18: var packageJsonPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "package.json");
L19: var manifest = JSON.parse(readFileSync(packageJsonPath, "utf8"));
L20: var packageName = manifest.name;
...
L24: import crossSpawn from "cross-spawn";
L25: import { execFile } from "child_process";
L26: function spawnProcess(command, args = [], options = {}) {
...
L87: let settled = false;
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepare, prepublishOnly
- **Dependencies:** 5
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 31
- **Published dependency-graph edges:** 5

### Published dependency entries
- @clack/prompts ^1.4.0 (Dependency)
- commander ^12.1.0 (Dependency)
- cross-spawn ^7.0.6 (Dependency)
- graceful-fs ^4.2.11 (Dependency)
- proper-lockfile ^4.1.2 (Dependency)

## Package metadata
- **Package:** @saltpub/xiaojiu-agent-bridge
- **Ecosystem:** npm
- **Version:** 0.1.1
- **License:** MIT
- **Version published:** 2026-09-15T06:53:04.197Z
- **Package first seen:** 2026-09-15T13:11:03.533Z
- **Package last seen:** 2026-11-03T12:34:54.674Z
- **Known versions:** 6
- **Latest version:** 0.1.7
- **Appeal under review:** No
- **Description:** Bridge Xiaojiu IM with local CLI coding agents
- **Maintainers:** salt-pub
- **Keywords:** xiaojiu, im, claude, claude-code, codex, cli, channel, bridge
- **Runtime engines:** node: \>=20.12.0
- **Artifact files:** 8
- **Artifact unpacked size:** 1,040,500 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@saltpub/xiaojiu-agent-bridge/v/0.1.1>)
