Loading npm security reports…
Loading npm security reports…
pantheon-opencode@2.0.2: AI-agent control-surface risk – flagged | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. Package installation can change agent instructions and runtime capabilities without a separate user setup command.
AI security reviewscanned on Nov 11, 2026, 18:23 UTC · by lpm-firewall-ai The install hook performs more than dependency checks: it automatically writes agent instructions and runtime artifacts into an existing OpenCode config. Because this changes AI-agent control surfaces during installation without a separate user request, the package meets the install-time control-hijack rule.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
Package installation when an OpenCode config directory exists.
Impact
Package installation can change agent instructions and runtime capabilities without a separate user setup command.
Mechanism
The hook invokes sync-tui.mjs, which calls syncCopyArtifacts to copy package-provided agents, AGENTS.md instructions, commands, and MCP/code-mode files into the user's config.
Policy narrative
During npm installation, the postinstall hook detects an existing OpenCode config and automatically copies Pantheon agents, global agent instructions, commands, MCP scripts, and code-mode files into it. This is an install-time mutation of AI-agent control surfaces without a separate user request.
Evidence
package.json scripts/postinstall.mjs scripts/sync-tui.mjs scripts/sync-artifacts.mjs OpenCode config: agents/*
OpenCode config: AGENTS.md
OpenCode config: commands/*
OpenCode config: scripts/*
OpenCode config: .pantheon/code-mode/*
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 91.0% confidence with low false-positive risk.
Evidence for policy risk
The npm postinstall script runs both scripts/postinstall.mjs and scripts/sync-tui.mjs. The sync runs during installation only when an OpenCode config directory already exists. The postinstall refresh copies package agents and routing data into the user's OpenCode config. It also writes the package's global AGENTS.md instructions and copies commands and runtime MCP/code-mode files into that config. Evidence against
The sync is conditional on an existing OpenCode config and is described as refreshing Pantheon artifacts. The AGENTS.md writer preserves user content outside its managed region. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 208 files · 3.61 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 Findings19 high · 6 medium · 5 low Source & flagged code21 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@1.7.0
matchedPath = scripts/install-mcp.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
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/decision-router-budget.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@1.7.0
matchedPath = scripts/decision-router-budget.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
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 · 7 lines matchType = token_shingles
matchedPackage = pantheon-opencode@1.7.0
matchedPath = scripts/package-evidence.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped 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@1.7.0
matchedPath = scripts/redaction-gate.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
src/pantheon/local-decision-budget.ts View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
src/pantheon/local-decision-budget.ts View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@1.7.0
matchedPath = src/pantheon/local-decision-budget.ts
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
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/hook-runner.ts View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@1.7.0
matchedPath = src/plugins/hook-runner.ts
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
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/docs-link-check.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = pantheon-opencode@1.7.0
matchedPath = scripts/docs-link-check.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
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/probe-pantheon-cost.mjs View on unpkg Scanner record · 7 lines matchType = token_shingles
matchedPackage = pantheon-opencode@1.7.0
matchedPath = scripts/probe-pantheon-cost.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped 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-notes.mjs View on unpkg Scanner record · 7 lines matchType = token_shingles
matchedPackage = pantheon-opencode@1.7.0
matchedPath = scripts/release-notes.mjs
matchedIdentity = npm:cGFudGhlb24tb3BlbmNvZGU:1.7.0
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped finalized malicious source
AI assessment confidence 91%
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.0.2
Published Nov 11, 2026
License MIT
Dependencies 5
Integrity verified
Package size 1.44 MB
Files 362
Keywords github copilot agents skills plugin orchestration
Runtime surface package.json Entrypoints exports map bin → pantheon-opencode
Runtime node >=26.4.0
Artifact 5.20 MB unpacked · 362 files 2 signatures · provenance
Install lifecycle postinstall prepare prepublishOnly
On this report AI security review Decision evidence Findings30 Flagged code21 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