---
canonical: "https://firewall.lpm.dev/npm/@piecemaker-legal/piecemaker/v/1.0.1"
markdown: "https://firewall.lpm.dev/npm/@piecemaker-legal/piecemaker/v/1.0.1.md"
package: "@piecemaker-legal/piecemaker"
report_status: "published"
title: "@piecemaker-legal/piecemaker@1.0.1 npm security report"
verdict: "policy_finding"
version: "1.0.1"
---

# @piecemaker-legal/piecemaker@1.0.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 — allowed with a warning** — Allowed by default policy, but 32 findings warrant review before installing.

- **Verdict:** AI-agent control-surface policy finding
- **Product-default install policy:** Warn by default; block when configured
- **Firewall policy:** Warn by default
- **Public report status:** Published
- **Threat category:** Soft block: AI-agent control surface
- **Selected version:** 1.0.1
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This finding concerns changes to an AI agent's instructions or configuration without explicit user action. It does not by itself establish malware intent. The CLI warns by default and blocks when configured for this policy.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The package has a concrete automatic runtime capability to redirect or block other AI-agent clients by modifying their global configuration. Its install hook is limited to a node-pty permission repair, so the source does not establish malicious install-hook abuse.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 90.0%
- **Started:** 2026-09-11T10:53:42.049Z
- **Finished:** 2026-09-11T10:55:57.975Z
- **Download time:** 1012 ms
- **Static scan time:** 13306 ms
- **AI review time:** 121607 ms
- **Total time:** 135926 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:** Starting the server automatically starts a local proxy and changes global AI-agent configuration. It redirects Claude and Codex through the local proxy and places a Cursor guard first on PATH.

- **Trigger:** Importing or running the package server entry.

- **Impact:** Subsequent local agent sessions can be redirected or blocked until the package stops and removes its settings.

- **Evidence paths:** dist-server/server/piecemaker/index.js, server/piecemaker/anonymizer/service.cjs, server/piecemaker/anonymizer/providers.cjs, server/piecemaker/anonymizer/client-config.cjs

- **Review source:** ai\_review

- **Reviewed:** 2026-09-11T10:55:57.975Z

### AI review details

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

- **Mechanism:** Automatic runtime rewrite of AI-agent provider configuration.

- **Rationale:** The package has a concrete automatic runtime capability to redirect or block other AI-agent clients by modifying their global configuration. Its install hook is limited to a node-pty permission repair, so the source does not establish malicious install-hook abuse.

- **Files touched:** ~/.claude/settings.json, ~/.codex/config.toml, ~/.piecemaker/bin/cursor-agent

- **Network endpoints:** https://api.anthropic.com, https://chatgpt.com/backend-api/codex, https://api.openai.com

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 90.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for policy risk:** The published server entry starts a required anonymizer during module import., Server startup changes global Claude and Codex provider settings and prepends a Cursor guard to PATH., The Codex configuration is rewritten to select a package-controlled local provider., This control-surface mutation occurs when the server runs, without a separate configuration command.

- **Evidence against:** The install hook only changes execute permissions on node-pty helper binaries., The proxy routes traffic only to named AI-provider endpoints and binds locally., The broad agent configuration changes are runtime behavior, not an automatic npm install-time attack.

## Affected versions and remediation

This report applies to @piecemaker-legal/piecemaker@1.0.1.

- Review the evidence and your use of @piecemaker-legal/piecemaker@1.0.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.
- If this version ran, check your AI agents' configuration and instruction files (the files this report lists) for changes you did not make, and remove them. This finding does not by itself establish malware intent.

## Public findings

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

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/fix-node-pty.js
```

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

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

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

Package declares npm scripts.

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist-server/server/piecemaker/library/marketplace.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/piecemaker/library/marketplace.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L3: import { createRequire } from 'node:module';
L4: import { spawnSync } from 'node:child_process';
L5: import express from 'express';
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** server/piecemaker/vendor/installer/lib/service.mjs
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/server/piecemaker/vendor/installer/lib/service.mjs>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L71: * or not. lsof is available by default on macOS; fuser/ss cover common Linux
L72: * installs, while Windows exposes the owning PID through PowerShell.
L73: */
```

### 6. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/assets/vendor-xterm-BWUgpGtR.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist/assets/vendor-xterm-BWUgpGtR.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L1: var Ce={exports:{}},Re;function Pe(){return Re||(Re=1,(function(ue,me){(function(he,re){ue.exports=re()})(self,(()=>(()=>{var he={575:function(O,t,a){typeof self<"u"||typeof window...
L2: layout (location = 0) in vec2 a_unitquad;
```

### 7. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist-server/server/piecemaker/activation/library.test.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/piecemaker/activation/library.test.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L10: import test from 'node:test';
L11: const require = createRequire(import.meta.url);
L12: const { buildLibrary, installLibraryComponent, adoptGlobalComponent, listGlobalLeftovers, pieceMakerLibraryDirs, userLibraryDirs, } = require('./library.cjs');
```

### 8. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist-server/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/commits.cjs
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/commits.cjs>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L7: const zlib = require('node:zlib');
L8: const { spawn } = require('node:child_process');
L9: const { performance } = require('node:perf_hooks');
...
L44: * complète d'un projet Node, dont les 53 000 fichiers noyaient la liste de
L45: * l'administration (47 000 entrées) et faisaient entrer les `package.json` de
L46: * `node_modules` dans l'historique du dossier.
...
L53: const PERF_SLOW_MS = 250;
L54: const PERF_LOG_ALL = process.env.PIECEMAKER_PERF_LOG === '1';
L55: const COMMIT_USER_NAME_KEY = 'PIECEMAKER_USER_NAME';
...
L60: const DEFAULT_COMMIT_USER_NAME = 'PieceMaker';
L61: const GLOBAL_ENV_FILE = path.resolve(__dirname, '..', '..', '..', '.env');
L62: // Identité de commit partagée par tous les clones. `GLOBAL_ENV_FILE` est résolu
```

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

Package source references network APIs.

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

Package source references environment variables.

### 11. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** server/piecemaker/vendor/websocket-server/telegram-admin.cjs
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/server/piecemaker/vendor/websocket-server/telegram-admin.cjs>)

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

Public source snippet (untrusted):

```javascript
L4: const path = require('node:path');
L5: const { spawnSync } = require('node:child_process');
L6: const { isProtectedFile, readProtection } = require('../piecemaker-plugin/scripts/lib/protection.cjs');
...
L17: 'certificates', 'docs', 'electron', 'installer', 'orchestrator',
L18: 'output', 'piecemaker-plugin', 'test', 'websocket-server',
L19: ]);
...
L25: try {
L26: return fs.existsSync(file) ? JSON.parse(fs.readFileSync(file, 'utf8')) : fallback;
L27: } catch {
...
L43: try {
L44: return fs.readFileSync(path.join(stateDir, '.env'), 'utf8')
L45: .match(/^TELEGRAM_BOT_TOKEN=(.+)$/m)?.[1]
```

### 12. High: Entrypoint Build Divergence
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist-server/server/index.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/index.js>)

Manifest entrypoint contains risky behavior absent from dist/build output.

Public source snippet (untrusted):

```javascript
Manifest entrypoint (manifest.main) carries capability families absent from dist/build output: environment+network
L5: import path from 'path';
L6: import http from 'http';
L7: import express from 'express';
...
L35: import { configureWebPush } from './modules/notifications/index.js';
L36: const __dirname = getModuleDirectory(import.meta.url);
L37: // The server source runs from /server, while the compiled output runs from /dist-server/server.
...
L41: // Version of the code that is actually running, captured once at process
L42: // startup. This intentionally does NOT re-read package.json per request: after
L43: // an update replaces the files on disk, package.json reflects the NEW version
...
L48: try {
L49: return JSON.parse(fs.readFileSync(path.join(APP_ROOT, 'package.json'), 'utf8')).
```

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

Package source references filesystem APIs.

### 14. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist-server/server/modules/cli/pwa-launcher.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/cli/pwa-launcher.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: import { execFileSync, spawn } from 'node:child_process';
L2: import http from 'node:http';
L3: import fs from 'node:fs';
...
L9: function configuredPort() {
L10: const value = Number.parseInt(process.env.SERVER_PORT || process.env.PORT || '3001', 10);
L11: return Number.isFinite(value) && value > 0 ? value : 3001;
```

### 15. Critical: Persistence Backdoor
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** scripts/piecemaker/cli/install-command.mjs
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/scripts/piecemaker/cli/install-command.mjs>)

Source writes persistence or remote-access backdoor material.

Public source snippet (untrusted):

```javascript
L2: 
L3: import { execFileSync } from 'node:child_process';
L4: import fs from 'node:fs';
...
L13: const COMMAND_NAME = 'piecemaker';
L14: const isWindows = process.platform === 'win32';
L15: 
...
L69: function ensurePosixPathEntry() {
L70: const shellFiles = ['.zshrc', '.bashrc', '.profile']
L71: .map((name) => path.join(os.homedir(), name))
L72: .filter((file) => fs.existsSync(file));
```

### 16. Medium: Protestware
- **Category:** Supply Chain
- **Confidence:** 90.0%

Package source has broad protestware-like patterns that need review.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 19. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** server/piecemaker/vendor/websocket-server/scripts/mineru\_improved\_1.py
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/server/piecemaker/vendor/websocket-server/scripts/mineru_improved_1.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = [redacted]-server/scripts/mineru_improved_1.py
kind = build_helper
sizeBytes = 6558
magicHex = [redacted]
```

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

### 21. Low: Copyleft License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest declares a copyleft-style license.

### 22. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist-server/server/modules/assets/services/image-assets.service.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/assets/services/image-assets.service.js>)

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

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 22
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/server/modules/database/connection.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/database/connection.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 = wind-agent-cli@1.40.0
matchedPath = dist-[redacted].js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/server/modules/database/tests/provider-models.db.integration.test.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/database/tests/provider-models.db.integration.test.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 = wind-agent-cli@1.40.0
matchedPath = dist-[redacted]-models.db.integration.test.js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/server/modules/plugins/plugin-process.service.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/plugins/plugin-process.service.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 = wind-agent-cli@1.40.0
matchedPath = dist-[redacted]-process.service.js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 26. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/server/modules/providers/list/opencode/opencode-auth.provider.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/providers/list/opencode/opencode-auth.provider.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 = wind-agent-cli@1.40.0
matchedPath = dist-[redacted]-auth.provider.js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 27. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/generate-icons.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist/generate-icons.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 = wind-agent-cli@1.40.0
matchedPath = dist/generate-icons.js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 28. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/server/modules/cli/sandbox.service.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/cli/sandbox.service.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 = wind-agent-cli@1.40.0
matchedPath = dist-[redacted].service.js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 29. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/server/modules/projects/services/project-clone.service.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/projects/services/project-clone.service.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 = wind-agent-cli@1.40.0
matchedPath = dist-[redacted]-clone.service.js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 30. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/server/modules/system/system.module.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist-server/server/modules/system/system.module.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 = wind-agent-cli@1.40.0
matchedPath = dist-[redacted].module.js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 31. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 95.0%
- **Path:** dist/assets/diagram-VX7I27RA-BocYRSJX.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist/assets/diagram-VX7I27RA-BocYRSJX.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = token_shingles
matchedPackage = termdock@1.4.200
matchedPath = dist/client/assets/diagram-VX7I27RA-BO1XNjDC.js
matchedIdentity = npm:dGVybWRvY2s:1.4.200
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped finalized malicious source
```

### 32. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/assets/diagram-VX7I27RA-BocYRSJX.js
- **Public source:** [View source](<https://unpkg.com/@piecemaker-legal/piecemaker@1.0.1/dist/assets/diagram-VX7I27RA-BocYRSJX.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 = @piecemaker-legal/piecemaker@1.0.0
matchedIdentity = npm:[redacted]:1.0.0
similarity = 0.925
summary = stored previous version shares package body but lacks this dangerous source file
```

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

## Package metadata
- **Package:** @piecemaker-legal/piecemaker
- **Ecosystem:** npm
- **Version:** 1.0.1
- **License:** AGPL-3.0-or-later
- **Version published:** 2026-09-11T10:52:04.171Z
- **Package first seen:** 2026-09-11T10:26:09.894Z
- **Package last seen:** 2026-11-23T10:16:07.384Z
- **Known versions:** 54
- **Latest version:** 2.3.3
- **Appeal under review:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@piecemaker-legal/piecemaker/v/1.0.1>)
