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

# patchcord@0.6.18 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 15 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 0.6.18
- **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 explicit CLI installer automatically sends the current working directory to Patchcord's service, and paths can identify a user or project. This is a telemetry concern; the inspected package has no install lifecycle hook, and this request does not show credential or file-content collection.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 89.0%
- **Started:** 2026-11-08T21:51:35.305Z
- **Finished:** 2026-11-08T21:52:16.652Z
- **Download time:** 511 ms
- **Static scan time:** 493 ms
- **AI review time:** 40342 ms
- **Total time:** 41347 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 CLI installer reports the project's current working directory to Patchcord as the agent installation path.

- **Trigger:** Running the install flow when an agent token is available.

- **Impact:** Patchcord receives identifying local path information without a distinct consent step for this report; this is a telemetry concern.

- **Evidence paths:** bin/patchcord.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-11-08T21:52:16.652Z

### AI review details

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

- **Mechanism:** The installer submits the cwd in an authenticated POST to the server's /api/agent/install-path endpoint. The working directory may contain a username or project identifier.

- **Rationale:** The explicit CLI installer automatically sends the current working directory to Patchcord's service, and paths can identify a user or project. This is a telemetry concern; the inspected package has no install lifecycle hook, and this request does not show credential or file-content collection.

- **Network endpoints:** mcp.patchcord.dev

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 89.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** When the CLI installer runs with a token, it sends the current working directory as install\_path to the server's /api/agent/install-path endpoint., The default server host is mcp.patchcord.dev; the installer can also use a server URL supplied for self-hosting.

- **Evidence against:** package.json declares no install, preinstall, or postinstall lifecycle hook; the package exposes the code as an explicit CLI command., The reported path is sent to Patchcord's own service with the agent token, and the inspected code does not show credentials or file contents being collected for this request., Agent configuration changes and the global CLI setup are inside the explicitly invoked installer flow.

## Affected versions and remediation

This report applies to patchcord@0.6.18.

- Review the evidence and your use of patchcord@0.6.18 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: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/patchcord.mjs
- **Public source:** [View source](<https://unpkg.com/patchcord@0.6.18/bin/patchcord.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L5: import { fileURLToPath } from "url";
L6: import { execSync } from "child_process";
L7: import { homedir } from "os";
```

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

Package source references shell execution.

### 4. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** scripts/lib/ws.mjs
- **Public source:** [View source](<https://unpkg.com/patchcord@0.6.18/scripts/lib/ws.mjs>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L1: // Minimal WebSocket client (RFC 6455 subset).
L2: // Zero dependencies, stdlib only — TLS + HTTP/1.1 Upgrade + text frames.
...
L18: const port = url.port ? Number(url.port) : isTls ? 443 : 80;
L19: const key = randomBytes(16).toString("base64");
L20: const expectedAccept = createHash("sha1").update(key + GUID).digest("base64");
...
L49: try {
L50: socket.write(encodeFrame(0x8, closePayload(code, reason), true));
L51: } catch (_) {}
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 8. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bin/patchcord.mjs
- **Public source:** [View source](<https://unpkg.com/patchcord@0.6.18/bin/patchcord.mjs>)

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

Public source snippet (untrusted):

```javascript
L5: import { fileURLToPath } from "url";
L6: import { execSync } from "child_process";
L7: import { homedir } from "os";
L8: 
L9: const HOME = homedir();
L10: 
...
L17: const { readFileSync: _rf } = await import("fs");
L18: const { version } = JSON.parse(_rf(join(__dirname, "..", "package.json"), "utf-8"));
L19: process.stdout.write(`${version}\n`);
L20: process.exit(0);
...
L190: function _kimiContextRequested(options = {}) {
L191: return harnessContext(process.env, options).preferKimi;
```

### 9. High: External Ai Agent Control Surface Mutation
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** bin/patchcord.mjs
- **Public source:** [View source](<https://unpkg.com/patchcord@0.6.18/bin/patchcord.mjs>)

Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.

Public source snippet (untrusted):

```javascript
Runtime or CLI code links a write operation to an explicit external AI-agent control path:
onnect a second agent:${r}`);
    console.log(`  ${dim}cd into another project and run${r} ${bold}npx patchcord@latest${r} ${dim}there.${r}`);
  }

  if (isopenclaw) {
    console.log(`\n${dim}run${r} ${bold}openclaw gateway restart${r}${dim}, then tools will be available in your channels.${r}`);
  } else if (iskimicode) {
    console.log(`\n  ${green}→${r} ${bold}restart ${cyan}kimi${r}${bold} in this project (or run ${cyan}/reload${r}${bold}), then say: ${cyan}${bold}check inbox${r}`);
  } else if (iskimi) {
    console.log(`\n  ${green}→${r} ${bold}restart your ${toolname} session with ${cyan}kimi-pc${r}${bold}, then say: ${cyan}${bold}check inbox${r}`);
  } else if (iscursor && hascursoragent) {
```

### 10. High: Trigger Reachable External Ai Agent Control Surface Mutation
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** bin/patchcord.mjs
- **Public source:** [View source](<https://unpkg.com/patchcord@0.6.18/bin/patchcord.mjs>)

Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.

Public source snippet (untrusted):

```javascript
Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
mihookdest}"\ntimeout = 10\n`;

      mkdirsync(dirname(kimiconfigpath), { recursive: true });
      writefilesync(kimiconfigpath, kimiconfig);
      hookchanged = true;

                                                                              
                                                                             
                                                                               
                                     
      const legacykimihome = join(home, ".kimi");
      for (const f of ["patchcord-stop-hook.sh", "patchcord-session-start.sh", "patchcord-prompt-hook.sh", "patchcord-subscribe.sh"]) {
        const p = join(legacykimihome, f);
        if (
```

### 11. High: Runtime Package Install
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** bin/patchcord.mjs
- **Public source:** [View source](<https://unpkg.com/patchcord@0.6.18/bin/patchcord.mjs>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```javascript
L1664: if (cmd === "update" || cmd === "--update") {
L1665: const { spawnSync: _spawn } = await import("child_process");
L1666: const r = _spawn("npx", ["--min-release-age=0", "patchcord@latest", "--update-only"], { stdio: "inherit" });
L1667: process.exit(r.status ?? (r.signal ? 1 : 0));
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 14. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** scripts/kimi-subscribe.sh
- **Public source:** [View source](<https://unpkg.com/patchcord@0.6.18/scripts/kimi-subscribe.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = scripts/kimi-subscribe.sh
kind = build_helper
sizeBytes = 5310
magicHex = [redacted]
```

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

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** patchcord
- **Ecosystem:** npm
- **Version:** 0.6.18
- **License:** MIT
- **Version published:** 2026-07-17T18:28:41.040Z
- **Package first seen:** 2026-07-04T13:04:41.544Z
- **Package last seen:** 2026-11-10T01:30:35.937Z
- **Known versions:** 48
- **Latest version:** 0.6.80
- **Appeal under review:** No
- **Description:** Cross-machine agent messaging for Claude Code and Codex
- **Author:** ppravdin
- **Maintainers:** ppravdin
- **Keywords:** claude-code, codex, mcp, agent, messaging, plugin
- **Artifact files:** 40
- **Artifact unpacked size:** 310,762 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/patchcord/v/0.6.18>)
- [Repository](<https://github.com/ppravdin/patchcord>)
- [Homepage](<https://patchcord.dev/>)
- [Issues](<https://github.com/ppravdin/patchcord/issues>)
