•matchType = previous_version_dangerous_delta
matchedPackage = dsh-win32@0.11.0
matchedIdentity = npm:ZHNoLXdpbjMy:0.11.0
similarity = 0.889
summary = stored previous version shares package body but lacks this dangerous source file
CriticalPrevious Version Dangerous Delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
bin/cli.mjsView on unpkg 7L8: import { execFileSync } from 'node:child_process'
L9: import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
HighChild Process
Package source references child process execution.
bin/cli.mjsView on unpkg · L7 40if (process.env.ProgramFiles !== undefined) {
L41: const candidate = join(process.env.ProgramFiles, 'PowerShell', '7', 'pwsh.exe')
L42: if (existsSync(candidate)) return candidate
7L8: import { execFileSync } from 'node:child_process'
L9: import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
...
L17: const WIN = process.platform === 'win32'
L18: const DSH_HOME = process.env.DSH_HOME ?? join(homedir(), '.dsh')
L19: const PRESET_ID = 'minimal-windows'
L20: const PRESET_SRC = join(dirname(fileURLToPath(import.meta.url)), '..', 'preset', PRESET_ID)
L21: const REPO = 'https://github.com/sjh9714/dsh-win32'
L22: const SELF_VERSION = JSON.parse(
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
bin/cli.mjsView on unpkg · L7 •Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
bin/cli.mjs:
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
const REPO = 'https://github.com/sjh9714/dsh-win32'
const manifest = join(profilesDir, profile, 'node_modules', 'koffi', 'package.json')
if (gitBash === undefined) add('git_bash', 'fail', 'Git Bash not found. Install from https://git-scm.com (winget install Git.Git), then re-run')
const installed = join(DSH_HOME, 'profiles', profile, 'node_modules', 'dsh-win32', 'package.json')
const BUSYBOX_URL = 'https://frippery.org/files/busybox/busybox64.exe'
console.log('project https://frippery.org/busybox, not bundled with dsh-win32, fetched on demand')
wr
HighEntrypoint Foreign Package Code Overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
bin/cli.mjsView on unpkg 133const wiredBundle = bundleVersion()
L134: if (wiredBundle === undefined) add('dsh-win32/bundle', 'warn', `not wired into the web profile; run: npx dsh-win32 setup`)
L135: else if (wiredBundle === SELF_VERSION) add('dsh-win32/bundle', 'pass', wiredBundle)
...
L139: if (!WIN) {
L140: for (const name of ['git_bash', 'powershell', 'koffi', 'sandbox_shell', 'write_fence']) add(name, 'skip', NOT_WINDOWS)
L141: return { checks, gitBash }
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
bin/cli.mjsView on unpkg · L133