AI Security Review
scanned 1h ago · by lpm-firewall-aiNo confirmed malicious attack surface is established in this package source. The CLI wrapper executes a package-aligned optional dependency binary only when the user runs the mastercoder command.
Static reason
One or more suspicious static signals were detected.
Trigger
User invokes the mastercoder CLI bin.
Impact
Runs the resolved MasterCoder platform binary with user-supplied CLI arguments; no malicious behavior is present in this wrapper source.
Mechanism
platform-specific optional dependency launcher
Rationale
Static inspection found a normal npm meta-package launcher with no lifecycle execution, exfiltration, persistence, destructive behavior, or unconsented AI-agent control-surface mutation. The child_process finding is package-aligned runtime behavior for a CLI wrapper rather than a concrete attack chain.
Evidence
package.jsonbin/mastercoder.mjsREADME.md
Decision evidence
public snapshotAI called this Clean at 84.0% confidence as Benign with medium false-positive risk.
Evidence for block
- bin/mastercoder.mjs uses child_process.spawnSync to launch a resolved platform binary from optional dependency mastercoder-${platform}-${arch}.
- README.md appears copied from opencode and includes curl install documentation, but it is documentation only and not executed by this package.
Evidence against
- package.json has no preinstall/install/postinstall/prepare lifecycle scripts.
- bin/mastercoder.mjs only resolves a package-aligned optional dependency and forwards CLI args/stdio.
- No source reads credentials, environment secrets, SSH/npm files, or project files.
- No code writes files, mutates agent configuration, establishes persistence, or performs network requests.
- No eval/vm/Function, obfuscation, or remote payload download found in package files.
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