Loading npm security reports…
Loading npm security reports…
@piecemaker-legal/piecemaker@2.0.9: 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 Oct 11, 2026, 22:30 UTC · by lpm-firewall-ai Source inspection found an agent plugin and connector lifecycle capability that can modify workspace agent configuration, supporting a warning. The npm postinstall hook is a macOS-only dependency permission fix, and no concrete malicious behavior was established.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
A user invokes plugin acquisition or enables a collection in the application.
Impact
The capability can alter a workspace’s agent integrations; no automatic install-time agent configuration or confirmed attack behavior was identified.
Mechanism
Plugin and connector management can install plugin content and write connector settings into agent configuration files for the selected workspace.
Evidence
dist-server/server/modules/plugins/plugin-registry.service.js dist-server/server/piecemaker/library/connector-installation.js dist-server/server/piecemaker/library/marketplace.js dist-server/server/piecemaker/library/migrate.js dist-server/server/piecemaker/library/store.js
Decision evidencepublic snapshot Evidence for warning
The postinstall hook runs a macOS-only permission fix for the package’s node-pty helper. The plugin registry supports installing user-selected Git plugins. Connector activation writes MCP settings into the selected workspace’s agent configuration files. Marketplace acquisition is exposed as an explicit request, and collection activation requires a boolean choice. Evidence against
The install hook does not configure agent settings; it only adjusts permissions for a bundled dependency helper. Connector configuration is scoped to a selected workspace and is activated through the application’s collection controls. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · Telemetry · URL strings
Manifest Copyleft license
Scanned 811 files · 12.1 MB of source
45 external domains referenced
127.0.0.1 169.254.169.254 api.anthropic.com api.example.com api.exemple.com api.github.com api.openai.com api.piste.gouv.fr chevrotain.io cloudcli.example codex.example.com cursor.com developer.mozilla.org discord.gg docs.anthropic.com docs.docker.com en.wikipedia.org example.com fb.me github.com github.com.evil.example global.example.com langium.org locize.com mistral.ai oauth.piste.gouv.fr opencode.ai opencode.example.com pandoc.org piste.gouv.fr push.example.test raw.githubusercontent.com reactjs.org registre-public.com registry.ollama.ai stuk.github.io tailwindcss.com taskmaster.example.test voice.example www.apple.com www.i18next.com www.legifrance.gouv.fr www.libreoffice.org www.react-grab.com www.w3.org Findings2 critical · 14 high · 6 medium · 9 low Source & flagged code21 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
dist-server/server/piecemaker/bodacc-search.js View file High Child process
Package source references child process execution.
dist-server/server/piecemaker/bodacc-search.js View on unpkg · L1 Code excerpt · 2 lines 1 import { spawn } from 'node:child_process' ;
2 import { existsSync, readFileSync, readdirSync } from 'node:fs' ;
server/piecemaker/vendor/websocket-server/admin-routes.cjs View file High Shell
Package source references shell execution.
server/piecemaker/vendor/websocket-server/admin-routes.cjs View on unpkg · L162 Code excerpt · 3 lines 162 ].join ('; ' );
163 return [{ command: 'powershell.exe' , args: ['-NoProfile' , '-STA' , '-Command' , script, start] }];
164 }
Low Eval
Package source references a known benign dynamic code generation pattern.
dist/assets/index-tibHq7Qp.js View on unpkg · L3955 Code excerpt · 3 lines 3955 `})]})}function ZHe({running:e,t}){return e?o.jsxs("span",{className:"relative flex items-center gap-1.5",children:[o.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[o...
3956 \0 `,X+=s(V,2),X+=k.magic,X+=s(w,2),X+=s(S,2),X+=s(M.crc32,4),X+=s(M.compressedSize,4),X+=s(M.uncompressedSize,4),X+=s(E.length,2),X+=s(q.length,2),{fileRecord:u.LOCAL_FILE_HEADER+X...
3957 `),i=(a[0]??"").match(/^a\/(.+?) b\/(.+)/);if(!i)continue;const l=i[1],c=i[2];let d="M";const p=a.slice(0,6).join(`
dist-server/server/piecemaker/index.js View file Medium Dynamic require
Package source references dynamic require/import behavior.
dist-server/server/piecemaker/index.js View on unpkg · L26 Code excerpt · 3 lines 26 const shellEnvironment = await resolveDesktopShellEnvironment ();
27 const vendor = createRequire (import .meta.url)(routerPath);
28 export const { piecemakerHome, stopOriginalsJobs } = vendor;
dist-server/server/modules/providers/list/cursor/cursor-sessions.provider.js View file Low Weak crypto
Package source references weak cryptographic algorithms.
dist-server/server/modules/providers/list/cursor/cursor-sessions.provider.js View on unpkg · L106 Code excerpt · 6 lines 106 try {
107 return JSON.parse (trimmed);
108 }
⋯
172 const { default : Database } = await import ('better-sqlite3' );
173 const cwdId = crypto.createHash ('md5' ).update (projectPath || process.cwd ()).digest ('hex' );
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' ;
⋯
36 import { configureWebPush } from './modules/notifications/index.js' ;
37 const __dirname = getModuleDirectory (import .meta.url);
dist-server/server/modules/cli/pwa-launcher.js View file Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist-server/server/modules/cli/pwa-launcher.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @piecemaker-legal/piecemaker@1.0.1
matchedIdentity = npm:[redacted]:1.0.1
similarity = 0.483
summary = stored previous version shares package body but lacks this dangerous source 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' ;
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 = 6807
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 = 15
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
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/diagram-VX7I27RA-CHkiMOVA.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/diagram-VX7I27RA-CHkiMOVA.js View on unpkg Scanner record · 7 lines matchType = token_shingles
matchedPackage = termdock@1.4.66
matchedPath = dist/client/assets/diagram-G47NLZAW-gFduWt1a.js
matchedIdentity = npm:dGVybWRvY2s:1.4.66
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped finalized malicious source
Package metadata 10 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
dist-server/server/modules/providers/list/cursor/cursor-sessions.provider.js1 finding
Low Weak crypto Code↓ 174 const safeSessionId = sanitizeLeafDirectoryName (sessionId, 'cursor session id' );
'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 ]
38
// The server source runs from /server, while the compiled output runs from /dist-server/server.
42 // Version of the code that is actually running, captured once at process
43 // startup. This intentionally does NOT re-read package.json per request: after
44 // an update replaces the files on disk, package.json reflects the NEW version
50 return JSON.parse (fs.readFileSync (path.join (APP_ROOT, 'package.json' ), 'utf8' )).
2 import http from 'node:http' ;
3 import fs from 'node:fs' ;
10 function configuredPort () {
11 const value = Number.parseInt (process.env.SERVER_PORT || process.env.PORT || '3001' , 10 );
12 return Number.isFinite (value) && value > 0 ? value : 3001 ;
'.profile'
71 .map ((name) => path.join (os.homedir (), name))
72 .filter ((file) => fs.existsSync (file));