Static Scan Results
scanned 6d ago · by rust-scannerStatic analysis flagged 12 finding(s) at 72.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.
Static reason
One or more suspicious static signals were detected.
Decision evidence
public snapshotBehavioral surface
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
HighEntropyStringsMinifiedUrlStrings
Source & flagged code
4 flagged · loading sourcedist/install/schedule.jsView file
1import { execFileSync } from 'node:child_process';
L2: import { writeFileSync, readFileSync, existsSync, statSync, accessSync, constants, unlinkSync, mkdirSync, } from 'node:fs';
High
Child Process
Package source references child process execution.
dist/install/schedule.jsView on unpkg · L1dist/install/platform.jsView file
75}
L76: // Last resort: ask cmd.exe (requires WSL interop to be enabled).
L77: // Pass the full command as one string after /c so cmd.exe expands %USERPROFILE%
High
dist/install/setup-wizard.jsView file
22try {
L23: entryPoint = realpathSync(process.argv[1] ?? process.cwd());
L24: }
...
L69: function print(msg = '') {
L70: process.stdout.write(msg + '\n');
L71: }
...
L74: try {
L75: parsed = JSON.parse(readFileSync(CONFIG_PATH, 'utf-8'));
L76: }
...
L170: if (mode !== 'local') {
L171: const envAccountId = process.env.NEW_RELIC_ACCOUNT_ID?.trim() ?? '';
L172: const existingAccountId = typeof existing.accountId === 'string' ? existing.accountId : '';
Medium
Install Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/install/setup-wizard.jsView on unpkg · L22dist/install/cli.jsView file
182print(' To update, reinstall using your package manager, e.g.:');
L183: print(' npm install -g @newrelic/preflight@latest');
L184: print(' pnpm add -g @newrelic/preflight@latest');
...
L189: print('→ git pull');
L190: execFileSync('git', ['pull'], { cwd: repoRoot, stdio: 'inherit' });
L191: }
High
Runtime Package Install
Package source invokes a package manager install command at runtime.
dist/install/cli.jsView on unpkg · L182Findings
3 High4 Medium5 Low
HighChild Processdist/install/schedule.js
HighShelldist/install/platform.js
HighRuntime Package Installdist/install/cli.js
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencedist/install/setup-wizard.js
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings