Loading npm security reports…
Loading npm security reports…
@threenative/runtime-native@0.3.13: AI-agent control-surface risk | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. Installation changes AI agent configuration without explicit consent, enabling additional tools in the project’s agent hosts.
AI security reviewscanned on Nov 12, 2026, 14:30 UTC · by lpm-firewall-ai The package’s dependency runs an install hook that automatically writes project-scoped MCP server configuration for AI agent hosts. The opt-out does not constitute consent, so this meets the install-time AI-agent control hijack rule.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
Installing this package when the project manifest declares @threenative/core; setup runs by default unless THREENATIVE_SKIP_MCP_SETUP is set.
Impact
Installation changes AI agent configuration without explicit consent, enabling additional tools in the project’s agent hosts.
Mechanism
The dependency postinstall adds ThreeNative MCP server entries to supported agent configuration files, which cause those hosts to launch local server scripts.
Policy narrative
During installation, @threenative/core’s postinstall runs MCP setup when the project declares that dependency. By default, it creates or updates project-scoped configuration files for supported AI agent hosts and registers ThreeNative MCP servers. The setup can be disabled only through an environment opt-out. This is an install-time change to agent configuration without explicit consent.
Evidence
package.json .lpm-dependency-evidence-16907fed-b284-4d29-b434-67bf4463b4d3/1/npm-linux/package.json
.lpm-dependency-evidence-16907fed-b284-4d29-b434-67bf4463b4d3/1/npm-linux/scripts/postinstall.mjs
.lpm-dependency-evidence-16907fed-b284-4d29-b434-67bf4463b4d3/1/npm-linux/scripts/ensure-mcp.mjs
.lpm-dependency-evidence-16907fed-b284-4d29-b434-67bf4463b4d3/1/npm-linux/mcp/install.mjs
.lpm-dependency-evidence-16907fed-b284-4d29-b434-67bf4463b4d3/1/npm-linux/mcp/servers.mjs
.mcp.json
.codex/config.toml
.cursor/mcp.json
.vscode/mcp.json
.gemini/settings.json
opencode.json
.zed/settings.json
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 97.0% confidence with low false-positive risk.
Evidence for policy risk
The package declares an install lifecycle script. Its @threenative/core dependency also runs a postinstall that invokes MCP setup. The setup runs by default and adds ThreeNative MCP servers to project-scoped agent configurations; skipping it requires an environment opt-out. The setup writes configuration files for AI agent hosts outside the package directory. The generated configuration launches local ThreeNative MCP server commands. Evidence against
The package’s own install script downloads its native release artifacts and verifies their checksums. The MCP setup targets the installing project and preserves existing configuration where possible. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network
Supply chain High entropy strings · Minified · URL strings
Manifest No manifest risk signals triggered.
Scanned 38 files · 1.01 MB of source
7 external domains referenced
127.0.0.1 developer.microsoft.com github.com go.microsoft.com raw.githubusercontent.com schemas.android.com www.apple.com Findings1 critical · 15 high · 7 medium · 5 low Source & flagged code21 flagged Critical Known malicious dependency insertion
A newly added or changed runtime dependency can resolve to an independently confirmed malicious package version.
package.json View on unpkg Scanner record · 3 lines dependencies.@threenative/core = 0.3.13
previous = 0.3.12
independentlyConfirmedMalicious = @threenative/core@0.3.13 (lpm_ai_confirmed)
High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Scanner record · 1 line scripts.install = node scripts/install-prebuilt.mjs
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/profile-production.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = scripts/profile-production.mjs
matchedIdentity = npm:[redacted]:0.3.12
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Medium Dynamic require
Package source references dynamic require/import behavior.
scripts/profile-production.mjs View on unpkg · L33 Code excerpt · 3 lines 33 const commandRoot = inRepositoryCheckout ? repositoryRoot : process.cwd ();
34 const packageRequire = ( .meta.url);
High Entrypoint build divergence
Manifest entrypoint contains risky behavior absent from dist/build output.
scripts/install-prebuilt.mjs View on unpkg · L8 Code excerpt · 11 lines Manifest entrypoint (scripts.install) carries capability families absent from dist/build output: environment+network
8 const packageRoot = resolve (dirname (fileURLToPath (import .meta.url)), '..' );
9 const packageVersion = JSON.parse (readFileSync (join (packageRoot, 'package.json' ), 'utf8' )).version;
10 export const RELEASE_REPOSITORY = 'ThreeNativeHQ/threenative-engine' ;
⋯
scripts/verify-starter-desktop-base.mjs View file High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
scripts/verify-starter-desktop-base.mjs View on unpkg · L2 Code excerpt · 11 lines 3 import { spawnSync } from 'node:child_process' ;
4 import { createHash } from 'node:crypto' ;
⋯
187 */
188 export function playerPrerequisiteHint (name, platform = process.platform, recorded = true ) {
189 if (recorded && /libwebkit2gtk-/u.test (name)) {
⋯
192 if (recorded && (/webview2/iu.test (name) || /^WebView2Loader\.dll$/iu. (name))) {
Medium Ships WASM module
Package ships WebAssembly modules.
build/web/tn-native-engine-web.wasm View on unpkg Scanner record · 4 lines path = build/web/tn-native-engine-web.wasm
kind = wasm_module
sizeBytes = 4288270
magicHex = [redacted]
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
scripts/xvfb.sh View on unpkg Scanner record · 4 lines path = scripts/xvfb.sh
kind = build_helper
sizeBytes = 5833
magicHex = [redacted]
android/gradle/wrapper/gradle-wrapper.jar View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
android/gradle/wrapper/gradle-wrapper.jar View on unpkg Scanner record · 4 lines path = android/gradle/wrapper/gradle-wrapper.jar
kind = high_entropy_blob
sizeBytes = 43705
magicHex = [redacted]
Medium Ships compressed blob
Package ships compressed or archive-like blobs.
android/gradle/wrapper/gradle-wrapper.jar View on unpkg Scanner record · 4 lines path = android/gradle/wrapper/gradle-wrapper.jar
kind = compressed_blob
sizeBytes = 43705
magicHex = [redacted]
Low Nested archive needs inspection
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/desktop-distribution.mjs View on unpkg Scanner record · 7 lines matchType = token_shingles
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = scripts/desktop-distribution.mjs
matchedIdentity = npm:[redacted]:0.3.12
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped 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/package-android.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = scripts/package-android.mjs
matchedIdentity = npm:[redacted]:0.3.12
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/package-ios.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = scripts/package-ios.mjs
matchedIdentity = npm:[redacted]:0.3.12
similarity = 1.000
summary = normalized source hash matched finalized malicious source
scripts/check-android-16kb-alignment.mjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/check-android-16kb-alignment.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = scripts/check-android-16kb-alignment.mjs
matchedIdentity = npm:[redacted]:0.3.12
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/device-preflight.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = scripts/device-preflight.mjs
matchedIdentity = npm:[redacted]:0.3.12
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/package-desktop.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = scripts/package-desktop.mjs
matchedIdentity = npm:[redacted]:0.3.12
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/asset-preflight.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = scripts/asset-preflight.mjs
matchedIdentity = npm:[redacted]:0.3.12
similarity = 1.000
summary = normalized source hash matched finalized malicious source
build/web/tn-native-engine-web-threads.mjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
build/web/tn-native-engine-web-threads.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = build/web/tn-native-engine-web-threads.mjs
matchedIdentity = npm:[redacted]:0.3.12
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.
build/web/tn-native-engine-web.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @threenative/runtime-native@0.3.12
matchedPath = build/web/tn-native-engine-web.mjs
matchedIdentity = npm:[redacted]:0.3.12
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.
scripts/bundle-native-engine.mjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @threenative/runtime-native@0.3.10
matchedIdentity = npm:[redacted]:0.3.10
similarity = 0.737
summary = stored previous version shares package body but lacks this dangerous source file
AI assessment confidence 97%
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 0.3.13
Published Nov 12, 2026
License MIT
Dependencies 6
Integrity verified
Package size 3.28 MB
Files 61
Keywords threenative native desktop android ios webgpu three threejs
Runtime surface package.json Entrypoints No public entrypoints declared.
Runtime No engine / OS / CPU constraints
Artifact 9.35 MB unpacked · 61 files 2 signatures
Install lifecycle install
On this report AI security review Decision evidence Findings28 Flagged code21 Remediation Code↓
Package metadata 7 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
createRequire
import
35 const platformerScenario = 'playtests/performance.playtest.json' ;
74 export function toolsFilename (platform = process.platform) {
75 return platform === 'win32' ? 'mystral-tools.exe' : 'mystral-tools' ;
112 const url = new URL (release.url);
113 if (url.protocol !== 'https:' && process.env.THREENATIVE_ALLOW_INSECURE_PREBUILT !== '1' ) {
114 throw new Error (`Prebuilt release URL for '${key}' must use HTTPS.` );
252 export function releaseManifestUrl (version = p
test
193 return 'install the Microsoft Edge WebView2 Evergreen Runtime (https://developer.microsoft.com/microsoft-edge/webview2/).' ;
202 status: result.status,
203 stderr: result.stderr ?? '' ,
204 stdout: result.stdout ?? '' ,
Package ships a nested archive or MCP bundle that was inventoried but not recursively analyzed.
android/gradle/wrapper/gradle-wrapper.jar
Scanner record · 4 lines path = android/gradle/wrapper/gradle-wrapper.jar
kind = nested_archive_needs_inspection
sizeBytes = 43705
magicHex = [redacted]