Loading npm security reports…
Loading npm security reports…
pantheon-opencode@2.1.2: AI-agent control-surface risk – flagged | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. Updated agent instructions, skills, and MCP/runtime files can change behavior in the user's OpenCode environment without explicit consent for those changes.
AI security reviewscanned on Nov 14, 2026, 01:03 UTC · by lpm-firewall-ai The automatic postinstall sync writes agent instructions and other behavior-bearing artifacts into an existing global OpenCode configuration. The package's intended orchestration purpose explains the content, but the install-time writes affect external agent controls without explicit setup consent.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
Installing or updating the package with npm when an OpenCode config directory already exists.
Impact
Updated agent instructions, skills, and MCP/runtime files can change behavior in the user's OpenCode environment without explicit consent for those changes.
Mechanism
postinstall runs sync-tui.mjs, which invokes syncCopyArtifacts and writes package artifacts into the global config without a separate user command.
Policy narrative
During npm installation, the postinstall hook detects an existing global OpenCode configuration and refreshes package-managed agent instructions, skills, and MCP/runtime artifacts there. This changes external AI-agent control surfaces automatically, without requiring the user to run the package's setup command.
Evidence
package.json scripts/sync-tui.mjs scripts/sync-artifacts.mjs configDir/AGENTS.md
configDir/agents/*
configDir/routing.yml
configDir/commands/*
configDir/scripts/*
configDir/requirements-vision.txt
configDir/.pantheon/code-mode/*
configDir/.pantheon/tiers.json
configDir/plugins/pantheon-tui/*
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 97.0% confidence with low false-positive risk.
Evidence for policy risk
The postinstall lifecycle command automatically runs scripts/sync-tui.mjs. The sync runs when an OpenCode config directory already exists; otherwise it exits. The sync refreshes copied agents, skills, global AGENTS.md instructions, commands, MCP scripts, and code-mode files in that global config. The artifact sync writes the package's AGENTS.global.md content to configDir/AGENTS.md and installs skills into configDir. Evidence against
The sync is framed as keeping an existing Pantheon installation current and does not run when no OpenCode config directory exists. I found no install-time credential collection or unrelated network transmission in the reviewed lifecycle path. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 216 files · 3.71 MB of source
10 external domains referenced
api.githubcopilot.com api.openai.com api.typesafe.ai github.com mcp.grep.app models.dev nodejs.org opencode.ai registry.npmjs.org www.python.org Findings20 high · 6 medium · 5 low Source & flagged code22 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle script
Install-time lifecycle script is not statically allowlisted and needs review.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node scripts/postinstall.mjs && node scripts/sync-tui.mjs
High Child process
Package source references child process execution.
bin/pantheon-init.mjs View on unpkg · L166 Code excerpt · 3 lines 166 if (command === 'prune' ) {
167 const { spawnSync } = await import ('node:child_process' )
168 const pruneScript = path.join (ROOT, 'scripts' , 'prune.mjs' )
Medium Dynamic require
Package source references dynamic require/import behavior.
scripts/vision-status.mjs View on unpkg · L38 Code excerpt · 2 lines 39 const require = createRequire (import .meta.url)
40
High External AI agent control surface mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
scripts/install/agents-md.mjs View on unpkg Scanner record · 30 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
ble = generateagentstable(agents)
const sections = [
title,
'',
`this project uses the pantheon multi-agent framework with ${agentcount} specialized agents.`,
'',
'## available agents',
'',
agenttable,
]
if (extrasections) {
sections.push('', extrasections.trimend())
}
sections.push(
High Trigger reachable external AI agent control surface mutation
Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.
scripts/install/opencode.mjs View on unpkg Scanner record · 19 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
if (componentset.has('agents')) {
section('agents')
const srcdir = join(root, 'src', 'agents')
if (!sourcedirvalid(srcdir)) {
warning(`agent source directory not found: ${srcdir}`)
stats.errors++
} else {
const agentstep = step(s.installingagents)
const dstdir = join(target, agentprefix)
assertpathwithin(target, dstdir)
assertnosymlinkancestors(dstdir)
if (!dryrun) {
mkdirsync(dstdir, { recursive: true })
assertnosymlinkancestors(dstdir)
High Runtime package install
Package source invokes a package manager install command at runtime.
scripts/install-mcp.mjs View on unpkg · L119 Code excerpt · 3 lines 119 try {
120 execSync ('npx --yes @upstash/context7-mcp --help 2>&1' , {
121 stdio: 'pipe' ,
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/install-mcp.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/install-mcp.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
scripts/test-opencode-sandbox.sh View on unpkg Scanner record · 4 lines path = scripts/test-opencode-sandbox.sh
kind = build_helper
sizeBytes = 78454
magicHex = [redacted]
.pantheon/code-mode/compress-inline.py View file High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
.pantheon/code-mode/compress-inline.py View on unpkg Scanner record · 4 lines path = .pantheon/code-mode/compress-inline.py
kind = payload_in_excluded_dir
sizeBytes = 17142
magicHex = [redacted]
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
scripts/manifest-inventory.mjs View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_trace_path_limit_exceeded; limitedFiles = 3
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/versioning.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/versioning.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/plugin/index.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = src/plugin/index.js
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/plugins/tui/src/index.tsx View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = src/plugins/tui/src/index.tsx
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/install/shared.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/install/shared.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/optimize.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/optimize.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/package-evidence.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/package-evidence.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/prune.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/prune.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/redaction-gate.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/redaction-gate.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/release-retrofit.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/release-retrofit.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/skill-search.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@2.0.2
matchedPath = scripts/sk[redacted]
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:2.0.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
AI assessment confidence 97%
Certainty of the AI review, not severity.
Verdict details False-positive risk, Review stage, Firewall policy This finding concerns changes to an AI agent's instructions or configuration without explicit user action. It does not by itself establish malware intent. The CLI warns by default and blocks when configured for this policy.
Package metadata npm Author ils15
Version 2.1.2
Published Nov 14, 2026
License MIT
Dependencies 5
Integrity verified
Package size 1.47 MB
Files 370
Keywords github copilot agents skills plugin orchestration
Runtime surface package.json Entrypoints exports map bin → pantheon-opencode
Runtime node >=26.4.0
Artifact 5.33 MB unpacked · 370 files 2 signatures · provenance
Install lifecycle postinstall prepare prepublishOnly
On this report AI security review Decision evidence Findings31 Flagged code22 Remediation External AI agent control surface mutation
Code↓
'- build: `npm run build`',
'- focused test: run the smallest relevant check for the changed behavior',
'- full suite: `npm test` (ci/release gates or broad/high-risk changes)',
'- lint: `npm run lint`',
'- tdd: write failing test first, then implement',
'- coverage minimum: 80%',
}
if (clean && existssync(dstdir)) {
assertnosymlinkancestors(dstdir)
const existing = readdirsync(dstdir)
for (const f of existing) {
summary = normalized source hash matched finalized malicious source