•matchType = previous_version_dangerous_delta
matchedPackage = dsh-win32@0.11.0
matchedIdentity = npm:ZHNoLXdpbjMy:0.11.0
similarity = 0.556
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, realpathSync, 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, realpathSync, 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, realpathSync, rmSync, writeFileSync } from 'node:fs'
const REPO = 'https://github.com/sjh9714/dsh-win32'
const manifest = join(profilesDir, profile, 'node_modules', 'koffi', 'package.json')
add('dsh-win32/bundle', 'warn', 'listed in the profile manifest but absent from its node_modules, so the runtime never loads; run: npx dsh-win32 setup')
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
HighEntrypoint Foreign Package Code Overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
bin/cli.mjsView on unpkg 147} else if (wiredBundle === 'wired, not installed') {
L148: add('dsh-win32/bundle', 'warn', 'listed in the profile manifest but absent from its node_modules, so the runtime never loads; run: npx dsh-win32 setup')
L149: } else if (wiredBundle === 'unreadable') {
...
L162: if (!WIN) {
L163: for (const name of ['git_bash', 'powershell', 'koffi', 'sandbox_shell', 'write_fence']) add(name, 'skip', NOT_WINDOWS)
L164: return { checks, gitBash }
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
bin/cli.mjsView on unpkg · L147