Loading npm security reports…
Loading npm security reports…
@piecemaker-legal/piecemaker@2.2.0: npm security report – allowed | LPM Firewall
Allowed — no malicious behavior detected
31 low-signal patterns reviewed and cleared.
AI security reviewscanned on Nov 1, 2026, 15:23 UTC · by lpm-firewall-ai The install hook only repairs node-pty permissions, while shell profile changes require direct invocation of a separate installer CLI. Runtime agent guidance and updater behavior are consistent with the application’s purpose, and updates are behind an authenticated request.
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
Postinstall repairs node-pty permissions on macOS; the command installer runs when invoked directly; updates run through an authenticated update request; agent guidance migration runs with the server for registered projects that already contain CLAUDE.md.
Impact
No malicious collection, credential transfer, or unrelated persistence was found. Normal configuration changes and update execution are tied to the application’s setup and update functions.
Mechanism
The package adjusts local helper permissions, may add its command to PATH when explicitly installed, fetches configured product update scripts on request, and supplies project-specific agent guidance.
Evidence
node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper node_modules/node-pty/prebuilds/darwin-x64/spawn-helper ~/.zshrc ~/.bashrc ~/.profile CLAUDE.md
AGENTS.md
Network endpoints2
raw.githubusercontent.com 127.0.0.1
Decision evidencepublic snapshot Evidence for AI clean decision
The package entry points are the PieceMaker server and its CLI. The postinstall hook only fixes execute permissions on node-pty helper binaries on macOS. The separate command installer modifies PATH and shell startup files only when invoked directly as a CLI. Desktop updates are exposed through an authenticated API route and fetch installer scripts from the configured product repository. Evidence against
When the server runs, it can add PieceMaker guidance to Claude and agent instruction files in registered projects that already contain CLAUDE.md. The desktop updater executes installer scripts fetched from the configured repository after an update request. 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 1,327 files · 20.3 MB of source
50 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 console.mistral.ai cursor.com developer.mozilla.org discord.gg docs.anthropic.com docs.docker.com docxtemplater.com download.documentfoundation.org en.wikipedia.org example.com example.invalid example.org example.test exemple.com fb.me fonts.googleapis.com foo.bar gateway.exemple.fr git.example.invalid git.example.test github.com github.com.evil.example github.com.helper gitlab.com global.example.com langium.org locize.com login.tailscale.com mistral.ai ns.adobe.com oauth.piste.gouv.fr opencode.ai opencode.example.com openssh.com pandoc.org piste.gouv.fr pkgs.tailscale.com prosemirror.net purl.oclc.org Findings2 critical · 12 high · 7 medium · 10 low Source & flagged code21 flagged The lines the automated scan flagged. The review checked them and cleared this version.
High Install time lifecycle scriptsCleared
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/folder-history/git.js View file High Child processCleared
Package source references child process execution.
dist-server/server/piecemaker/folder-history/git.js View on unpkg · L1 Code excerpt · 2 lines 1 import { spawn } from 'node:child_process' ;
2 import { access, mkdir, readFile, realpath, writeFile } from 'node:fs/promises' ;
dist-server/server/piecemaker/vendor/websocket-server/admin-routes.cjs View file High ShellCleared
Package source references shell execution.
dist-server/server/piecemaker/vendor/websocket-server/admin-routes.cjs View on unpkg · L1498 Code excerpt · 3 lines 1498 { command: 'wt.exe' , args: ['-d' , absolutePath] },
1499 // Repli sans Windows Terminal : PowerShell ouvre l'invite de commandes
1500 // dans le dossier, `-WorkingDirectory` évite tout `cd` à échapper.
Low EvalCleared
Package source references a known benign dynamic code generation pattern.
dist/assets/index-CIEembIH.js View on unpkg · L3830 Code excerpt · 3 lines 3830 `),a=r.length>WP;return{lines:a?r.slice(0,WP):r,isCharacterTruncated:t,isLineTruncated:a}}function GS({diff:e,isMobile:t,wrapText:n}){const r=f.useMemo(()=>s3e(e||""),[e]),a=r.isCh...
3831 \0 `,J+=o(W,2),J+=w.magic,J+=o(k,2),J+=o(S,2),J+=o(I.crc32,4),J+=o(I.compressedSize,4),J+=o(I.uncompressedSize,4),J+=o(N.length,2),J+=o(q.length,2),{fileRecord:p.LOCAL_FILE_HEADER+J...
3832 `):xa(e);return/"index":true/.test(t)?null:nTe.exec(t)?.[1]??null}function WL(e){const t=xa(e.projet);return e.action==="ouvrir"?t?{kind:"tabular-review",review:null,draft:t}:{kind...
dist-server/server/piecemaker/local-models.test.js View file Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist-server/server/piecemaker/local-models.test.js View on unpkg · L6 Code excerpt · 3 lines 6 import test from 'node:test' ;
7 const require = createRequire (import .meta.url);
8 const { localModelRemovalTargets, removeLocalModel } = require ('./local-models.cjs' );
dist-server/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/commits.cjs View file Low Weak cryptoCleared
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' );
⋯
46 * complète d'un projet Node, dont les 53 000 fichiers noyaient la liste de
47 * l'administration (47 000 entrées) et faisaient entrer les `package.json` de
48
scripts/piecemaker/cli/install-command.mjs View file Critical Persistence backdoorCleared
Source writes persistence or remote-access backdoor material.
scripts/piecemaker/cli/install-command.mjs View on unpkg · L2 Medium Install persistenceCleared
Source writes installer persistence such as shell profile or service configuration.
scripts/piecemaker/cli/install-command.mjs View on unpkg · L2 Shared code excerpt · 2 findings · 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' ;
High Entrypoint build divergenceCleared
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/piecemaker/desktop-update/index.js View file High Same file environment network executionCleared
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist-server/server/piecemaker/desktop-update/index.js View on unpkg · L38 Code excerpt · 9 lines 38 }
39 spawn ('sh' , ['-c' , command], { cwd: os.homedir (), env: environment, detached: true , stdio: 'ignore' }).unref ();
40 }
⋯
46 applicationPid: process.ppid,
47 environment: process.env,
48 runInstaller,
⋯
53 throw new Error ( );
server/piecemaker/vendor/piecemaker-plugin/skills/style-redaction-cabinet/templates/assignation.docx View file High Ships high entropy blobCleared
Package ships high-entropy non-source blobs.
server/piecemaker/vendor/piecemaker-plugin/skills/style-redaction-cabinet/templates/assignation.docx View on unpkg Scanner record · 4 lines path = [redacted]-plugin/skills/style-redaction-cabinet/templates/assignation.docx
kind = high_entropy_blob
sizeBytes = 55826
magicHex = [redacted]
Medium Ships compressed blobCleared
Package ships compressed or archive-like blobs.
server/piecemaker/vendor/piecemaker-plugin/skills/style-redaction-cabinet/templates/assignation.docx View on unpkg Scanner record · 4 lines
server/piecemaker/vendor/mcp/legifrance/tests/test_limite_resultats.py View file High Payload in excluded dirCleared
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
server/piecemaker/vendor/mcp/legifrance/tests/test_limite_resultats.py View on unpkg Scanner record · 4 lines path = [redacted]test_limite_resultats.py
kind = payload_in_excluded_dir
sizeBytes = 6096
magicHex = [redacted]
dist-server/server/modules/assets/services/image-assets.service.js View file High Semantic analysis limitedCleared
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 = 32
dist-server/server/modules/database/connection.js View file High Known malware source similarityCleared
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/cli/sandbox.service.js View file High Known malware source similarityCleared
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/system/system.module.js View file High Known malware source similarityCleared
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-B3-CF49J.js View file High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/assets/diagram-VX7I27RA-B3-CF49J.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
dist-server/server/piecemaker/mistral-sdk/runtime.js View file Critical Previous version dangerous deltaCleared
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist-server/server/piecemaker/mistral-sdk/runtime.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @piecemaker-legal/piecemaker@2.1.0
matchedIdentity = npm:[redacted]:2.1.0
similarity = 0.983
summary = stored previous version shares package body but lacks this dangerous source file
High Shell Code↓ Cleared
Package metadata 10 findings
Medium Network Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Low Non install lifecycle scripts Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
Low Copyleft license Cleared
* `node_modules` dans l'historique du dossier.
55 const PERF_SLOW_MS = 250 ;
56 const PERF_LOG_ALL = process.env.PIECEMAKER_PERF_LOG === '1' ;
57 const COMMIT_USER_NAME_KEY = 'PIECEMAKER_USER_NAME' ;
62 const DEFAULT_COMMIT_USER_NAME = 'PieceMaker' ;
63 const GLOBAL_ENV_FILE = path.resolve (__dirname, '..' , '..' , '..' , '.env' );
64 // Identité de commit partagée par tous les clones. `GLOBAL_ENV_FILE` est résolu
69 function ensurePosixPathEntry () {
70 const shellFiles = ['.zshrc' , '.bashrc' , '.profile' ]
71 .map ((name) => path.join (os.homedir (), name))
72 .filter ((file) => fs.existsSync (file));
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' )).
'Adresse de mise à jour locale invalide.'
54 const response = await fetch (endpoint, { method: 'POST' });
55 return await response.json ();
path = [redacted]-plugin/skills/style-redaction-cabinet/templates/assignation.docx
Low Nested archive needs inspectionCleared
Package ships a nested archive or MCP bundle that was inventoried but not recursively analyzed.
server/piecemaker/vendor/piecemaker-plugin/skills/style-redaction-cabinet/templates/assignation.docx View on unpkg Scanner record · 4 lines path = [redacted]-plugin/skills/style-redaction-cabinet/templates/assignation.docx
kind = nested_archive_needs_inspection
sizeBytes = 55826
magicHex = [redacted]