Loading npm security reports…
Loading npm security reports…
@threenative/runtime-native@0.3.12: AI-agent control-surface risk | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. Project agents may load package-provided MCP tools without the project installer explicitly requesting that configuration change.
AI security reviewscanned on Nov 7, 2026, 01:19 UTC · by lpm-firewall-ai The package’s @threenative/core dependency runs an install-time hook that writes MCP server entries into the consuming project’s agent configs by default. This is install-time agent configuration modification without consent, so the package should be blocked under the AI-agent control-hijack rule.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
Installing this package when the dependency’s postinstall runs in a project declaring @threenative/core.
Impact
Project agents may load package-provided MCP tools without the project installer explicitly requesting that configuration change.
Mechanism
The postinstall calls MCP setup, which writes project-scoped configuration for supported agent hosts and registers commands that launch ThreeNative MCP servers.
Policy narrative
During installation, @threenative/core’s postinstall runs MCP setup by default. When the install target is a project declaring that dependency, setup writes ThreeNative server entries into project-scoped agent configuration files. Those entries make agents able to launch package-provided MCP servers. An environment variable can opt out, but the default install changes agent configuration without an explicit request.
Evidence
package.json .lpm-dependency-evidence-e95a4acd-3b49-4133-913d-5fbd1be67b65/1/npm-linux/package.json
.lpm-dependency-evidence-e95a4acd-3b49-4133-913d-5fbd1be67b65/1/npm-linux/scripts/postinstall.mjs
.lpm-dependency-evidence-e95a4acd-3b49-4133-913d-5fbd1be67b65/1/npm-linux/scripts/ensure-mcp.mjs
.lpm-dependency-evidence-e95a4acd-3b49-4133-913d-5fbd1be67b65/1/npm-linux/mcp/install.mjs
.lpm-dependency-evidence-e95a4acd-3b49-4133-913d-5fbd1be67b65/1/npm-linux/mcp/servers.mjs
<project>/.mcp.json
<project>/.codex/config.toml
<project>/.cursor/mcp.json
<project>/.vscode/mcp.json
<project>/.gemini/settings.json
<project>/opencode.json
<project>/.zed/settings.json
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
The package depends on @threenative/core and runs an install lifecycle script. The core dependency’s postinstall invokes MCP setup. MCP setup runs by default; opting out requires setting THREENATIVE_SKIP_MCP_SETUP. The setup targets the installing project when its package.json declares @threenative/core. The install hook writes project-scoped agent configuration files. The configuration adds ThreeNative MCP server entries that launch package scripts. Evidence against
The setup is limited to project-scoped configs and skips nested node_modules installs. The setup preserves existing user configuration where possible; its opt-out does not provide install-time consent. 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 · 1015 KB 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 Findings5 high · 7 medium · 5 low Source & flagged code10 flagged 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
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 = createRequire (import .meta.url);
35 const platformerScenario = 'playtests/performance.playtest.json' ;
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 = 3990843
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 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.895
summary = stored previous version shares package body but lacks this dangerous source file
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 0.3.12
Published Nov 7, 2026
License MIT
Dependencies 6
Integrity verified
Package size 3.00 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 8.76 MB unpacked · 61 files 2 signatures
Install lifecycle install
On this report AI security review Decision evidence Findings17 Flagged code10 Remediation High Previous version dangerous delta Code↓
Package metadata 7 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
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]