Loading npm security reports…
Loading npm security reports…
sap-ai-dev-toolkit@0.9.5: Agent extension lifecycle risk | LPM Firewall
npm / sap-ai-dev-toolkit / 0.9.5 SAP AI development toolkit for BAS, ABAP, RAP, CAP, HANA Cloud, Fiori, UI5, and MCP
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Oct 15, 2026, 12:57 UTC · by lpm-firewall-ai The automatic postinstall setup writes package-owned agent assets into a home-level AI harness directory without an interactive choice in non-interactive installs. The source shows scoped asset installation and conflict preservation, so this warrants a warning rather than a block.
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
Installing the package with lifecycle scripts enabled, when no interactive terminal is available.
Impact
The toolkit’s agent instructions may be loaded by the user’s Copilot harness. The source shows first-party asset setup, but the automatic non-interactive install leaves a lifecycle extension risk.
Mechanism
The hook selects GitHub Copilot by default and copies bundled assets into its harness directory.
Evidence
package.json scripts/postinstall.mjs src/harnesses.mjs src/install-user-assets.mjs ~/.copilot/agents ~/.copilot/skills
public snapshot
Evidence for warning
The manifest declares an npm postinstall hook, and the script invokes its setup when run directly. The postinstall path installs harness assets; without an interactive terminal it selects a default harness and proceeds automatically. The default non-interactive harness is GitHub Copilot. The installer sources agent and skill files from the package’s own .github directories and targets the harness directory under the user’s home. The installer writes those assets and preserves conflicting existing files unless they match previously managed content. Evidence against
In interactive installs, users can deselect all harnesses to skip asset installation; conflicting existing files are preserved. Behavioral surface
Source Child process · Crypto · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 31 files · 356 KB of source
6 external domains referenced
127.0.0.1 cf-api.invalid demo.dest github.com go.dev myhost.example Findings1 critical · 16 high · 5 medium · 5 low Source & flagged code19 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.3
matchedPath = scripts/ensure-go.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Code excerpt · 3 lines 31 stdio: 'inherit' ,
32 ...(process.platform === 'win32' ? { shell: true } : {}),
33 ...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.3
matchedPath = scripts/install-local.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.3
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.
scripts/postinstall.mjs View on unpkg · L7 Code excerpt · 12 lines Install-time code directly mutates a foreign AI-agent control surface:
7 import { installUserAssetsForHarnesses } from '../src/install-user-assets.mjs' ;
8 import { installMcpServersForHarnesses } from '../src/harness-mcp-config.mjs' ;
9 import { DEFAULT_HARNESS_IDS, HARNESSES, HARNESS_ENV_VAR, NON_INTERACTIVE_HARNESS_IDS, envHarnessSelection, harnessRoot } from '../src/harnesses.mjs' ;
⋯
165
166 async function wireHarnessMcpServers (ids, servers) {
167 const entries = servers && Object.keys (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 = 24858786
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 = 2
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/build-vsp.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.3
matchedPath = scripts/build-vsp.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.3
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/publish-npm.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.3
matchedPath = scripts/publish-npm.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.3
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.3
matchedPath = src/local-sap-gui.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.3
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.3
matchedPath = src/cf-destination.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.3
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-connectivity.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = sap-ai-dev-toolkit@0.9.3
matchedPath = src/cf-connectivity.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.3
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.3
matchedPath = src/harnesses.mjs
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
src/launcher.mjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = sap-ai-dev-toolkit@0.9.9906
matchedIdentity = npm:c2FwLWFpLWRldi10b29sa2l0:0.9.9906
similarity = 0.742
summary = stored previous version shares package body but lacks this dangerous source file
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
null
174 const { results, failures } = await installMcpServersForHarnesses (ids, entries, { env: runtimeEnv });
175 for (const result of results) {
343 if (setupCompleted) await wireHarnessMcpServers (harnessIds, setupResult?.serve