Loading npm security reports…
Loading npm security reports…
@piecemaker-legal/piecemaker@2.0.23: AI-agent capability abuse | LPM Firewall
Flagged as AI-agent capability risk
Allowed by default with warning: agent-facing configuration or capability changes need review before use.
AI security reviewscanned on Oct 11, 2026, 22:31 UTC · by lpm-firewall-ai The inspected lifecycle hooks are ordinary setup, and the agent configuration writes are exposed through explicit setup operations. The source supports a guarded agent capability warning, but does not establish an active attack.
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 agent-library setup or posts to the project agent-instructions route.
Impact
Project agent behavior can change when the user chooses these setup actions; no confirmed attack behavior was identified.
Mechanism
The library copies selected components into project Claude or Codex agent directories, while the route creates project instruction files.
Evidence
dist-server/server/piecemaker/activation/library.cjs dist-server/server/piecemaker/agent-instructions.js
public snapshot
Evidence for warning
The npm postinstall hook runs a node-pty fix script; prepare runs Husky. The agent library exposes an operation that copies selected library components into a project’s Claude or Codex agent directories. A project API route creates CLAUDE.md and AGENTS.md files for a requested project. Plugin dependency installation uses npm with --ignore-scripts. Evidence against
The inspected agent configuration changes are tied to explicit setup operations, not npm install hooks. No inspected source established credential theft, unrelated configuration takeover, or another concrete attack. 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 971 files · 14.7 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 cursor.com developer.mozilla.org discord.gg docs.anthropic.com docs.docker.com docxtemplater.com en.wikipedia.org example.com example.org example.test exemple.com fb.me fonts.googleapis.com gateway.exemple.fr 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 prosemirror.net purl.oclc.org purl.org push.example.test raw.githubusercontent.com reactjs.org registre-public.com registry.ollama.ai schemas.microsoft.com schemas.openxmlformats.org stuk.github.io tailwindcss.com taskmaster.example.test voice.example 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, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } 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 · L1476 Code excerpt · 3 lines 1476 { command: 'wt.exe' , args: ['-d' , absolutePath] },
1477 // Repli sans Windows Terminal : PowerShell ouvre l'invite de commandes
1478 // dans le dossier, `-WorkingDirectory` évite tout `cd` à échapper.
Low Eval
Package source references a known benign dynamic code generation pattern.
dist/assets/index-DZUAbM-L.js View on unpkg · L3955 Code excerpt · 3 lines 3955 `})]})}function bqe({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:p.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 u=a.slice(0,6).join(`
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
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 Medium Install persistence
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' ;
15
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/piecemaker/anonymizer/service.cjs 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/piecemaker/anonymizer/service.cjs View on unpkg · L163 Code excerpt · 8 lines 163 }
164 const upstream = resolveUpstream (process.env.ANTHROPIC_BASE_URL);
165 const hosts = [...new Set ([...INTERCEPTED_HOSTS, new URL (upstream).hostname])];
⋯
173 }
174 const child = spawn (binary, [
175 '--listen' , '127.0.0.1:0' ,
176 '--rewriter' , ,
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 = 7160
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 = 25
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-DdKJklxj.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-DdKJklxj.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/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.492
summary = stored previous version shares package body but lacks this dangerous source file
dist-server/server/index.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
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' )).
`http://127.0.0.1:${bridge.port}`
177 '--ca-cert' , certificates.cert,