Loading npm security reports…
Loading npm security reports…
@geraldmaron/construct: AI-agent control-surface risk | LPM Firewall
npm / AI-agent control-surface risk / @geraldmaron/construct Construct — agent orchestration layer for OpenCode, Claude Code, and other coding surfaces
This report shows the evidence for @geraldmaron/construct@2.1.1 . 4 of 6 known versions are blocked or flagged.
Soft block: AI-agent control surface
Warn by default; block when configured. Alters a foreign AI-agent's project behavior and executes package-controlled hook commands on agent events.
AI security reviewscanned on Jul 31, 2026, 09:57 UTC · by lpm-firewall-ai The lifecycle hook creates and configures a consumer project's Claude Code control surface automatically. Under the install-control-surface policy, this concrete behavior requires blocking even though no secret exfiltration was confirmed.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm install of the package in a project with package.json
Impact
Alters a foreign AI-agent's project behavior and executes package-controlled hook commands on agent events.
Mechanism
postinstall stages Construct launcher and Claude agent/hook configuration
Policy narrative
On npm installation, the postinstall hook stages a launcher and runs the adapter synchronizer in the consumer project. The synchronizer writes Claude Code agent configuration, project settings containing command hooks, and MCP configuration. Those hooks later invoke package-controlled code for Claude tool events. This is an unconsented install-time mutation of a foreign AI-agent control surface.
Evidence
package.json bin/construct-postinstall.mjs lib/install/stage-project.mjs scripts/sync-worker-profiles.mjs platforms/claude/settings.template.json
<consumer>/.construct/run.mjs
<consumer>/.construct/install-manifest.json
<consumer>/.claude/agents/construct.md
<consumer>/.claude/settings.json
<consumer>/.mcp.json
<consumer>/.gitignore
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 99.0% confidence with low false-positive risk.
Evidence for policy risk
package.json runs bin/construct-postinstall.mjs on postinstall. bin/construct-postinstall.mjs automatically stages adapters in the consumer project. lib/install/stage-project.mjs invokes scripts/sync-worker-profiles.mjs during install. scripts/sync-worker-profiles.mjs writes project .claude settings, agents, and .mcp.json. platforms/claude/settings.template.json installs command hooks for Claude tool events. Evidence against
Global machine-scope setup is skipped during global install. No credential exfiltration was confirmed in the postinstall path. The hook declares a mutation receipt and recovery command. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 973 files · 6.70 MB of source
31 external domains referenced
127.0.0.1 api.anthropic.com api.atlassian.com api.github.com api.githubcopilot.com api.linear.app api.openai.com app.slack.com astral.sh cursor.com d2lang.com developer.1password.com docs.docker.com example.com fonts.googleapis.com generativelanguage.googleapis.com github.com graphviz.org huggingface.co json-schema.org nodejs.org ollama.com opencode.ai openrouter.ai pandoc.org raw.githubusercontent.com schemas.openxmlformats.org slack.com www.apple.com www.libreoffice.org your-domain.atlassian.net Findings1 critical · 12 high · 7 medium · 7 low Source & flagged code19 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Scanner record · 1 line scripts.postinstall = node ./bin/construct-postinstall.mjs
Code excerpt · 3 lines 221 ' - Bootstrap a binary: ./.construct/bootstrap.sh (POSIX)\n' +
222 ' powershell -File .construct/bootstrap.ps1 (Windows)\n'
223 );
Medium Dynamic require
Package source references dynamic require/import behavior.
lib/deck-export-pptx.mjs View on unpkg · L24 Code excerpt · 2 lines 25 const require = createRequire (import .meta.url);
26 const MODULE_URL = pathToFileURL (fileURLToPath (import .meta.url)).href;
Low Weak crypto
Package source references weak cryptographic algorithms.
lib/document-assets.mjs View on unpkg · L20 Code excerpt · 11 lines 20 import crypto from 'node:crypto' ;
21 import { spawnSync } from 'node:child_process' ;
22
23 const REMOTE_REF = /^(?:https?:|data:)/i;
24 const HTTP_REF = /^https?:/i;
⋯
37 } catch { return null ; }
38 const script = 'const u=process.argv[1],d=process.argv[2];fetch(u).then(r=>{if(!r.ok)process.exit(2);return r.arrayBuffer();}).then(b=>{require("node:fs").writeFileSync(d,Buffer.fr...
39 const res = spawnSync (process.execPath, ['-e' , script, url, dest], { timeout: });
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
lib/embed/supervision.mjs View on unpkg · L13 Code excerpt · 12 lines 13 * Linux — systemd user unit at ~/.config/systemd/user/<systemdUnit>
14 * Windows — Task Scheduler (schtasks) entry named <winTask>
15 *
⋯
26 import path from 'node:path' ;
27 import { spawnSync } from 'node:child_process' ;
28
⋯
30
31 const HOME = os.homedir ();
32 const PLATFORM = process.platform;
33 const NODE_BIN = process.execPath;
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
lib/runtime/whisper-bootstrap.mjs View on unpkg · L23 Code excerpt · 7 lines 23 import { existsSync, mkdirSync, statSync, createWriteStream } from 'node:fs' ;
24 import { spawnSync } from 'node:child_process' ;
25 import { pipeline } from 'node:stream/promises' ;
⋯
30
31 const HF_MODEL_BASE_URL = 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main' ;
32 const DEFAULT_MODEL = process.env.CONSTRUCT_WHISPER_MODEL || 'base.en' ;
33 const KNOWN_MODELS = ([ , , , , , , , , , ]);
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
lib/providers/d2.mjs View on unpkg · L8 Code excerpt · 12 lines 8 import fs from 'node:fs' ;
9 import { spawnSync } from 'node:child_process' ;
10 import { findProviderCard } from './provider-card.mjs' ;
⋯
32
33 function whichBin (name, env = process.env) {
34 const cmd = process.platform === 'win32' ? 'where' : 'which' ;
35 const result = spawnSync (cmd, [name], { encoding: , env });
packages/construct-ui/prototypes/graph-viewer/build.mjs View file High Runtime package install
Package source invokes a package manager install command at runtime.
packages/construct-ui/prototypes/graph-viewer/build.mjs View on unpkg · L29 Code excerpt · 2 lines 30 execFileSync ('npx' , ['esbuild' , path.join (distDir, '_entry-with-cytoscape.mjs' ), '--bundle' , '--format=esm' , '--minify' , `--outfile=${path.join(distDir, 'with-cytoscape.min.mjs')}` ...
31
templates/distribution/construct-reference.docx View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
templates/distribution/construct-reference.docx View on unpkg Scanner record · 4 lines path = [redacted]-reference.docx
kind = high_entropy_blob
sizeBytes = 11466
magicHex = [redacted]
Medium Ships compressed blob
Package ships compressed or archive-like blobs.
templates/distribution/construct-reference.docx View on unpkg Scanner record · 4 lines path = [redacted]-reference.docx
kind = compressed_blob
sizeBytes = 11466
magicHex = [redacted]
lib/doctor/watchers/mcp-protocol.mjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
lib/doctor/watchers/mcp-protocol.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @geraldmaron/construct@1.5.5
matchedPath = lib/doctor/watchers/mcp-protocol.mjs
matchedIdentity = npm:QGdlcmFsZG1hcm9uL2NvbnN0cnVjdA:1.5.5
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.
lib/providers/secret-resolver.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @geraldmaron/construct@1.5.5
matchedPath = lib/providers/secret-resolver.mjs
matchedIdentity = npm:QGdlcmFsZG1hcm9uL2NvbnN0cnVjdA:1.5.5
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.
lib/distill.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @geraldmaron/construct@1.5.5
matchedPath = lib/distill.mjs
matchedIdentity = npm:QGdlcmFsZG1hcm9uL2NvbnN0cnVjdA:1.5.5
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.
lib/reflect.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @geraldmaron/construct@1.5.5
matchedPath = lib/reflect.mjs
matchedIdentity = npm:QGdlcmFsZG1hcm9uL2NvbnN0cnVjdA:1.5.5
similarity = 1.000
summary = normalized source hash matched finalized malicious source
AI assessment confidence 99%
Certainty of the verdict, not severity.
Verdict details False-positive risk, Review stage, Firewall policy 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.
Package metadata npm Version 2.1.1
Published Jul 31, 2026
License Apache-2.0
Dependencies 22
Integrity verified
Package size 3.79 MB
Files 1,565
Runtime surface package.json Entrypoints main → index.js exports map bin → construct
Runtime node >=20
Artifact 11.6 MB unpacked · 1,565 files 1 signature · provenance
Install lifecycle postinstall
On this report AI security review Decision evidence Findings27 Flagged code19 Remediation Versions Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
20000
123 export function buildAssetManifest (doc, { baseDir = process.cwd () } = {}) {
124 const blocks = (doc?.sections || []).flatMap ((section) => section.blocks || []);
39 const result = spawnSync ('which' , ['construct' ], { encoding: 'utf8' });
40 return result.status === 0 ? result.stdout.trim () : 'construct' ;
new
Set
'tiny'
'tiny.en'
'base'
'base.en'
'small'
'small.en'
'medium'
'medium.en'
'large-v3'
'large-v3-turbo'
const cloudId = process.env.ATLASSIAN_CLOUD_ID || 'hashicorp.atlassian.net' ;
178 const res = await fetch (`https://api.atlassian.com/rovo/v1/search` , {
184 body: JSON.stringify ({ query, limit: topK }),
'utf8'
36 if (result.status !== 0 ) return null ;
37 return (result.stdout || '' ).trim ().split ('\n' )[0 ] || null ;
67 ? 'brew install d2 (or: brew install graphviz for dot fallback)'
68 : 'See https://d2lang.com/tour/install' ),
Nested archive needs inspection
Package ships a nested archive or MCP bundle that was inventoried but not recursively analyzed.
templates/distribution/construct-reference.docx
Scanner record · 4 lines path = [redacted]-reference.docx
kind = nested_archive_needs_inspection
sizeBytes = 11466
magicHex = [redacted]