•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 42if (process.env.ProgramFiles !== undefined) {
L43: const candidate = join(process.env.ProgramFiles, 'PowerShell', '7', 'pwsh.exe')
L44: if (existsSync(candidate)) return candidate
7L8: import { execFileSync } from 'node:child_process'
L9: import { existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'node:fs'
...
L19: const WIN = process.platform === 'win32'
L20: const DSH_HOME = process.env.DSH_HOME ?? join(homedir(), '.dsh')
L21: const PRESET_ID = 'minimal-windows'
L22: const PRESET_SRC = join(dirname(fileURLToPath(import.meta.url)), '..', 'preset', PRESET_ID)
L23: const REPO = 'https://github.com/sjh9714/dsh-win32'
L24: 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', 'npx dsh-win32 setup')
else add('powershell', 'warn', 'PowerShell 7 not found. Current DSH can fall back to Windows PowerShell, but PowerShell 7 is the supported path', 'install PowerShell 7 from https:/...
if (gitBash === undefined) add('git_bash', 'fail', 'Git Bash not fou
HighEntrypoint Foreign Package Code Overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
bin/cli.mjsView on unpkg 203// fault.
L204: add('dsh-win32/bundle', 'warn', `profile runs ${wiredBundle}, this CLI is ${SELF_VERSION}`, 'npx dsh-win32 setup. If that reports no change, the profile\'s pnpm minimumReleaseAgeEx...
L205: }
...
L218: if (!WIN) {
L219: for (const name of ['git_bash', 'powershell', 'koffi', 'persistent_powershell', 'workspace_write', 'sandbox_shell', 'write_fence']) add(name, 'skip', NOT_WINDOWS)
L220: return { checks, gitBash, official }
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
bin/cli.mjsView on unpkg · L203 118const version = JSON.parse(readFileSync(manifest, 'utf8')).version
L119: const loadable = tryExec(process.execPath, ['-e', 'require(process.argv[1])', dirname(manifest)]) !== undefined
L120: results.push({ profile, version, loadable })
MediumDynamic Require
Package source references dynamic require/import behavior.
bin/cli.mjsView on unpkg · L118