Loading npm security reports…
Loading npm security reports…
@piecemaker-legal/piecemaker@1.0.0: Agent extension lifecycle | LPM Firewall
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Sep 11, 2026, 10:26 UTC · by lpm-firewall-ai The package has an automatic runtime agent-routing capability that changes global client configuration, which warrants a warning. Static inspection did not establish install-time control-surface mutation, secret theft, opaque remote payload execution, or a self-dependency lifecycle chain.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
Starting the package server or importing its server entry point.
Impact
Claude, Codex, OpenCode, and Cursor behavior can be changed for the local user while the server runs.
Mechanism
Automatic global AI-client configuration and local proxy routing.
Evidence
server/piecemaker/index.ts server/piecemaker/anonymizer/providers.cjs server/piecemaker/anonymizer/client-config.cjs server/piecemaker/anonymizer/proxy.cjs ~/.claude/settings.json ~/.codex/config.toml ~/.config/opencode/opencode.json <package binDir>/cursor-agent
api.anthropic.com chatgpt.com api.openai.com
Decision evidencepublic snapshot Evidence for warning
Server startup automatically starts an anonymizer service. The service rewrites Claude, Codex, and OpenCode client configuration and installs a Cursor command shim. The Codex configuration changes the selected model provider and adds a local proxy endpoint. The local proxy relays requests to Anthropic, ChatGPT Codex, and OpenAI endpoints. Evidence against
The npm postinstall hook only adjusts execute permissions on node-pty helper binaries. No runtime dependency on this package itself was found. The proxy targets named provider endpoints and is removed when the service stops. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Native bindings · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · Protestware · URL strings
Manifest Copyleft license
Scanned 844 files · 10.1 MB of source
45 external domains referenced
127.0.0.1 169.254.169.254 api.anthropic.com api.openai.com api.piste.gouv.fr chatgpt.com chevrotain.io cloudcli.ai cloudcli.example codex.example.com cursor.com discord.gg docs.anthropic.com docs.docker.com en.wikipedia.org example.com example.org gateway.exemple.fr github.com github.com.evil.example global.example.com jquery.org langium.org lodash.com mistral.ai oauth.piste.gouv.fr opencode.ai opencode.example.com openjsf.org pandoc.org piste.gouv.fr push.example.test reactjs.org registry.ollama.ai rustup.rs sh.rustup.rs taskmaster.example.test tiers.exemple.fr tldrlegal.com underscorejs.org voice.example www.apple.com www.legifrance.gouv.fr www.libreoffice.org www.w3.org Oversized source lightweight scan
dist/assets/index-dWwHeqcq.js 2.93 MB file, sampled 256 KB
Network Child process High entropy strings Minified URL strings api.openai.com cloudcli.ai discord.gg github.com reactjs.org www.legifrance.gouv.fr www.w3.org
Findings2 critical · 16 high · 7 medium · 8 low Source & flagged code23 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Scanner record · 1 line scripts.postinstall = node scripts/fix-node-pty.js
Critical Critical secret
Package contains a critical-looking secret pattern.
server/piecemaker/vendor/.env View on unpkg · L1 Code excerpt · 7 lines patternName = blocked_file
severity = critical
blockedFile = server/piecemaker/vendor/.env
redactedSecretContext =
secretLikeLines = 2
1 PYTHON_PATH=<redacted:42 token-like>
2 SMART_CONVERTER_PATH=<redacted:126 token-like>
dist-server/server/piecemaker/library/marketplace.js View file High Child process
Package source references child process execution.
dist-server/server/piecemaker/library/marketplace.js View on unpkg · L3 Code excerpt · 3 lines 3 import { createRequire } from 'node:module' ;
4 import { spawnSync } from 'node:child_process' ;
5 import express from 'express' ;
server/piecemaker/vendor/installer/lib/service.mjs View file High Shell
Package source references shell execution.
server/piecemaker/vendor/installer/lib/service.mjs View on unpkg · L71 Code excerpt · 3 lines 71 * or not. lsof is available by default on macOS; fuser/ss cover common Linux
72 * installs, while Windows exposes the owning PID through PowerShell.
73 */
dist/assets/vendor-xterm-CS4rQ5Mr.js View file Low Eval
Package source references a known benign dynamic code generation pattern.
dist/assets/vendor-xterm-CS4rQ5Mr.js View on unpkg · L1 Code excerpt · 2 lines 1 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<"...
2 layout (location = 0 ) in vec2 a_unitquad;
dist-server/server/piecemaker/activation/library.test.js View file Medium Dynamic require
Package source references dynamic require/import behavior.
dist-server/server/piecemaker/activation/library.test.js View on unpkg · L10 Code excerpt · 3 lines 10 import test from 'node:test' ;
11 const require = createRequire (import .meta.url);
12 const { buildLibrary, installLibraryComponent, adoptGlobalComponent, listGlobalLeftovers, pieceMakerLibraryDirs, userLibraryDirs, } = require ('./library.cjs' );
dist-server/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/commits.cjs View file Low Weak crypto
Package source references weak cryptographic algorithms.
dist-server/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/commits.cjs View on unpkg · L7 Code excerpt · 12 lines 7 const zlib = require ('node:zlib' );
8 const { spawn } = require ('node:child_process' );
9 const { performance } = require ('node:perf_hooks' );
⋯
44 * complète d'un projet Node, dont les 53 000 fichiers noyaient la liste de
45 * l'administration (47 000 entrées) et faisaient entrer les `package.json` de
46 * dans l
server/piecemaker/vendor/websocket-server/telegram-admin.cjs View file Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
server/piecemaker/vendor/websocket-server/telegram-admin.cjs View on unpkg · L4 Code excerpt · 12 lines 4 const path = require ('node:path' );
5 const { spawnSync } = require ('node:child_process' );
6 const { isProtectedFile, readProtection } = require ('../piecemaker-plugin/scripts/lib/protection.cjs' );
⋯
17 'certificates' , 'docs' , 'electron' , 'installer' , 'orchestrator' ,
18
High Entrypoint build divergence
Manifest entrypoint contains risky behavior absent from dist/build output.
dist-server/server/index.js View on unpkg · L5 Code excerpt · 12 lines Manifest entrypoint (manifest.main) carries capability families absent from dist/build output: environment+network
5 import path from 'path' ;
6 import http from 'http' ;
7 import express from 'express' ;
⋯
35 import { configureWebPush } from './modules/notifications/index.js' ;
36 const __dirname = getModuleDirectory (import .meta.url);
dist-server/server/modules/cli/pwa-launcher.js View file High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist-server/server/modules/cli/pwa-launcher.js View on unpkg · L1 Code excerpt · 6 lines 1 import { execFileSync, spawn } from 'node:child_process' ;
2 import http from 'node:http' ;
3 import fs from 'node:fs' ;
⋯
9 function configuredPort () {
10 const value = Number.parseInt (process.env.SERVER_PORT || process.env.PORT || '3001' , 10 );
11
scripts/piecemaker/cli/install-command.mjs View file Critical Persistence backdoor
Source writes persistence or remote-access backdoor material.
scripts/piecemaker/cli/install-command.mjs View on unpkg · L2 Code excerpt · 9 lines 3 import { execFileSync } from 'node:child_process' ;
4 import fs from 'node:fs' ;
⋯
13 const COMMAND_NAME = 'piecemaker' ;
14 const isWindows = process.platform === 'win32' ;
15
⋯
69 function ensurePosixPathEntry () {
70 const shellFiles = ['.zshrc' , '.bashrc' , ]
server/piecemaker/vendor/websocket-server/scripts/mineru_improved_1.py View file Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
server/piecemaker/vendor/websocket-server/scripts/mineru_improved_1.py View on unpkg Scanner record · 4 lines path = [redacted]-server/scripts/mineru_improved_1.py
kind = build_helper
sizeBytes = 6558
magicHex = [redacted]
dist-server/server/modules/assets/services/image-assets.service.js View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist-server/server/modules/assets/services/image-assets.service.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 22
dist-server/server/modules/database/connection.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist-server/server/modules/database/connection.js View on unpkg Scanner record · 6 lines 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
dist-server/server/modules/database/tests/provider-models.db.integration.test.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist-server/server/modules/database/tests/provider-models.db.integration.test.js View on unpkg Scanner record · 6 lines 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
dist-server/server/modules/plugins/plugin-process.service.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist-server/server/modules/plugins/plugin-process.service.js View on unpkg Scanner record · 6 lines 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
dist-server/server/modules/providers/list/opencode/opencode-auth.provider.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist-server/server/modules/providers/list/opencode/opencode-auth.provider.js View on unpkg Scanner record · 6 lines 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
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/generate-icons.js View on unpkg Scanner record · 6 lines 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
dist-server/server/modules/cli/sandbox.service.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist-server/server/modules/cli/sandbox.service.js View on unpkg Scanner record · 6 lines 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
dist-server/server/modules/projects/services/project-clone.service.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist-server/server/modules/projects/services/project-clone.service.js View on unpkg Scanner record · 6 lines 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
dist-server/server/modules/system/system.module.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist-server/server/modules/system/system.module.js View on unpkg Scanner record · 6 lines 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
dist/assets/cytoscape.esm-C10L9Icf.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/assets/cytoscape.esm-C10L9Icf.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = termdock@1.4.200
matchedPath = dist/client/assets/cytoscape.esm-D3_iZ_3b.js
matchedIdentity = npm:dGVybWRvY2s:1.4.200
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist/assets/flowDiagram-UKHOOZJN-Dsp5LwJz.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/assets/flowDiagram-UKHOOZJN-Dsp5LwJz.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = wind-agent-cli@1.40.0
matchedPath = dist/assets/flowDiagram-UKHOOZJN-B6Mhs2_G.js
matchedIdentity = npm:d2luZC1hZ2VudC1jbGk:1.40.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist-server/server/modules/cli/pwa-launcher.js1 finding
Package metadata 10 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
dist-server/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/commits.cjs1 finding
Low Weak crypto Code↓ `node_modules`
'historique du dossier.
53 const PERF_SLOW_MS = 250 ;
54 const PERF_LOG_ALL = process.env.PIECEMAKER_PERF_LOG === '1' ;
55 const COMMIT_USER_NAME_KEY = 'PIECEMAKER_USER_NAME' ;
60 const DEFAULT_COMMIT_USER_NAME = 'PieceMaker' ;
61 const GLOBAL_ENV_FILE = path.resolve (__dirname, '..' , '..' , '..' , '.env' );
62 // Identité de commit partagée par tous les clones. `GLOBAL_ENV_FILE` est résolu
'output' , 'piecemaker-plugin' , 'test' , 'websocket-server' ,
26 return fs.existsSync (file) ? JSON.parse (fs.readFileSync (file, 'utf8' )) : fallback;
44 return fs.readFileSync (path.join (stateDir, '.env' ), 'utf8' )
45 .match (/^TELEGRAM_BOT_TOKEN=(.+)$/m)?.[1 ]
37
// The server source runs from /server, while the compiled output runs from /dist-server/server.
41 // Version of the code that is actually running, captured once at process
42 // startup. This intentionally does NOT re-read package.json per request: after
43 // an update replaces the files on disk, package.json reflects the NEW version
49 return JSON.parse (fs.readFileSync (path.join (APP_ROOT, 'package.json' ), 'utf8' )).
return Number.isFinite (value) && value > 0 ? value : 3001 ;
'.profile'
71 .map ((name) => path.join (os.homedir (), name))
72 .filter ((file) => fs.existsSync (file));