registry  /  phasegate  /  0.161.0

phasegate@0.161.0

Phasegate — AI-agnostic quality defense toolkit. Enforces structural integrity between design intent and code.

Static Scan Results

scanned 12d ago · by rust-scanner

Static analysis flagged 13 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 snapshot
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 964 file(s), 1.93 MB of source, external domains: json-schema.org

Source & flagged code

7 flagged · loading source
scripts/harness/biome-ast-engine/infrastructure/adapters/biome-cli-executor-adapter.tsView file
5L6: import { spawnSync } from 'node:child_process'; L7: import type { FilePath } from '../../domain/value-objects/file-path.js';
High
Child Process

Package source references child process execution.

scripts/harness/biome-ast-engine/infrastructure/adapters/biome-cli-executor-adapter.tsView on unpkg · L5
scripts/harness/agent-integration/presentation/phasegate-status-context.tsView file
16L17: const execAsync = promisify(exec); L18:
High
Shell

Package source references shell execution.

scripts/harness/agent-integration/presentation/phasegate-status-context.tsView on unpkg · L16
scripts/harness/main.tsView file
2768case "phasegate:generate-matrix": { L2769: const { createNyquistValidationModule } = await import("./nyquist-validation/composition-root.js"); L2770: const mod = createNyquistValidationModule({
Medium
Dynamic Require

Package source references dynamic require/import behavior.

scripts/harness/main.tsView on unpkg · L2768
scripts/harness/harness-api/infrastructure/adapters/harness-config-query-adapter.tsView file
41export class HarnessConfigQueryAdapter implements ConfigQueryPort { L42: private readonly configPath: string; L43: private cachedConfig: HarnessConfigJson | null = null; ... L51: const content = await fs.readFile(this.configPath, 'utf-8'); L52: this.cachedConfig = JSON.parse(content) as HarnessConfigJson; L53: return this.cachedConfig;
Low
Weak Crypto

Package source references weak cryptographic algorithms.

scripts/harness/harness-api/infrastructure/adapters/harness-config-query-adapter.tsView on unpkg · L41
scripts/harness/regression-suite/infrastructure/adapters/vitest-test-runner-adapter.tsView file
67try { L68: execSync( L69: `npx tsx node_modules/vitest/vitest.mjs run --config scripts/harness/__tests__/vitest.config.ts "${testPattern}"`, L70: { cwd: this.rootDir, stdio: 'pipe', timeout: 60_000 },
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

scripts/harness/regression-suite/infrastructure/adapters/vitest-test-runner-adapter.tsView on unpkg · L67
scripts/delegate-sonnet.shView file
path = scripts/delegate-sonnet.sh kind = build_helper sizeBytes = 2944 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

scripts/delegate-sonnet.shView on unpkg
templates/.claude/scripts/format-settings-hook.shView file
path = templates/.claude/scripts/format-settings-hook.sh kind = payload_in_excluded_dir sizeBytes = 918 magicHex = [redacted]
High
Payload In Excluded Dir

Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.

templates/.claude/scripts/format-settings-hook.shView on unpkg

Findings

4 High4 Medium5 Low
HighChild Processscripts/harness/biome-ast-engine/infrastructure/adapters/biome-cli-executor-adapter.ts
HighShellscripts/harness/agent-integration/presentation/phasegate-status-context.ts
HighRuntime Package Installscripts/harness/regression-suite/infrastructure/adapters/vitest-test-runner-adapter.ts
HighPayload In Excluded Dirtemplates/.claude/scripts/format-settings-hook.sh
MediumDynamic Requirescripts/harness/main.ts
MediumEnvironment Vars
MediumShips Build Helperscripts/delegate-sonnet.sh
MediumStructural Risk Force Deep Review
LowScripts Present
LowWeak Cryptoscripts/harness/harness-api/infrastructure/adapters/harness-config-query-adapter.ts
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings