AI Security Review
scanned 5h ago · by lpm-firewall-aiNo confirmed malicious attack surface is established in this package source. The package is a CLI shim that delegates to a package-aligned optional dependency at user invocation time.
Static reason
One or more suspicious static signals were detected.
Trigger
User runs the mastercoder CLI binary.
Impact
Executes the resolved platform-specific mastercoder optional dependency with supplied CLI arguments.
Mechanism
platform binary launcher via child_process.spawnSync without shell
Rationale
Static inspection shows no install-time execution, exfiltration, destructive behavior, persistence, or broad AI-agent control-surface mutation. The child_process finding is explained by a normal CLI launcher for package-aligned optional platform binaries.
Evidence
package.jsonbin/mastercoder.mjsREADME.md
Decision evidence
public snapshotAI called this Clean at 86.0% confidence as Benign with low false-positive risk.
Evidence for block
- README.md appears copied from opencode and contains opencode install URLs, but it is documentation only.
Evidence against
- package.json has no preinstall/install/postinstall or other lifecycle scripts.
- package.json exposes only bin/mastercoder.mjs and platform-specific optionalDependencies.
- bin/mastercoder.mjs resolves mastercoder-${platform}-${arch}/bin/mastercoder and runs it only when the CLI is invoked.
- bin/mastercoder.mjs passes user CLI args through spawnSync with stdio inherit; no shell option is used.
- No credential/env harvesting, file writes, eval/vm, network calls, or agent config mutation found in package source.
Behavioral surface
ChildProcessShell
UrlStrings
Source & flagged code
2 flagged · loading sourcebin/mastercoder.mjsView file
3// optional dependency) and execs it with full stdio passthrough.
L4: import { spawnSync } from "node:child_process"
L5: import { createRequire } from "node:module"
High
Child Process
Package source references child process execution.
bin/mastercoder.mjsView on unpkg · L33// optional dependency) and execs it with full stdio passthrough.
L4: import { spawnSync } from "node:child_process"
L5: import { createRequire } from "node:module"
...
L14: console.error(`MasterCoder: 이 플랫폼(${os.platform()}-${os.arch()})용 실행 파일을 찾지 못했어요.`)
L15: console.error(`해결: npm install -g mastercoder --force · 안내: https://mastercoder.ai/cli/`)
L16: process.exit(1)
High
Runtime Package Install
Package source invokes a package manager install command at runtime.
bin/mastercoder.mjsView on unpkg · L3Findings
3 High1 Low
HighChild Processbin/mastercoder.mjs
HighShell
HighRuntime Package Installbin/mastercoder.mjs
LowUrl Strings