Loading npm security reports…
Loading npm security reports…
sap-ai-dev-toolkit@0.9.9922: AI-agent control-surface risk | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. Installation changes AI-agent instructions and skills outside the package without an explicit user request, giving the package control over content the agent may later follow.
AI security reviewscanned on Oct 30, 2026, 09:28 UTC · by lpm-firewall-ai The postinstall hook automatically writes bundled agent instructions and skills into the user’s GitHub Copilot configuration when no interactive terminal is available. Under the review policy, that unconsented install-time change to an AI-agent control surface is malicious.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
Package installation runs postinstall; the writes occur by default when the installer has no interactive terminal and no harness override is set.
Impact
Installation changes AI-agent instructions and skills outside the package without an explicit user request, giving the package control over content the agent may later follow.
Mechanism
The hook selects GitHub Copilot and copies package-bundled agent and skill files into the user-level harness directory, recording a manifest.
Policy narrative
During installation, postinstall invokes harness setup. If no interactive terminal is available and no harness override is provided, setup defaults to GitHub Copilot and installs the package’s bundled agent and skill files in the user’s home configuration. This is an unconsented install-time write to AI-agent instructions outside the package.
Evidence
package.json scripts/postinstall.mjs src/harness-setup.mjs
src/harnesses.mjs
src/install-user-assets.mjs
~/.copilot/agents/*
~/.copilot/skills/*
~/.copilot/.sap-ai-dev-toolkit-assets.json
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 98.0% confidence with low false-positive risk.
Evidence for policy risk
The package runs scripts/postinstall.mjs during installation. Postinstall calls runHarnessSetup, which runs the bundled asset installation flow. Without an interactive terminal or explicit harness override, that flow selects GitHub Copilot by default and installs its bundled agents and skills. The installer writes those assets under the selected harness root in the user’s home directory, outside the package directory. Evidence against
Interactive installation presents the harness choices with a confirmation prompt. The asset installer preserves conflicting custom files rather than overwriting them. No unrelated credential collection or exfiltration was identified in the reviewed install path. Behavioral surface
Source Child process · Crypto · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 76 files · 1.10 MB of source
19 external domains referenced
127.0.0.1 a.b a.example api.sap.com api.solace.cloud api.solace.dev b.example cf-api.invalid demo.dest github.com go.dev help.openconnectors.ext.hana.ondemand.com help.pubsub.em.services.cloud.sap help.sap.com httpbin.org integration-snapshot.invalid myhost.example support.sap.com www.sap.com Findings1 critical · 18 high · 5 medium · 5 low Source & flagged code21 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle script
Install-time lifecycle script is not statically allowlisted and needs review.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node scripts/postinstall.mjs
High Child process
Package source references child process execution.
scripts/ensure-go.mjs View on unpkg · L1 Code excerpt · 3 lines 1 import { createHash } from 'node:crypto' ;
2 import { execFile, spawnSync } from 'node:child_process' ;
3 import { chmod, mkdir, rm, symlink, writeFile } from 'node:fs/promises' ;
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
scripts/ensure-go.mjs View on unpkg · L17 Code excerpt · 9 lines 17 function localGoPath () {
18 return join (brandedEnvValue (process.env, 'GO_ROOT' ) || join (homedir (), '.local' , 'go' ), GO_VERSION, 'bin' , process.platform === 'win32' ? 'go.exe' : 'go' );
19 }
⋯
22 if (process.env.GO_BINARY) return process.env.GO_BINARY;
23 const result = spawnSync ('go' , ['version' ], { encoding: 'utf8' , stdio: [ , , ] });
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
scripts/ensure-go.mjs View on unpkg · L1 Code excerpt · 11 lines 1 import { createHash } from 'node:crypto' ;
2 import { execFile, spawnSync } from 'node:child_process' ;
3 import { chmod, mkdir, rm, symlink, writeFile } from 'node:fs/promises' ;
⋯
9 const exec = promisify (execFile);
10 export const GO_VERSION = brandedEnvValue (process.env, 'GO_VERSION' ) || 'go1.27.1' ;
11 const GO_RELEASES = {
⋯
17 function localGoPath () {
18
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/ensure-go.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = scripts/ensure-go.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Code excerpt · 3 lines 30 stdio: 'inherit' ,
31 ...(process.platform === 'win32' ? { shell: true } : {}),
32 ...options
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/install-local.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = scripts/install-local.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Critical AI agent control hijack
Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.
src/harness-setup.mjs View on unpkg · L7 Code excerpt · 16 lines Install-time code directly mutates a foreign AI-agent control surface:
7 import { ReadStream as TTYReadStream, WriteStream as TTYWriteStream } from 'node:tty' ;
8 import { installMcpServersForHarnesses } from './harness-mcp-config.mjs' ;
9 import { installUserAssetsForHarnesses } from './install-user-assets.mjs' ;
⋯
165
166 async function wireHarnessMcpServers (ids, servers, env) {
167 const entries = servers && Object. (servers).length ? servers : ;
Medium Ships native binary
Package ships native binary artifacts.
dist/vsp-linux-x64 View on unpkg Scanner record · 4 lines path = dist/vsp-linux-x64
kind = native_binary
sizeBytes = 24887458
magicHex = [redacted]
scripts/postinstall.mjs#virtual:normalized:round1 View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
scripts/postinstall.mjs#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 4
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/publish-npm.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = scripts/publish-npm.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
src/launcher.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = src/launcher.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
src/local-sap-gui.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = src/local-sap-gui.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
src/mcp-proxy.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = src/mcp-proxy.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
src/cf-destination.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = src/cf-destination.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
src/sso-browsers.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = src/sso-browsers.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
scripts/check-live-integration.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = scripts/check-live-integration.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
src/cf-integration.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = src/cf-integration.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
src/harnesses.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = src/harnesses.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
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.
src/iflow-bundle.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.9921
matchedPath = src/iflow-bundle.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9921
similarity = 1.000
summary = normalized source hash matched finalized malicious source
AI assessment confidence 98%
Certainty of the AI review, 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 Author Gurkan Yilmaz
Version 0.9.9922
Published Oct 30, 2026
License MIT
Dependencies 7
Integrity verified
Package size 48.7 MB
Files 115
Runtime surface package.json Entrypoints bin → sap-ai-dev, sap-ai-dev-toolkit, sap-ai-hana +1
Runtime node >=20
Artifact 119 MB unpacked · 115 files 2 signatures · provenance
Install lifecycle postinstall prepublishOnly
On this report AI security review Decision evidence Findings29 Flagged code21 Remediation High Shell Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
'ignore'
'pipe'
'ignore'
24 if (result.status === 0 ) return 'go' ;
32 if (!release) throw new Error (`Go is missing and automatic installation is supported only for Linux x64/arm64 and Windows x64. Install ${GO_VERSION} manually and ensure go is on PA...
33 const response = await fetch (`https://go.dev/dl/${release.archive}` );
34 if (!response.ok) throw new Error (`Go download failed with HTTP ${response.status}; install ${GO_VERSION} manua
return join (brandedEnvValue (process.env, 'GO_ROOT' ) || join (homedir (), '.local' , 'go' ), GO_VERSION, 'bin' , process.platform === 'win32' ? 'go.exe' : 'go' );
32 if (!release) throw new Error (`Go is missing and automatic installation is supported only for Linux x64/arm64 and Windows x64. Install ${GO_VERSION} manually and ensure go is on PA...
33 const response = await fetch (`https://go.dev/dl/${release
keys
null
174 const { results, failures } = await installMcpServersForHarnesses (ids, entries, { env });
175 for (const result of results) {
196 await wireHarnessMcpServers (ids, servers, env);
Write operation from src/binary.mjs:
190 const dir = cacheDirectory (env);